git.iko.soy/typeable/nixpkgs
on master help sign in
edk2: use python env
ffa65afFrederik Rietdijk
pkgs/development/compilers/edk2/default.nix+3−2
@@ -1,6 +1,7 @@
1{ stdenv, fetchgit, libuuid, python, iasl }:
1{ stdenv, fetchgit, libuuid, python, iasl }:
2
2
3let
3let
4+ pythonEnv = python.withPackages(ps: [ps.tkinter]);
4
5
5targetArch = if stdenv.isi686 then
6targetArch = if stdenv.isi686 then
6 "IA32"
7 "IA32"
@@ -18,7 +19,7 @@ edk2 = stdenv.mkDerivation {
18 sha256 = "0s9ywb8w7xzlnmm4kwzykxkrdaw53b7pky121cc9wjkllzqwyxrb";
19 sha256 = "0s9ywb8w7xzlnmm4kwzykxkrdaw53b7pky121cc9wjkllzqwyxrb";
19 };
20 };
20
21
21− buildInputs = [ libuuid python python.tkinter ];
22+ buildInputs = [ libuuid pythonEnv];
22
23
23 makeFlags = "-C BaseTools";
24 makeFlags = "-C BaseTools";
24
25
@@ -40,7 +41,7 @@ edk2 = stdenv.mkDerivation {
40
41
41 passthru = {
42 passthru = {
42 setup = projectDscPath: attrs: {
43 setup = projectDscPath: attrs: {
43− buildInputs = [ python python.tkinter ] ++
44+ buildInputs = [ pythonEnv ] ++
44 stdenv.lib.optionals (attrs ? buildInputs) attrs.buildInputs;
45 stdenv.lib.optionals (attrs ? buildInputs) attrs.buildInputs;
45
46
46 configurePhase = ''
47 configurePhase = ''