forked from pub-solar/os
33 lines
868 B
Nix
33 lines
868 B
Nix
|
final: prev: {
|
||
|
prr = prev.buildNpmPackage {
|
||
|
pname = "prr";
|
||
|
version = "unstable-2022-06-05";
|
||
|
|
||
|
src = prev.fetchFromGitHub {
|
||
|
owner = "TritonDataCenter";
|
||
|
repo = "prr";
|
||
|
rev = "bfbce27d955b6b75729ef647cec9f81dc04fea3c";
|
||
|
hash = "sha256-Z5sKddpHmSJxzacMOuDOxMxBpjApS7FWCWRelHMi/4g=";
|
||
|
};
|
||
|
|
||
|
npmDepsHash = "sha256-wVh3WCuUn9l/gILx25tgxTwtwH0Q19lpXTU8gOHWsCg=";
|
||
|
|
||
|
patches = [./prr-remote-origin-trailing-slash.patch];
|
||
|
|
||
|
dontBuild = true;
|
||
|
installPhase = ''
|
||
|
npmInstallHook
|
||
|
|
||
|
mkdir -p $out/bin
|
||
|
ln -s $out/lib/node_modules/prr/bin/prr $out/bin/prr
|
||
|
'';
|
||
|
|
||
|
meta = with prev.lib; {
|
||
|
homepage = "https://github.com/TritonDataCenter/prr";
|
||
|
description = "Tooling to assist with GitHub pull requests";
|
||
|
platforms = ["x86_64-linux"];
|
||
|
maintainers = with maintainers; [teutat3s];
|
||
|
};
|
||
|
};
|
||
|
}
|