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