nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 38 lines 1.1 kB view raw
1{ lib, buildNimPackage, fetchFromGitea, pkg-config 2, base32, coap, cbor, freedesktop_org, syndicate, tkrzw }: 3 4buildNimPackage rec { 5 pname = "eris"; 6 version = "20230201"; 7 outputs = [ "bin" "out" ]; 8 src = fetchFromGitea { 9 domain = "codeberg.org"; 10 owner = "eris"; 11 repo = "nim-${pname}"; 12 rev = version; 13 hash = "sha256-6vlD/woqTkbSRWhRtQD/ynk0DG+GrGwh6x+qUmo6YSQ="; 14 }; 15 propagatedNativeBuildInputs = [ pkg-config ]; 16 propagatedBuildInputs = [ 17 base32 18 coap 19 cbor 20 freedesktop_org 21 syndicate 22 tkrzw 23 ]; 24 postInstall = '' 25 mkdir -p "$bin/share/applications" 26 substitute "eris-open.desktop" "$bin/share/applications/eris-open.desktop"\ 27 --replace "Exec=eriscmd " "Exec=$bin/bin/eriscmd " 28 29 install -D "eris-link.xml" -t "$bin/share/mime/packages" 30 install -D "eris48.png" "$bin/share/icons/hicolor/48x48/apps/eris.png" 31 ''; 32 meta = src.meta // { 33 license = lib.licenses.unlicense; 34 maintainers = with lib.maintainers; [ ehmry ]; 35 mainProgram = "eriscmd"; 36 badPlatforms = lib.platforms.darwin; 37 }; 38}