2024-03-28 11:35:21 +00:00
|
|
|
{ lib, buildNimPackage, fetchFromGitHub, openssl, pcre }:
|
|
|
|
|
|
|
|
buildNimPackage (finalAttrs: {
|
|
|
|
pname = "min";
|
2024-10-24 11:39:37 +00:00
|
|
|
version = "0.45.0";
|
2024-03-28 11:35:21 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "h3rald";
|
|
|
|
repo = "min";
|
|
|
|
rev = "v${finalAttrs.version}";
|
2024-10-24 11:39:37 +00:00
|
|
|
hash = "sha256-Uw03aSFn3EV3H2SkYoYzM5S/WLhEmLV8s3mRF3oT8ro=";
|
2024-03-28 11:35:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 =
|
|
|
|
"A functional, concatenative programming language with a minimalist syntax";
|
|
|
|
homepage = "https://min-lang.org/";
|
2024-06-16 20:48:03 +00:00
|
|
|
changelog = "https://github.com/h3rald/min/releases/tag/${finalAttrs.src.rev}";
|
2024-03-28 11:35:21 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
mainProgram = "min";
|
|
|
|
maintainers = with lib.maintainers; [ ehmry ];
|
|
|
|
};
|
|
|
|
|
|
|
|
})
|