Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
53 lines
1.0 KiB
Nix
53 lines
1.0 KiB
Nix
{
|
|
rustPlatform,
|
|
lib,
|
|
fetchFromGitHub,
|
|
makeBinaryWrapper,
|
|
nix-prefetch-git,
|
|
gitMinimal,
|
|
nix-update-script,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "lon";
|
|
version = "0.8.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nikstur";
|
|
repo = "lon";
|
|
tag = version;
|
|
hash = "sha256-bxu83mbdfAeDZYOnjZQYyjTs5WgZS8o6Q2irlzgbYs0=";
|
|
};
|
|
|
|
sourceRoot = "source/rust/lon";
|
|
|
|
cargoHash = "sha256-x+qxn0s64fPJpTG/d0PgzAdzMXegYdnsC1FFFuBpsaI=";
|
|
|
|
nativeBuildInputs = [ makeBinaryWrapper ];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/lon --prefix PATH : ${
|
|
lib.makeBinPath [
|
|
nix-prefetch-git
|
|
gitMinimal
|
|
]
|
|
}
|
|
'';
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script { };
|
|
};
|
|
|
|
meta = {
|
|
description = "Lock & update Nix dependencies";
|
|
homepage = "https://github.com/nikstur/lon";
|
|
changelog = "https://github.com/nikstur/lon/blob/${version}/CHANGELOG.md";
|
|
maintainers = with lib.maintainers; [
|
|
ma27
|
|
nikstur
|
|
];
|
|
license = lib.licenses.mit;
|
|
mainProgram = "lon";
|
|
};
|
|
}
|