Make alliance-check-toolkit a check
This commit is contained in:
parent
d5f3c6c3d0
commit
7a3f337935
19
flake.lock
19
flake.lock
|
@ -35,7 +35,24 @@
|
|||
"root": {
|
||||
"inputs": {
|
||||
"alliance-check-toolkit": "alliance-check-toolkit",
|
||||
"nixpkgs": "nixpkgs"
|
||||
"nixpkgs": "nixpkgs",
|
||||
"soclayout": "soclayout"
|
||||
}
|
||||
},
|
||||
"soclayout": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1625141014,
|
||||
"narHash": "sha256-9W104e0jl2raFWtVo/J/F9bfIPi67THR5YaftT8YmYI=",
|
||||
"ref": "master",
|
||||
"rev": "81d267598a931153815db6cbf0e44f86973575aa",
|
||||
"revCount": 507,
|
||||
"type": "git",
|
||||
"url": "git://git.libre-soc.org/soclayout.git"
|
||||
},
|
||||
"original": {
|
||||
"type": "git",
|
||||
"url": "git://git.libre-soc.org/soclayout.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
23
flake.nix
23
flake.nix
|
@ -7,8 +7,10 @@
|
|||
inputs.nixpkgs.url = "github:L-as/nixpkgs?ref=alliance"; # for alliance
|
||||
inputs.alliance-check-toolkit.url = "git+https://gitlab.lip6.fr/vlsi-eda/alliance-check-toolkit.git";
|
||||
inputs.alliance-check-toolkit.flake = false;
|
||||
inputs.soclayout.url = git://git.libre-soc.org/soclayout.git;
|
||||
inputs.soclayout.flake = false;
|
||||
|
||||
outputs = { self, nixpkgs, alliance-check-toolkit }:
|
||||
outputs = { self, nixpkgs, alliance-check-toolkit, soclayout }@inputs:
|
||||
let
|
||||
|
||||
# Generate a user-friendly version numer.
|
||||
|
@ -65,11 +67,11 @@
|
|||
"lefdef" "bootstrap" "coloquinte"
|
||||
"equinox" "knik" "ispd" "karakaze" "nimbus"
|
||||
"metis" "mauka" "solstice" "stratus1"
|
||||
"documentation" "unittests" "alliance-check-toolkit"
|
||||
"combined"
|
||||
"documentation" "unittests" "combined"
|
||||
"libresoc-experiments9"
|
||||
];
|
||||
|
||||
commonArgs = { inherit version meta generic; alliance-src = alliance-check-toolkit; };
|
||||
commonArgs = { inherit version meta generic inputs; };
|
||||
|
||||
in
|
||||
|
||||
|
@ -88,13 +90,16 @@
|
|||
builtins.foldl' (acc: elem: acc // {
|
||||
${elem} = pkgs.${"coriolis-${elem}"};
|
||||
}) {} components
|
||||
// {
|
||||
test = pkgs.python2.buildEnv.override {
|
||||
extraLibs = [ pkgs.coriolis-unicorn pkgs.coriolis-cumulus ];
|
||||
};
|
||||
}
|
||||
);
|
||||
|
||||
checks = forAllSystems (system: {
|
||||
alliance-check-toolkit = nixpkgsFor.${system}.callPackage (
|
||||
import ./nix/alliance-check-toolkit.nix {
|
||||
alliance-src = alliance-check-toolkit;
|
||||
}
|
||||
) {};
|
||||
});
|
||||
|
||||
# CORIOLIS_TOP must be set before execution
|
||||
# example: CORIOLIS_TOP="$(mktemp -d)" && ./result/bin/cgt
|
||||
defaultPackage = forAllSystems (system: self.packages.${system}.unicorn);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ alliance-src, ... }:
|
||||
{ alliance-src }:
|
||||
|
||||
{ stdenv, coriolis-combined, coriolis-unicorn, coriolis-cumulus
|
||||
, python2Packages, alliance, yosys }:
|
||||
|
|
Loading…
Reference in New Issue