summary refs log tree commit diff
path: root/pkgs/tools/X11/nitrogen/default.nix
blob: 432193950cdd0df359190e4d2000d5a613e817fb (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
26
27
28
29
30
31
32
33
34
35
{ lib, stdenv, fetchurl, pkg-config, glib, gtkmm2 }:

let version = "1.6.1";
in
stdenv.mkDerivation rec {
  pname = "nitrogen";
  inherit version;

  src = fetchurl {
    url = "http://projects.l3ib.org/nitrogen/files/${pname}-${version}.tar.gz";
    sha256 = "0zc3fl1mbhq0iyndy4ysmy8vv5c7xwf54rbgamzfhfvsgdq160pl";
  };

  nativeBuildInputs = [ pkg-config ];

  buildInputs = [ glib gtkmm2 ];

  patchPhase = ''
    patchShebangs data/icon-theme-installer
  '';

  meta = {
    description = "A wallpaper browser and setter for X11";
    longDescription = ''
      nitrogen is a lightweight utility that can set the root background on X11.
      It operates independently of any desktop environment, and supports
      multi-head with Xinerama. Wallpapers are browsable with a convenient GUI,
      and settings are stored in a human-readable config file.
    '';
    homepage = "https://github.com/l3ib/nitrogen";
    license = lib.licenses.gpl2;
    platforms = lib.platforms.linux;
    maintainers = [ lib.maintainers.auntie ];
  };
}