summary refs log tree commit diff
path: root/pkgs/tools/X11/bgs/default.nix
blob: fc6f7752a3a4798f224a7cb152edff4429493324 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{lib, stdenv, fetchurl, pkg-config, libX11, libXinerama, imlib2}:

stdenv.mkDerivation rec {

  pname = "bgs";
  version = "0.8";

  src = fetchurl {
    url = "https://github.com/Gottox/bgs/archive/v${version}.tar.gz";
    sha256 = "1rw9ingkkpvvr2dixx126ziim67a54r8k49918h1mbph0fjj08n5";
  };

  nativeBuildInputs = [ pkg-config ];

  buildInputs = [ libX11 libXinerama imlib2 ];

  preConfigure = ''sed -i "s@PREFIX = /usr/local@PREFIX = $out@g" config.mk'';

  meta = with lib; {
    description = "Extremely fast and small background setter for X";
    license = licenses.mit;
    platforms = platforms.linux;
    maintainers = with maintainers; [ pSub ];
  };
}