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
35 lines
713 B
Nix
35 lines
713 B
Nix
{
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
lib,
|
|
nixosTests,
|
|
}:
|
|
buildGoModule rec {
|
|
pname = "nar-serve";
|
|
version = "0.7.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "numtide";
|
|
repo = "nar-serve";
|
|
rev = "v${version}";
|
|
hash = "sha256-8QuMS00EutmqzAIPxyJEPxM8EHiWlSKs6E2Htoh3Kes=";
|
|
};
|
|
|
|
vendorHash = "sha256-td9NYHGYJYPlIj2tnf5I/GnJQOOgODc6TakHFwxyvLQ=";
|
|
|
|
doCheck = false;
|
|
|
|
passthru.tests = { inherit (nixosTests) nar-serve; };
|
|
|
|
meta = with lib; {
|
|
description = "Serve NAR file contents via HTTP";
|
|
mainProgram = "nar-serve";
|
|
homepage = "https://github.com/numtide/nar-serve";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [
|
|
rizary
|
|
zimbatm
|
|
];
|
|
};
|
|
}
|