@@ -0,0 +1,30 @@
1+{ stdenv, fetchFromGitHub, asciidoc-full }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "rep";
5+ version = "0.2.1";
6+
7+ src = fetchFromGitHub {
8+ owner = "eraserhd";
9+ repo = pname;
10+ rev = "v${version}";
11+ sha256 = "1p0dbaj7f4irzzw1m44x3b3j3jjij9i4rs83wkrpiamlq61077di";
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 stdenv.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+}