-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #234878 from figsoda/gridlock
- Loading branch information
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters