1 { lib, stdenv, fetchFromGitHub, cmake }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
8 owner = "MCRedstoner2004";
11 sha256 = "0978zdrfj41jsqm78afyyd1l64iki9nwjvhd8ynii1b553nn4dmd";
12 fetchSubmodules = true;
15 # fix for case-sensitive filesystems
16 # https://github.com/MCredstoner2004/ImageLOL/issues/1
19 substituteInPlace CMakeLists.txt \
20 --replace 'add_subdirectory("imagelol")' 'add_subdirectory("src")'
23 nativeBuildInputs = [ cmake ];
27 cp ./ImageLOL $out/bin
31 homepage = "https://github.com/MCredstoner2004/ImageLOL";
32 description = "Simple program to store a file into a PNG image";
33 license = licenses.mit;
34 maintainers = [ maintainers.ivar ];
35 platforms = platforms.unix;