summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/re/rep/package.nix
blob: 053a92b14746af67649067c665629bc0624cf314 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
  lib,
  stdenv,
  fetchFromGitHub,
  asciidoc-full,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "rep";
  version = "0.2.2";

  src = fetchFromGitHub {
    owner = "eraserhd";
    repo = "rep";
    rev = "v${finalAttrs.version}";
    sha256 = "pqmISVm3rYGxRuwKieVpRwXE8ufWnBHEA6h2hrob51s=";
  };

  nativeBuildInputs = [
    asciidoc-full
  ];

  postPatch = ''
    substituteInPlace rc/rep.kak --replace '$(rep' '$('"$out/bin/rep"
  '';
  makeFlags = [ "prefix=$(out)" ];

  meta = {
    description = "Single-shot nREPL client";
    mainProgram = "rep";
    homepage = "https://github.com/eraserhd/rep";
    license = lib.licenses.epl10;
    platforms = lib.platforms.all;
    maintainers = [ lib.maintainers.eraserhd ];
  };
})