about summary refs log tree commit diff
path: root/pkgs/development/compilers/dtc
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2021-03-25 12:30:44 +0100
committerFrederik Rietdijk <fridh@fridh.nl>2021-03-25 12:30:44 +0100
commit7012ab1b5420e17c854ec858b4611bcc06bd7638 (patch)
tree8b5d0c00431e22fd5f3ff45a8ef7031af105e877 /pkgs/development/compilers/dtc
parenta4316eaab7a258b98c351b9fb71c7bb4c8efba35 (diff)
dtc: don't require python
Diffstat (limited to 'pkgs/development/compilers/dtc')
-rw-r--r--pkgs/development/compilers/dtc/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/compilers/dtc/default.nix b/pkgs/development/compilers/dtc/default.nix
index c5d33590daad5..245e5bf2f540a 100644
--- a/pkgs/development/compilers/dtc/default.nix
+++ b/pkgs/development/compilers/dtc/default.nix
@@ -1,7 +1,9 @@
 { stdenv, lib, fetchgit, flex, bison, pkg-config, which
-, pythonSupport ? false, python, swig
+, pythonSupport ? false, python ? null, swig
 }:
 
+assert pythonSupport -> python != null;
+
 stdenv.mkDerivation rec {
   pname = "dtc";
   version = "1.6.0";