nixpkgs/pkgs/development/tools/rep/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
706 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, asciidoc-full }:
2020-10-13 23:27:53 +03:00
stdenv.mkDerivation rec {
pname = "rep";
2021-05-03 23:48:27 +03:00
version = "0.2.2";
2020-10-13 23:27:53 +03:00
src = fetchFromGitHub {
owner = "eraserhd";
repo = pname;
rev = "v${version}";
2021-05-03 23:48:27 +03:00
sha256 = "pqmISVm3rYGxRuwKieVpRwXE8ufWnBHEA6h2hrob51s=";
2020-10-13 23:27:53 +03:00
};
nativeBuildInputs = [
asciidoc-full
];
postPatch = ''
substituteInPlace rc/rep.kak --replace '$(rep' '$('"$out/bin/rep"
'';
makeFlags = [ "prefix=$(out)" ];
meta = with lib; {
2020-10-13 23:27:53 +03:00
description = "Single-shot nREPL client";
mainProgram = "rep";
2020-10-13 23:27:53 +03:00
homepage = "https://github.com/eraserhd/rep";
license = licenses.epl10;
platforms = platforms.all;
maintainers = [ maintainers.eraserhd ];
};
}