btrbk: add mainProgram
[NixPkgs.git] / pkgs / by-name / go / goofys / package.nix
blobbf4deb7c5c9cab8b0686f0437e3df73c3fce9d44
1 { lib
2 , stdenv
3 , buildGoModule
4 , fetchFromGitHub
5 }:
7 buildGoModule {
8   pname = "goofys";
9   version = "unstable-2022-04-21";
11   src = fetchFromGitHub {
12     owner = "kahing";
13     repo = "goofys";
14     # Same as v0.24.0 but migrated to Go modules
15     rev = "829d8e5ce20faa3f9f6f054077a14325e00e9249";
16     sha256 = "sha256-6yVMNSwwPZlADXuPBDRlgoz4Stuz2pgv6r6+y2/C8XY=";
17   };
19   vendorHash = "sha256-shFld293pdmVcnu3p0NoBmPGLJddZd4O/gJ8klgdlQ8=";
21   subPackages = [ "." ];
23   # Tests are using networking
24   postPatch = ''
25     rm internal/*_test.go
26   '';
28   meta = {
29     homepage = "https://github.com/kahing/goofys";
30     description = "High-performance, POSIX-ish Amazon S3 file system written in Go";
31     license = [ lib.licenses.mit ];
32     maintainers = [ ];
33     broken = stdenv.hostPlatform.isDarwin; # needs to update gopsutil to at least v3.21.3 to include https://github.com/shirou/gopsutil/pull/1042
34     mainProgram = "goofys";
35   };