nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, buildGoModule, fetchFromGitHub, fetchpatch }:
2
3buildGoModule rec {
4 pname = "paco";
5 version = "1.0";
6
7 src = fetchFromGitHub {
8 owner = "pacolang";
9 repo = "paco";
10 rev = "v${version}";
11 hash = "sha256-sCU7cjmsUTrhf/7Lm3wBPKwk80SAhCfc4lrCBggspw8=";
12 };
13
14 vendorHash = "sha256-J0TKp1df5IWq3Irlzf1lvhWlXnP//MsVqs9M8TtEraw=";
15
16 patches = [
17 # Set correct package path in go.mod
18 (fetchpatch {
19 url = "https://github.com/pacolang/paco/pull/1/commits/886f0407e94418d34c7e062c6857834aea3c99ac.patch";
20 hash = "sha256-HRNJSyWz1OY+kCV+eaRJbaDXkH4n1NaMpFxCuEhocK4=";
21 })
22 ];
23
24 subPackages = [ "." ];
25
26 ldflags = [ "-s" "-w" ];
27
28 meta = with lib; {
29 description = "A simple compiled programming language";
30 homepage = "https://github.com/pacolang/paco";
31 license = licenses.mit;
32 maintainers = with maintainers; [ hugolgst ];
33 };
34}