syndicate-flake/packages/syndicate_utils-nim/default.nix

31 lines
859 B
Nix
Raw Normal View History

2024-04-07 15:22:17 +00:00
{ lib, buildNimPackage, fetchFromGitea, pkg-config
2022-06-27 15:45:32 +00:00
2024-04-07 15:22:17 +00:00
, postgresql, sqlite, libxml2, libxslt }:
2022-06-27 15:45:32 +00:00
2024-04-07 15:22:17 +00:00
let
version = "20240407";
2022-06-27 15:45:32 +00:00
src = fetchFromGitea {
domain = "git.syndicate-lang.org";
owner = "ehmry";
2023-11-30 10:23:20 +00:00
repo = "syndicate_utils";
rev = version;
2024-04-07 15:22:17 +00:00
hash = "sha256-2O41VNWmviIYDEzejrwEsdDCFrdw5BsaW3VZbEliQ98=";
2022-06-27 15:45:32 +00:00
};
2024-04-07 15:22:17 +00:00
in buildNimPackage (finalAttrs:
{ buildInputs ? [ ], ... }: {
pname = "syndicate_utils";
inherit version src;
2022-06-27 15:45:32 +00:00
2024-04-07 15:22:17 +00:00
nativeBuildInputs = [ pkg-config ];
buildInputs = buildInputs ++ [ postgresql sqlite libxml2 libxslt ];
2022-06-27 15:45:32 +00:00
2024-04-07 15:22:17 +00:00
lockFile = "${src}/lock.json";
meta = src.meta // {
description = "Utilities for the Syndicated Actor Model";
homepage = "https://git.syndicate-lang.org/ehmry/syndicate_utils";
maintainers = [ lib.maintainers.ehmry ];
license = lib.licenses.unlicense;
};
})