Files
nixpkgs/pkgs/by-name/gr/gridlock/package.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

46 lines
801 B
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
openssl,
}:
rustPlatform.buildRustPackage {
pname = "gridlock";
version = "0-unstable-2023-08-29";
outputs = [
"out"
"nyarr"
];
src = fetchFromGitHub {
owner = "lf-";
repo = "gridlock";
rev = "a98abfa554e5f8e2b7242662c0c714b7f1d7ec29";
hash = "sha256-I4NGfgNX79ZhWXDeUDJyDzP2GxcNhHhazVmmmPlz5js=";
};
cargoHash = "sha256-CflDi1sjPBX+FOj74DWYKcg0O8Q7bnCFhzEnCrRi0g8=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
openssl
];
postInstall = ''
moveToOutput bin/nyarr $nyarr
'';
meta = {
description = "Nix compatible lockfile manager, without Nix";
homepage = "https://github.com/lf-/gridlock";
license = lib.licenses.mit;
maintainers = [ ];
};
}