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
51 lines
1001 B
Nix
51 lines
1001 B
Nix
{
|
|
buildGoModule,
|
|
dbmate,
|
|
fetchFromGitHub,
|
|
lib,
|
|
}:
|
|
|
|
let
|
|
finalAttrs = {
|
|
pname = "ncps";
|
|
version = "0.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kalbasit";
|
|
repo = "ncps";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-A2HLbob9MHHCUNIC1OBwyFeE6KuEIdXW75hPSZMgicI=";
|
|
};
|
|
|
|
ldflags = [
|
|
"-X github.com/kalbasit/ncps/cmd.Version=v${finalAttrs.version}"
|
|
];
|
|
|
|
vendorHash = "sha256-Plc1L23qOYj1evVIG+O3OxVAKVeEIA+Z6sP4Z/T1SxU=";
|
|
|
|
doCheck = true;
|
|
checkFlags = [ "-race" ];
|
|
|
|
nativeBuildInputs = [
|
|
dbmate # used for testing
|
|
];
|
|
|
|
postInstall = ''
|
|
mkdir -p $out/share/ncps
|
|
cp -r db $out/share/ncps/db
|
|
'';
|
|
|
|
meta = {
|
|
description = "Nix binary cache proxy service";
|
|
homepage = "https://github.com/kalbasit/ncps";
|
|
license = lib.licenses.mit;
|
|
mainProgram = "ncps";
|
|
maintainers = with lib.maintainers; [
|
|
kalbasit
|
|
aciceri
|
|
];
|
|
};
|
|
};
|
|
in
|
|
buildGoModule finalAttrs
|