Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 22fb70a99625
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: ce67c2ef5924
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Sep 5, 2019

  1. wtf: Add infocmp to PATH, fixes #68103

    avdv committed Sep 5, 2019
    Copy the full SHA
    b170193 View commit details

Commits on Sep 6, 2019

  1. Merge pull request #68134 from avdv/wtf-add-infocmp

    wtf: Add `infocmp` to PATH, fixes #68103
    marsam authored Sep 6, 2019
    Copy the full SHA
    ce67c2e View commit details
Showing with 8 additions and 0 deletions.
  1. +8 −0 pkgs/applications/misc/wtf/default.nix
8 changes: 8 additions & 0 deletions pkgs/applications/misc/wtf/default.nix
Original file line number Diff line number Diff line change
@@ -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/";