Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
45 lines
885 B
Nix
45 lines
885 B
Nix
{
|
|
lib,
|
|
buildNimPackage,
|
|
fetchFromGitHub,
|
|
openssl,
|
|
pcre,
|
|
}:
|
|
|
|
buildNimPackage (finalAttrs: {
|
|
pname = "min";
|
|
version = "0.45.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "h3rald";
|
|
repo = "min";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-Uw03aSFn3EV3H2SkYoYzM5S/WLhEmLV8s3mRF3oT8ro=";
|
|
};
|
|
|
|
lockFile = ./lock.json;
|
|
|
|
buildInputs = [
|
|
openssl
|
|
pcre
|
|
];
|
|
|
|
prePatch = ''
|
|
# remove vendorabilities
|
|
find . -name '*.a' -delete
|
|
find minpkg/lib -name '*.nim' \
|
|
-exec sed 's|{\.passL:.*\.}|discard|g' -i {} \;
|
|
'';
|
|
|
|
NIX_LDFLAGS = [ "-lpcre" ];
|
|
|
|
meta = {
|
|
description = "Functional, concatenative programming language with a minimalist syntax";
|
|
homepage = "https://min-lang.org/";
|
|
changelog = "https://github.com/h3rald/min/releases/tag/${finalAttrs.src.rev}";
|
|
license = lib.licenses.mit;
|
|
mainProgram = "min";
|
|
};
|
|
|
|
})
|