mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
37 lines
1.2 KiB
Nix
37 lines
1.2 KiB
Nix
{ lib, buildNimPackage, fetchFromGitea, pkg-config, base32, coap, cbor
|
|
, freedesktop_org, illwill, syndicate, tkrzw }:
|
|
|
|
buildNimPackage (final: prev: {
|
|
pname = "eris";
|
|
version = "20230722";
|
|
outputs = [ "bin" "out" ];
|
|
src = fetchFromGitea {
|
|
domain = "codeberg.org";
|
|
owner = "eris";
|
|
repo = "nim-eris";
|
|
rev = final.version;
|
|
hash = "sha256-JVl2/PmFVYuD4s9hKoQwVDKUa3PBWK5SBDEmVHVSuig=";
|
|
};
|
|
propagatedNativeBuildInputs = [ pkg-config ];
|
|
propagatedBuildInputs =
|
|
[ base32 coap cbor freedesktop_org illwill tkrzw ];
|
|
postInstall = ''
|
|
mkdir -p "$bin/share/recoll/filters"
|
|
mv "$bin/bin/rclerislink" "$bin/share/recoll/filters/"
|
|
|
|
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 = final.src.meta // {
|
|
homepage = "https://codeberg.org/eris/nim-eris";
|
|
license = lib.licenses.unlicense;
|
|
maintainers = with lib.maintainers; [ ehmry ];
|
|
mainProgram = "eriscmd";
|
|
badPlatforms = lib.platforms.darwin;
|
|
};
|
|
})
|