Skip to content

Commit

Permalink
tlp: remove all /usr/ prefixes to fix install dirs (#350268)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksanaa authored Oct 23, 2024
2 parents ca91897 + 444f7cd commit f71e09a
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions pkgs/tools/misc/tlp/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@
./patches/0002-reintroduce-tlp-sleep-service.patch
];

postPatch = ''
substituteInPlace Makefile --replace-fail ' ?= /usr/' ' ?= /'
'';

buildInputs = [ perl ];
nativeBuildInputs = [ makeWrapper ];

Expand All @@ -55,16 +59,6 @@
"TLP_WITH_SYSTEMD=1"

"DESTDIR=${placeholder "out"}"
"TLP_BATD=/share/tlp/bat.d"
"TLP_BIN=/bin"
"TLP_CONFDEF=/share/tlp/defaults.conf"
"TLP_CONFREN=/share/tlp/rename.conf"
"TLP_FLIB=/share/tlp/func.d"
"TLP_MAN=/share/man"
"TLP_META=/share/metainfo"
"TLP_SBIN=/sbin"
"TLP_SHCPL=/share/bash-completion/completions"
"TLP_TLIB=/share/tlp"
];

installTargets = [ "install-tlp" "install-man" ]
Expand Down

0 comments on commit f71e09a

Please sign in to comment.