3
0
Fork 0
forked from mirrors/nixpkgs

tlp: cleanup makeFlags

* TLP_TLIP should be share/tlp
* set TLP_FLIB
* use placeholder
This commit is contained in:
worldofpeace 2019-04-03 03:11:20 -04:00
parent ff3b8efe4f
commit 88aad172ab

View file

@ -17,25 +17,28 @@ in stdenv.mkDerivation rec {
version = "1.2.1"; version = "1.2.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "linrunner"; owner = "linrunner";
repo = "TLP"; repo = "TLP";
rev = "${version}"; rev = version;
sha256 = "1msldl6y8fpvxa9p87lv3hvgxwk2vpiahqmapq485ihdjkshc558"; sha256 = "1msldl6y8fpvxa9p87lv3hvgxwk2vpiahqmapq485ihdjkshc558";
}; };
makeFlags = [ "DESTDIR=$(out)" outRef = placeholder "out";
"TLP_SBIN=$(out)/bin"
"TLP_BIN=$(out)/bin"
"TLP_TLIB=$(out)/share/tlp-pm"
"TLP_PLIB=$(out)/lib/pm-utils"
"TLP_ULIB=$(out)/lib/udev"
"TLP_NMDSP=$(out)/etc/NetworkManager/dispatcher.d"
"TLP_SHCPL=$(out)/share/bash-completion/completions"
"TLP_MAN=$(out)/share/man"
"TLP_NO_INIT=1" makeFlags = [
"TLP_NO_PMUTILS=1" "DESTDIR=${outRef}"
]; "TLP_SBIN=${outRef}/bin"
"TLP_BIN=${outRef}/bin"
"TLP_TLIB=${outRef}/share/tlp"
"TLP_FLIB=${outRef}/share/tlp/func.d"
"TLP_ULIB=${outRef}/lib/udev"
"TLP_NMDSP=${outRef}/etc/NetworkManager/dispatcher.d"
"TLP_SHCPL=${outRef}/share/bash-completion/completions"
"TLP_MAN=${outRef}/share/man"
"TLP_META=${outRef}/share/metainfo"
"TLP_NO_INIT=1"
];
nativeBuildInputs = [ makeWrapper file ]; nativeBuildInputs = [ makeWrapper file ];