imlibsetroot: adapt to Imlib2 v1.7.5

imlib2-config is gone

imlibsetroot.c license header is actually MIT-advertising

c0bw3b ff517c4d 597f76f0

+13 -6
+13 -6
pkgs/applications/graphics/imlibsetroot/default.nix
··· 9 9 }; 10 10 11 11 buildInputs = [ libX11 imlib2 libXinerama ]; 12 + 12 13 buildPhase = '' 13 - gcc -g imlibsetroot.c -o imlibsetroot \ 14 - `imlib2-config --cflags` `imlib2-config --libs` \ 15 - -I/include/X11/extensions -lXinerama -lX11 14 + runHook preBuild 15 + 16 + gcc -g imlibsetroot.c -o imlibsetroot \ 17 + -I${imlib2.dev}/include -L${imlib2}/lib -lImlib2 \ 18 + -I${libX11.dev}/include -lXinerama -lX11 19 + 20 + runHook postBuild 16 21 ''; 22 + 17 23 installPhase = '' 18 - mkdir -p $out/bin 19 - install -m 755 imlibsetroot $out/bin 24 + runHook preInstall 25 + install -D -m 0755 imlibsetroot -t $out/bin 26 + runHook postInstall 20 27 ''; 21 28 22 29 meta = with lib; { 23 30 description = "A Xinerama Aware Background Changer"; 24 31 homepage = "http://robotmonkeys.net/2010/03/30/imlibsetroot/"; 25 - license = licenses.gpl2; 32 + license = licenses.mitAdvertising; 26 33 platforms = platforms.linux; 27 34 maintainers = with maintainers; [ dwarfmaster ]; 28 35 };