mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-07 13:33:12 +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.
27 lines
573 B
Nix
27 lines
573 B
Nix
{ buildGoModule
|
|
, fetchFromGitHub
|
|
, lib
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "gostatic";
|
|
version = "2.35";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "piranha";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-pxk9tauB7u0oe6g4maHh+dREZXKwMz44v3KB43yYW6c=";
|
|
};
|
|
|
|
vendorHash = "sha256-9YCt9crLuYjd+TUXJyx/EAYIMWM5TD+ZyzLeu0RMxVc=";
|
|
|
|
meta = with lib; {
|
|
description = "Fast static site generator";
|
|
homepage = "https://github.com/piranha/gostatic";
|
|
license = licenses.isc;
|
|
maintainers = with maintainers; [ urandom ];
|
|
mainProgram = "gostatic";
|
|
};
|
|
}
|