nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, buildGoModule, fetchFromGitHub }:
2
3buildGoModule rec {
4 pname = "gofu";
5 version = "unstable-2022-04-01";
6
7 src = fetchFromGitHub {
8 owner = "majewsky";
9 repo = pname;
10 rev = "be0e424eecec3fec19ba3518f8fd1bb07b6908dc";
11 sha256 = "sha256-jMOmvCsuRtL9EgPicdNEksVgFepL/JZA53o2wzr8uzQ=";
12 };
13
14 vendorSha256 = null;
15
16 subPackages = [ "." ];
17
18 postInstall = ''
19 ln -s $out/bin/gofu $out/bin/rtree
20 ln -s $out/bin/gofu $out/bin/prettyprompt
21 '';
22
23 meta = with lib; {
24 description = "Multibinary containing several utilities";
25 homepage = "https://github.com/majewsky/gofu";
26 license = licenses.gpl3Plus;
27 maintainers = with maintainers; [ SuperSandro2000 ];
28 };
29}