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
{ lib, stdenv
, fetchFromGitHub
, cmake
, pkg-config
@@ -86,7 +86,7 @@ stdenv.mkDerivation rec {
install -Dm755 -t $out/bin amber image_diff
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "Multi-API shader test framework";
homepage = "https://github.com/google/amber";
license = licenses.asl20;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake, boost165, pkg-config, guile,
{ lib, stdenv, fetchFromGitHub, cmake, boost165, pkg-config, guile,
eigen, libpng, python, libGLU, qt4, openexr, openimageio,
opencolorio, xercesc, ilmbase, osl, seexpr, makeWrapper
}:
@@ -48,7 +48,7 @@ in stdenv.mkDerivation rec {
"-DUSE_SSE42=ON"
];
meta = with stdenv.lib; {
meta = with lib; {
description = "Open source, physically-based global illumination rendering engine";
homepage = "https://appleseedhq.net/";
maintainers = with maintainers; [ hodapp ];
+1 -1
View File
@@ -114,7 +114,7 @@ stdenv.mkDerivation rec {
mv $out/ref $out/share/argyllcms
'';
meta = with stdenv.lib; {
meta = with lib; {
homepage = "http://www.argyllcms.com";
description = "Color management system (compatible with ICC)";
license = licenses.gpl3;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, fetchurl, fetchpatch
{ lib, stdenv, fetchFromGitHub, fetchurl, fetchpatch
, autoreconfHook, bison, glm, yacc, flex
, freeglut, ghostscriptX, imagemagick, fftw
, boehmgc, libGLU, libGL, mesa, ncurses, readline, gsl, libsigsegv
@@ -76,7 +76,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
meta = with stdenv.lib; {
meta = with lib; {
description = "A tool for programming graphics intended to replace Metapost";
license = licenses.gpl3Plus;
maintainers = [ maintainers.raskin maintainers.peti ];
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl }:
{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
version = "0.99";
@@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
hardeningDisable = [ "format" ];
meta = with stdenv.lib; {
meta = with lib; {
description = "GNU barcode generator";
maintainers = with maintainers; [ raskin ];
platforms = platforms.linux; # Maybe other non-darwin Unix
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, python, pkgconfig, imagemagick, wafHook }:
{ lib, stdenv, fetchFromGitHub, python, pkgconfig, imagemagick, wafHook }:
stdenv.mkDerivation rec {
pname = "blockhash";
@@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ python pkgconfig wafHook ];
buildInputs = [ imagemagick ];
meta = with stdenv.lib; {
meta = with lib; {
homepage = "http://blockhash.io/";
description = ''
This is a perceptual image hash calculation tool based on algorithm
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, pkgconfig, cmake, gdk-pixbuf, libGL, mesa }:
{ lib, stdenv, fetchFromGitHub, pkgconfig, cmake, gdk-pixbuf, libGL, mesa }:
stdenv.mkDerivation rec {
pname = "blur-effect";
@@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
mesa
];
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://github.com/sonald/blur-effect";
description = "Off-screen image blurring utility using OpenGL ES 3.0";
license = licenses.gpl3;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, libpng, bison, flex, ffmpeg_3, icu }:
{ lib, stdenv, fetchFromGitHub, libpng, bison, flex, ffmpeg_3, icu }:
stdenv.mkDerivation rec {
pname = "cfdg";
@@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
cp *.txt $out/share/doc/${pname}-${version}
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "Context-free design grammar - a tool for graphics generation";
maintainers = with maintainers; [ raskin ];
platforms = platforms.linux;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, cmake, imagemagick }:
{ lib, stdenv, fetchurl, cmake, imagemagick }:
stdenv.mkDerivation {
pname = "cuneiform";
@@ -24,7 +24,7 @@ stdenv.mkDerivation {
nativeBuildInputs = [ cmake ];
meta = with stdenv.lib; {
meta = with lib; {
description = "Multi-language OCR system";
homepage = "https://launchpad.net/cuneiform-linux";
license = licenses.bsd3;
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake, python3, git }:
{ lib, stdenv, fetchFromGitHub, cmake, python3, git }:
stdenv.mkDerivation rec {
pname = "directx-shader-compiler";
@@ -40,7 +40,7 @@ stdenv.mkDerivation rec {
cp -r $src/include/dxc $dev/include/
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "A compiler to compile HLSL programs into DXIL and SPIR-V";
homepage = "https://github.com/microsoft/DirectXShaderCompiler";
platforms = with platforms; linux ++ darwin;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, jre }:
{ lib, stdenv, fetchurl, jre }:
stdenv.mkDerivation rec {
name = "ditaa-0.11.0";
@@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
chmod a+x "$out/bin/ditaa"
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "Convert ascii art diagrams into proper bitmap graphics";
homepage = "https://github.com/stathissideris/ditaa";
license = licenses.lgpl3;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl }:
{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "dpic";
@@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
# The prefix passed to configure is not used.
makeFlags = [ "DESTDIR=$(out)" ];
meta = with stdenv.lib; {
meta = with lib; {
description = "An implementation of the pic little language for creating drawings";
homepage = "https://ece.uwaterloo.ca/~aplevich/dpic/";
license = licenses.bsd2;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, libXt, libXaw, libXres, utilmacros }:
{ lib, stdenv, fetchurl, pkgconfig, libXt, libXaw, libXres, utilmacros }:
stdenv.mkDerivation rec {
name = "editres-1.0.7";
@@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
hardeningDisable = [ "format" ];
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://cgit.freedesktop.org/xorg/app/editres/";
description = "A dynamic resource editor for X Toolkit applications";
license = licenses.mit;
@@ -1,4 +1,4 @@
{ stdenv, fetchurl
{ lib, stdenv, fetchurl
, boost, freeglut, glew, gsl, lcms2, libpng, libtiff, libGLU, libGL, vigra
, help2man, pkgconfig, perl, texlive }:
@@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
meta = with stdenv.lib; {
meta = with lib; {
homepage = "http://enblend.sourceforge.net/";
description = "Blends away the seams in a panoramic image mosaic using a multiresolution spline";
license = licenses.gpl2;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, gnuplot, ruby }:
{ lib, stdenv, fetchurl, gnuplot, ruby }:
stdenv.mkDerivation {
name = "eplot-2.07";
@@ -28,7 +28,7 @@ stdenv.mkDerivation {
sed -i -e "s|gnuplot -persist|${gnuplot}/bin/gnuplot -persist|" "$out/bin/eplot"
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "Create plots quickly with gnuplot";
longDescription = ''
eplot ("easy gnuplot") is a ruby script which allows to pipe data easily
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl }:
{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
version = "3.08";
@@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
patches = [ ./gcc43.patch ];
meta = with stdenv.lib; {
meta = with lib; {
description = "A utility to create or extract preview images in EPS files, fix bounding boxes and convert to bitmaps";
homepage = "http://pages.cs.wisc.edu/~ghost/gsview/epstool.htm";
license = licenses.gpl2;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, libexif, popt, libintl }:
{ lib, stdenv, fetchurl, pkgconfig, libexif, popt, libintl }:
stdenv.mkDerivation rec {
name = "exif-0.6.21";
@@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libexif popt libintl ];
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://libexif.github.io";
description = "A utility to read and manipulate EXIF data in digital photographs";
platforms = platforms.unix;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub }:
{ lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "exifprobe";
@@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
rm -r $out/usr
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "Tool for reading EXIF data from image files produced by digital cameras";
homepage = "https://github.com/hfiguiere/exifprobe";
license = licenses.bsd2;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, python2Packages }:
{ lib, stdenv, fetchFromGitHub, python2Packages }:
stdenv.mkDerivation rec {
pname = "facedetect";
@@ -27,7 +27,7 @@ stdenv.mkDerivation rec {
wrapPythonPrograms
'';
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://www.thregr.org/~wavexx/software/facedetect/";
description = "A simple face detector for batch processing";
license = licenses.gpl2Plus;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, getopt, libjpeg, libpng12, libungif }:
{ lib, stdenv, fetchurl, getopt, libjpeg, libpng12, libungif }:
stdenv.mkDerivation rec {
name = "fbv-1.0b";
@@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
mkdir -p $out/{bin,man/man1}
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "View pictures on a linux framebuffer device";
homepage = "http://s-tech.elsat.net.pl/fbv/";
license = licenses.gpl2;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, makeWrapper, gawk
{ lib, stdenv, fetchFromGitHub, makeWrapper, gawk
, makeFontsConf, freefont_ttf, gnuplot, perl, perlPackages
}:
@@ -46,7 +46,7 @@ perlPackages.buildPerlPackage rec {
completions/zsh/_feedgnuplot
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "General purpose pipe-oriented plotting tool";
homepage = "https://github.com/dkogan/feedgnuplot/";
license = with licenses; [ artistic1 gpl1Plus ];
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, unzip, makeWrapper, perlPackages
{ lib, stdenv, fetchurl, unzip, makeWrapper, perlPackages
, coreutils, zip, imagemagick, pngcrush, lcms2
, facedetect, fbida }:
@@ -36,7 +36,7 @@ stdenv.mkDerivation rec {
[ coreutils zip imagemagick pngcrush lcms2 facedetect fbida ]}"
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "Static photo gallery generator";
homepage = "http://www.thregr.org/~wavexx/software/fgallery/";
license = licenses.gpl2;
+2 -2
View File
@@ -1,4 +1,4 @@
{stdenv, fetchFromGitHub, zlib, libpng, libxml2, libjpeg }:
{lib, stdenv, fetchFromGitHub, zlib, libpng, libxml2, libjpeg }:
stdenv.mkDerivation rec {
pname = "flam3";
@@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
buildInputs = [ zlib libpng libxml2 libjpeg ];
meta = with stdenv.lib; {
meta = with lib; {
description = "Cosmic recursive fractal flames";
homepage = "https://flam3.com/";
maintainers = [ maintainers.nand0p ];
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, libxml2, gtk2 }:
{ lib, stdenv, fetchurl, pkgconfig, libxml2, gtk2 }:
stdenv.mkDerivation rec {
version = "2.1.11";
@@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
hardeningDisable = [ "format" ];
meta = with stdenv.lib; {
meta = with lib; {
description = "Visualization program for exploring high-dimensional data";
homepage = "http://www.ggobi.org/";
license = licenses.cpl10;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, rustPlatform, fetchFromGitHub, pkgconfig }:
{ lib, stdenv, rustPlatform, fetchFromGitHub, pkgconfig }:
rustPlatform.buildRustPackage rec {
pname = "gifski";
@@ -15,7 +15,7 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [ pkgconfig ];
meta = with stdenv.lib; {
meta = with lib; {
description = "GIF encoder based on libimagequant (pngquant)";
homepage = "https://gif.ski/";
license = licenses.agpl3;
+2 -2
View File
@@ -1,4 +1,4 @@
{stdenv, fetchgit, cmake, libGLU, libGL, xorg }:
{lib, stdenv, fetchgit, cmake, libGLU, libGL, xorg }:
stdenv.mkDerivation rec {
pname = "glee";
@@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
sed -i 's/readme/Readme/' cmake_install.cmake
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "GL Easy Extension Library";
homepage = "https://sourceforge.net/p/glee/glee/";
maintainers = with maintainers; [ nand0p ];
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, pkgconfig, libjpeg, libpng, xorg, libX11, libGL, libdrm,
{ lib, stdenv, fetchFromGitHub, pkgconfig, libjpeg, libpng, xorg, libX11, libGL, libdrm,
python27, wayland, udev, mesa, wafHook }:
stdenv.mkDerivation {
@@ -19,7 +19,7 @@ stdenv.mkDerivation {
wafConfigureFlags = ["--with-flavors=x11-gl,x11-glesv2,drm-gl,drm-glesv2,wayland-gl,wayland-glesv2"];
meta = with stdenv.lib; {
meta = with lib; {
description = "OpenGL (ES) 2.0 benchmark";
homepage = "https://github.com/glmark2/glmark2";
license = licenses.gpl3Plus;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, libGL, libX11 }:
{ lib, stdenv, fetchurl, libGL, libX11 }:
stdenv.mkDerivation rec {
pname = "glxinfo";
@@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
install -Dm 555 -t $out/bin glx{info,gears} es2{_info,gears} eglinfo
";
meta = with stdenv.lib; {
meta = with lib; {
description = "Test utilities for OpenGL";
homepage = "https://www.mesa3d.org/";
license = licenses.mit;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv
{ lib, stdenv
, fetchurl
, cmake
, ninja
@@ -47,7 +47,7 @@ stdenv.mkDerivation rec {
"-DENABLE_DYNAMIC_LINKING=ON"
];
meta = with stdenv.lib; {
meta = with lib; {
description = "Open and full-featured framework for image processing";
homepage = "https://gmic.eu/";
license = licenses.cecill20;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, perlPackages, fetchurl }:
{ lib, stdenv, perlPackages, fetchurl }:
perlPackages.buildPerlPackage {
pname = "Graph-Easy";
@@ -8,7 +8,7 @@ perlPackages.buildPerlPackage {
sha256 = "d4a2c10aebef663b598ea37f3aa3e3b752acf1fbbb961232c3dbe1155008d1fa";
};
meta = with stdenv.lib; {
meta = with lib; {
description = "Render/convert graphs in/from various formats";
license = licenses.gpl1;
platforms = platforms.unix;
+2 -2
View File
@@ -1,6 +1,6 @@
{ rev, sha256, version }:
{ stdenv, fetchFromGitLab, autoreconfHook, pkgconfig, cairo, expat, flex
{ lib, stdenv, fetchFromGitLab, autoreconfHook, pkgconfig, cairo, expat, flex
, fontconfig, gd, gettext, gts, libdevil, libjpeg, libpng, libtool, pango
, yacc, fetchpatch, xorg ? null, ApplicationServices ? null }:
@@ -81,7 +81,7 @@ stdenv.mkDerivation {
enableParallelBuilding = true;
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://graphviz.org";
description = "Graph visualization tools";
license = licenses.epl10;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cairo, libjpeg, meson, ninja, wayland, pkgconfig, scdoc, wayland-protocols }:
{ lib, stdenv, fetchFromGitHub, cairo, libjpeg, meson, ninja, wayland, pkgconfig, scdoc, wayland-protocols }:
stdenv.mkDerivation rec {
pname = "grim";
@@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
wayland-protocols
];
meta = with stdenv.lib; {
meta = with lib; {
description = "Grab images from a Wayland compositor";
homepage = "https://github.com/emersion/grim";
license = licenses.mit;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake, pkg-config
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config
, gtk, glib, pcre, libappindicator, libpthreadstubs, libXdmcp
, libxkbcommon, epoxy, at-spi2-core, dbus, libdbusmenu
, wrapGAppsHook
@@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
dbus libdbusmenu
];
meta = with stdenv.lib; {
meta = with lib; {
description = "Desktop annotation tool";
longDescription = ''
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, SDL }:
{ lib, stdenv, fetchurl, SDL }:
stdenv.mkDerivation rec {
pname = "ibniz";
@@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
cp ibniz $out/bin
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "Virtual machine designed for extremely compact low-level audiovisual programs";
homepage = "http://www.pelulamu.net/ibniz/";
license = licenses.zlib;
@@ -1,4 +1,4 @@
{ stdenv
{ lib, stdenv
, fetchurl
, zlib
, libpng
@@ -30,7 +30,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
meta = with stdenv.lib; {
meta = with lib; {
description = "A raster image scaling and processing utility";
homepage = "https://entropymine.com/imageworsener/";
changelog = "https://github.com/jsummers/${pname}/blob/${version}/changelog.txt";
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, makeWrapper, curl, jq, gnugrep, libnotify, scrot, which, xclip }:
{ lib, stdenv, fetchFromGitHub, makeWrapper, curl, jq, gnugrep, libnotify, scrot, which, xclip }:
let deps = stdenv.lib.makeBinPath [ curl jq gnugrep libnotify scrot which xclip ];
in stdenv.mkDerivation rec {
@@ -19,7 +19,7 @@ in stdenv.mkDerivation rec {
wrapProgram $out/bin/imgur-screenshot --prefix PATH ':' ${deps}
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "A tool for easy screencapping and uploading to imgur";
homepage = "https://github.com/jomo/imgur-screenshot/";
platforms = platforms.linux;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, bash, curl, xsel }:
{ lib, stdenv, fetchFromGitHub, bash, curl, xsel }:
stdenv.mkDerivation rec {
pname = "imgurbash2";
@@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
chmod +x $out/bin/imgurbash2
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "A shell script that uploads images to imgur";
license = licenses.mit;
platforms = platforms.linux;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, fetchpatch, libjpeg }:
{ lib, stdenv, fetchurl, fetchpatch, libjpeg }:
stdenv.mkDerivation rec {
pname = "jhead";
@@ -37,7 +37,7 @@ stdenv.mkDerivation rec {
cp -v *.txt $out/share/doc/${pname}-${version}
'';
meta = with stdenv.lib; {
meta = with lib; {
homepage = "http://www.sentex.net/~mwandel/jhead/";
description = "Exif Jpeg header manipulation tool";
license = licenses.publicDomain;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake, git, glibc }:
{ lib, stdenv, fetchFromGitHub, cmake, git, glibc }:
stdenv.mkDerivation rec {
version = "2019-08-20";
@@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake git ];
buildInputs = stdenv.lib.optionals stdenv.isLinux [ glibc.static ];
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://github.com/dropbox/lepton";
description = "A tool to losslessly compress JPEGs";
license = licenses.asl20;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, SDL2, ftgl, pkgconfig, libpng, libjpeg, pcre, SDL2_image, glew
{ lib, stdenv, fetchurl, SDL2, ftgl, pkgconfig, libpng, libjpeg, pcre, SDL2_image, glew
, libGLU, libGL, boost, glm, freetype }:
stdenv.mkDerivation rec {
@@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
buildInputs = [ glew SDL2 ftgl libpng libjpeg pcre SDL2_image libGLU libGL boost
glm freetype ];
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://logstalgia.io/";
description = "Website traffic visualization tool";
license = licenses.gpl3Plus;
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake, boost165, pkg-config, python36
{ lib, stdenv, fetchFromGitHub, cmake, boost165, pkg-config, python36
, tbb, openimageio, libjpeg, libpng, zlib, libtiff, ilmbase
, freetype, openexr, libXdmcp, libxkbcommon, epoxy, at-spi2-core
, dbus, doxygen, qt5, c-blosc, libGLU, gnome3, dconf, gtk3, pcre
@@ -76,7 +76,7 @@ in stdenv.mkDerivation {
--prefix GIO_EXTRA_MODULES : "${stdenv.lib.getLib dconf}/lib/gio/modules"
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "Open source, physically based, unbiased rendering engine";
homepage = "https://luxcorerender.org/";
maintainers = with maintainers; [ hodapp ];
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake, pkgconfig
{ lib, stdenv, fetchFromGitHub, cmake, pkgconfig
, zlib, libpng, libjpeg, libGLU, libGL, glm
, libX11, libXext, libXfixes, libXrandr, libXcomposite, slop, icu
}:
@@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
doCheck = false;
meta = with stdenv.lib; {
meta = with lib; {
inherit (src.meta) homepage;
description = "A command-line screenshot utility";
longDescription = ''
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, freeglut, glew, libGL, libGLU, libX11, libXext, mesa, pkg-config, wayland }:
{ lib, stdenv, fetchurl, freeglut, glew, libGL, libGLU, libX11, libXext, mesa, pkg-config, wayland }:
stdenv.mkDerivation rec {
pname = "mesa-demos";
@@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
meta = with stdenv.lib; {
meta = with lib; {
description = "Collection of demos and test programs for OpenGL and Mesa";
homepage = "https://www.mesa3d.org/";
license = licenses.mit;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, qmake, qtbase, qttools, substituteAll, libGLU, wrapQtAppsHook, fetchpatch }:
{ lib, stdenv, fetchFromGitHub, qmake, qtbase, qttools, substituteAll, libGLU, wrapQtAppsHook, fetchpatch }:
stdenv.mkDerivation {
pname = "nifskope";
@@ -59,7 +59,7 @@ stdenv.mkDerivation {
runHook postInstall
'';
meta = with stdenv.lib; {
meta = with lib; {
homepage = "http://niftools.sourceforge.net/wiki/NifSkope";
description = "A tool for analyzing and editing NetImmerse/Gamebryo '*.nif' files";
maintainers = with maintainers; [ eelco ma27 ];
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, glib, libxml2, flex, bison, vips, gnome2,
{ lib, stdenv, fetchurl, pkgconfig, glib, libxml2, flex, bison, vips, gnome2,
fftw, gsl, goffice, libgsf }:
stdenv.mkDerivation rec {
@@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
gnome2.gtk fftw gsl goffice libgsf
];
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://github.com/libvips/nip2";
description = "Graphical user interface for VIPS image processing system";
license = licenses.gpl2Plus;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, imagemagick, libpng }:
{ lib, stdenv, fetchurl, imagemagick, libpng }:
stdenv.mkDerivation {
pname = "optar";
@@ -25,7 +25,7 @@ stdenv.mkDerivation {
mkdir -p $out/bin
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "OPTical ARchiver - it's a codec for encoding data on paper";
homepage = "http://ronja.twibright.com/optar/";
license = licenses.gpl2;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, libpng
{ lib, stdenv, fetchurl, libpng
, static ? stdenv.hostPlatform.isStatic
}:
@@ -34,7 +34,7 @@ stdenv.mkDerivation rec {
mv "$out"/bin/optipng{,.exe}
'' else null;
meta = with stdenv.lib; {
meta = with lib; {
homepage = "http://optipng.sourceforge.net/";
description = "A PNG optimizer";
license = licenses.zlib;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchCrate, rustPlatform }:
{ lib, stdenv, fetchCrate, rustPlatform }:
rustPlatform.buildRustPackage rec {
version = "4.0.2";
@@ -13,7 +13,7 @@ rustPlatform.buildRustPackage rec {
doCheck = !stdenv.isAarch64 && !stdenv.isDarwin;
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://github.com/shssoichiro/oxipng";
description = "A multithreaded lossless PNG compression optimizer";
license = licenses.mit;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkgconfig
, cairo, gtk2, poppler }:
stdenv.mkDerivation rec {
@@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [ cairo poppler gtk2 ];
meta = with stdenv.lib; {
meta = with lib; {
description = "PDF converter to SVG format";
homepage = "http://www.cityinthesky.co.uk/opensource/pdf2svg";
license = licenses.gpl2;
+2 -2
View File
@@ -1,4 +1,4 @@
{stdenv, fetchurl, unzip, python, makeWrapper, ghostscript, pngnq, pillow, djvulibre
{lib, stdenv, fetchurl, unzip, python, makeWrapper, ghostscript, pngnq, pillow, djvulibre
, optipng, unrar}:
stdenv.mkDerivation {
@@ -42,7 +42,7 @@ stdenv.mkDerivation {
--prefix PATH : ${stdenv.lib.makeBinPath [ ghostscript pngnq djvulibre unrar optipng ]}
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "PDF/DJVU to ebook format converter";
homepage = "https://www.mobileread.com/forums/showthread.php?t=21906";
license = licenses.mit;
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, python2Packages, imagemagick, exiftool, file, ghostscript }:
{ lib, stdenv, fetchFromGitHub, python2Packages, imagemagick, exiftool, file, ghostscript }:
python2Packages.buildPythonApplication rec {
pname = "pdf-redact-tools";
@@ -19,7 +19,7 @@ python2Packages.buildPythonApplication rec {
propagatedBuildInputs = [ imagemagick exiftool ghostscript ];
meta = with stdenv.lib; {
meta = with lib; {
description = "Redact and strip metadata from documents before publishing";
longDescription = ''
PDF Redact Tools helps with securely redacting and stripping metadata
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, pkgconfig, meson, vala, ninja
{ lib, stdenv, fetchFromGitHub, pkgconfig, meson, vala, ninja
, gtk3, poppler, wrapGAppsHook }:
stdenv.mkDerivation rec {
@@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig meson ninja wrapGAppsHook vala ];
buildInputs = [ gtk3 poppler ];
meta = with stdenv.lib; {
meta = with lib; {
description = "Edit metadata found in PDFs";
license = licenses.gpl3;
maintainers = with maintainers; [ leenaars ];
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake, freeimage }:
{ lib, stdenv, fetchFromGitHub, cmake, freeimage }:
stdenv.mkDerivation rec {
pname = "perceptualdiff";
@@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ];
buildInputs = [ freeimage ];
meta = with stdenv.lib; {
meta = with lib; {
description = "A program that compares two images using a perceptually based image metric";
homepage = "https://github.com/myint/perceptualdiff";
license = licenses.gpl2;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, mkDerivation, fetchurl, cmake, pkgconfig, darwin
{ lib, stdenv, mkDerivation, fetchurl, cmake, pkgconfig, darwin
, openexr, zlib, imagemagick, libGLU, libGL, freeglut, fftwFloat
, fftw, gsl, libexif, perl, opencv2, qtbase, netpbm
}:
@@ -37,7 +37,7 @@ mkDerivation rec {
patches = [ ./threads.patch ./pfstools.patch ./pfsalign.patch ];
meta = with stdenv.lib; {
meta = with lib; {
homepage = "http://pfstools.sourceforge.net/";
description = "Toolkit for manipulation of HDR images";
platforms = platforms.linux;
+2 -2
View File
@@ -1,4 +1,4 @@
{stdenv, fetchurl, zlib, libX11, libpng}:
{lib, stdenv, fetchurl, zlib, libX11, libpng}:
stdenv.mkDerivation {
name = "ploticus-2.42";
@@ -21,7 +21,7 @@ stdenv.mkDerivation {
ln -sf pl.1 "$out"/man/man1/ploticus.1
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "A non-interactive software package for producing plots and charts";
longDescription = ''Ploticus is a free, GPL'd, non-interactive
software package for producing plots, charts, and graphics from
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, libpng, zlib }:
{ lib, stdenv, fetchurl, pkgconfig, libpng, zlib }:
stdenv.mkDerivation rec {
name = "pngnq-1.1";
@@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
sed -i '/png.h/a \#include <zlib.h>' src/rwpng.c
'';
meta = with stdenv.lib; {
meta = with lib; {
homepage = "http://pngnq.sourceforge.net/";
description = "A PNG quantizer";
license = licenses.bsd3;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, pkgconfig, libpng, zlib, lcms2 }:
{ lib, stdenv, fetchFromGitHub, pkgconfig, libpng, zlib, lcms2 }:
stdenv.mkDerivation rec {
pname = "pngquant";
@@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libpng zlib lcms2 ];
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://pngquant.org/";
description = "A tool to convert 24/32-bit RGBA PNGs to 8-bit palette with alpha channel preserved";
platforms = platforms.unix;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, autoconf, automake, boost
{ lib, stdenv, fetchFromGitHub, autoconf, automake, boost
, zlib, libpng, libjpeg, libtiff, xlibsWrapper, SDL
}:
@@ -40,7 +40,7 @@ stdenv.mkDerivation rec {
done
'';
meta = with stdenv.lib; {
meta = with lib; {
homepage = "http://www.povray.org/";
description = "Persistence of Vision Raytracer";
license = licenses.free;
+1 -1
View File
@@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
substituteInPlace config/pstoedit.pc.in --replace '@LIBPNG_LDFLAGS@' ""
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "Translates PostScript and PDF graphics into other vector formats";
homepage = "https://sourceforge.net/projects/pstoedit/";
license = licenses.gpl2;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub }:
{ lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation {
pname = "qrcode-git";
@@ -19,7 +19,7 @@ stdenv.mkDerivation {
cp DOCUMENTATION LICENCE "$out/share/doc/qrcode"
'';
meta = with stdenv.lib; {
meta = with lib; {
description = ''A small QR-code tool'';
license = licenses.gpl3Plus;
maintainers = with maintainers; [ raskin ];
+2 -2
View File
@@ -1,4 +1,4 @@
{ mkDerivation, stdenv, fetchFromGitHub, qmake, qtbase }:
{ mkDerivation, lib, stdenv, fetchFromGitHub, qmake, qtbase }:
mkDerivation {
pname = "rocket";
@@ -21,7 +21,7 @@ mkDerivation {
cp -r editor/editor $out/bin/
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "A tool for synchronizing music and visuals in demoscene productions";
homepage = "https://github.com/rocket/rocket";
license = licenses.zlib;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig
{ lib, stdenv, fetchurl, pkgconfig
, dbus, libconfuse, libjpeg, sane-backends, systemd }:
stdenv.mkDerivation rec {
@@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
doCheck = true;
meta = with stdenv.lib; {
meta = with lib; {
description = "Scanner button daemon";
longDescription = ''
scanbd polls a scanner's buttons, looking for button presses, function
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, giblib, xlibsWrapper, autoreconfHook
{ lib, stdenv, fetchFromGitHub, giblib, xlibsWrapper, autoreconfHook
, autoconf-archive, libXfixes, libXcursor, libXcomposite }:
stdenv.mkDerivation rec {
@@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ autoreconfHook autoconf-archive ];
buildInputs = [ giblib xlibsWrapper libXfixes libXcursor libXcomposite ];
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://github.com/resurrecting-open-source-projects/scrot";
description = "A command-line screen capture utility";
platforms = platforms.linux;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, libpng, netpbm }:
{ lib, stdenv, fetchurl, libpng, netpbm }:
stdenv.mkDerivation rec {
pname = "sng";
@@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
"--with-rgbtxt=${netpbm.out}/share/netpbm/misc/rgb.txt"
];
meta = with stdenv.lib; {
meta = with lib; {
description = "Minilanguage designed to represent the entire contents of a PNG file in an editable form";
homepage = "http://sng.sourceforge.net/";
license = licenses.zlib;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake, python3 }:
{ lib, stdenv, fetchFromGitHub, cmake, python3 }:
stdenv.mkDerivation rec {
pname = "spirv-cross";
@@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake python3 ];
meta = with stdenv.lib; {
meta = with lib; {
description = "A tool designed for parsing and converting SPIR-V to other shader languages";
homepage = "https://github.com/KhronosGroup/SPIRV-Cross";
platforms = platforms.linux;
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, qt4, qmake4Hook, unzip, libGLU, makeWrapper }:
{ lib, stdenv, fetchurl, qt4, qmake4Hook, unzip, libGLU, makeWrapper }:
stdenv.mkDerivation {
@@ -37,7 +37,7 @@ stdenv.mkDerivation {
wrapProgram "$out/bin/structure-synth" --run "cd $out/share"
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "Application for generating 3D structures by specifying a design grammar";
homepage = "http://structuresynth.sourceforge.net";
maintainers = with maintainers; [ hodapp ];
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, rustPlatform }:
{ lib, stdenv, fetchFromGitHub, rustPlatform }:
rustPlatform.buildRustPackage rec {
pname = "svgcleaner";
@@ -13,7 +13,7 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "1xhwlsq9b6cnafbapm5jf48zqdx5k2vxlr701lh5f8nqvd7nxi6g";
meta = with stdenv.lib; {
meta = with lib; {
description = "A tool for tidying and optimizing SVGs";
homepage = "https://github.com/RazrFalcon/svgcleaner";
license = licenses.gpl2;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub
{ lib, stdenv, fetchFromGitHub
, libGL, libGLU, freeglut, libX11 }:
let
@@ -20,7 +20,7 @@ in stdenv.mkDerivation rec {
install -Dm755 twilight $out/bin/twilight
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "Redo of IRIX twilight backdrop in old school OpenGL";
homepage = src.meta.homepage;
license = licenses.mit;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, libav, libxslt }:
{ lib, stdenv, fetchurl, pkgconfig, libav, libxslt }:
stdenv.mkDerivation rec {
pname = "unpaper";
@@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libav libxslt ];
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://www.flameeyes.eu/projects/unpaper";
description = "Post-processing tool for scanned sheets of paper";
license = licenses.gpl2;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv
{ lib, stdenv
, pkgconfig
, glib
, libxml2
@@ -79,7 +79,7 @@ stdenv.mkDerivation rec {
NOCONFIGURE=1 ./autogen.sh
'';
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://libvips.github.io/libvips/";
description = "Image processing system for large images";
license = licenses.lgpl2Plus;
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake, writeText, vulkan-headers, jq }:
{ lib, stdenv, fetchFromGitHub, cmake, writeText, vulkan-headers, jq }:
stdenv.mkDerivation rec {
pname = "vulkan-extension-layer";
@@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
done
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "Layers providing Vulkan features when native support is unavailable";
homepage = "https://github.com/KhronosGroup/Vulkan-ExtensionLayer/";
platforms = platforms.linux;
@@ -71,7 +71,7 @@ stdenv.mkDerivation rec {
export XDG_CONFIG_DIRS=@out@/etc''${XDG_CONFIG_DIRS:+:''${XDG_CONFIG_DIRS}}
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "LunarG Vulkan Tools and Utilities";
longDescription = ''
Tools to aid in Vulkan development including useful layers, trace and
+1 -1
View File
@@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
"-DCMAKE_INSTALL_RPATH=${libraryPath}"
];
meta = with stdenv.lib; {
meta = with lib; {
description = "Khronos official Vulkan Tools and Utilities";
longDescription = ''
This project provides Vulkan tools and utilities that can assist
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, pkgconfig, libpng, xorg }:
{ lib, stdenv, fetchFromGitHub, pkgconfig, libpng, xorg }:
stdenv.mkDerivation rec {
pname = "xcur2png";
@@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
xorg.xorgproto
];
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://github.com/eworm-de/xcur2png/releases";
description = "Convert X cursors to PNG images";
license = licenses.gpl3;
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake, pkg-config, opencv, zlib
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, opencv, zlib
, libxml2, freetype, libjpeg, libtiff, swig, openexr
, ilmbase, boost165
, withPython ? true, python3
@@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
swig openexr ilmbase
] ++ stdenv.lib.optional withPython python3;
meta = with stdenv.lib; {
meta = with lib; {
description = "A free, open source raytracer";
homepage = "http://www.yafaray.org";
maintainers = with maintainers; [ hodapp ];
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, makeWrapper,
{ lib, stdenv, fetchFromGitHub, makeWrapper,
maim, slop, ffmpeg_3, byzanz, libnotify, xdpyinfo }:
stdenv.mkDerivation rec {
@@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
wrapProgram $out/bin/yaxg --prefix PATH : ${ stdenv.lib.makeBinPath [ maim slop ffmpeg_3 byzanz libnotify xdpyinfo ]}
'';
meta = with stdenv.lib; {
meta = with lib; {
inherit (src.meta) homepage;
description = "Yet Another X Grabber script";
longDescription = ''