Skip to content

Commit

Permalink
Merge pull request #234878 from figsoda/gridlock
Browse files Browse the repository at this point in the history
  • Loading branch information
figsoda authored May 31, 2023
2 parents 46893a3 + f9bd3d9 commit 58bf1f8
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
45 changes: 45 additions & 0 deletions pkgs/tools/nix/gridlock/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
3 changes: 3 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,9 @@ with pkgs;

gpick = callPackage ../tools/misc/gpick { };

gridlock = callPackage ../tools/nix/gridlock { };
inherit (gridlock) nyarr;

hwatch = callPackage ../tools/misc/hwatch { };

hobbes = callPackage ../development/tools/hobbes { stdenv = gcc10StdenvCompat; };
Expand Down

0 comments on commit 58bf1f8

Please sign in to comment.