2016-09-11 23:24:51 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, glib, gtkmm2 }:
|
2014-06-04 05:56:34 +02:00
|
|
|
|
2016-11-18 12:49:27 +01:00
|
|
|
let version = "1.6.0";
|
2014-06-13 20:08:44 +02:00
|
|
|
in
|
2014-06-04 05:56:34 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2014-06-13 20:08:44 +02:00
|
|
|
name = "nitrogen-${version}";
|
2014-06-04 05:56:34 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-11-18 12:49:27 +01:00
|
|
|
url = "http://projects.l3ib.org/nitrogen/files/${name}.tar.gz";
|
|
|
|
sha256 = "1pil2qa3v7x56zh9xvba8v96abnf9qgglbsdlrlv0kfjlhzl4jhr";
|
2014-06-04 05:56:34 +02:00
|
|
|
};
|
2014-06-13 20:08:44 +02:00
|
|
|
|
2016-11-18 12:49:27 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2014-06-13 19:32:29 +02:00
|
|
|
|
2016-11-18 12:49:27 +01:00
|
|
|
buildInputs = [ glib gtkmm2 ];
|
2014-06-13 19:32:29 +02:00
|
|
|
|
2016-11-18 12:49:27 +01:00
|
|
|
NIX_CXXFLAGS_COMPILE = "-std=c++11";
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace data/Makefile.in --replace /usr/share $out/share
|
|
|
|
patchShebangs data/icon-theme-installer
|
|
|
|
'';
|
2014-06-13 19:32:29 +02:00
|
|
|
|
2014-06-04 05:56:34 +02:00
|
|
|
meta = {
|
2014-06-13 20:08:44 +02:00
|
|
|
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.
|
|
|
|
'';
|
2014-06-04 05:56:34 +02:00
|
|
|
homepage = http://projects.l3ib.org/nitrogen/;
|
2014-06-13 19:54:19 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2014-06-04 05:56:34 +02:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2014-07-22 23:45:18 +02:00
|
|
|
maintainers = [ stdenv.lib.maintainers.auntie ];
|
2014-06-04 05:56:34 +02:00
|
|
|
};
|
|
|
|
}
|