kdeEnv: use package version, not ecm version

This commit is contained in:
Thomas Tuegel 2016-07-30 17:07:06 -05:00
parent aaf612e833
commit 22bc6f01cf
2 changed files with 4 additions and 8 deletions

View File

@ -56,7 +56,6 @@ let
kdeEnv = import ./kde-env.nix {
inherit (pkgs) stdenv lib;
inherit (pkgs.xorg) lndir;
inherit ecmNoHooks;
};
kdeWrapper = import ./kde-wrapper.nix {

View File

@ -1,14 +1,11 @@
{ stdenv, lib, lndir, ecmNoHooks }:
{ stdenv, lib, lndir }:
name: pkgs:
drv: pkgs:
let
inherit (builtins.parseDrvName ecmNoHooks.name) version;
in
stdenv.mkDerivation {
name = "kde-env-${name}";
name = "kde-env-${drv.name}";
nativeBuildInputs = [ lndir ];
propagatedUserEnvPkgs = builtins.map lib.getBin pkgs;
propagatedUserEnvPkgs = builtins.map lib.getBin ([drv] ++ pkgs);
unpackPhase = "true";
configurePhase = "runHook preConfigure; runHook postConfigure";
buildPhase = "true";