treewide: with stdenv.lib; in meta -> with lib;

Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
This commit is contained in:
Profpatsch
2021-01-11 10:38:22 +01:00
parent e87aef06e0
commit 4a7f99d55d
6869 changed files with 13585 additions and 13580 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, autoconf, automake, pkgconfig, ronn, libpng, uthash
{ lib, stdenv, fetchFromGitHub, autoconf, automake, pkgconfig, ronn, libpng, uthash
, xorg }:
stdenv.mkDerivation rec {
@@ -35,7 +35,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://github.com/sagb/alttab";
description = "X11 window switcher designed for minimalistic window managers or standalone X11 session";
license = licenses.gpl3;
+2 -2
View File
@@ -1,4 +1,4 @@
{stdenv, fetchurl, pkgconfig, libX11, libXinerama, imlib2}:
{lib, stdenv, fetchurl, pkgconfig, libX11, libXinerama, imlib2}:
stdenv.mkDerivation rec {
@@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
preConfigure = ''sed -i "s@PREFIX = /usr/local@PREFIX = $out@g" config.mk'';
meta = with stdenv.lib; {
meta = with lib; {
description = "Extremely fast and small background setter for X";
license = licenses.mit;
platforms = platforms.linux;
+1 -1
View File
@@ -133,7 +133,7 @@ in stdenv.mkDerivation rec {
--prefix PATH : "${virtualgl}/bin"
'';
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://github.com/Bumblebee-Project/Bumblebee";
description = "Daemon for managing Optimus videocards (power-on/off, spawns xservers)";
platforms = platforms.linux;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitLab, perl, xkeyboard_config }:
{ lib, stdenv, fetchFromGitLab, perl, xkeyboard_config }:
stdenv.mkDerivation rec {
pname = "ckbcomp";
@@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
install -Dm0444 -t $out/share/man/man1 man/ckbcomp.1
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "Compiles a XKB keyboard description to a keymap suitable for loadkeys";
homepage = "https://salsa.debian.org/installer-team/console-setup";
license = licenses.gpl2Plus;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, libX11 }:
{ lib, stdenv, fetchFromGitHub, libX11 }:
stdenv.mkDerivation rec {
pname = "devour";
@@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
buildInputs = [ libX11 ];
meta = with stdenv.lib; {
meta = with lib; {
description = "Devour hides your current window when launching an external program";
longDescription = "Devour hides your current window before launching an external program and unhides it after quitting";
homepage = "https://github.com/salman-abedin/devour";
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, python3 }:
{ lib, stdenv, fetchFromGitHub, python3 }:
stdenv.mkDerivation rec {
program = "dex";
@@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ python3.pkgs.sphinx ];
makeFlags = [ "PREFIX=$(out)" "VERSION=$(version)" ];
meta = with stdenv.lib; {
meta = with lib; {
description = "A program to generate and execute DesktopEntry files of the Application type";
homepage = "https://github.com/jceb/dex";
platforms = platforms.linux;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, libX11, libXi, libconfuse }:
{ lib, stdenv, fetchFromGitHub, libX11, libXi, libconfuse }:
stdenv.mkDerivation rec {
pname = "dispad";
@@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
buildInputs = [ libX11 libXi libconfuse ];
meta = with stdenv.lib; {
meta = with lib; {
description = "A small daemon for disabling trackpads while typing";
homepage = "https://github.com/BlueDragonX/dispad";
license = licenses.gpl2;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, gtk, pkgconfig, fetchFromGitHub }:
{ lib, stdenv, gtk, pkgconfig, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "dragon-drop";
@@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
install -D dragon -t $out/bin
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "Simple drag-and-drop source/sink for X";
homepage = "https://github.com/mwh/dragon";
maintainers = with maintainers; [ jb55 markus1189 ];
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, autoreconfHook, perl, libX11 }:
{ lib, stdenv, fetchFromGitHub, autoreconfHook, perl, libX11 }:
stdenv.mkDerivation rec {
pname = "ffcast";
@@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
make install
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "Run commands on rectangular screen regions";
homepage = "https://github.com/lolilolicon/FFcast";
license = licenses.gpl3;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, libX11, libXdamage, libXrender, libXcomposite, libXext, installShellFiles, git }:
{ lib, stdenv, fetchFromGitHub, libX11, libXdamage, libXrender, libXcomposite, libXext, installShellFiles, git }:
stdenv.mkDerivation rec {
pname = "find-cursor";
@@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
preInstall = "mkdir -p $out/share/man/man1";
installFlags = "PREFIX=${placeholder "out"}";
meta = with stdenv.lib; {
meta = with lib; {
description = "Simple XLib program to highlight the cursor position";
homepage = "https://github.com/arp242/find-cursor";
license = licenses.mit;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, xorg, buildGoPackage, fetchFromGitHub }:
{ lib, stdenv, xorg, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
pname = "go-sct";
@@ -18,7 +18,7 @@ buildGoPackage rec {
buildInputs = [ xorg.libX11 xorg.libXrandr ];
meta = with stdenv.lib; {
meta = with lib; {
description = "Color temperature setting library and CLI that operates in a similar way to f.lux and Redshift";
license = licenses.mit;
maintainers = with maintainers; [ rvolosatovs cstrahan ];
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, buildGoModule, fetchpatch }:
{ lib, stdenv, fetchFromGitHub, buildGoModule, fetchpatch }:
buildGoModule rec {
version = "0.6.0";
@@ -21,7 +21,7 @@ buildGoModule rec {
})
];
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://github.com/fd0/grobi";
description = "Automatically configure monitors/outputs for Xorg via RANDR";
license = with licenses; [ bsd2 ];
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv
{ lib, stdenv
, fetchFromGitHub
, pkg-config
, imlib2
@@ -30,7 +30,7 @@ stdenv.mkDerivation rec {
mkdir -p "$out/bin"
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "Allows you to compose wallpapers ('root pixmaps') for X";
homepage = "https://github.com/himdel/hsetroot";
license = licenses.gpl2Plus;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, libX11, libXext, libXi, libXmu, libXt, libXtst }:
{ lib, stdenv, fetchurl, libX11, libXext, libXi, libXmu, libXt, libXtst }:
stdenv.mkDerivation rec {
name = "imwheel-1.0.0pre12";
@@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
"ETCDIR=${placeholder "out"}/etc"
];
meta = with stdenv.lib; {
meta = with lib; {
homepage = "http://imwheel.sourceforge.net/";
description = "Mouse wheel configuration tool for XFree86/Xorg";
maintainers = with maintainers; [ jhillyerd ];
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, pkgconfig, libX11, xorgproto, libXtst, libXi, libXext
{ lib, stdenv, fetchFromGitHub, pkgconfig, libX11, xorgproto, libXtst, libXi, libXext
, libXinerama, libXrandr, glib, cairo, xdotool }:
let release = "20180821"; in
@@ -29,7 +29,7 @@ stdenv.mkDerivation {
cp keynavrc $out/share/keynav/doc
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "Generate X11 mouse clicks from keyboard";
homepage = "https://www.semicomplete.com/projects/keynav/";
license = licenses.bsd3;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, libX11, libXtst, pkgconfig, xorgproto, libXi }:
{ lib, stdenv, fetchFromGitHub, libX11, libXtst, pkgconfig, xorgproto, libXi }:
stdenv.mkDerivation rec {
pname = "ksuperkey";
@@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libX11 libXtst xorgproto libXi ];
meta = with stdenv.lib; {
meta = with lib; {
description = "A tool to be able to bind the super key as a key rather than a modifier";
homepage = "https://github.com/hanschen/ksuperkey";
license = licenses.gpl3;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub }:
{ lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "libstrangle";
@@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
substituteAllInPlace src/strangle.sh
'';
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://github.com/milaq/libstrangle";
description = "Frame rate limiter for Linux/OpenGL";
license = licenses.gpl3;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl
{ lib, stdenv, fetchurl
, netcdf, xlibsWrapper, xorg, udunits, expat
}:
@@ -16,7 +16,7 @@ in stdenv.mkDerivation {
buildInputs = [ netcdf xlibsWrapper xorg.libXaw udunits expat ];
meta = with stdenv.lib; {
meta = with lib; {
description = "Visual browser for netCDF format files";
homepage = "http://meteora.ucsd.edu/~pierce/ncview_home_page.html";
license = licenses.gpl3;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, libX11, libXext, autoconf }:
{ lib, stdenv, fetchFromGitHub, libX11, libXext, autoconf }:
stdenv.mkDerivation rec {
version = "1.2";
@@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
buildInputs = [ libX11 libXext autoconf ];
meta = with stdenv.lib; {
meta = with lib; {
description = "Allows to start X with NumLock turned on";
license = licenses.mit;
platforms = platforms.all;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, fetchpatch
{ lib, stdenv, fetchFromGitHub, fetchpatch
, libX11, libGL, mesa
, nvidia_x11 ? null
, libglvnd
@@ -42,7 +42,7 @@ in stdenv.mkDerivation {
passthru.glvnd = if nvidia_x11 != null && nvidia_x11.useGLVND then nvidia_x11 else null;
meta = with stdenv.lib; {
meta = with lib; {
description = "Low-overhead client-side GPU offloading";
homepage = "https://github.com/amonakov/primus";
platforms = [ "i686-linux" "x86_64-linux" ];
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, makeWrapper, bc, xorgserver, xpra, xrandr }:
{ lib, stdenv, fetchFromGitHub, makeWrapper, bc, xorgserver, xpra, xrandr }:
stdenv.mkDerivation {
version = "git-2018-06-03";
@@ -20,7 +20,7 @@ stdenv.mkDerivation {
${stdenv.lib.makeBinPath [ bc xorgserver xpra xrandr ]}
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "Run an X application scaled via xpra";
homepage = "https://github.com/kaueraal/run_scaled";
maintainers = [ maintainers.snaar ];
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, libX11, libXrandr }:
{ lib, stdenv, fetchurl, libX11, libXrandr }:
stdenv.mkDerivation rec {
name = "sct";
@@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
installPhase = "install -Dt $out/bin sct";
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://www.tedunangst.com/flak/post/sct-set-color-temperature";
description = "A minimal utility to set display colour temperature";
maintainers = [ maintainers.raskin ];
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, libX11, imlib2
{ lib, stdenv, fetchFromGitHub, libX11, imlib2
, enableXinerama ? true, libXinerama ? null
}:
@@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
installFlags = [ "DESTDIR=$(out)" "PREFIX=" ];
meta = with stdenv.lib; {
meta = with lib; {
description = "Simple X background setter inspired by imlibsetroot and feh";
homepage = "https://github.com/ttzhou/setroot";
license = licenses.gpl3Plus;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv
{ lib, stdenv
, fetchFromGitHub
, libX11
, libXrandr
@@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
makeFlags = [ "PREFIX=$(out)" ];
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://github.com/jceb/srandrd";
description = "Simple randr daemon";
license = licenses.mit;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, libvdpau }:
{ lib, stdenv, fetchurl, pkgconfig, libvdpau }:
stdenv.mkDerivation rec {
pname = "vdpauinfo";
@@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libvdpau ];
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://people.freedesktop.org/~aplattner/vdpau/";
description = "Tool to query the Video Decode and Presentation API for Unix (VDPAU) abilities of the system";
license = licenses.mit; # expat version
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, cmake
{ lib, stdenv, fetchurl, cmake
, libGL, libGLU, libX11, libXv, libXtst, libjpeg_turbo, fltk
, xorg
, opencl-headers, opencl-clhpp, ocl-icd
@@ -31,7 +31,7 @@ stdenv.mkDerivation rec {
--replace "LD_PRELOAD=libgefaker" "LD_PRELOAD=$out/lib/libgefaker"
'';
meta = with stdenv.lib; {
meta = with lib; {
homepage = "http://www.virtualgl.org/";
description = "X11 GL rendering in a remote computer with full 3D hw acceleration";
license = licenses.wxWindows;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, libxcb }:
{ lib, stdenv, fetchurl, libxcb }:
stdenv.mkDerivation rec {
pname = "wmutils-core";
@@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
installFlags = [ "PREFIX=$(out)" ];
meta = with stdenv.lib; {
meta = with lib; {
description = "Set of window manipulation tools";
homepage = "https://github.com/wmutils/core";
license = licenses.isc;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, libxcb }:
{ lib, stdenv, fetchFromGitHub, libxcb }:
stdenv.mkDerivation rec {
pname = "wmutils-libwm";
@@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
installFlags = [ "PREFIX=$(out)" ];
meta = with stdenv.lib; {
meta = with lib; {
description = "A small library for X window manipulation";
homepage = "https://github.com/wmutils/libwm";
license = licenses.isc;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, libxcb }:
{ lib, stdenv, fetchFromGitHub, libxcb }:
stdenv.mkDerivation rec {
pname = "wmutils-opt";
@@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
installFlags = [ "PREFIX=$(out)" ];
meta = with stdenv.lib; {
meta = with lib; {
description = "Optional addons to wmutils";
homepage = "https://github.com/wmutils/opt";
license = licenses.isc;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, python3Packages, fetchFromGitHub, libxslt,
{ lib, stdenv, python3Packages, fetchFromGitHub, libxslt,
gobject-introspection, gtk3, wrapGAppsHook, gnome3 }:
python3Packages.buildPythonApplication rec {
@@ -34,7 +34,7 @@ python3Packages.buildPythonApplication rec {
# No test exist
doCheck = false;
meta = with stdenv.lib; {
meta = with lib; {
description = "Template based wallpaper/colorscheme generator and manager";
longDescription = ''
In short, wpgtk is a colorscheme/wallpaper manager with a template system attached which lets you create templates from any textfile and will replace keywords on it on the fly, allowing for great styling and theming possibilities.
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitLab, autoreconfHook, pkgconfig
{ lib, stdenv, fetchFromGitLab, autoreconfHook, pkgconfig
, xorg, gtk2, spice, spice-protocol
}:
@@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
NIX_LDFLAGS = "-lpthread";
meta = with stdenv.lib; {
meta = with lib; {
description = "Enable a running X11 desktop to be available via a Spice server";
homepage = "https://gitlab.freedesktop.org/spice/x11spice";
platforms = platforms.linux;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, fetchpatch,
{ lib, stdenv, fetchFromGitHub, fetchpatch,
openssl, zlib, libjpeg, xorg, coreutils, libvncserver,
autoreconfHook, pkgconfig }:
@@ -47,7 +47,7 @@ stdenv.mkDerivation rec {
configureFlags="--mandir=$out/share/man"
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "A VNC server connected to a real X11 screen";
homepage = "https://github.com/LibVNC/x11vnc/";
platforms = platforms.linux;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, xorg }:
{ lib, stdenv, fetchurl, xorg }:
stdenv.mkDerivation {
name = "x2vnc-1.7.2";
@@ -14,7 +14,7 @@ stdenv.mkDerivation {
hardeningDisable = [ "format" ];
meta = with stdenv.lib; {
meta = with lib; {
homepage = "http://fredrik.hubbe.net/x2vnc.html";
description = "A program to control a remote VNC server";
platforms = platforms.unix;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, imake, libX11, libXtst, libXext, gccmakedep }:
{ lib, stdenv, fetchurl, imake, libX11, libXtst, libXext, gccmakedep }:
stdenv.mkDerivation {
name = "x2x-1.27";
@@ -20,7 +20,7 @@ stdenv.mkDerivation {
install -D x2x.1 $out/man/man1/x2x.1
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "Allows the keyboard, mouse on one X display to be used to control another X display";
homepage = "https://github.com/dottedmag/x2x";
license = licenses.bsd3;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, libX11, libXxf86vm, libXext, libXrandr }:
{ lib, stdenv, fetchFromGitHub, libX11, libXxf86vm, libXext, libXrandr }:
stdenv.mkDerivation rec {
name = "xcalib-0.10";
@@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
cp xcalib $out/bin/
'';
meta = with stdenv.lib; {
meta = with lib; {
inherit (src.meta) homepage;
description = "A tiny monitor calibration loader for X and MS-Windows";
license = licenses.gpl2;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, pkgconfig, libX11, libXtst, xorgproto,
{ lib, stdenv, fetchFromGitHub, pkgconfig, libX11, libXtst, xorgproto,
libXi }:
stdenv.mkDerivation rec {
@@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
postInstall = "install -Dm444 --target-directory $out/share/doc README.md";
meta = with stdenv.lib; {
meta = with lib; {
description = "Utility to configure modifier keys to act as other keys";
longDescription = ''
xcape allows you to use a modifier key as another key when
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, libX11 }:
{ lib, stdenv, fetchFromGitHub, libX11 }:
stdenv.mkDerivation {
version = "2019-05-09";
@@ -19,7 +19,7 @@ stdenv.mkDerivation {
install -D xcwd "$out/bin/xcwd"
'';
meta = with stdenv.lib; {
meta = with lib; {
description = ''
A simple tool which print the current working directory of the currently focused window
'';
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, libxslt, docbook_xsl, makeWrapper }:
{ lib, stdenv, fetchurl, libxslt, docbook_xsl, makeWrapper }:
stdenv.mkDerivation rec {
name = "xdg-user-dirs-0.17";
@@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
--suffix XDG_CONFIG_DIRS : "$out/etc/xdg"
'';
meta = with stdenv.lib; {
meta = with lib; {
homepage = "http://freedesktop.org/wiki/Software/xdg-user-dirs";
description = "A tool to help manage well known user directories like the desktop folder and the music folder";
license = licenses.gpl2;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, fetchFromGitHub
{ lib, stdenv, fetchurl, fetchFromGitHub
, file, libxslt, docbook_xml_dtd_412, docbook_xsl, xmlto
, w3m, gnugrep, gnused, coreutils, xset, perlPackages
, mimiSupport ? false, gawk ? null }:
@@ -59,7 +59,7 @@ stdenv.mkDerivation rec {
sed 's|\bwhich\b|type -P|g' -i "$out"/bin/*
'';
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://www.freedesktop.org/wiki/Software/xdg-utils/";
description = "A set of command line tools that assist applications with a variety of desktop integration tasks";
license = if mimiSupport then licenses.gpl2 else licenses.free;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, libX11 }:
{ lib, stdenv, fetchurl, libX11 }:
stdenv.mkDerivation rec {
name = "${baseName}-${version}";
@@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
mv -v ${baseName} $out/bin
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "Select a region with mouse and prints geometry information (x/y/w/h)";
homepage = "https://bbs.archlinux.org/viewtopic.php?pid=660837";
maintainers = with maintainers; [ obadz ];
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv
{ lib, stdenv
, cmake
, fetchFromGitHub
, i3
@@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ i3 jsoncpp libsigcxx libX11 libxkbfile ];
meta = with stdenv.lib; {
meta = with lib; {
description = "Switch your X keyboard layouts from the command line(i3 edition)";
homepage = "https://github.com/Zebradil/xkb-switch-i3";
license = licenses.gpl3Plus;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake, libX11, libxkbfile }:
{ lib, stdenv, fetchFromGitHub, cmake, libX11, libxkbfile }:
stdenv.mkDerivation rec {
pname = "xkb-switch";
@@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ];
buildInputs = [ libX11 libxkbfile ];
meta = with stdenv.lib; {
meta = with lib; {
description = "Switch your X keyboard layouts from the command line";
homepage = "https://github.com/ierton/xkb-switch";
license = licenses.gpl2Plus;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, perl, libX11 }:
{ lib, stdenv, fetchurl, perl, libX11 }:
stdenv.mkDerivation rec {
name = "xkbset-0.5";
@@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
rm -f $out/bin/xkbset-gui
'';
meta = with stdenv.lib; {
meta = with lib; {
homepage = "http://faculty.missouri.edu/~stephen/software/#xkbset";
description = "Program to help manage many of XKB features of X window";
maintainers = with maintainers; [ drets ];
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, xorg, boost, cmake, gtest }:
{ lib, stdenv, fetchFromGitHub, xorg, boost, cmake, gtest }:
stdenv.mkDerivation rec {
pname = "xlayoutdisplay";
@@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
substituteInPlace CMakeLists.txt --replace "set(Boost_USE_STATIC_LIBS ON)" ""
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "Detects and arranges linux display outputs, using XRandR for detection and xrandr for arrangement";
homepage = "https://github.com/alex-courtis/xlayoutdisplay";
maintainers = with maintainers; [ dtzWill ];
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitLab, libX11, xorgproto }:
{ lib, stdenv, fetchFromGitLab, libX11, xorgproto }:
stdenv.mkDerivation {
name = "xmagnify-0.1.0";
@@ -14,7 +14,7 @@ stdenv.mkDerivation {
buildInputs = [ libX11 xorgproto ];
meta = with stdenv.lib; {
meta = with lib; {
description = "Tiny screen magnifier for X11";
homepage = "https://gitlab.com/amiloradovsky/magnify";
license = licenses.mit; # or GPL2+, optionally
+2 -2
View File
@@ -1,4 +1,4 @@
{ xorg, stdenv, libev, fetchFromGitHub, pkgconfig }:
{ xorg, lib, stdenv, libev, fetchFromGitHub, pkgconfig }:
stdenv.mkDerivation rec {
pname = "xmousepasteblock";
@@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
makeFlags = "PREFIX=$(out)";
buildInputs = with xorg; [ libX11 libXext libXi libev ];
nativeBuildInputs = [ pkgconfig ];
meta = with stdenv.lib; {
meta = with lib; {
description = "Middle mouse button primary X selection/clipboard paste disabler";
homepage = "https://github.com/milaq/XMousePasteBlock";
license = stdenv.lib.licenses.gpl2;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, pkg-config, xorg, libconfig }:
{ lib, stdenv, fetchFromGitHub, pkg-config, xorg, libconfig }:
stdenv.mkDerivation rec {
pname = "xob";
@@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
makeFlags = [ "prefix=$(out)" ];
meta = with stdenv.lib; {
meta = with lib; {
description = "A lightweight overlay bar for the X Window System";
longDescription = ''
A lightweight configurable overlay volume/backlight/progress/anything bar
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, libX11 }:
{ lib, stdenv, fetchurl, libX11 }:
stdenv.mkDerivation rec {
pname = "xosview2";
@@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
buildInputs = [ libX11 ];
meta = with stdenv.lib; {
meta = with lib; {
description = "Lightweight program that gathers information from your operating system and displays it in graphical form";
longDescription = ''
xosview is a lightweight program that gathers information from your
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, libX11, libXinerama }:
{ lib, stdenv, fetchurl, libX11, libXinerama }:
stdenv.mkDerivation rec {
pname = "libfakeXinerama";
@@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
ln -s libXinerama.so.1 $out/lib/libXinerama.so
'';
meta = with stdenv.lib; {
meta = with lib; {
homepage = "http://xpra.org/";
description = "fakeXinerama for Xpra";
platforms = platforms.linux;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, autoreconfHook, libX11 }:
{ lib, stdenv, fetchFromGitHub, autoreconfHook, libX11 }:
stdenv.mkDerivation rec {
pname = "xrectsel";
@@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
make install
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "Print the geometry of a rectangular screen region";
homepage = "https://github.com/lolilolicon/xrectsel";
license = licenses.gpl3;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, scons, pkgconfig, libX11 }:
{ lib, stdenv, fetchFromGitHub, scons, pkgconfig, libX11 }:
stdenv.mkDerivation rec {
pname = "xsettingsd";
@@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
install -D -t "$out"/usr/share/man/man1 xsettingsd.1 dump_xsettings.1
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "Provides settings to X11 applications via the XSETTINGS specification";
homepage = "https://github.com/derat/xsettingsd";
license = licenses.bsd3;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, autoreconfHook, fetchFromGitLab, libX11, xauth, makeWrapper }:
{ lib, stdenv, autoreconfHook, fetchFromGitLab, libX11, xauth, makeWrapper }:
stdenv.mkDerivation rec {
pname = "xtrace";
@@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
--prefix PATH ':' "${xauth}/bin"
'';
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://salsa.debian.org/debian/xtrace";
description = "Tool to trace X11 protocol connections";
license = licenses.gpl2;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl }:
{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "xtruss";
@@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
sha256 = "1mm8k92zc318jk71wlf2r4rb723nd9lalhjl0pf48raiajb5ifgd";
};
meta = with stdenv.lib; {
meta = with lib; {
description = "easy-to-use X protocol tracing program";
homepage = "https://www.chiark.greenend.org.uk/~sgtatham/xtruss";
license = licenses.mit;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, imake, libXt, libXaw, libXtst
{ lib, stdenv, fetchurl, imake, libXt, libXaw, libXtst
, libXi, libXpm, xorgproto, gccmakedep, Xaw3d }:
stdenv.mkDerivation {
@@ -18,7 +18,7 @@ stdenv.mkDerivation {
"MANPATH=$(out)/man"
];
meta = with stdenv.lib; {
meta = with lib; {
description = "Virtual keyboard for X window system";
longDescription = ''
xvkbd is a virtual (graphical) keyboard program for X Window System which provides
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv
{ lib, stdenv
, fetchFromGitHub
, pkg-config
, autoreconfHook
@@ -27,7 +27,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config autoreconfHook ];
buildInputs = [ pixman xcbutilimage xcbutil libseccomp libjpeg libpng libXpm ];
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://github.com/stoeckmann/xwallpaper";
description = "Utility for setting wallpapers in X";
license = licenses.isc;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchbzr, xlibsWrapper }:
{ lib, stdenv, fetchbzr, xlibsWrapper }:
let
version = "4";
@@ -28,7 +28,7 @@ stdenv.mkDerivation {
mv */xwinwrap $out/bin
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "A utility that allows you to use an animated X window as the wallpaper";
longDescription = ''
XWinWrap is a small utility written a loooong time ago that allowed you to