coriolis/nix/cumulus.nix

30 lines
747 B
Nix
Raw Normal View History

2021-09-03 07:50:39 -05:00
{ generic, ... }:
2021-08-26 11:23:26 -05:00
2021-09-03 07:50:39 -05:00
let pkg =
2021-10-26 16:35:18 -05:00
{ lib, coriolis-hurricane, coriolis-crlcore
2021-09-03 07:50:39 -05:00
, coriolis-etesian, coriolis-anabatic, coriolis-katana
2021-10-26 16:10:09 -05:00
, coriolis-unicorn, python3Packages }:
2021-09-03 07:50:39 -05:00
{
name = "cumulus";
2021-08-26 11:23:26 -05:00
2021-09-03 07:50:39 -05:00
src = ../cumulus;
2021-08-26 11:23:26 -05:00
2021-09-03 07:50:39 -05:00
postInstall = ''
2021-10-26 16:10:09 -05:00
ln -s -t $out/${python3Packages.python.sitePackages} $out/${python3Packages.python.sitePackages}/cumulus/*
2021-09-03 07:50:39 -05:00
# for import check
mkdir -p /build/coriolistop/etc/coriolis2
export CORIOLIS_TOP=/build/coriolistop
'';
2021-08-26 11:23:26 -05:00
2021-09-03 07:50:39 -05:00
propagatedBuildInputs = [
2021-10-26 16:35:18 -05:00
coriolis-hurricane coriolis-crlcore
2021-09-03 07:50:39 -05:00
coriolis-etesian coriolis-anabatic coriolis-katana
coriolis-unicorn
];
pythonImportsCheck = [ "plugins" ];
2021-08-26 11:23:26 -05:00
2021-09-03 07:50:39 -05:00
meta.license = lib.licenses.gpl2Plus;
};
in generic pkg