Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 fetchFromGitHub, 4 rustPlatform, 5 pkg-config, 6 openssl, 7 git, 8 nix-update-script, 9}: 10 11rustPlatform.buildRustPackage { 12 pname = "git-chain"; 13 version = "0-unstable-2025-03-25"; 14 15 src = fetchFromGitHub { 16 owner = "dashed"; 17 repo = "git-chain"; 18 rev = "f6a6d365e6e3cce15e74649a421044a01fb4f68f"; 19 hash = "sha256-lOAURUhR2Ts1DF8yW0WnovSWeZFC8UwR6j4cxoreonY="; 20 }; 21 22 cargoHash = "sha256-0Ur80eIKQIsM5vyIt+9YpFufHTk97+T+KXoAkJE90Ag="; 23 24 nativeBuildInputs = [ pkg-config ]; 25 26 buildInputs = [ openssl ]; 27 28 nativeCheckInputs = [ git ]; 29 30 passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; }; 31 32 meta = with lib; { 33 description = "Tool for rebasing a chain of local git branches"; 34 homepage = "https://github.com/dashed/git-chain"; 35 license = licenses.mit; 36 mainProgram = "git-chain"; 37 maintainers = with maintainers; [ bcyran ]; 38 }; 39}