Merge commit staging+systemd into closure-size
Many non-conflict problems weren't (fully) resolved in this commit yet.
This commit is contained in:
@@ -1,15 +1,24 @@
|
||||
{ stdenv, fetchurl, jam, unzip, libX11, libXxf86vm, libXrandr, libXinerama
|
||||
, libXrender, libXext, libtiff, libjpeg, libXScrnSaver, writeText
|
||||
, libXdmcp, libXau, lib }:
|
||||
|
||||
{ stdenv, fetchzip, jam, unzip, libX11, libXxf86vm, libXrandr, libXinerama
|
||||
, libXrender, libXext, libtiff, libjpeg, libpng, libXScrnSaver, writeText
|
||||
, libXdmcp, libXau, lib, openssl, zlib }:
|
||||
let
|
||||
version = "1.8.2";
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
name = "argyllcms-1.4.0";
|
||||
name = "argyllcms-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.argyllcms.com/Argyll_V1.4.0_src.zip";
|
||||
sha256 = "1a5i0972cjp6asmawmyzih2y4bv3i0qvf7p6z5lxnr199mq38cfk";
|
||||
src = fetchzip {
|
||||
# Kind of flacky URL, it was reaturning 406 and inconsistent binaries for a
|
||||
# while on me. It might be good to find a mirror
|
||||
url = "http://www.argyllcms.com/Argyll_V${version}_src.zip";
|
||||
sha256 = "0hnsciwak5chy4a421l8fz7amxzg8kbmy57a07dn460gdg6r63cy";
|
||||
|
||||
# The argyllcms web server doesn't like curl ...
|
||||
curlOpts = "--user-agent 'Mozilla/5.0'";
|
||||
};
|
||||
|
||||
patches = [ ./gcc5.patch ];
|
||||
|
||||
# The contents of this file comes from the Jamtop file from the
|
||||
# root of the ArgyllCMS distribution, rewritten to pick up Nixpkgs
|
||||
# library paths. When ArgyllCMS is updated, make sure that changes
|
||||
@@ -17,21 +26,30 @@ stdenv.mkDerivation rec {
|
||||
jamTop = writeText "argyllcms_jamtop" ''
|
||||
DESTDIR = "/" ;
|
||||
REFSUBDIR = "ref" ;
|
||||
|
||||
|
||||
# Keep this DESTDIR anchored to Jamtop. PREFIX is used literally
|
||||
ANCHORED_PATH_VARS = DESTDIR ;
|
||||
|
||||
|
||||
# Tell standalone libraries that they are part of Argyll:
|
||||
DEFINES += ARGYLLCMS ;
|
||||
|
||||
# Use libusb1 rather than libusb0 & libusb0-win32
|
||||
USE_LIBUSB1 = true ;
|
||||
|
||||
# Make the USB V1 library static
|
||||
LIBUSB_IS_DLL = false ;
|
||||
|
||||
# Set the libubs1 library name.
|
||||
LIBUSB1NAME = libusb-1A ;
|
||||
|
||||
# enable serial instruments & support
|
||||
USE_SERIAL = true ;
|
||||
|
||||
# enable fast serial instruments & support
|
||||
USE_FAST_SERIAL = true ; # (Implicit in USE_SERIAL too)
|
||||
|
||||
# enable USB instruments & support
|
||||
USE_USB = true ;
|
||||
|
||||
# enable dummy Demo Instrument (only if code is available)
|
||||
USE_DEMOINST = true ;
|
||||
|
||||
# Use ArgyllCMS version of libusb (deprecated - don't use)
|
||||
USE_LIBUSB = false ;
|
||||
|
||||
# For testing CCast
|
||||
DEFINES += CCTEST_PATTERN ;
|
||||
|
||||
JPEGLIB = ;
|
||||
JPEGINC = ;
|
||||
@@ -41,10 +59,22 @@ stdenv.mkDerivation rec {
|
||||
TIFFINC = ;
|
||||
HAVE_TIFF = true ;
|
||||
|
||||
PNGLIB = ;
|
||||
PNGINC = ;
|
||||
HAVE_PNG = true ;
|
||||
|
||||
ZLIB = ;
|
||||
ZINC = ;
|
||||
HAVE_Z = true ;
|
||||
|
||||
SSLLIB = ;
|
||||
SSLINC = ;
|
||||
HAVE_SSL = true ;
|
||||
|
||||
LINKFLAGS +=
|
||||
${lib.concatStringsSep " " (map (x: "-L${x}/lib") buildInputs)}
|
||||
-ldl -lrt -lX11 -lXext -lXxf86vm -lXinerama -lXrandr -lXau -lXdmcp -lXss
|
||||
-ljpeg -ltiff ;
|
||||
-ljpeg -ltiff -lpng -lssl ;
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ jam unzip ];
|
||||
@@ -52,27 +82,31 @@ stdenv.mkDerivation rec {
|
||||
preConfigure = ''
|
||||
cp ${jamTop} Jamtop
|
||||
substituteInPlace Makefile --replace "-j 3" "-j $NIX_BUILD_CORES"
|
||||
# Remove tiff and jpg to be sure the nixpkgs-provided ones are used
|
||||
rm -rf tiff jpg
|
||||
# Remove tiff, jpg and png to be sure the nixpkgs-provided ones are used
|
||||
rm -rf tiff jpg png
|
||||
'';
|
||||
|
||||
buildInputs = [
|
||||
libtiff libjpeg libX11 libXxf86vm libXrandr libXinerama libXext
|
||||
libXrender libXScrnSaver libXdmcp libXau
|
||||
buildInputs = [
|
||||
libtiff libjpeg libpng libX11 libXxf86vm libXrandr libXinerama libXext
|
||||
libXrender libXScrnSaver libXdmcp libXau openssl
|
||||
];
|
||||
|
||||
buildFlags = "PREFIX=$(out) all";
|
||||
|
||||
installFlags = "PREFIX=$(out)";
|
||||
|
||||
# Install udev rules, but remove lines that set up the udev-acl and plugdev
|
||||
# Install udev rules, but remove lines that set up the udev-acl
|
||||
# stuff, since that is handled by udev's own rules (70-udev-acl.rules)
|
||||
#
|
||||
# Move ref to a better place (there must be a way to make the install target
|
||||
# do that for us)
|
||||
postInstall = ''
|
||||
rm -v $out/bin/License.txt
|
||||
mkdir -p $out/etc/udev/rules.d
|
||||
sed -i '/udev-acl/d' libusb1/55-Argyll.rules
|
||||
sed -i '/plugdev/d' libusb1/55-Argyll.rules
|
||||
cp -v libusb1/55-Argyll.rules $out/etc/udev/rules.d/
|
||||
sed -i '/udev-acl/d' usb/55-Argyll.rules
|
||||
cp -v usb/55-Argyll.rules $out/etc/udev/rules.d/
|
||||
mkdir -p $out/share/
|
||||
mv $out/ref $out/share/argyllcms
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
Description: Fix FTBFS with GCC 5
|
||||
Author: James Cowgill <james410@cowgill.org.uk>
|
||||
Bug-Debian: https://bugs.debian.org/777779
|
||||
Forwarded: no
|
||||
---
|
||||
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
||||
--- a/icc/icc.h
|
||||
+++ b/icc/icc.h
|
||||
@@ -100,7 +100,11 @@
|
||||
#define CF64PREC "LL" /* Constant precision specifier */
|
||||
|
||||
#ifndef ATTRIBUTE_NORETURN
|
||||
+#ifdef _MSC_VER
|
||||
# define ATTRIBUTE_NORETURN __declspec(noreturn)
|
||||
+#else
|
||||
+# define ATTRIBUTE_NORETURN __attribute__((noreturn))
|
||||
+#endif
|
||||
#endif
|
||||
|
||||
#else /* !__STDC_VERSION__ */
|
||||
@@ -7,11 +7,11 @@ let
|
||||
s = # Generated upstream information
|
||||
rec {
|
||||
baseName="asymptote";
|
||||
version="2.32";
|
||||
version="2.35";
|
||||
name="${baseName}-${version}";
|
||||
hash="19cgn5158p42igjbp8lf6xdbh3yjhlkdm22m5lqrhibp09g06d90";
|
||||
url="mirror://sourceforge/project/asymptote/2.32/asymptote-2.32.src.tgz";
|
||||
sha256="19cgn5158p42igjbp8lf6xdbh3yjhlkdm22m5lqrhibp09g06d90";
|
||||
hash="11f28vxw0ybhvl7vxmqcdwvw7y6gz55ykw9ybgzb2px6lsvgag7z";
|
||||
url="mirror://sourceforge/asymptote/2.35/asymptote-2.35.src.tgz";
|
||||
sha256="11f28vxw0ybhvl7vxmqcdwvw7y6gz55ykw9ybgzb2px6lsvgag7z";
|
||||
};
|
||||
buildInputs = [
|
||||
freeglut ghostscriptX imagemagick fftw
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
a :
|
||||
let
|
||||
a @ { cmake, patchelf, imagemagick, ... } :
|
||||
let
|
||||
fetchurl = a.fetchurl;
|
||||
|
||||
version = "1.1.0";
|
||||
@@ -27,7 +27,7 @@ rec {
|
||||
export NIX_LDFLAGS="$NIX_LDFLAGS -ldl -L$out/lib"
|
||||
cmake .. -DCMAKE_BUILD_TYPE=debug -DCMAKE_INSTALL_PREFIX=$out -DDL_LIB=${libc.out}/lib
|
||||
'') ["minInit" "addInputs" "doUnpack" "defEnsureDir"];
|
||||
|
||||
|
||||
needLib64 = a.stdenv.system == "x86_64-linux";
|
||||
|
||||
postInstall = a.fullDepEntry(''
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
If user need access to more haskell package for building his
|
||||
diagrams, he simply has to pass these package through the
|
||||
extra packages function as follow in `config.nix`:
|
||||
|
||||
~~~
|
||||
diagrams-builder.override {
|
||||
extraPackages = self : [myHaskellPackage];
|
||||
}
|
||||
~~~
|
||||
*/
|
||||
|
||||
{ stdenv, ghcWithPackages, makeWrapper, diagrams-builder, extraPackages ? (self: []) }:
|
||||
|
||||
let
|
||||
|
||||
# Used same technique as for the yiCustom package.
|
||||
wrappedGhc = ghcWithPackages
|
||||
(self: [ diagrams-builder ] ++ extraPackages self);
|
||||
ghcVersion = wrappedGhc.version;
|
||||
|
||||
exeWrapper = backend : ''
|
||||
makeWrapper \
|
||||
"${diagrams-builder}/bin/diagrams-builder-${backend}" "$out/bin/diagrams-builder-${backend}" \
|
||||
--set NIX_GHC ${wrappedGhc}/bin/ghc \
|
||||
--set NIX_GHC_LIBDIR ${wrappedGhc}/lib/ghc-${ghcVersion}
|
||||
'';
|
||||
|
||||
backends = ["svg" "cairo" "ps"];
|
||||
|
||||
in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "diagrams-builder";
|
||||
|
||||
buildInputs = [ makeWrapper ];
|
||||
|
||||
buildCommand = with stdenv.lib;
|
||||
concatStrings (intersperse "\n" (map exeWrapper backends));
|
||||
|
||||
# Will be faster to build the wrapper locally then to fetch it from a binary cache.
|
||||
preferLocalBuild = true;
|
||||
meta = diagrams-builder.meta;
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
{stdenv, fetchurl, libdmtx, pkgconfig}:
|
||||
{stdenv, fetchurl, libdmtx, pkgconfig, imagemagick}:
|
||||
let
|
||||
s = # Generated upstream information
|
||||
rec {
|
||||
@@ -10,7 +10,7 @@ let
|
||||
sha256="1di8ymlziy9856abd6rb72z0zqzmrff4r3vql0q9r5sk5ax4s417";
|
||||
};
|
||||
buildInputs = [
|
||||
libdmtx pkgconfig
|
||||
libdmtx pkgconfig imagemagick
|
||||
];
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
{ stdenv, fetchurl, gnuplot, ruby }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "eplot-2.07";
|
||||
|
||||
# Upstream has been contacted (2015-03) regarding providing versioned
|
||||
# download URLs. Initial response was positive, but no action yet.
|
||||
src = fetchurl {
|
||||
url = "http://liris.cnrs.fr/christian.wolf/software/eplot/download/eplot";
|
||||
sha256 = "0y9x82i3sfpgxsqz2w42r6iad6ph7vxb7np1xbwapx5iipciclw5";
|
||||
};
|
||||
|
||||
ecSrc = fetchurl {
|
||||
url = "http://liris.cnrs.fr/christian.wolf/software/eplot/download/ec";
|
||||
sha256 = "0fg31g8mrcx14h2rjcf091cbd924n19z55iscaiflspifya30yhd";
|
||||
};
|
||||
|
||||
buildInputs = [ ruby ];
|
||||
|
||||
unpackPhase = "true";
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p "$out/bin"
|
||||
cp "$src" "$out/bin/eplot"
|
||||
cp "$ecSrc" "$out/bin/ec"
|
||||
chmod +x "$out/bin/"*
|
||||
|
||||
sed -i -e "s|gnuplot -persist|${gnuplot}/bin/gnuplot -persist|" "$out/bin/eplot"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Create plots quickly with gnuplot";
|
||||
longDescription = ''
|
||||
eplot ("easy gnuplot") is a ruby script which allows to pipe data easily
|
||||
through gnuplot and create plots quickly, which can be saved in
|
||||
postscript, PDF, PNG or EMF files. Plotting of multiple files into a
|
||||
single diagram is supported.
|
||||
|
||||
This package also includes the complementary 'ec' tool (say "extract
|
||||
column").
|
||||
'';
|
||||
homepage = http://liris.cnrs.fr/christian.wolf/software/eplot/;
|
||||
license = licenses.gpl2Plus;
|
||||
platforms = platforms.all;
|
||||
maintainers = [ maintainers.bjornfor ];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
{ stdenv, fetchurl, unzip, makeWrapper, perl, ImageExifTool, JSON
|
||||
, coreutils, zip, imagemagick, pngcrush, lcms2, fbida
|
||||
}:
|
||||
|
||||
# TODO: add optional dependencies (snippet from fgallery source):
|
||||
#
|
||||
# if(system("jpegoptim -V >/dev/null 2>&1")) {
|
||||
# $jpegoptim = 0;
|
||||
# }
|
||||
# if($facedet && system("facedetect -h >/dev/null 2>&1")) {
|
||||
# fatal("cannot run \"facedetect\" (see http://www.thregr.org/~wavexx/hacks/facedetect/)");
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "fgallery-1.7";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.thregr.org/~wavexx/software/fgallery/releases/${name}.zip";
|
||||
sha256 = "1iix6p8viwnsq3zn9vg99sx20nmgk2p5als3j1lk914nz3anvai4";
|
||||
};
|
||||
|
||||
buildInputs = [ unzip makeWrapper perl ImageExifTool JSON ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p "$out/bin"
|
||||
mkdir -p "$out/share/fgallery"
|
||||
|
||||
cp -r * "$out/share/fgallery"
|
||||
ln -s -r "$out/share/fgallery/fgallery" "$out/bin/fgallery"
|
||||
|
||||
# Don't preserve file attributes when copying files to output directories.
|
||||
# (fgallery copies parts of itself to each output directory, and without
|
||||
# this change the read-only nix store causes some bumps in the workflow.)
|
||||
sed -i -e "s|'cp'|'cp', '--no-preserve=all'|g" "$out/share/fgallery/fgallery"
|
||||
|
||||
wrapProgram "$out/share/fgallery/fgallery" \
|
||||
--set PERL5LIB "$PERL5LIB" \
|
||||
--set PATH "${stdenv.lib.makeSearchPath "bin"
|
||||
[ coreutils zip imagemagick pngcrush lcms2 fbida ]}"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Static photo gallery generator";
|
||||
homepage = http://www.thregr.org/~wavexx/software/fgallery/;
|
||||
license = licenses.gpl2;
|
||||
platforms = platforms.all;
|
||||
maintainers = [ maintainers.bjornfor ];
|
||||
};
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, pkgconfig, libjpeg, libpng12, xlibs, libX11, mesa, libdrm, python27 }:
|
||||
{ stdenv, fetchurl, pkgconfig, libjpeg, libpng12, xorg, libX11, mesa, libdrm, python27 }:
|
||||
stdenv.mkDerivation rec {
|
||||
name = "glmark2-${version}";
|
||||
version = "2014.03";
|
||||
@@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
pkgconfig libjpeg libpng12 xlibs.libxcb libX11 mesa libdrm python27
|
||||
pkgconfig libjpeg libpng12 xorg.libxcb libX11 mesa libdrm python27
|
||||
];
|
||||
|
||||
buildPhase = ''
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{stdenv, fetchurl, x11, mesa}:
|
||||
{stdenv, fetchurl, xlibsWrapper, mesa}:
|
||||
|
||||
let version = "8.1.0"; in
|
||||
|
||||
@@ -10,7 +10,7 @@ stdenv.mkDerivation {
|
||||
sha256 = "0a58hw5850731p4smz4zqsbvyxvgjf7n5xdbs9l1wamk8q3gl0wp";
|
||||
};
|
||||
|
||||
buildInputs = [x11 mesa];
|
||||
buildInputs = [xlibsWrapper mesa];
|
||||
|
||||
configurePhase = "true";
|
||||
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
{ stdenv, fetchurl, fftw, zlib, libjpeg, libtiff, libpng }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "gmic-${version}";
|
||||
version = "1.6.5.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://gmic.eu/files/source/gmic_${version}.tar.gz";
|
||||
sha256 = "1vb6zm5zpqfnzxjvb9yfvczaqacm55rf010ib0yk9f28b17qrjgb";
|
||||
};
|
||||
|
||||
buildInputs = [ fftw zlib libjpeg libtiff libpng ];
|
||||
|
||||
sourceRoot = "${name}/src";
|
||||
|
||||
preBuild = ''
|
||||
buildFlagsArray=( \
|
||||
CURL_CFLAGS= CURL_LIBS= \
|
||||
EXR_CFLAGS= EXR_LIBS= \
|
||||
OPENCV_CFLAGS= OPENCV_LIBS= \
|
||||
X11_CFLAGS="-Dcimg_display=0" X11_LIBS= \
|
||||
cli \
|
||||
)
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
mkdir -p $out/share/man/man1
|
||||
|
||||
cp -v gmic $out/bin/
|
||||
cp -v ../man/gmic.1.gz $out/share/man/man1/
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "G'MIC is an open and full-featured framework for image processing";
|
||||
homepage = http://gmic.eu/;
|
||||
license = licenses.cecill20;
|
||||
maintainers = [ maintainers.rycee ];
|
||||
};
|
||||
}
|
||||
@@ -33,7 +33,7 @@ stdenv.mkDerivation rec {
|
||||
++ lib.optional withTeXLive texLive
|
||||
++ lib.optional withLua lua
|
||||
++ lib.optionals withX [ libX11 libXpm libXt libXaw ]
|
||||
++ lib.optional withQt [ qt.base ]
|
||||
++ lib.optional withQt [ qt ]
|
||||
# compiling with wxGTK causes a malloc (double free) error on darwin
|
||||
++ lib.optional (withWxGTK && !stdenv.isDarwin) wxGTK;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, pkgconfig, x11, libpng, libjpeg, expat, libXaw
|
||||
{ stdenv, fetchurl, pkgconfig, xlibsWrapper, libpng, libjpeg, expat, libXaw
|
||||
, yacc, libtool, fontconfig, pango, gd
|
||||
}:
|
||||
|
||||
@@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "39b8e1f2ba4cc1f5bdc8e39c7be35e5f831253008e4ee2c176984f080416676c";
|
||||
};
|
||||
|
||||
buildInputs = [pkgconfig x11 libpng libjpeg expat libXaw yacc libtool fontconfig pango gd];
|
||||
buildInputs = [pkgconfig xlibsWrapper libpng libjpeg expat libXaw yacc libtool fontconfig pango gd];
|
||||
|
||||
configureFlags =
|
||||
[ "--with-pngincludedir=${libpng}/include"
|
||||
@@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
|
||||
"--with-expatincludedir=${expat}/include"
|
||||
"--with-expatlibdir=${expat}/lib"
|
||||
]
|
||||
++ stdenv.lib.optional (x11 == null) "--without-x";
|
||||
++ stdenv.lib.optional (xlibsWrapper == null) "--without-x";
|
||||
|
||||
meta = {
|
||||
description = "A program for visualising graphs";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{ stdenv, fetchurl, pkgconfig, libpng, libjpeg, expat, libXaw
|
||||
, yacc, libtool, fontconfig, pango, gd, xlibs, gts, gettext, cairo
|
||||
, yacc, libtool, fontconfig, pango, gd, xorg, gts, gettext, cairo
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
|
||||
buildInputs =
|
||||
[ pkgconfig libpng libjpeg expat libXaw yacc libtool fontconfig
|
||||
pango gd gts
|
||||
] ++ stdenv.lib.optionals (xlibs != null) [ xlibs.xlibs xlibs.libXrender ]
|
||||
] ++ stdenv.lib.optionals (xorg != null) [ xorg.xlibsWrapper xorg.libXrender ]
|
||||
++ stdenv.lib.optional (stdenv.system == "x86_64-darwin") gettext;
|
||||
|
||||
CPPFLAGS = stdenv.lib.optionalString (stdenv.system == "x86_64-darwin") "-I${cairo}/include/cairo";
|
||||
@@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
|
||||
"--with-cgraph=no"
|
||||
"--with-sparse=no"
|
||||
]
|
||||
++ stdenv.lib.optional (xlibs == null) "--without-x";
|
||||
++ stdenv.lib.optional (xorg == null) "--without-x";
|
||||
|
||||
preBuild = ''
|
||||
sed -e 's@am__append_5 *=.*@am_append_5 =@' -i lib/gvc/Makefile
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{ stdenv, fetchurl, pkgconfig, libpng, libjpeg, expat, libXaw
|
||||
, yacc, libtool, fontconfig, pango, gd, xlibs, gts, libdevil, gettext, cairo
|
||||
, yacc, libtool, fontconfig, pango, gd, xorg, gts, libdevil, gettext, cairo
|
||||
, flex
|
||||
}:
|
||||
|
||||
@@ -22,10 +22,10 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs =
|
||||
[ pkgconfig libpng libjpeg expat yacc libtool fontconfig gd gts libdevil flex
|
||||
] ++ stdenv.lib.optionals (xlibs != null) [ xlibs.xlibs xlibs.libXrender pango libXaw ]
|
||||
] ++ stdenv.lib.optionals (xorg != null) [ xorg.xlibsWrapper xorg.libXrender pango libXaw ]
|
||||
++ stdenv.lib.optional (stdenv.system == "x86_64-darwin") gettext;
|
||||
|
||||
CPPFLAGS = stdenv.lib.optionalString (xlibs != null && stdenv.system == "x86_64-darwin")
|
||||
CPPFLAGS = stdenv.lib.optionalString (xorg != null && stdenv.system == "x86_64-darwin")
|
||||
"-I${cairo}/include/cairo";
|
||||
|
||||
configureFlags =
|
||||
@@ -36,14 +36,14 @@ stdenv.mkDerivation rec {
|
||||
"--with-expatincludedir=${expat}/include"
|
||||
"--with-expatlibdir=${expat}/lib"
|
||||
]
|
||||
++ stdenv.lib.optional (xlibs == null) "--without-x";
|
||||
++ stdenv.lib.optional (xorg == null) "--without-x";
|
||||
|
||||
preBuild = ''
|
||||
sed -e 's@am__append_5 *=.*@am_append_5 =@' -i lib/gvc/Makefile
|
||||
'';
|
||||
|
||||
# "command -v" is POSIX, "which" is not
|
||||
postInstall = stdenv.lib.optionalString (xlibs != null) ''
|
||||
postInstall = stdenv.lib.optionalString (xorg != null) ''
|
||||
sed -i 's|`which lefty`|"'$out'/bin/lefty"|' $out/bin/dotty
|
||||
sed -i 's|which|command -v|' $out/bin/vimdot
|
||||
'';
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
{ stdenv, fetchurl, bash, curl, xsel }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "imgurbash-4";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://imgur.com/tools/imgurbash.sh";
|
||||
sha256 = "16m7dn5vqzx1q4pzssnwiwajfzrbhrz0niyhf5abxi1lwr3h0ca1";
|
||||
};
|
||||
|
||||
buildCommand = ''
|
||||
mkdir -p $out/bin
|
||||
cat <<EOF >$out/bin/imgurbash
|
||||
#!${bash}/bin/bash
|
||||
PATH=${stdenv.lib.makeSearchPath "bin" [curl xsel]}:\$PATH
|
||||
EOF
|
||||
cat $src >>$out/bin/imgurbash
|
||||
chmod +x $out/bin/imgurbash
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A simple bash script to upload an image to imgur from the commandline";
|
||||
license = licenses.publicDomain;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ abbradar ];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
{ stdenv, fetchurl, cmake, gengetopt, imlib2, libXrandr, libXfixes
|
||||
, cppcheck}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "maim-${version}";
|
||||
version = "3.4.46";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/naelstrof/maim/archive/v${version}.tar.gz";
|
||||
sha256 = "04gb858g0rrvdiva2dxwsfd7dmq62r67irnc8cpd0r02hr92dr6n";
|
||||
};
|
||||
|
||||
buildInputs = [ cmake gengetopt imlib2 libXrandr libXfixes ]
|
||||
++ stdenv.lib.optional doCheck cppcheck;
|
||||
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/naelstrof/maim;
|
||||
description = "A command-line screenshot utility";
|
||||
longDescription = ''
|
||||
maim (make image) takes screenshots of your desktop. It has options to
|
||||
take only a region, and relies on slop to query for regions. maim is
|
||||
supposed to be an improved scrot.
|
||||
'';
|
||||
platforms = stdenv.lib.platforms.all;
|
||||
license = stdenv.lib.licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ mbakke ];
|
||||
};
|
||||
}
|
||||
@@ -2,11 +2,11 @@
|
||||
fftw, gsl, goffice_0_8, libgsf }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "nip2-7.42.1";
|
||||
name = "nip2-8.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.vips.ecs.soton.ac.uk/supported/current/${name}.tar.gz";
|
||||
sha256 = "14lfyn0azswrz8r81ign9lbpxzk7ibmnnp03a3l8wgxvm2j9a7jl";
|
||||
sha256 = "10ybac0qrz63x1yk1d0gpv9z1vzpadyii2qhrai6lllplzw6jqx7";
|
||||
};
|
||||
|
||||
buildInputs =
|
||||
|
||||
@@ -30,9 +30,9 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
};
|
||||
|
||||
meta = {
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://optipng.sourceforge.net/;
|
||||
description = "A PNG optimizer";
|
||||
license = "bsd";
|
||||
license = licenses.zlib;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -40,9 +40,9 @@ stdenv.mkDerivation {
|
||||
--prefix PATH : ${ghostscript}/bin:${pngnq}/bin:${djvulibre}/bin:${unrar}/bin:${optipng}/bin
|
||||
'';
|
||||
|
||||
meta = {
|
||||
meta = with stdenv.lib; {
|
||||
description = "PDF/DJVU to ebook format converter";
|
||||
homepage = http://www.mobileread.com/forums/showthread.php?t=21906;
|
||||
license = "bsd";
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,29 +1,28 @@
|
||||
{stdenv, fetchurl, zlib, libX11, libpng}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "ploticus-2.41";
|
||||
name = "ploticus-2.42";
|
||||
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = mirror://sourceforge/ploticus/ploticus/2.41/pl241src.tar.gz;
|
||||
sha256 = "ecccb6afcf0008d5b31da2e9e74c448564101eb7b9bbde758a3dca1f2dc8c580";
|
||||
sha256 = "1065r0nizjixi9sxxfxrnwg10r458i6fgsd23nrxa200rypvdk7c";
|
||||
};
|
||||
|
||||
buildInputs = [zlib libX11 libpng];
|
||||
buildInputs = [ zlib libX11 libpng ];
|
||||
|
||||
patches = [./ploticus-install.patch];
|
||||
patches = [ ./ploticus-install.patch ];
|
||||
|
||||
meta = {
|
||||
meta = with stdenv.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
|
||||
data. Ploticus is good for automated or just-in-time graph
|
||||
generation, handles date and time data nicely, and has basic
|
||||
statistical capabilities. It allows significant user control
|
||||
over colors, styles, options and details.'';
|
||||
|
||||
license = stdenv.lib.licenses.gpl2Plus;
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ pSub ];
|
||||
homepage = http://ploticus.sourceforge.net/;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{ stdenv, fetchurl, libpng }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "pngcrush-1.7.83";
|
||||
name = "pngcrush-1.7.85";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/pmt/${name}-nolib.tar.xz";
|
||||
sha256 = "0324l1czflplz49i1i3xs72pzi9p4f8h6yk626q5y81fn29kg5mj";
|
||||
sha256 = "1hvcync32x2ign694scafkj7xc73gzyy8n2l5z026yxckilyyv19";
|
||||
};
|
||||
|
||||
configurePhase = ''
|
||||
|
||||
@@ -11,7 +11,7 @@ let
|
||||
in
|
||||
rec {
|
||||
src = fetchurl {
|
||||
url = "ftp://ftp.debian.org/debian/pool/main/libd/libdecodeqr/libdecodeqr_${version}.orig.tar.gz";
|
||||
url = "mirror://debian/pool/main/libd/libdecodeqr/libdecodeqr_${version}.orig.tar.gz";
|
||||
sha256 = "1kmljwx69h7zq6zlp2j19bbpz11px45z1abw03acrxjyzz5f1f13";
|
||||
};
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ stdenv.mkDerivation {
|
||||
'';
|
||||
preInstall = ''
|
||||
mkdir -p "$out"/{bin,lib,include}
|
||||
find . -maxdepth 1 -type f -perm +111 -exec cp '{}' "$out"/bin ';'
|
||||
find . -maxdepth 1 -type f -perm -0100 -exec cp '{}' "$out"/bin ';'
|
||||
'';
|
||||
makeFlags = "PREFIX=$(out)";
|
||||
meta = {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, giblib, x11 }:
|
||||
{ stdenv, fetchurl, giblib, xlibsWrapper }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "scrot-0.8";
|
||||
@@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1wll744rhb49lvr2zs6m93rdmiq59zm344jzqvijrdn24ksiqgb1";
|
||||
};
|
||||
|
||||
buildInputs = [ giblib x11 ];
|
||||
buildInputs = [ giblib xlibsWrapper ];
|
||||
|
||||
meta = {
|
||||
homepage = http://linuxbrit.co.uk/scrot/;
|
||||
|
||||
@@ -4,11 +4,11 @@
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "vips-7.42.1";
|
||||
name = "vips-8.0.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.vips.ecs.soton.ac.uk/supported/current/${name}.tar.gz";
|
||||
sha256 = "1gvazsyfa8w9wdwz89rpa1xmfpyk3b0cp4kkila1r9jc3sqp5qjy";
|
||||
sha256 = "0fpshv71sxbkbycxgd2hvwn7fyq9rm0rsgq0b1zld1an88mi0v8y";
|
||||
};
|
||||
|
||||
buildInputs =
|
||||
|
||||
Reference in New Issue
Block a user