c7f94ff3ce
GitOrigin-RevId: b85ed9dcbf187b909ef7964774f8847d554fab3b
21 lines
699 B
Nix
21 lines
699 B
Nix
{ lib, stdenv, buildNimPackage, fetchFromGitea, nim-unwrapped, npeg }:
|
|
|
|
buildNimPackage (final: prev: {
|
|
pname = "preserves";
|
|
version = "20230801";
|
|
src = fetchFromGitea {
|
|
domain = "git.syndicate-lang.org";
|
|
owner = "ehmry";
|
|
repo = "preserves-nim";
|
|
rev = final.version;
|
|
hash = "sha256-60QsbXMYYfEWvXQAXu7XSpvg2J9YaGKDkDrfclcK6pc=";
|
|
};
|
|
propagatedBuildInputs = [ npeg ];
|
|
nimFlags = [ "--mm:refc" "--path:${nim-unwrapped}/nim" "--threads:off" ];
|
|
doCheck = !stdenv.isDarwin;
|
|
meta = final.src.meta // {
|
|
description = "Nim implementation of the Preserves data language";
|
|
license = lib.licenses.unlicense;
|
|
maintainers = with lib.maintainers; [ ehmry ];
|
|
};
|
|
})
|