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
64 lines
1.5 KiB
Nix
64 lines
1.5 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildDotnetModule,
|
|
dotnetCorePackages,
|
|
openssl,
|
|
zlib,
|
|
nix-update-script,
|
|
}:
|
|
|
|
buildDotnetModule rec {
|
|
pname = "pupdate";
|
|
version = "3.20.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mattpannella";
|
|
repo = "pupdate";
|
|
rev = "${version}";
|
|
hash = "sha256-kdxqG1Vw6jRT/YyRLi60APpayYyLG73KqAFga8N9G2A=";
|
|
};
|
|
|
|
buildInputs = [
|
|
(lib.getLib stdenv.cc.cc)
|
|
zlib
|
|
openssl
|
|
];
|
|
|
|
# See https://github.com/NixOS/nixpkgs/pull/196648/commits/0fb17c04fe34ac45247d35a1e4e0521652d9c494
|
|
patches = [ ./add-runtime-identifier.patch ];
|
|
postPatch = ''
|
|
substituteInPlace pupdate.csproj \
|
|
--replace @RuntimeIdentifier@ "${dotnetCorePackages.systemToDotnetRid stdenv.hostPlatform.system}"
|
|
'';
|
|
|
|
projectFile = "pupdate.csproj";
|
|
|
|
nugetDeps = ./deps.json;
|
|
|
|
selfContainedBuild = true;
|
|
|
|
executables = [ "pupdate" ];
|
|
|
|
dotnetFlags = [
|
|
"-p:PackageRuntime=${dotnetCorePackages.systemToDotnetRid stdenv.hostPlatform.system} -p:TrimMode=partial"
|
|
];
|
|
|
|
dotnet-sdk = dotnetCorePackages.sdk_8_0;
|
|
dotnet-runtime = dotnetCorePackages.runtime_8_0;
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script { };
|
|
};
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/mattpannella/pupdate";
|
|
description = "Update utility for the openFPGA cores, firmware, and other stuff on your Analogue Pocket";
|
|
license = licenses.mit;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ p-rintz ];
|
|
mainProgram = "pupdate";
|
|
};
|
|
}
|