2023-08-04 22:07:22 +00:00
|
|
|
{ lib, stdenv, buildNimPackage, fetchFromGitea, nim-unwrapped, npeg }:
|
2023-03-15 16:39:30 +00:00
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
buildNimPackage (final: prev: {
|
2023-03-15 16:39:30 +00:00
|
|
|
pname = "preserves";
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "20230801";
|
2023-03-15 16:39:30 +00:00
|
|
|
src = fetchFromGitea {
|
|
|
|
domain = "git.syndicate-lang.org";
|
|
|
|
owner = "ehmry";
|
2023-08-22 20:05:09 +00:00
|
|
|
repo = "preserves-nim";
|
|
|
|
rev = final.version;
|
|
|
|
hash = "sha256-60QsbXMYYfEWvXQAXu7XSpvg2J9YaGKDkDrfclcK6pc=";
|
2023-03-15 16:39:30 +00:00
|
|
|
};
|
|
|
|
propagatedBuildInputs = [ npeg ];
|
2023-08-22 20:05:09 +00:00
|
|
|
nimFlags = [ "--mm:refc" "--path:${nim-unwrapped}/nim" "--threads:off" ];
|
2023-03-15 16:39:30 +00:00
|
|
|
doCheck = !stdenv.isDarwin;
|
2023-08-22 20:05:09 +00:00
|
|
|
meta = final.src.meta // {
|
2023-03-15 16:39:30 +00:00
|
|
|
description = "Nim implementation of the Preserves data language";
|
|
|
|
license = lib.licenses.unlicense;
|
|
|
|
maintainers = with lib.maintainers; [ ehmry ];
|
|
|
|
};
|
2023-08-22 20:05:09 +00:00
|
|
|
})
|