nixpkgs/pkgs/applications/version-management/git-stack/default.nix
2023-03-03 17:06:31 +01:00

42 lines
927 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, Security
, testers
, git-stack
}:
rustPlatform.buildRustPackage rec {
pname = "git-stack";
version = "0.10.12";
src = fetchFromGitHub {
owner = "gitext-rs";
repo = "git-stack";
rev = "v${version}";
hash = "sha256-ghH3wmXLPzJZ4lNXFwEGKD89r7xaRMXUe9kGHm7MC4s=";
};
cargoHash = "sha256-5FXcReXgq5LFysPGBuYawFdkYAgRHsW+p2Ytin4+ZxI=";
buildInputs = lib.optionals stdenv.isDarwin [
Security
];
# Many tests try to access the file system.
doCheck = false;
passthru.tests.version = testers.testVersion {
package = git-stack;
};
meta = with lib; {
description = "Stacked branch management for Git";
homepage = "https://github.com/gitext-rs/git-stack";
changelog = "https://github.com/gitext-rs/git-stack/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ stehessel ];
};
}