gitrs: init at 0.3.6

Signed-off-by: Colton J. McCurdy <mccurdyc22@gmail.com>
This commit is contained in:
Colton J. McCurdy 2023-06-26 21:11:15 -04:00
parent 349a86e3cb
commit c562010d3d
No known key found for this signature in database
GPG key ID: 9CD9D30EBB7B1EEC
2 changed files with 44 additions and 0 deletions

View file

@ -0,0 +1,42 @@
{ 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";
};
}

View file

@ -41222,4 +41222,6 @@ with pkgs;
charasay = callPackage ../tools/misc/charasay { };
waylyrics = callPackage ../applications/audio/waylyrics { };
gitrs = callPackage ../tools/misc/gitrs { };
}