571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
46 lines
925 B
Nix
46 lines
925 B
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, openssl
|
|
, stdenv
|
|
, darwin
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage {
|
|
pname = "gridlock";
|
|
version = "unstable-2023-08-29";
|
|
|
|
outputs = [ "out" "nyarr" ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lf-";
|
|
repo = "gridlock";
|
|
rev = "a98abfa554e5f8e2b7242662c0c714b7f1d7ec29";
|
|
hash = "sha256-I4NGfgNX79ZhWXDeUDJyDzP2GxcNhHhazVmmmPlz5js=";
|
|
};
|
|
|
|
cargoHash = "sha256-qz77c2IZGaWsinfkVTWqfEeBEtHng6W738jBwJAkrl4=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
openssl
|
|
] ++ lib.optionals stdenv.hostPlatform.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 ];
|
|
};
|
|
}
|