mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-02 19:14:14 +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.
36 lines
908 B
Nix
36 lines
908 B
Nix
{ lib, buildGoModule, fetchFromGitHub, fetchpatch }:
|
|
|
|
buildGoModule rec {
|
|
pname = "paco";
|
|
version = "1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pacolang";
|
|
repo = "paco";
|
|
rev = "v${version}";
|
|
hash = "sha256-sCU7cjmsUTrhf/7Lm3wBPKwk80SAhCfc4lrCBggspw8=";
|
|
};
|
|
|
|
vendorHash = "sha256-J0TKp1df5IWq3Irlzf1lvhWlXnP//MsVqs9M8TtEraw=";
|
|
|
|
patches = [
|
|
# Set correct package path in go.mod
|
|
(fetchpatch {
|
|
url = "https://github.com/pacolang/paco/pull/1/commits/886f0407e94418d34c7e062c6857834aea3c99ac.patch";
|
|
hash = "sha256-HRNJSyWz1OY+kCV+eaRJbaDXkH4n1NaMpFxCuEhocK4=";
|
|
})
|
|
];
|
|
|
|
subPackages = [ "." ];
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
meta = with lib; {
|
|
description = "Simple compiled programming language";
|
|
mainProgram = "paco";
|
|
homepage = "https://github.com/pacolang/paco";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ hugolgst ];
|
|
};
|
|
}
|