nimPackages.freedesktop_org: init at 20230201

This commit is contained in:
Emery Hemingway 2023-02-01 13:13:00 -06:00
parent e37460448f
commit 617e2b27e2
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,32 @@
{ lib, buildNimPackage, fetchFromSourcehut, fetchFromGitHub }:
let
# freedesktop_org requires a fork of configparser
configparser = buildNimPackage rec {
pname = "configparser";
version = "20230120";
src = fetchFromGitHub {
repo = "nim-" + pname;
owner = "ehmry";
rev = "695f1285d63f1954c25eb1f42798d90fa7bcbe14";
hash = "sha256-Z2Qr14pv2RHzQNfEYIKuXKHfHvvIfaEiGCHHCWJZFyw=";
};
doCheck = true;
};
in buildNimPackage rec {
pname = "freedesktop_org";
version = "20230201";
src = fetchFromSourcehut {
owner = "~ehmry";
repo = pname;
rev = version;
hash = "sha256-gEN8kiWYCfC9H7o4UE8Xza5s7OwU3TFno6XnIlEm9Dg=";
};
propagatedBuildInputs = [ configparser ];
doCheck = true;
meta = src.meta // {
description = "Some Nim procedures for looking up freedesktop.org data";
license = lib.licenses.unlicense;
maintainers = with lib.maintainers; [ ehmry ];
};
}

View File

@ -36,6 +36,8 @@ lib.makeScope newScope (self:
flatty = callPackage ../development/nim-packages/flatty { };
freedesktop_org = callPackage ../development/nim-packages/freedesktop_org { };
frosty = callPackage ../development/nim-packages/frosty { };
getdns = callPackage ../development/nim-packages/getdns {