mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 09:13:17 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
38 lines
937 B
Nix
38 lines
937 B
Nix
{ lib
|
|
, stdenv
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule {
|
|
pname = "goofys";
|
|
version = "unstable-2022-04-21";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kahing";
|
|
repo = "goofys";
|
|
# Same as v0.24.0 but migrated to Go modules
|
|
rev = "829d8e5ce20faa3f9f6f054077a14325e00e9249";
|
|
sha256 = "sha256-6yVMNSwwPZlADXuPBDRlgoz4Stuz2pgv6r6+y2/C8XY=";
|
|
};
|
|
|
|
vendorHash = "sha256-shFld293pdmVcnu3p0NoBmPGLJddZd4O/gJ8klgdlQ8=";
|
|
|
|
subPackages = [ "." ];
|
|
|
|
# Tests are using networking
|
|
postPatch = ''
|
|
rm internal/*_test.go
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://github.com/kahing/goofys";
|
|
description = "High-performance, POSIX-ish Amazon S3 file system written in Go";
|
|
license = [ lib.licenses.mit ];
|
|
maintainers = [ ];
|
|
broken = stdenv.hostPlatform.isDarwin; # needs to update gopsutil to at least v3.21.3 to include https://github.com/shirou/gopsutil/pull/1042
|
|
mainProgram = "goofys";
|
|
};
|
|
|
|
}
|