package.nix (937B)
1 { 2 lib, 3 stdenv, 4 fetchurl, 5 libX11, 6 farbfeld, 7 farbfeld-utils, 8 }: 9 10 stdenv.mkDerivation (finalAttrs: { 11 pname = "lel"; 12 version = "0.2"; 13 14 __structuredAttrs = true; 15 16 src = fetchurl { 17 url = "https://codemadness.org/releases/lel/lel-${finalAttrs.version}.tar.gz"; 18 hash = "sha256-y00PnBpIgQaT8V9VL7wvNPOvugFhLXmt0AqZYQY+7dg="; 19 }; 20 21 postPatch = '' 22 substituteInPlace lel-open \ 23 --replace-fail "jpg2ff" "${farbfeld}/bin/jpg2ff" \ 24 --replace-fail "png2ff" "${farbfeld}/bin/png2ff" \ 25 --replace-fail "gif2ff" "${farbfeld-utils}/bin/gif2ff" \ 26 --replace-fail "lel" "$out/bin/lel" 27 ''; 28 29 buildInputs = [ libX11 ]; 30 31 installFlags = [ "PREFIX=$(out)" ]; 32 33 meta = { 34 description = "Farbfeld image viewer"; 35 homepage = "https://git.codemadness.org/lel/file/README.html"; 36 license = lib.licenses.mit; 37 maintainers = [ lib.maintainers.sikmir ]; 38 platforms = lib.platforms.unix; 39 }; 40 })
