nimPackages.eris: init at 20230201

This commit is contained in:
Emery Hemingway 2023-02-01 13:36:35 -06:00
parent 617e2b27e2
commit 6ca8432ded
2 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,37 @@
{ lib, buildNimPackage, fetchFromGitea, pkg-config
, base32, coap, cbor, freedesktop_org, syndicate, tkrzw }:
buildNimPackage rec {
pname = "eris";
version = "20230201";
outputs = [ "bin" "out" ];
src = fetchFromGitea {
domain = "codeberg.org";
owner = "eris";
repo = "nim-${pname}";
rev = version;
hash = "sha256-6vlD/woqTkbSRWhRtQD/ynk0DG+GrGwh6x+qUmo6YSQ=";
};
propagatedNativeBuildInputs = [ pkg-config ];
propagatedBuildInputs = [
base32
coap
cbor
freedesktop_org
syndicate
tkrzw
];
postInstall = ''
mkdir -p "$bin/share/applications"
substitute "eris-open.desktop" "$bin/share/applications/eris-open.desktop"\
--replace "Exec=eriscmd " "Exec=$bin/bin/eriscmd "
install -D "eris-link.xml" -t "$bin/share/mime/packages"
install -D "eris48.png" "$bin/share/icons/hicolor/48x48/apps/eris.png"
'';
meta = src.meta // {
license = lib.licenses.unlicense;
maintainers = with lib.maintainers; [ ehmry ];
mainProgram = "eriscmd";
};
}

View file

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