depot/pkgs/by-name/gi/git-my/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

39 lines
758 B
Nix

{
bash,
fetchFromGitHub,
lib,
stdenv,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "git-my";
version = "1.1.2";
src = fetchFromGitHub {
owner = "davidosomething";
repo = "git-my";
rev = finalAttrs.version;
hash = "sha256-GzBNtsCrs2M0UBc1FVE+4yUNLpjDGUfekc/LIvgvUUo=";
};
buildInputs = [ bash ];
dontBuild = true;
installPhase = ''
runHook preInstall
install -Dm 755 -t "$out/bin" -- git-my
runHook postInstall
'';
meta = {
description = "List remote branches if they're merged and/or available locally";
homepage = "https://github.com/davidosomething/git-my";
license = lib.licenses.free;
maintainers = [ ];
platforms = lib.platforms.all;
mainProgram = "git-my";
};
})