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
38 lines
966 B
Nix
38 lines
966 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
writeText,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
}:
|
|
let
|
|
# Requires an /etc/os-release file, so we override it with this.
|
|
osRelease = writeText "os-release" ''ID=NixOS'';
|
|
in
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "openapv";
|
|
version = "0.2.0.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "AcademySoftwareFoundation";
|
|
repo = "openapv";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-IkzZnf2/JZJIwg9g/6SvWTAcUkAQ/C36xXC+t44VejU=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace CMakeLists.txt \
|
|
--replace-fail "/etc/os-release" "${osRelease}"
|
|
'';
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/AcademySoftwareFoundation/openapv/releases/tag/v${finalAttrs.version}";
|
|
description = "Reference implementation of the APV codec";
|
|
homepage = "https://github.com/AcademySoftwareFoundation/openapv";
|
|
license = [ lib.licenses.bsd3 ];
|
|
maintainers = with lib.maintainers; [ pyrox0 ];
|
|
};
|
|
})
|