This commit is contained in:
Las Safin 2021-08-23 08:44:07 +00:00
parent 985ae3edde
commit a7ecaeaa36
No known key found for this signature in database
GPG Key ID: E7FA928911B61ED6
6 changed files with 17 additions and 24 deletions

View File

@ -80,24 +80,22 @@
platforms = platforms.all;
};
components = [ "vlsisapd" "lefdef" "bootstrap" "hurricane" ];
in
rec {
overlay = final: prev: {
coriolis-vlsisapd = final.callPackage (import ./nix/vlsisapd.nix { inherit version meta; }) {};
coriolis-lefdef = final.callPackage (import ./nix/lefdef.nix { inherit version meta; }) {};
coriolis-bootstrap = final.callPackage (import ./nix/bootstrap.nix { inherit version meta; }) {};
coriolis-hurricane = final.callPackage (import ./nix/hurricane.nix { inherit version meta; }) {};
};
overlay = final: prev:
builtins.foldl'
(acc: elem: acc // {
"coriolis-${elem}" = final.callPackage (
import "${self}/nix/${elem}.nix" { inherit version meta; }
) {};
}) {} components;
packages = forAllSystems (system:
with nixpkgsFor.${system}; {
vlsisapd = coriolis-vlsisapd;
bootstrap = coriolis-bootstrap;
coloquinte = coriolis-coloquinte;
lefdef = coriolis-lefdef;
hurricane = coriolis-hurricane;
});
packages = forAllSystems (system: builtins.foldl' (acc: elem: acc // {
${elem} = nixpkgsFor.${system}.${"coriolis-${elem}"};
}) {} components);
defaultPackage = forAllSystems (system: self.packages.${system}.coriolis);
devShell = defaultPackage;

View File

@ -1,7 +1,6 @@
{ version, meta }:
{ lib, stdenv, python2, cmake, boost, bison, flex
, libxml2, rapidjson, which, qt4, zlib, bzip2, ninja }:
{ lib, stdenv, python2, cmake, ninja }:
stdenv.mkDerivation {
pname = "coriolis-bootstrap";

View File

@ -1,8 +1,6 @@
{ version, meta }:
{ lib, stdenv, python2, cmake, boost, bison, flex
, libxml2, rapidjson, which, qt4, zlib, bzip2, ninja
, coriolis-bootstrap, coriolis-vlsisapd }:
{ lib, stdenv, python2, cmake, boost, qt4, ninja, coriolis-bootstrap }:
let boostWithPython = boost.override { enablePython = true; python = python2; }; in

View File

@ -1,7 +1,7 @@
{ version, meta }:
{ lib, stdenv, python2, cmake, boost, bison, flex
, libxml2, rapidjson, which, qt4, zlib, bzip2, ninja
, libxml2, rapidjson, qt4, zlib, bzip2, ninja
, coriolis-bootstrap, coriolis-vlsisapd }:
let boostWithPython = boost.override { enablePython = true; python = python2; }; in

View File

@ -1,8 +1,7 @@
{ version, meta }:
{ lib, stdenv, python2, cmake, boost, bison, flex
, libxml2, rapidjson, which, qt4, zlib, bzip2, ninja
, coriolis-bootstrap, coriolis-vlsisapd }:
, libxml2, zlib, ninja, coriolis-bootstrap }:
let boostWithPython = boost.override { enablePython = true; python = python2; }; in

View File

@ -1,8 +1,7 @@
{ version, meta }:
{ lib, stdenv, python2, cmake, boost, bison, flex
, libxml2, rapidjson, which, qt4, zlib, bzip2, ninja
, coriolis-bootstrap }:
, libxml2, qt4, ninja, coriolis-bootstrap }:
let boostWithPython = boost.override { enablePython = true; python = python2; }; in