nixpkgs/pkgs/development/tools/rep/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

32 lines
706 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";
mainProgram = "rep";
homepage = "https://github.com/eraserhd/rep";
license = licenses.epl10;
platforms = platforms.all;
maintainers = [ maintainers.eraserhd ];
};
}