fd04da1540
* mark as broken on darwin ``` these derivations will be built: /nix/store/f29hm2393h56xh4slil62zlb72j5k0nq-wtf-0.32.0.drv building '/nix/store/f29hm2393h56xh4slil62zlb72j5k0nq-wtf-0.32.0.drv'... unpacking sources unpacking source archive /nix/store/7xd1c92n7i0pcpxb71qgfz7d0hasbcrf-source source root is source patching sources configuring building Building subPackage ./. modules/azuredevops/widget.go:7:2: cannot find package "." in: /private/var/folders/hk/77b9kbln51v8hgc1c6j767k00000gn/T/nix-build-wtf-0.32.0.drv-0/source/vendor/github.com/microsoft/azure-devops-go-api/azuredevops modules/azuredevops/client.go:7:2: cannot find package "." in: /private/var/folders/hk/77b9kbln51v8hgc1c6j767k00000gn/T/nix-build-wtf-0.32.0.drv-0/source/vendor/github.com/microsoft/azure-devops-go-api/azuredevops/build builder for '/nix/store/f29hm2393h56xh4slil62zlb72j5k0nq-wtf-0.32.0.drv' failed with exit code 1 error: build of '/nix/store/f29hm2393h56xh4slil62zlb72j5k0nq-wtf-0.32.0.drv' failed ```
44 lines
978 B
Nix
44 lines
978 B
Nix
{ buildGoModule
|
|
, fetchFromGitHub
|
|
, lib
|
|
, makeWrapper
|
|
, ncurses
|
|
, stdenv
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "wtf";
|
|
version = "0.32.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "wtfutil";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "1055shnf716ga46wwcaffdpgc1glr8vrqrbs2sqbkr3wjan6n0nw";
|
|
};
|
|
|
|
vendorSha256 = "0l1q29mdb13ir7n1x65jfnrmy1lamlsa6hm2jagf6yjbm6wf1kw4";
|
|
|
|
doCheck = false;
|
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
|
|
|
|
subPackages = [ "." ];
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
postInstall = ''
|
|
mv "$out/bin/wtf" "$out/bin/wtfutil"
|
|
wrapProgram "$out/bin/wtfutil" --prefix PATH : "${ncurses.dev}/bin"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "The personal information dashboard for your terminal";
|
|
homepage = "https://wtfutil.com/";
|
|
license = licenses.mpl20;
|
|
maintainers = with maintainers; [ kalbasit ];
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
broken = stdenv.isDarwin;
|
|
};
|
|
}
|