2023-03-04 12:14:45 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, Security
|
|
|
|
, testers
|
|
|
|
, git-stack
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "git-stack";
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "0.10.17";
|
2023-03-04 12:14:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gitext-rs";
|
|
|
|
repo = "git-stack";
|
|
|
|
rev = "v${version}";
|
2023-08-22 20:05:09 +00:00
|
|
|
hash = "sha256-foItJSZ6jsLuWkO/c1Ejb45dSdzZ/ripieyVIYsEyy0=";
|
2023-03-04 12:14:45 +00:00
|
|
|
};
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
cargoHash = "sha256-MEhUmy4ijR/zHm/qMt4PqNGYnCfIgjNaL9SlMmXCMmc=";
|
2023-03-04 12:14:45 +00:00
|
|
|
|
|
|
|
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 ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "git-stack";
|
2023-03-04 12:14:45 +00:00
|
|
|
};
|
|
|
|
}
|