2023-02-02 18:25:31 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, fetchpatch }:
|
2020-10-07 09:15:18 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
buildGoModule rec {
|
2020-10-07 09:15:18 +00:00
|
|
|
pname = "paco";
|
|
|
|
version = "1.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pacolang";
|
|
|
|
repo = "paco";
|
|
|
|
rev = "v${version}";
|
2023-02-02 18:25:31 +00:00
|
|
|
hash = "sha256-sCU7cjmsUTrhf/7Lm3wBPKwk80SAhCfc4lrCBggspw8=";
|
2020-10-07 09:15:18 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
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" ];
|
2020-10-07 09:15:18 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A simple compiled programming language";
|
|
|
|
homepage = "https://github.com/pacolang/paco";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ hugolgst ];
|
|
|
|
};
|
|
|
|
}
|