summary refs log tree commit diff
path: root/pkgs/tools
diff options
context:
space:
mode:
authorfigsoda <figsoda@pm.me>2023-05-29 16:52:03 -0400
committerfigsoda <figsoda@pm.me>2023-05-29 16:52:16 -0400
commitf03d84d954baedfc6fde4d8cdddd0e6a7b50b013 (patch)
tree2858a4722f9fb3ef74886b7a48a4d3fba0f7d326 /pkgs/tools
parent300dbaff424a58433e20596677d1e88ad1f884e5 (diff)
downloadnixpkgs-f03d84d954baedfc6fde4d8cdddd0e6a7b50b013.tar
nixpkgs-f03d84d954baedfc6fde4d8cdddd0e6a7b50b013.tar.gz
nixpkgs-f03d84d954baedfc6fde4d8cdddd0e6a7b50b013.tar.bz2
nixpkgs-f03d84d954baedfc6fde4d8cdddd0e6a7b50b013.tar.lz
nixpkgs-f03d84d954baedfc6fde4d8cdddd0e6a7b50b013.tar.xz
nixpkgs-f03d84d954baedfc6fde4d8cdddd0e6a7b50b013.tar.zst
nixpkgs-f03d84d954baedfc6fde4d8cdddd0e6a7b50b013.zip
gridlock: init at unstable-2023-03-03
https://github.com/lf-/gridlock
Diffstat (limited to 'pkgs/tools')
-rw-r--r--pkgs/tools/nix/gridlock/default.nix45
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/tools/nix/gridlock/default.nix b/pkgs/tools/nix/gridlock/default.nix
new file mode 100644
index 00000000000..7e3bee28ebb
--- /dev/null
+++ b/pkgs/tools/nix/gridlock/default.nix
@@ -0,0 +1,45 @@
+{ lib
+, rustPlatform
+, fetchFromGitHub
+, pkg-config
+, openssl
+, stdenv
+, darwin
+}:
+
+rustPlatform.buildRustPackage {
+  pname = "gridlock";
+  version = "unstable-2023-03-03";
+
+  outputs = [ "out" "nyarr" ];
+
+  src = fetchFromGitHub {
+    owner = "lf-";
+    repo = "gridlock";
+    rev = "15261abdb179e1d7e752772bf9db132b3ee343ea";
+    hash = "sha256-rnPAEJH3TebBH6lqgVo7B+nNiArDIkGDnIZWcteFNEw=";
+  };
+
+  cargoHash = "sha256-EPs5vJ2RkVXKxrTRtbT/1FbvCT0KJtNuW2WKIUq7G0U=";
+
+  nativeBuildInputs = [
+    pkg-config
+  ];
+
+  buildInputs = [
+    openssl
+  ] ++ lib.optionals stdenv.isDarwin [
+    darwin.apple_sdk.frameworks.Security
+  ];
+
+  postInstall = ''
+    moveToOutput bin/nyarr $nyarr
+  '';
+
+  meta = with lib; {
+    description = "Nix compatible lockfile manager, without Nix";
+    homepage = "https://github.com/lf-/gridlock";
+    license = licenses.mit;
+    maintainers = with maintainers; [ figsoda ];
+  };
+}