1{ lib, stdenv, fetchFromGitHub, asciidoc-full }:
2
3stdenv.mkDerivation rec {
4 pname = "rep";
5 version = "0.2.2";
6
7 src = fetchFromGitHub {
8 owner = "eraserhd";
9 repo = pname;
10 rev = "v${version}";
11 sha256 = "pqmISVm3rYGxRuwKieVpRwXE8ufWnBHEA6h2hrob51s=";
12 };
13
14 nativeBuildInputs = [
15 asciidoc-full
16 ];
17
18 postPatch = ''
19 substituteInPlace rc/rep.kak --replace '$(rep' '$('"$out/bin/rep"
20 '';
21 makeFlags = [ "prefix=$(out)" ];
22
23 meta = with lib; {
24 description = "Single-shot nREPL client";
25 homepage = "https://github.com/eraserhd/rep";
26 license = licenses.epl10;
27 platforms = platforms.all;
28 maintainers = [ maintainers.eraserhd ];
29 };
30}