2023-05-29 22:52:03 +02:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, openssl
|
|
|
|
, stdenv
|
|
|
|
, darwin
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage {
|
|
|
|
pname = "gridlock";
|
2023-09-13 17:36:40 +02:00
|
|
|
version = "unstable-2023-08-29";
|
2023-05-29 22:52:03 +02:00
|
|
|
|
|
|
|
outputs = [ "out" "nyarr" ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lf-";
|
|
|
|
repo = "gridlock";
|
2023-09-13 17:36:40 +02:00
|
|
|
rev = "a98abfa554e5f8e2b7242662c0c714b7f1d7ec29";
|
|
|
|
hash = "sha256-I4NGfgNX79ZhWXDeUDJyDzP2GxcNhHhazVmmmPlz5js=";
|
2023-05-29 22:52:03 +02:00
|
|
|
};
|
|
|
|
|
2023-09-13 17:36:40 +02:00
|
|
|
cargoHash = "sha256-qz77c2IZGaWsinfkVTWqfEeBEtHng6W738jBwJAkrl4=";
|
2023-05-29 22:52:03 +02:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|