Loading pkgs/by-name/wt/wtfutil/package.nix +15 −2 Original line number Diff line number Diff line { lib, stdenv, buildGoModule, fetchFromGitHub, lib, makeWrapper, ncurses, versionCheckHook, nix-update-script, }: buildGoModule rec { Loading @@ -25,18 +28,28 @@ buildGoModule rec { ldflags = [ "-s" "-w" "-X main.version=${version}" ]; subPackages = [ "." ]; nativeBuildInputs = [ makeWrapper ]; postPatch = '' substituteInPlace flags/flags.go --replace-fail 'version := "dev"' 'version := "v${version}"' ''; postInstall = '' mv "$out/bin/wtf" "$out/bin/wtfutil" wrapProgram "$out/bin/wtfutil" --prefix PATH : "${ncurses.dev}/bin" ''; doInstallCheck = true; # Darwin Error: mkdir /var/empty: file exists nativeInstallCheckInputs = lib.optional (!stdenv.hostPlatform.isDarwin) [ versionCheckHook ]; versionCheckProgramArg = "--version"; passthru.updateScript = nix-update-script { }; meta = with lib; { description = "Personal information dashboard for your terminal"; homepage = "https://wtfutil.com/"; Loading Loading
pkgs/by-name/wt/wtfutil/package.nix +15 −2 Original line number Diff line number Diff line { lib, stdenv, buildGoModule, fetchFromGitHub, lib, makeWrapper, ncurses, versionCheckHook, nix-update-script, }: buildGoModule rec { Loading @@ -25,18 +28,28 @@ buildGoModule rec { ldflags = [ "-s" "-w" "-X main.version=${version}" ]; subPackages = [ "." ]; nativeBuildInputs = [ makeWrapper ]; postPatch = '' substituteInPlace flags/flags.go --replace-fail 'version := "dev"' 'version := "v${version}"' ''; postInstall = '' mv "$out/bin/wtf" "$out/bin/wtfutil" wrapProgram "$out/bin/wtfutil" --prefix PATH : "${ncurses.dev}/bin" ''; doInstallCheck = true; # Darwin Error: mkdir /var/empty: file exists nativeInstallCheckInputs = lib.optional (!stdenv.hostPlatform.isDarwin) [ versionCheckHook ]; versionCheckProgramArg = "--version"; passthru.updateScript = nix-update-script { }; meta = with lib; { description = "Personal information dashboard for your terminal"; homepage = "https://wtfutil.com/"; Loading