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
47 lines
1.0 KiB
Nix
47 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
unstableGitUpdater,
|
|
poetry-core,
|
|
nixops,
|
|
}:
|
|
|
|
buildPythonPackage {
|
|
pname = "nixos-modules-contrib";
|
|
version = "0-unstable-2021-01-20";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nix-community";
|
|
repo = "nixos-modules-contrib";
|
|
rev = "81a1c2ef424dcf596a97b2e46a58ca73a1dd1ff8";
|
|
hash = "sha256-/RSStpkAxWpUB5saQ8CmQZljFjJyUMOrR1+GiHJR2Tg=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace poetry.masonry.api poetry.core.masonry.api \
|
|
--replace "poetry>=" "poetry-core>="
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
buildInputs = [
|
|
nixops
|
|
];
|
|
|
|
pythonImportsCheck = [ "nixos_modules_contrib" ];
|
|
|
|
passthru.updateScript = unstableGitUpdater { };
|
|
|
|
meta = with lib; {
|
|
description = "Useful NixOS modules which may not belong in the Nixpkgs repository itself";
|
|
homepage = "https://github.com/nix-community/nixos-modules-contrib";
|
|
license = licenses.lgpl3;
|
|
maintainers = [ ];
|
|
};
|
|
}
|