mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
2641d97cbf
Reproduction script: # Bulk rewrite ./maintainers/scripts/sha-to-sri.py pkgs/by-name # Revert some packages which will need manual intervention for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do git checkout -- "pkgs/by-name/${n:0:2}/${n}" done
40 lines
758 B
Nix
40 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";
|
|
};
|
|
})
|