mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 04:46:43 +00:00
e4dbabf854
maintainers: add diegs to graphite-cli
48 lines
1.1 KiB
Nix
48 lines
1.1 KiB
Nix
{ lib
|
|
, buildNpmPackage
|
|
, fetchurl
|
|
, git
|
|
, installShellFiles
|
|
}:
|
|
|
|
buildNpmPackage rec {
|
|
pname = "graphite-cli";
|
|
version = "1.1.5";
|
|
|
|
src = fetchurl {
|
|
url = "https://registry.npmjs.org/@withgraphite/graphite-cli/-/graphite-cli-${version}.tgz";
|
|
hash = "sha256-/JnhUjrZq1iiXwqCSXZH250gu3yh6gJt6JjZRJ2OQd8=";
|
|
};
|
|
|
|
npmDepsHash = "sha256-oQLombXIZRyjnKA04xuDZoZf2NO/0/xFfuXXmp46OaI=";
|
|
|
|
postPatch = ''
|
|
ln -s ${./package-lock.json} package-lock.json
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
git
|
|
installShellFiles
|
|
];
|
|
|
|
dontNpmBuild = true;
|
|
|
|
postInstall = ''
|
|
installShellCompletion --cmd gt \
|
|
--bash <($out/bin/gt completion) \
|
|
--fish <(GT_PAGER= $out/bin/gt fish) \
|
|
--zsh <(ZSH_NAME=zsh $out/bin/gt completion)
|
|
'';
|
|
|
|
passthru.updateScript = ./update.sh;
|
|
|
|
meta = {
|
|
description = "CLI that makes creating stacked git changes fast & intuitive";
|
|
downloadPage = "https://www.npmjs.com/package/@withgraphite/graphite-cli";
|
|
homepage = "https://graphite.dev/docs/graphite-cli";
|
|
license = lib.licenses.unfree; # no license specified
|
|
mainProgram = "gt";
|
|
maintainers = with lib.maintainers; [ diegs ];
|
|
};
|
|
}
|