diff --git a/pkgs/tools/X11/nitrogen/default.nix b/pkgs/tools/X11/nitrogen/default.nix new file mode 100644 index 000000000000..beecffd4b06f --- /dev/null +++ b/pkgs/tools/X11/nitrogen/default.nix @@ -0,0 +1,32 @@ +{ stdenv, fetchurl, pkgconfig, glib, gtk2, gtkmm }: + +let version = "1.5.2"; +in +stdenv.mkDerivation rec { + name = "nitrogen-${version}"; + + src = fetchurl { + url = "http://projects.l3ib.org/nitrogen/files/nitrogen-${version}.tar.gz"; + sha256 = "60a2437ce6a6c0ba44505fc8066c1973140d4bb48e1e5649f525c7b0b8bf9fd2"; + }; + + buildInputs = [ glib gtk2 gtkmm pkgconfig ]; + + NIX_LDFLAGS = "-lX11"; + + patches = [ ./nitrogen-env-bash.patch ]; + + 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 = http://projects.l3ib.org/nitrogen/; + license = stdenv.lib.licenses.gpl2; + platforms = stdenv.lib.platforms.linux; + maintainer = [ stdenv.lib.maintainers.auntie ]; + }; +} diff --git a/pkgs/tools/X11/nitrogen/nitrogen-env-bash.patch b/pkgs/tools/X11/nitrogen/nitrogen-env-bash.patch new file mode 100644 index 000000000000..dd8574dcd628 --- /dev/null +++ b/pkgs/tools/X11/nitrogen/nitrogen-env-bash.patch @@ -0,0 +1,10 @@ +diff --git a/data/icon-theme-installer b/data/icon-theme-installer +index 328cf73..ca5d226 100755 +--- a/data/icon-theme-installer ++++ b/data/icon-theme-installer +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/usr/bin/env bash + + # icon-theme-installer + # Copyright (C) 2006 Novell, Inc. diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 71e1fedbfcd9..a9b8f9ef77a9 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1611,6 +1611,8 @@ let nilfs_utils = callPackage ../tools/filesystems/nilfs-utils {}; + nitrogen = callPackage ../tools/X11/nitrogen {}; + nlopt = callPackage ../development/libraries/nlopt {}; npapi_sdk = callPackage ../development/libraries/npapi-sdk {};