summary refs log tree commit diff
path: root/pkgs/applications/science/electronics/horizon-eda/default.nix
blob: 1fbc92f06115ff4f72b8612011918649740ffd65 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{ stdenv
, boost
, callPackage
, coreutils
, libspnav
, python3
, wrapGAppsHook
}:

let
  base = callPackage ./base.nix { };
in
stdenv.mkDerivation rec {
  inherit (base) pname version src meta CASROOT;

  # provide base for python module
  passthru = {
    inherit base;
  };

  buildInputs = base.buildInputs ++ [
    libspnav
  ];

  nativeBuildInputs = base.nativeBuildInputs ++ [
    boost.dev
    wrapGAppsHook
    python3
  ];

  installFlags = [
    "INSTALL=${coreutils}/bin/install"
    "DESTDIR=$(out)"
    "PREFIX="
  ];

  enableParallelBuilding = true;
}