From 6ca8432ded4aae50544a2c433f95e5dffb4b26cb Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Wed, 1 Feb 2023 13:36:35 -0600 Subject: [PATCH] nimPackages.eris: init at 20230201 --- .../development/nim-packages/eris/default.nix | 37 +++++++++++++++++++ pkgs/top-level/nim-packages.nix | 2 + 2 files changed, 39 insertions(+) create mode 100644 pkgs/development/nim-packages/eris/default.nix diff --git a/pkgs/development/nim-packages/eris/default.nix b/pkgs/development/nim-packages/eris/default.nix new file mode 100644 index 000000000000..9c5820398aca --- /dev/null +++ b/pkgs/development/nim-packages/eris/default.nix @@ -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"; + }; +} diff --git a/pkgs/top-level/nim-packages.nix b/pkgs/top-level/nim-packages.nix index f4d5469520ca..0b7eb960b7a5 100644 --- a/pkgs/top-level/nim-packages.nix +++ b/pkgs/top-level/nim-packages.nix @@ -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 { };