diff options
author | Ben Wolsieffer <benwolsieffer@gmail.com> | 2019-09-21 21:23:48 -0400 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2019-09-22 13:03:40 +0200 |
commit | 53489b496e313bd3ef3f6dd17ef4d28e278c3eb3 (patch) | |
tree | 99368252d97bc223919f01fd606a18e2c2ed2ddc /pkgs/development/compilers/dtc | |
parent | 20de44845d3ec233e9a1d40579aef9e5108ca7d8 (diff) |
dtc: fix Python support
Diffstat (limited to 'pkgs/development/compilers/dtc')
-rw-r--r-- | pkgs/development/compilers/dtc/default.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/development/compilers/dtc/default.nix b/pkgs/development/compilers/dtc/default.nix index d92d712a3ff7b..eea75c5ace1f9 100644 --- a/pkgs/development/compilers/dtc/default.nix +++ b/pkgs/development/compilers/dtc/default.nix @@ -1,5 +1,5 @@ { stdenv, lib, fetchgit, flex, bison, pkgconfig, which -, pythonSupport ? stdenv.buildPlatform == stdenv.hostPlatform, python2, swig +, pythonSupport ? stdenv.buildPlatform == stdenv.hostPlatform, python, swig }: stdenv.mkDerivation rec { @@ -12,14 +12,14 @@ stdenv.mkDerivation rec { sha256 = "1jhhfrg22h53lvm2lqhd66pyk20pil08ry03wcwyx1c3ln27k73z"; }; - nativeBuildInputs = [ flex bison pkgconfig which ] ++ lib.optionals pythonSupport [ python2 swig ]; - buildInputs = lib.optionals pythonSupport [ python2 ]; + nativeBuildInputs = [ flex bison pkgconfig which ] ++ lib.optionals pythonSupport [ python swig ]; + buildInputs = lib.optionals pythonSupport [ python ]; postPatch = '' patchShebangs pylibfdt/ ''; - makeFlags = lib.optionals (!pythonSupport) [ "NO_PYTHON=1" ]; + makeFlags = [ "PYTHON=python" ]; installFlags = [ "INSTALL=install" "PREFIX=$(out)" "SETUP_PREFIX=$(out)" ]; meta = with lib; { |