depot/third_party/nixpkgs/pkgs/development/tools/rep/default.nix
Default email a29f39726d Project import generated by Copybara.
GitOrigin-RevId: 39e6bf76474ce742eb027a88c4da6331f0a1526f
2021-05-04 23:07:42 +02:00

30 lines
681 B
Nix

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