coriolis/nix/alliance-check-toolkit.nix

28 lines
659 B
Nix
Raw Normal View History

{ alliance-src, ... }:
2021-09-02 17:39:29 -05:00
{ stdenv, coriolis-unicorn, alliance, yosys }:
stdenv.mkDerivation {
pname = "alliance-check-toolkit";
version = builtins.substring 0 8 alliance-src.lastModifiedDate;
src = alliance-src;
2021-09-02 17:39:29 -05:00
nativeBuildInputs = [ alliance coriolis-unicorn yosys ];
2021-09-02 04:54:51 -05:00
YOSYS_TOP = "${yosys}";
2021-09-02 17:39:29 -05:00
ALLIANCE_TOP = "${alliance}";
CORIOLIS_TOP = "${coriolis-unicorn}";
# The user configuration for verhaegs is empty,
# which is why we use it.
USER = "verhaegs";
configurePhase = "true";
buildPhase = ''
cd benchs/adder/cmos
echo 'doing make druc'
make druc
echo 'doing make lvx'
make lvx
'';
installPhase = "true";
}