about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorColton J. McCurdy2023-06-26 21:11:15 -0400
committerColton J. McCurdy2023-07-03 11:12:51 -0400
commitc562010d3dd91fa03c7d143a1204b27beac4a17e (patch)
tree17a44bea8b9371735440ffeba54d3b4c324d3cff /pkgs
parent349a86e3cb80d56ffd4a710167b9e092996d951f (diff)
gitrs: init at 0.3.6
Signed-off-by: Colton J. McCurdy <mccurdyc22@gmail.com>
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/misc/gitrs/default.nix42
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/tools/misc/gitrs/default.nix b/pkgs/tools/misc/gitrs/default.nix
new file mode 100644
index 000000000000..4ce36855ef67
--- /dev/null
+++ b/pkgs/tools/misc/gitrs/default.nix
@@ -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";
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index d42546d920c7..e62de6db3774 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -41222,4 +41222,6 @@ with pkgs;
   charasay = callPackage ../tools/misc/charasay { };
 
   waylyrics = callPackage ../applications/audio/waylyrics { };
+
+  gitrs = callPackage ../tools/misc/gitrs { };
 }