coriolis/nix/cumulus.nix

30 lines
784 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 =
{ lib, coriolis-vlsisapd, coriolis-hurricane, coriolis-crlcore
, coriolis-etesian, coriolis-anabatic, coriolis-katana
, coriolis-unicorn, python2Packages }:
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 = ''
ln -s -t $out/${python2Packages.python.sitePackages} $out/${python2Packages.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 = [
coriolis-vlsisapd coriolis-hurricane coriolis-crlcore
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