depot/third_party/nixpkgs/pkgs/by-name/gi/gitrs/package.nix
Luke Granger-Brown f92e137cfb
Some checks failed
/ combine-systems (push) Blocked by required conditions
/ build (x86_64-linux) (push) Failing after 11m44s
/ build (aarch64-linux) (push) Failing after 11m50s
/ build (push) Failing after 16m42s
Merge commit '1e2ed035f4bebc9adad02b365508ad96f7df87c1' into HEAD
2025-03-02 02:23:32 +00:00

45 lines
1,012 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
openssl,
pkg-config,
libiconv,
darwin,
rustPlatform,
}:
rustPlatform.buildRustPackage rec {
pname = "gitrs";
version = "v0.3.6";
src = fetchFromGitHub {
owner = "mccurdyc";
repo = pname;
rev = version;
hash = "sha256-+43XJroPNWmdUC6FDL84rZWrJm5fzuUXfpDkAMyVQQg=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-uDDk1wztXdINPSVF6MvDy+lHIClMLp13HZSTpIgLypM=";
nativeBuildInputs = [
pkg-config # for openssl
];
buildInputs =
[ openssl.dev ]
++ lib.optionals stdenv.hostPlatform.isDarwin [
libiconv
darwin.apple_sdk.frameworks.Security
darwin.apple_sdk.frameworks.SystemConfiguration
];
meta = with lib; {
description = "Simple, opinionated, tool, written in Rust, for declaratively managing Git repos on your machine";
homepage = "https://github.com/mccurdyc/gitrs";
license = licenses.mit;
maintainers = with maintainers; [ mccurdyc ];
mainProgram = "gitrs";
};
}