nimPackages.eris: init at 20230201
This commit is contained in:
parent
617e2b27e2
commit
6ca8432ded
2 changed files with 39 additions and 0 deletions
37
pkgs/development/nim-packages/eris/default.nix
Normal file
37
pkgs/development/nim-packages/eris/default.nix
Normal 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";
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue