1 { lib, buildNimPackage, fetchFromGitHub, openssl, pcre }:
3 buildNimPackage (finalAttrs: {
7 src = fetchFromGitHub {
10 rev = "v${finalAttrs.version}";
11 hash = "sha256-Uw03aSFn3EV3H2SkYoYzM5S/WLhEmLV8s3mRF3oT8ro=";
14 lockFile = ./lock.json;
16 buildInputs = [ openssl pcre ];
19 # remove vendorabilities
20 find . -name '*.a' -delete
21 find minpkg/lib -name '*.nim' \
22 -exec sed 's|{\.passL:.*\.}|discard|g' -i {} \;
25 NIX_LDFLAGS = [ "-lpcre" ];
29 "A functional, concatenative programming language with a minimalist syntax";
30 homepage = "https://min-lang.org/";
31 changelog = "https://github.com/h3rald/min/releases/tag/${finalAttrs.src.rev}";
32 license = lib.licenses.mit;
34 maintainers = with lib.maintainers; [ ehmry ];