mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 00:24:18 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
35 lines
1.0 KiB
Nix
35 lines
1.0 KiB
Nix
{ lib, stdenv, fetchurl, pkg-config, glib, gtkmm2 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "nitrogen";
|
|
version = "1.6.1";
|
|
|
|
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 = "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.gpl2Plus;
|
|
platforms = lib.platforms.linux;
|
|
maintainers = [ lib.maintainers.auntie ];
|
|
mainProgram = "nitrogen";
|
|
};
|
|
}
|