mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 03:34:58 +00:00
c562010d3d
Signed-off-by: Colton J. McCurdy <mccurdyc22@gmail.com>
43 lines
949 B
Nix
43 lines
949 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=";
|
|
};
|
|
|
|
cargoHash = "sha256-2TXm1JTs0Xkid91A5tdi6Kokm0K1NOPmlocwFXv48uw=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config # for openssl
|
|
];
|
|
|
|
buildInputs = [ openssl.dev ]
|
|
++ lib.optionals stdenv.isDarwin [
|
|
libiconv
|
|
darwin.apple_sdk.frameworks.Security
|
|
darwin.apple_sdk.frameworks.SystemConfiguration
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A 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";
|
|
};
|
|
}
|