diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2019-09-05 21:08:26 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-05 21:08:26 -0500 |
commit | ce67c2ef59241e6dc6cdce781ad7adcbd0918fd9 (patch) | |
tree | 1b70724d97023d37480d4a067bd92ec30b65d578 | |
parent | 22fb70a9962563154b5748ef3371d2b148c52bcb (diff) | |
parent | b170193185204615267930cc9ad3932562885f7d (diff) | |
download | nixpkgs-ce67c2ef59241e6dc6cdce781ad7adcbd0918fd9.tar nixpkgs-ce67c2ef59241e6dc6cdce781ad7adcbd0918fd9.tar.gz nixpkgs-ce67c2ef59241e6dc6cdce781ad7adcbd0918fd9.tar.bz2 nixpkgs-ce67c2ef59241e6dc6cdce781ad7adcbd0918fd9.tar.lz nixpkgs-ce67c2ef59241e6dc6cdce781ad7adcbd0918fd9.tar.xz nixpkgs-ce67c2ef59241e6dc6cdce781ad7adcbd0918fd9.tar.zst nixpkgs-ce67c2ef59241e6dc6cdce781ad7adcbd0918fd9.zip |
Merge pull request #68134 from avdv/wtf-add-infocmp
wtf: Add `infocmp` to PATH, fixes #68103
-rw-r--r-- | pkgs/applications/misc/wtf/default.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/applications/misc/wtf/default.nix b/pkgs/applications/misc/wtf/default.nix index 1b4c4ac6a34..ec871dc3e56 100644 --- a/pkgs/applications/misc/wtf/default.nix +++ b/pkgs/applications/misc/wtf/default.nix @@ -1,6 +1,8 @@ { buildGoModule , fetchFromGitHub , lib +, makeWrapper +, ncurses }: buildGoModule rec { @@ -18,6 +20,8 @@ buildGoModule rec { buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ]; + nativeBuildInputs = [ makeWrapper ]; + # As per https://github.com/wtfutil/wtf/issues/501, one of the # dependencies can't be fetched, so vendored dependencies should # be used instead @@ -27,6 +31,10 @@ buildGoModule rec { runHook postBuild ''; + postInstall = '' + wrapProgram "$out/bin/wtf" --prefix PATH : "${ncurses.dev}/bin" + ''; + meta = with lib; { description = "The personal information dashboard for your terminal"; homepage = "https://wtfutil.com/"; |