lol
1{stdenv, fetchurl, pkgconfig, libX11, libXinerama, imlib2}:
2
3stdenv.mkDerivation rec {
4
5 name = "bgs-${version}";
6 version = "0.8";
7
8 src = fetchurl {
9 url = "https://github.com/Gottox/bgs/archive/v${version}.tar.gz";
10 sha256 = "1rw9ingkkpvvr2dixx126ziim67a54r8k49918h1mbph0fjj08n5";
11 };
12
13 nativeBuildInputs = [ pkgconfig ];
14
15 buildInputs = [ libX11 libXinerama imlib2 ];
16
17 preConfigure = ''sed -i "s@PREFIX = /usr/local@PREFIX = $out@g" config.mk'';
18
19 meta = with stdenv.lib; {
20 description = "Extremely fast and small background setter for X";
21 license = licenses.mit;
22 platforms = platforms.linux;
23 maintainers = with maintainers; [ pSub ];
24 };
25}