Merge branch 'master' into staging

* master: (30 commits)
  bitlbee: fix build
  git: 2.17.0 -> 2.17.1
  sc-controller: 0.4.2 -> 0.4.3
  zeroc-ice: fix parallel building
  pythonPackages.bsddb3: fix build after 0fd461d5
  haskellPackages.hlibgit2: fix build after #28029
  gdk-pixbuf: patch library rpath references on darwin
  virtualbox: fix build after #28029
  GHCJS darwin fixes (#41120)
  neovim-remote: 1.8.6 -> 2.0.5
  messenger-for-desktop: remove (#41224)
  typora: gnome2 cleanup (#41167)
  discord: gnome2 cleanup (#41174)
  skypeforlinux: gnome2 cleanup (#41176)
  wire-desktop: gnome2 cleanup (#41155)
  hyper: gnome2 cleanup (#41170)
  drone: 0.5 -> 0.8.5 (#41200)
  racket: use proper uname, allow for unix sockets
  kytea: fix build after #28029
  yoda: fix build after #28029
  ...
This commit is contained in:
Orivej Desh 2018-05-30 02:06:49 +00:00
commit 3576d47d33
37 changed files with 251 additions and 265 deletions

View File

@ -22,9 +22,9 @@ in rec {
freebsd = [ patterns.isFreeBSD ]; freebsd = [ patterns.isFreeBSD ];
# Should be better, but MinGW is unclear, and HURD is bit-rotted. # Should be better, but MinGW is unclear, and HURD is bit-rotted.
gnu = [ gnu = [
{ kernel = parse.kernels.linux; abi = parse.abis.gnu; } { kernel = parse.kernels.linux; abi = abis.gnu; }
{ kernel = parse.kernels.linux; abi = parse.abis.gnueabi; } { kernel = parse.kernels.linux; abi = abis.gnueabi; }
{ kernel = parse.kernels.linux; abi = parse.abis.gnueabihf; } { kernel = parse.kernels.linux; abi = abis.gnueabihf; }
]; ];
illumos = [ patterns.isSunOS ]; illumos = [ patterns.isSunOS ];
linux = [ patterns.isLinux ]; linux = [ patterns.isLinux ];

View File

@ -33,8 +33,6 @@ in
environment.profileRelativeEnvVars = environment.profileRelativeEnvVars =
{ PATH = [ "/bin" ]; { PATH = [ "/bin" ];
INFOPATH = [ "/info" "/share/info" ]; INFOPATH = [ "/info" "/share/info" ];
PKG_CONFIG_PATH = [ "/lib/pkgconfig" ];
PERL5LIB = [ "/lib/perl5/site_perl" ];
KDEDIRS = [ "" ]; KDEDIRS = [ "" ];
STRIGI_PLUGIN_PATH = [ "/lib/strigi/" ]; STRIGI_PLUGIN_PATH = [ "/lib/strigi/" ];
QT_PLUGIN_PATH = [ "/lib/qt4/plugins" "/lib/kde4/plugins" ]; QT_PLUGIN_PATH = [ "/lib/qt4/plugins" "/lib/kde4/plugins" ];

View File

@ -4,14 +4,14 @@ with stdenv.lib;
pythonPackages.buildPythonPackage rec { pythonPackages.buildPythonPackage rec {
name = "neovim-remote-${version}"; name = "neovim-remote-${version}";
version = "1.8.6"; version = "2.0.5";
disabled = !pythonPackages.isPy3k; disabled = !pythonPackages.isPy3k;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "mhinz"; owner = "mhinz";
repo = "neovim-remote"; repo = "neovim-remote";
rev = "v${version}"; rev = "v${version}";
sha256 = "0x01zpmxi37jr7j2az2bd8902h7zhkpg6kpvc8xmll9f7703zz2l"; sha256 = "08qsi61ba5d69ca77layypzvi7nalx4niy97xn4w88jibnbmbrxw";
}; };
propagatedBuildInputs = with pythonPackages; [ neovim psutil ]; propagatedBuildInputs = with pythonPackages; [ neovim psutil ];

View File

@ -1,5 +1,5 @@
{ stdenv, fetchurl, dpkg, lib, glib, dbus, makeWrapper, gnome2, gnome3, gtk3, atk, cairo { stdenv, fetchurl, dpkg, lib, glib, dbus, makeWrapper, gnome3, gtk3, atk, cairo, pango
, freetype, fontconfig, nspr, nss, xorg, alsaLib, cups, expat, udev, wrapGAppsHook }: , gdk_pixbuf, freetype, fontconfig, nspr, nss, xorg, alsaLib, cups, expat, udev, wrapGAppsHook }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "typora-${version}"; name = "typora-${version}";
@ -20,10 +20,9 @@ stdenv.mkDerivation rec {
rpath = stdenv.lib.makeLibraryPath [ rpath = stdenv.lib.makeLibraryPath [
alsaLib alsaLib
gnome2.GConf gnome3.gconf
gnome2.gtk gdk_pixbuf
gnome2.gdk_pixbuf pango
gnome2.pango
gnome3.defaultIconTheme gnome3.defaultIconTheme
expat expat
gtk3 gtk3

View File

@ -1,14 +1,13 @@
{ stdenv, lib, fetchurl, dpkg, gtk2, atk, glib, pango, gdk_pixbuf, cairo { stdenv, lib, fetchurl, dpkg, atk, glib, pango, gdk_pixbuf, gnome3, gtk2, cairo
, freetype, fontconfig, dbus, libXi, libXcursor, libXdamage, libXrandr , freetype, fontconfig, dbus, libXi, libXcursor, libXdamage, libXrandr
, libXcomposite, libXext, libXfixes, libXrender, libX11, libXtst, libXScrnSaver , libXcomposite, libXext, libXfixes, libXrender, libX11, libXtst, libXScrnSaver
, libxcb , libxcb, nss, nspr, alsaLib, cups, expat, libudev, libpulseaudio }:
, GConf, nss, nspr, alsaLib, cups, expat, libudev, libpulseaudio }:
let let
libPath = stdenv.lib.makeLibraryPath [ libPath = stdenv.lib.makeLibraryPath [
stdenv.cc.cc gtk2 atk glib pango gdk_pixbuf cairo freetype fontconfig dbus stdenv.cc.cc gtk2 gnome3.gconf atk glib pango gdk_pixbuf cairo freetype fontconfig dbus
libXi libXcursor libXdamage libXrandr libXcomposite libXext libXfixes libxcb libXi libXcursor libXdamage libXrandr libXcomposite libXext libXfixes libxcb
libXrender libX11 libXtst libXScrnSaver GConf nss nspr alsaLib cups expat libudev libpulseaudio libXrender libX11 libXtst libXScrnSaver nss nspr alsaLib cups expat libudev libpulseaudio
]; ];
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {

View File

@ -15,9 +15,6 @@ stdenv.mkDerivation rec {
buildInputs = [ gnutls glib libotr python ] buildInputs = [ gnutls glib libotr python ]
++ optional enableLibPurple pidgin; ++ optional enableLibPurple pidgin;
preConfigure = optionalString enableLibPurple
"export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:${pidgin}/lib/pkgconfig";
configureFlags = [ configureFlags = [
"--gcov=1" "--gcov=1"
"--otr=1" "--otr=1"
@ -26,12 +23,12 @@ stdenv.mkDerivation rec {
] ]
++ optional enableLibPurple "--purple=1"; ++ optional enableLibPurple "--purple=1";
buildPhase = optionalString (!enableLibPurple) '' installTargets = [ "install" "install-dev" ];
make install-dev
'';
doCheck = !enableLibPurple; # Checks fail with libpurple for some reason doCheck = !enableLibPurple; # Checks fail with libpurple for some reason
enableParallelBuilding = true;
meta = { meta = {
description = "IRC instant messaging gateway"; description = "IRC instant messaging gateway";

View File

@ -1,6 +1,6 @@
{ stdenv, fetchurl, makeDesktopItem, makeWrapper { stdenv, fetchurl, makeDesktopItem, makeWrapper
, alsaLib, atk, cairo, cups, dbus, expat, fontconfig, freetype, gdk_pixbuf , alsaLib, atk, cairo, cups, dbus, expat, fontconfig, freetype, gdk_pixbuf
, glib, gnome2, gtk2, libnotify, libX11, libXcomposite, libXcursor, libXdamage , glib, gnome3, gtk2, libnotify, libX11, libXcomposite, libXcursor, libXdamage
, libXext, libXfixes, libXi, libXrandr, libXrender, libXtst, nspr, nss, libxcb , libXext, libXfixes, libXi, libXrandr, libXrender, libXtst, nspr, nss, libxcb
, pango, systemd, libXScrnSaver, libcxx, libpulseaudio }: , pango, systemd, libXScrnSaver, libcxx, libpulseaudio }:
@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
libPath = stdenv.lib.makeLibraryPath [ libPath = stdenv.lib.makeLibraryPath [
libcxx systemd libpulseaudio libcxx systemd libpulseaudio
stdenv.cc.cc alsaLib atk cairo cups dbus expat fontconfig freetype stdenv.cc.cc alsaLib atk cairo cups dbus expat fontconfig freetype
gdk_pixbuf glib gnome2.GConf gtk2 libnotify libX11 libXcomposite gdk_pixbuf glib gnome3.gconf gtk2 libnotify libX11 libXcomposite
libXcursor libXdamage libXext libXfixes libXi libXrandr libXrender libXcursor libXdamage libXext libXfixes libXi libXrandr libXrender
libXtst nspr nss libxcb pango systemd libXScrnSaver libXtst nspr nss libxcb pango systemd libXScrnSaver
]; ];

View File

@ -1,104 +0,0 @@
{
stdenv, fetchurl, dpkg, alsaLib, atk, cairo, cups, curl, dbus, expat,
fontconfig, freetype, glib, gnome2, libnotify, nspr, nss, systemd, xorg
}:
with stdenv.lib;
let
version = "2.0.6";
rpath = makeLibraryPath [
alsaLib
atk
cairo
cups
curl
dbus
expat
fontconfig
freetype
glib
gnome2.GConf
gnome2.gdk_pixbuf
gnome2.gtk
gnome2.pango
libnotify
nspr
nss
stdenv.cc.cc
systemd
xorg.libxkbfile
xorg.libX11
xorg.libXcomposite
xorg.libXcursor
xorg.libXdamage
xorg.libXext
xorg.libXfixes
xorg.libXi
xorg.libXrandr
xorg.libXrender
xorg.libXtst
xorg.libXScrnSaver
] + ":${stdenv.cc.cc.lib}/lib64";
src =
if stdenv.system == "x86_64-linux" then
fetchurl {
url = "https://github.com/aluxian/Messenger-for-Desktop/releases/download/v2.0.6/messengerfordesktop-2.0.6-linux-amd64.deb";
sha256 = "bf3f3ed9ac46ceb4b7dffbeb33c7d15bbcbfcdd141c4dbfbb620e8bfefae906b";
}
else
throw "Messenger for Desktop is not supported on ${stdenv.system}";
in stdenv.mkDerivation {
name = "messenger-for-desktop-${version}";
inherit src;
buildInputs = [ dpkg ];
unpackPhase = "true";
buildCommand = ''
mkdir -p $out
dpkg -x $src $out
mv $out/usr/share $out/share
mv $out/opt/messengerfordesktop $out/libexec
rmdir $out/usr $out/opt
chmod -R g-w $out
# patch the binaries
for file in $(find $out -type f \( -perm /0111 -o -name \*.so\* \) ); do
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" "$file" || true
patchelf --set-rpath ${rpath}:$out/libexec $file || true
done
# add symlink to bin
mkdir -p $out/bin
ln -s $out/libexec/messengerfordesktop $out/bin/messengerfordesktop
# Fix the desktop link
substituteInPlace $out/share/applications/messengerfordesktop.desktop \
--replace /opt/messengerfordesktop/messengerfordesktop $out/bin/messengerfordesktop
'';
meta = {
description = "Bring messenger.com to your Linux desktop.";
longDescription = ''
A simple & beautiful desktop client for Facebook Messenger. Chat without
distractions on macOS, Windows and Linux. Not affiliated with Facebook.
This is NOT an official product.
'';
homepage = https://messengerfordesktop.org;
license = licenses.mit;
maintainers = [
maintainers.shawndellysse
];
platforms = [
"x86_64-linux"
];
};
}

View File

@ -1,6 +1,6 @@
{ stdenv, fetchurl, dpkg, makeWrapper { stdenv, fetchurl, dpkg, makeWrapper
, alsaLib, atk, cairo, cups, curl, dbus, expat, fontconfig, freetype, glib, glibc, gnome2 , alsaLib, atk, cairo, cups, curl, dbus, expat, fontconfig, freetype, gdk_pixbuf, glib, glibc, gnome3
, libnotify, libpulseaudio, libsecret, libstdcxx5, libv4l, nspr, nss, systemd, xorg }: , gtk2, libnotify, libpulseaudio, libsecret, libstdcxx5, libv4l, nspr, nss, pango, systemd, xorg }:
let let
@ -22,17 +22,18 @@ let
glibc glibc
libsecret libsecret
gnome2.GConf gnome3.gconf
gnome2.gdk_pixbuf gdk_pixbuf
gnome2.gtk gtk2
gnome2.pango
gnome2.gnome-keyring
gnome3.gnome-keyring
libnotify libnotify
libpulseaudio libpulseaudio
nspr nspr
nss nss
pango
stdenv.cc.cc stdenv.cc.cc
systemd systemd
libstdcxx5 libstdcxx5

View File

@ -1,4 +1,4 @@
{ stdenv, lib, fetchurl, dpkg, makeDesktopItem, gnome2, atk, cairo, gdk_pixbuf, glib { stdenv, lib, fetchurl, dpkg, makeDesktopItem, gnome3, gtk2, atk, cairo, pango, gdk_pixbuf, glib
, freetype, fontconfig, dbus, libnotify, libX11, xorg, libXi, libXcursor, libXdamage , freetype, fontconfig, dbus, libnotify, libX11, xorg, libXi, libXcursor, libXdamage
, libXrandr, libXcomposite, libXext, libXfixes, libXrender, libXtst, libXScrnSaver , libXrandr, libXcomposite, libXext, libXfixes, libXrender, libXtst, libXScrnSaver
, nss, nspr, alsaLib, cups, expat, udev, xdg_utils, hunspell , nss, nspr, alsaLib, cups, expat, udev, xdg_utils, hunspell
@ -15,9 +15,9 @@ let
freetype freetype
gdk_pixbuf gdk_pixbuf
glib glib
gnome2.GConf gnome3.gconf
gnome2.gtk gtk2
gnome2.pango pango
hunspell hunspell
libnotify libnotify
libX11 libX11

View File

@ -18,7 +18,7 @@ assert sendEmailSupport -> perlSupport;
assert svnSupport -> perlSupport; assert svnSupport -> perlSupport;
let let
version = "2.17.0"; version = "2.17.1";
svn = subversionClient.override { perlBindings = perlSupport; }; svn = subversionClient.override { perlBindings = perlSupport; };
in in
@ -27,7 +27,7 @@ stdenv.mkDerivation {
src = fetchurl { src = fetchurl {
url = "https://www.kernel.org/pub/software/scm/git/git-${version}.tar.xz"; url = "https://www.kernel.org/pub/software/scm/git/git-${version}.tar.xz";
sha256 = "1ismz7nsz8dgjmk782xr9s0mr2qh06f72pdcgbxfmnw1bvlya5p9"; sha256 = "0pm6bdnrrm165k3krnazxcxadifk2gqi30awlbcf9fism1x6w4vr";
}; };
outputs = [ "out" ] ++ stdenv.lib.optional perlSupport "gitweb"; outputs = [ "out" ] ++ stdenv.lib.optional perlSupport "gitweb";

View File

@ -1,7 +1,7 @@
{ stdenv, fetchFromGitHub, fetchpatch, qmake, qtbase, qttools, subversion, apr }: { stdenv, fetchFromGitHub, fetchpatch, qmake, qtbase, qttools, subversion, apr }:
let let
version = "1.0.11"; version = "1.0.12";
in in
stdenv.mkDerivation { stdenv.mkDerivation {
name = "svn-all-fast-export-${version}"; name = "svn-all-fast-export-${version}";
@ -10,18 +10,9 @@ stdenv.mkDerivation {
owner = "svn-all-fast-export"; owner = "svn-all-fast-export";
repo = "svn2git"; repo = "svn2git";
rev = version; rev = version;
sha256 = "0lhnw8f15j4wkpswhrjd7bp9xkhbk32zmszaxayzfhbdl0g7pzwj"; sha256 = "158w2ynz16dlp992g8nfk7v2f5962z88b4xyv5dyjvbl4l1v7r0v";
}; };
# https://github.com/svn-all-fast-export/svn2git/pull/40
patches = [
(fetchpatch {
name = "pr40.patch";
sha256 = "0mwncklzncsifql9zlxlbj3clsif5p2v1xs8nmxrw44mqvaysjw3";
url = https://github.com/svn-all-fast-export/svn2git/compare/f00d5a5...flokli:nixos-20180326.patch;
})
];
nativeBuildInputs = [ qmake qttools ]; nativeBuildInputs = [ qmake qttools ];
buildInputs = [ apr.dev subversion.dev qtbase ]; buildInputs = [ apr.dev subversion.dev qtbase ];

View File

@ -65,7 +65,7 @@ in stdenv.mkDerivation {
++ optionals (headless) [ libXrandr ] ++ optionals (headless) [ libXrandr ]
++ optionals (!headless) [ qt5.qtbase qt5.qtx11extras libXinerama SDL ]; ++ optionals (!headless) [ qt5.qtbase qt5.qtx11extras libXinerama SDL ];
hardeningDisable = [ "fortify" "pic" "stackprotector" ]; hardeningDisable = [ "format" "fortify" "pic" "stackprotector" ];
prePatch = '' prePatch = ''
set -x set -x

View File

@ -9,7 +9,7 @@
, stdenvNoCC, nativeTools, propagateDoc ? !nativeTools, noLibc ? false, nativeLibc, nativePrefix ? "" , stdenvNoCC, nativeTools, propagateDoc ? !nativeTools, noLibc ? false, nativeLibc, nativePrefix ? ""
, cc ? null, libc ? null, bintools, coreutils ? null, shell ? stdenvNoCC.shell , cc ? null, libc ? null, bintools, coreutils ? null, shell ? stdenvNoCC.shell
, extraPackages ? [], extraBuildCommands ? "" , extraPackages ? [], extraBuildCommands ? ""
, isGNU ? false, isClang ? cc.isClang or false, isCompilerRT ? false, gnugrep ? null , isGNU ? false, isClang ? cc.isClang or false, gnugrep ? null
, buildPackages ? {} , buildPackages ? {}
}: }:
@ -90,7 +90,7 @@ stdenv.mkDerivation {
# Binutils, and Apple's "cctools"; "bintools" as an attempt to find an # Binutils, and Apple's "cctools"; "bintools" as an attempt to find an
# unused middle-ground name that evokes both. # unused middle-ground name that evokes both.
inherit bintools; inherit bintools;
inherit libc nativeTools nativeLibc nativePrefix isGNU isClang isCompilerRT default_cxx_stdlib_compile; inherit libc nativeTools nativeLibc nativePrefix isGNU isClang default_cxx_stdlib_compile;
emacsBufferSetup = pkgs: '' emacsBufferSetup = pkgs: ''
; We should handle propagation here too ; We should handle propagation here too

View File

@ -14,7 +14,9 @@
, xorg , xorg
, gmp , gmp
, pkgconfig , pkgconfig
, gcc
, lib , lib
, nodePackages
, ghcjsDepOverrides ? (_:_:{}) , ghcjsDepOverrides ? (_:_:{})
}: }:
@ -40,6 +42,8 @@ let
inherit (bootGhcjs) version; inherit (bootGhcjs) version;
isGhcjs = true; isGhcjs = true;
socket-io = nodePackages."socket.io";
# Relics of the old GHCJS build system # Relics of the old GHCJS build system
stage1Packages = []; stage1Packages = [];
mkStage2 = _: {}; mkStage2 = _: {};
@ -49,7 +53,7 @@ let
libexec = libexec =
if builtins.compareVersions bootGhcjs.version "8.3" <= 0 if builtins.compareVersions bootGhcjs.version "8.3" <= 0
then "${bootGhcjs}/bin" then "${bootGhcjs}/bin"
else "${bootGhcjs}/libexec/${stdenv.system}-${passthru.bootPkgs.ghc.name}/${bootGhcjs.name}"; else "${bootGhcjs}/libexec/${builtins.replaceStrings ["darwin"] ["osx"] stdenv.system}-${passthru.bootPkgs.ghc.name}/${bootGhcjs.name}";
in stdenv.mkDerivation { in stdenv.mkDerivation {
name = "ghcjs"; name = "ghcjs";
@ -63,6 +67,8 @@ in stdenv.mkDerivation {
xorg.lndir xorg.lndir
gmp gmp
pkgconfig pkgconfig
] ++ lib.optionals stdenv.isDarwin [
gcc # https://github.com/ghcjs/ghcjs/issues/663
]; ];
phases = ["unpackPhase" "buildPhase"]; phases = ["unpackPhase" "buildPhase"];
buildPhase = '' buildPhase = ''

View File

@ -38,10 +38,16 @@ let
clang = if stdenv.cc.isGNU then tools.libstdcxxClang else tools.libcxxClang; clang = if stdenv.cc.isGNU then tools.libstdcxxClang else tools.libcxxClang;
libstdcxxClang = wrapCCWith { libstdcxxClang = wrapCCWith rec {
cc = tools.clang-unwrapped; cc = tools.clang-unwrapped;
extraPackages = [ libstdcxxHook ]; extraPackages = [ libstdcxxHook targetLlvmLibraries.compiler-rt ];
extraBuildCommands = stdenv.lib.optionalString stdenv.targetPlatform.isLinux '' extraBuildCommands = ''
rsrc="$out/resource-root"
mkdir "$rsrc"
ln -s "${cc}/lib/clang/${release_version}/include" "$rsrc"
ln -s "${targetLlvmLibraries.compiler-rt.out}/lib" "$rsrc/lib"
echo "-resource-dir=$rsrc" >> $out/nix-support/cc-cflags
'' + stdenv.lib.optionalString stdenv.targetPlatform.isLinux ''
echo "--gcc-toolchain=${tools.clang-unwrapped.gcc}" >> $out/nix-support/cc-cflags echo "--gcc-toolchain=${tools.clang-unwrapped.gcc}" >> $out/nix-support/cc-cflags
''; '';
}; };
@ -53,7 +59,6 @@ let
targetLlvmLibraries.libcxxabi targetLlvmLibraries.libcxxabi
targetLlvmLibraries.compiler-rt targetLlvmLibraries.compiler-rt
]; ];
isCompilerRT = true;
extraBuildCommands = '' extraBuildCommands = ''
rsrc="$out/resource-root" rsrc="$out/resource-root"
mkdir "$rsrc" mkdir "$rsrc"

View File

@ -332,6 +332,7 @@ self: super: {
hgdbmi = dontCheck super.hgdbmi; hgdbmi = dontCheck super.hgdbmi;
hi = dontCheck super.hi; hi = dontCheck super.hi;
hierarchical-clustering = dontCheck super.hierarchical-clustering; hierarchical-clustering = dontCheck super.hierarchical-clustering;
hlibgit2 = disableHardening super.hlibgit2 [ "format" ];
hmatrix-tests = dontCheck super.hmatrix-tests; hmatrix-tests = dontCheck super.hmatrix-tests;
hquery = dontCheck super.hquery; hquery = dontCheck super.hquery;
hs2048 = dontCheck super.hs2048; hs2048 = dontCheck super.hs2048;

View File

@ -58,7 +58,9 @@ stdenv.mkDerivation rec {
preConfigure = '' preConfigure = ''
unset AR unset AR
substituteInPlace src/configure --replace /usr/bin/uname ${coreutils}/bin/uname for f in src/configure src/racket/src/string.c; do
substituteInPlace "$f" --replace /usr/bin/uname ${coreutils}/bin/uname
done
mkdir src/build mkdir src/build
cd src/build cd src/build
''; '';

View File

@ -82,10 +82,14 @@ stdenv.mkDerivation rec {
$dev/bin/gdk-pixbuf-query-loaders --update-cache $dev/bin/gdk-pixbuf-query-loaders --update-cache
''; '';
# The fixDarwinDylibNames hook doesn't patch binaries. # The fixDarwinDylibNames hook doesn't patch library references or binaries.
preFixup = stdenv.lib.optionalString stdenv.isDarwin '' preFixup = stdenv.lib.optionalString stdenv.isDarwin ''
for f in $(find $out/lib -name '*.dylib'); do
install_name_tool -change @rpath/libgdk_pixbuf-2.0.0.dylib $out/lib/libgdk_pixbuf-2.0.0.dylib $f
done
for f in $out/bin/* $dev/bin/*; do for f in $out/bin/* $dev/bin/*; do
install_name_tool -change "@rpath/libgdk_pixbuf-2.0.0.dylib" "$out/lib/libgdk_pixbuf-2.0.0.dylib" $f install_name_tool -change @rpath/libgdk_pixbuf-2.0.0.dylib $out/lib/libgdk_pixbuf-2.0.0.dylib $f
done done
''; '';

View File

@ -23,6 +23,8 @@ stdenv.mkDerivation rec {
done done
''; '';
hardeningDisable = [ "format" ];
meta = { meta = {
description = "Provides small set of data analysis (specifically histogramming) classes"; description = "Provides small set of data analysis (specifically histogramming) classes";
license = stdenv.lib.licenses.gpl2; license = stdenv.lib.licenses.gpl2;

View File

@ -13,6 +13,8 @@ stdenv.mkDerivation rec {
sha256 = "05xympbns32aalgcfcpxwfd7bvg343f16xpg6jv5s335ski3cjy2"; sha256 = "05xympbns32aalgcfcpxwfd7bvg343f16xpg6jv5s335ski3cjy2";
}; };
patches = [ ./makefile.patch ];
buildInputs = [ mcpp bzip2 expat openssl db5 ] buildInputs = [ mcpp bzip2 expat openssl db5 ]
++ stdenv.lib.optionals stdenv.isDarwin [ darwin.cctools libiconv Security ]; ++ stdenv.lib.optionals stdenv.isDarwin [ darwin.cctools libiconv Security ];

View File

@ -0,0 +1,9 @@
--- a/src/Makefile
+++ b/src/Makefile
@@ -77,4 +77,6 @@ FreezeScript: Freeze
Glacier2 IceGridLib Glacier2CryptPermissionsVerifier: Glacier2Lib
+Glacier2: IceSSL
+
IcePatch2: IcePatch2Lib

View File

@ -0,0 +1,28 @@
{ stdenv, buildPythonPackage, python, fetchFromGitHub, six, pycryptodome, chardet, nose, pytest }:
buildPythonPackage rec {
pname = "pdfminer_six";
version = "20170720";
src = fetchFromGitHub {
owner = "pdfminer";
repo = "pdfminer.six";
rev = "${version}";
sha256 = "0vax5k0a8qn8x86ybpzqydk7x3hajsk8b6xf3y610j19mgag6wvs";
};
propagatedBuildInputs = [ six pycryptodome chardet ];
checkInputs = [ nose pytest ];
checkPhase = ''
${python.interpreter} -m pytest
'';
meta = with stdenv.lib; {
description = "fork of PDFMiner using six for Python 2+3 compatibility";
homepage = https://github.com/pdfminer/pdfminer.six;
license = licenses.mit;
maintainers = with maintainers; [ psyanticy ];
};
}

View File

@ -2,66 +2,25 @@
buildGoPackage rec { buildGoPackage rec {
name = "drone.io-${version}"; name = "drone.io-${version}";
version = "0.5-20161104-${stdenv.lib.strings.substring 0 7 revision}"; version = "0.8.5-20180329-${stdenv.lib.strings.substring 0 7 revision}";
revision = "232df356afeeb4aec5e2959fa54b084dcadb267f"; revision = "81103a98208b0bfc76be5b07194f359fbc80183b";
goPackagePath = "github.com/drone/drone"; goPackagePath = "github.com/drone/drone";
# These dependencies pulled (in `drone` buildprocess) via Makefile, # These dependencies pulled (in `drone` buildprocess) via Makefile,
# so I extracted them here, all revisions pinned by same date, as ${version} # so I extracted them here, all revisions pinned by same date, as ${version}
extraSrcs = [ goDeps= ./deps.nix;
{
goPackagePath = "github.com/drone/drone-ui";
src = fetchFromGitHub {
owner = "drone";
repo = "drone-ui";
rev = "e66df33b4620917a2e7b59760887cc3eed543664";
sha256 = "0d50xdzkh9akpf5c0sqgcgy11v2vz858l36jp5snr94zkrdkv0n1";
};
}
{
goPackagePath = "github.com/drone/mq";
src = fetchFromGitHub {
owner = "drone";
repo = "mq";
rev = "0f296601feeed952dabd038793864acdbefe6dbe";
sha256 = "1k7439c90l4w29g7wyixfmpbkap7bn8yh8zynbjyjf9qjzwsnw97";
};
}
{
goPackagePath = "github.com/tidwall/redlog";
src = fetchFromGitHub {
owner = "tidwall";
repo = "redlog";
rev = "54086c8553cd23aba652513a87d2b085ea961541";
sha256 = "12a7mk6r8figjinzkbisxcaly6sasggy62m8zs4cf35lpq2lhffq";
};
}
{
goPackagePath = "golang.org/x/crypto";
src = fetchFromGitHub {
owner = "golang";
repo = "crypto";
rev = "9477e0b78b9ac3d0b03822fd95422e2fe07627cd";
sha256 = "1qcqai6nf1q50z9ga7r4ljnrh1qz49kwlcqpri4bknx732lqq0v5";
};
}
];
nativeBuildInputs = [ go-bindata go-bindata-assetfs ];
preBuild = '' nativeBuildInputs = [ go-bindata go-bindata-assetfs ];
go generate github.com/drone/drone/server/template
go generate github.com/drone/drone/store/datastore/ddl
'';
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "drone"; owner = "drone";
repo = "drone"; repo = "drone";
rev = revision; rev = revision;
sha256 = "0xrijcrlv3ag9n2kywkrhdkxyhxc8fs6zqn0hyav6a6jpqnsahg3"; sha256 = "1890bwhxr62adv261v4kn1azhq7qvcj2zpll68i9nsvjib8a52bq";
}; };
meta = with stdenv.lib; { meta = with stdenv.lib; {
maintainers = with maintainers; [ avnik ]; maintainers = with maintainers; [ avnik vdemeester ];
license = licenses.asl20; license = licenses.asl20;
description = "Continuous Integration platform built on container technology"; description = "Continuous Integration platform built on container technology";
}; };

View File

@ -0,0 +1,38 @@
[
{
goPackagePath = "github.com/drone/drone-ui";
fetch = {
type = "git";
url = "https://github.com/drone/drone-ui";
rev = "5a497bd6cd5c3c17c53b00d40bcda1bf6f68f475";
sha256 = "1666xlz3dg468izfwprg17sgb3f4ppn5sj5klds3wgdfrjjm4v57";
};
}
{
goPackagePath = "github.com/drone/mq";
fetch = {
type = "git";
url = "https://github.com/drone/mq";
rev = "280af2a3b9c7d9ce90d625150dfff972c6c190b8";
sha256 = "10a24yq3ya8mvs7j6m7lqhyws7jd923rnih75ciq1g327qxf743s";
};
}
{
goPackagePath = "golang.org/x/net";
fetch = {
type = "git";
url = "https://github.com/golang/net";
rev = "dfa909b99c79129e1100513e5cd36307665e5723";
sha256 = "0nsansy1yqy1kzh5wpv3zi85s0chxfq0ha8knhgnfa0wj0k8q0il";
};
}
{
goPackagePath = "github.com/golang/protobuf";
fetch = {
type = "git";
url = "https://github.com/golang/protobuf";
rev = "b4deda0973fb4c70b50d226b1af49f3da59f5265";
sha256 = "0ya4ha7m20bw048m1159ppqzlvda4x0vdprlbk5sdgmy74h3xcdq";
};
}
]

View File

@ -1,18 +1,18 @@
{ stdenv, fetchurl, cmake, lzma, boost, libdevil, zlib, p7zip { stdenv, fetchurl, cmake, lzma, boost, libdevil, zlib, p7zip
, openal, libvorbis, glew, freetype, xorg, SDL2, libGLU_combined, binutils , openal, libvorbis, glew, freetype, xorg, SDL2, libGLU_combined, binutils
, asciidoc, libxslt, docbook_xsl, docbook_xsl_ns, curl, makeWrapper , asciidoc, libxslt, docbook_xsl, docbook_xsl_ns, curl, makeWrapper
, jdk ? null, python ? null, systemd, libunwind, glibc, which, minizip , jdk ? null, python ? null, systemd, libunwind, which, minizip
, withAI ? true # support for AI Interfaces and Skirmish AIs , withAI ? true # support for AI Interfaces and Skirmish AIs
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "spring-${version}"; name = "spring-${version}";
version = "103.0"; version = "104.0";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/springrts/spring_${version}_src.tar.lzma"; url = "mirror://sourceforge/springrts/spring_${version}_src.tar.lzma";
sha256 = "1fmnwk8ig36429pkp1rafzg4hyzp7i6mwy27p7fdxrdj1q4blx9l"; sha256 = "05pclcbw7v481pqz7bgirlk37494hy4hx4jghhnlzhdaz1cvzc6f";
}; };
# The cmake included module correcly finds nix's glew, however # The cmake included module correcly finds nix's glew, however
@ -31,7 +31,7 @@ stdenv.mkDerivation rec {
buildInputs = [ cmake lzma boost libdevil zlib p7zip openal libvorbis freetype SDL2 buildInputs = [ cmake lzma boost libdevil zlib p7zip openal libvorbis freetype SDL2
xorg.libX11 xorg.libXcursor libGLU_combined glew asciidoc libxslt docbook_xsl curl makeWrapper xorg.libX11 xorg.libXcursor libGLU_combined glew asciidoc libxslt docbook_xsl curl makeWrapper
docbook_xsl_ns systemd libunwind glibc.dev glibc.static which minizip ] docbook_xsl_ns systemd libunwind which minizip ]
++ stdenv.lib.optional withAI jdk ++ stdenv.lib.optional withAI jdk
++ stdenv.lib.optional withAI python; ++ stdenv.lib.optional withAI python;
@ -50,6 +50,5 @@ stdenv.mkDerivation rec {
license = licenses.gpl2; license = licenses.gpl2;
maintainers = [ maintainers.phreedom maintainers.qknight maintainers.domenkozar ]; maintainers = [ maintainers.phreedom maintainers.qknight maintainers.domenkozar ];
platforms = platforms.linux; platforms = platforms.linux;
broken = true;
}; };
} }

View File

@ -7,13 +7,13 @@
buildPythonApplication rec { buildPythonApplication rec {
pname = "sc-controller"; pname = "sc-controller";
version = "0.4.2"; version = "0.4.3";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "kozec"; owner = "kozec";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "19i9z5cjjgi3a94hrz5g3a6m4vj71p1gs6mhklc6dq8ydwsadwzz"; sha256 = "0w4ykl78vdppqr3d4d0h1f31wly6kis57a1gxhnrbpfrgpj0qhvj";
}; };
nativeBuildInputs = [ wrapGAppsHook ]; nativeBuildInputs = [ wrapGAppsHook ];

View File

@ -1,9 +1,9 @@
{ stdenv, fetchFromGitHub, fetchpatch, makeWrapper, cmake, llvmPackages, kernel { stdenv, fetchFromGitHub, fetchpatch, makeWrapper, cmake, llvmPackages, kernel
, flex, bison, elfutils, python, pythonPackages, luajit, netperf, iperf, libelf , flex, bison, elfutils, python, luajit, netperf, iperf, libelf
, systemtap , systemtap
}: }:
stdenv.mkDerivation rec { python.pkgs.buildPythonApplication rec {
version = "0.5.0"; version = "0.5.0";
name = "bcc-${version}"; name = "bcc-${version}";
@ -14,9 +14,11 @@ stdenv.mkDerivation rec {
sha256 = "0bb3244xll5sqx0lvrchg71qy2zg0yj6r5h4v5fvrg1fjhaldys9"; sha256 = "0bb3244xll5sqx0lvrchg71qy2zg0yj6r5h4v5fvrg1fjhaldys9";
}; };
format = "other";
buildInputs = [ buildInputs = [
llvmPackages.llvm llvmPackages.clang-unwrapped kernel llvmPackages.llvm llvmPackages.clang-unwrapped kernel
elfutils python pythonPackages.netaddr luajit netperf iperf elfutils luajit netperf iperf
systemtap.stapBuild systemtap.stapBuild
]; ];
@ -26,18 +28,31 @@ stdenv.mkDerivation rec {
url = "https://github.com/iovisor/bcc/commit/bd7fa55bb39b8978dafd0b299e35616061e0a368.patch"; url = "https://github.com/iovisor/bcc/commit/bd7fa55bb39b8978dafd0b299e35616061e0a368.patch";
sha256 = "1sgxhsq174iihyk1x08py73q8fh78d7y3c90k5nh8vcw2pf1xbnf"; sha256 = "1sgxhsq174iihyk1x08py73q8fh78d7y3c90k5nh8vcw2pf1xbnf";
}) })
# This is needed until we fix
# https://github.com/NixOS/nixpkgs/issues/40427
./fix-deadlock-detector-import.patch
]; ];
nativeBuildInputs = [ makeWrapper cmake flex bison ] nativeBuildInputs = [ makeWrapper cmake flex bison ]
# libelf is incompatible with elfutils-libelf # libelf is incompatible with elfutils-libelf
++ stdenv.lib.filter (x: x != libelf) kernel.moduleBuildDependencies; ++ stdenv.lib.filter (x: x != libelf) kernel.moduleBuildDependencies;
cmakeFlags = cmakeFlags = [
[ "-DBCC_KERNEL_MODULES_DIR=${kernel.dev}/lib/modules" "-DBCC_KERNEL_MODULES_DIR=${kernel.dev}/lib/modules"
"-DREVISION=${version}" "-DREVISION=${version}"
"-DENABLE_USDT=ON" "-DENABLE_USDT=ON"
"-DENABLE_CPP_API=ON" "-DENABLE_CPP_API=ON"
]; ];
postPatch = ''
substituteAll ${./libbcc-path.patch} ./libbcc-path.patch
patch -p1 < libbcc-path.patch
'';
propagatedBuildInputs = [
python.pkgs.netaddr
];
postInstall = '' postInstall = ''
mkdir -p $out/bin $out/share mkdir -p $out/bin $out/share
@ -47,12 +62,17 @@ stdenv.mkDerivation rec {
find $out/share/bcc/tools -type f -executable -print0 | \ find $out/share/bcc/tools -type f -executable -print0 | \
while IFS= read -r -d ''$'\0' f; do while IFS= read -r -d ''$'\0' f; do
pythonLibs="$out/lib/python2.7/site-packages:${pythonPackages.netaddr}/lib/${python.libPrefix}/site-packages" bin=$out/bin/$(basename $f)
rm -f $out/bin/$(basename $f) if [ ! -e $bin ]; then
makeWrapper $f $out/bin/$(basename $f) \ ln -s $f $bin
--prefix LD_LIBRARY_PATH : $out/lib \ fi
--prefix PYTHONPATH : "$pythonLibs"
done done
sed -i -e "s!lib=.*!lib=$out/bin!" $out/bin/{java,ruby,node,python}gc
'';
postFixup = ''
wrapPythonProgramsIn "$out/share/bcc/tools" "$out $pythonPath"
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {

View File

@ -0,0 +1,14 @@
--- source.org/tools/deadlock_detector.py 1980-01-02 00:00:00.000000000 +0000
+++ source/tools/deadlock_detector.py 2018-05-29 13:57:11.807126673 +0100
@@ -44,9 +44,8 @@
#
# 01-Feb-2017 Kenny Yu Created this.
-from __future__ import (
- absolute_import, division, unicode_literals, print_function
-)
+from __future__ import absolute_import, division, unicode_literals, print_function
+
from bcc import BPF
from collections import defaultdict
import argparse

View File

@ -0,0 +1,11 @@
--- source.org/src/python/bcc/libbcc.py 2018-05-13 08:35:06.850522883 +0100
+++ source/src/python/bcc/libbcc.py 2018-05-13 08:36:24.602733151 +0100
@@ -14,7 +14,7 @@
import ctypes as ct
-lib = ct.CDLL("libbcc.so.0", use_errno=True)
+lib = ct.CDLL("@out@/lib/libbcc.so.0", use_errno=True)
# keep in sync with bpf_common.h
lib.bpf_module_create_b.restype = ct.c_void_p

View File

@ -38,11 +38,9 @@ stdenv.mkDerivation {
NIX_LDFLAGS="-L$NIX_BUILD_TOP/foo/lib -rpath $NIX_BUILD_TOP/foo/lib" $CC -lfoo -o ldflags-check ${./ldflags-main.c} NIX_LDFLAGS="-L$NIX_BUILD_TOP/foo/lib -rpath $NIX_BUILD_TOP/foo/lib" $CC -lfoo -o ldflags-check ${./ldflags-main.c}
./ldflags-check ./ldflags-check
'' + stdenv.lib.optionalString (stdenv.cc.isCompilerRT or false) ''
$CC -o sanitizers -fsanitize=address,undefined ${./sanitizers.c} $CC -o sanitizers -fsanitize=address,undefined ${./sanitizers.c}
./sanitizers ./sanitizers
'' + ''
touch $out touch $out
''; '';

View File

@ -10,6 +10,8 @@ stdenv.mkDerivation rec {
sha256 = "0ilzzwn5vpvm65bnbyb9f5rxyxy3jmbafw9w0lgl5iad1ka36jjk"; sha256 = "0ilzzwn5vpvm65bnbyb9f5rxyxy3jmbafw9w0lgl5iad1ka36jjk";
}; };
patches = [ ./gcc-O3.patch ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = http://www.phontron.com/kytea/; homepage = http://www.phontron.com/kytea/;
description = "General toolkit developed for analyzing text"; description = "General toolkit developed for analyzing text";

View File

@ -0,0 +1,13 @@
diff --git a/src/lib/kytea-util.cpp b/src/lib/kytea-util.cpp
index 7c8c4c6..4492df1 100644
--- a/src/lib/kytea-util.cpp
+++ b/src/lib/kytea-util.cpp
@@ -49,5 +49,8 @@ void checkValueVecEqual(const std::vector<T> * a, const std::vector<T> * b) {
+template void checkValueVecEqual(const std::vector<unsigned int> & a, const std::vector<unsigned int> & b);
template void checkValueVecEqual(const std::vector<unsigned int> * a, const std::vector<unsigned int> * b);
+template void checkValueVecEqual(const std::vector<short> & a, const std::vector<short> & b);
template void checkValueVecEqual(const std::vector<short> * a, const std::vector<short> * b);
template void checkValueVecEqual(const std::vector<vector<KyteaString> > * a, const std::vector<vector<KyteaString> > * b);
+template void checkValueVecEqual(const std::vector<int> & a, const std::vector<int> & b);
template void checkValueVecEqual(const std::vector<int> * a, const std::vector<int> * b);

View File

@ -13548,7 +13548,9 @@ with pkgs;
batman_adv = callPackage ../os-specific/linux/batman-adv {}; batman_adv = callPackage ../os-specific/linux/batman-adv {};
bcc = callPackage ../os-specific/linux/bcc { }; bcc = callPackage ../os-specific/linux/bcc {
python = python3;
};
bbswitch = callPackage ../os-specific/linux/bbswitch {}; bbswitch = callPackage ../os-specific/linux/bbswitch {};
@ -16257,8 +16259,7 @@ with pkgs;
hydrogen = callPackage ../applications/audio/hydrogen { }; hydrogen = callPackage ../applications/audio/hydrogen { };
hyper = callPackage ../applications/misc/hyper { inherit (gnome2) GConf; }; hyper = callPackage ../applications/misc/hyper { };
hyperterm = self.hyper;
hyper-haskell-server-with-packages = callPackage ../development/tools/haskell/hyper-haskell/server.nix { hyper-haskell-server-with-packages = callPackage ../development/tools/haskell/hyper-haskell/server.nix {
inherit (haskellPackages) ghcWithPackages; inherit (haskellPackages) ghcWithPackages;
@ -21403,7 +21404,6 @@ with pkgs;
ghc-standalone-archive = callPackage ../os-specific/darwin/ghc-standalone-archive { inherit (darwin) cctools; }; ghc-standalone-archive = callPackage ../os-specific/darwin/ghc-standalone-archive { inherit (darwin) cctools; };
chrome-gnome-shell = callPackage ../desktops/gnome-3/extensions/chrome-gnome-shell {}; chrome-gnome-shell = callPackage ../desktops/gnome-3/extensions/chrome-gnome-shell {};
messenger-for-desktop = callPackage ../applications/networking/instant-messengers/messenger-for-desktop {};
NSPlist = callPackage ../development/libraries/NSPlist {}; NSPlist = callPackage ../development/libraries/NSPlist {};

View File

@ -328,11 +328,23 @@ let self = dotnetPackages // overrides; dotnetPackages = with self; {
postInstall = '' postInstall = ''
mkdir -pv "$out/lib/dotnet/${baseName}" mkdir -pv "$out/lib/dotnet/${baseName}"
ln -sv "${pkgs.z3}/bin/z3" "$out/lib/dotnet/${baseName}/z3.exe" ln -sv "${pkgs.z3}/bin/z3" "$out/lib/dotnet/${baseName}/z3.exe"
# so that this derivation can be used as a vim plugin to install syntax highlighting
vimdir=$out/share/vim-plugins/boogie
install -Dt $vimdir/syntax/ Util/vim/syntax/boogie.vim
mkdir $vimdir/ftdetect
echo 'au BufRead,BufNewFile *.bpl set filetype=boogie' > $vimdir/ftdetect/bpl.vim
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "An intermediate verification language"; description = "An intermediate verification language";
homepage = "https://github.com/boogie-org/boogie"; homepage = "https://github.com/boogie-org/boogie";
longDescription = ''
Boogie is an intermediate verification language (IVL), intended as a
layer on which to build program verifiers for other languages.
This derivation may be used as a vim plugin to provide syntax highlighting.
'';
license = licenses.mspl; license = licenses.mspl;
maintainers = [ maintainers.taktoa ]; maintainers = [ maintainers.taktoa ];
platforms = with platforms; (linux ++ darwin); platforms = with platforms; (linux ++ darwin);

View File

@ -159,13 +159,13 @@ in rec {
ghcjs = packages.ghcjs82; ghcjs = packages.ghcjs82;
ghcjs710 = callPackage ../development/haskell-modules rec { ghcjs710 = callPackage ../development/haskell-modules rec {
buildHaskellPackages = ghc.bootPkgs; buildHaskellPackages = ghc.bootPkgs;
ghc = bh.compiler.ghcjs; ghc = bh.compiler.ghcjs710;
compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-7.10.x.nix { }; compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-7.10.x.nix { };
packageSetConfig = callPackage ../development/haskell-modules/configuration-ghcjs.nix { }; packageSetConfig = callPackage ../development/haskell-modules/configuration-ghcjs.nix { };
}; };
ghcjs80 = callPackage ../development/haskell-modules rec { ghcjs80 = callPackage ../development/haskell-modules rec {
buildHaskellPackages = ghc.bootPkgs; buildHaskellPackages = ghc.bootPkgs;
ghc = bh.compiler.ghcjsHEAD; ghc = bh.compiler.ghcjs80;
compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-8.0.x.nix { }; compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-8.0.x.nix { };
packageSetConfig = callPackage ../development/haskell-modules/configuration-ghcjs.nix { }; packageSetConfig = callPackage ../development/haskell-modules/configuration-ghcjs.nix { };
}; };

View File

@ -311,6 +311,8 @@ in {
outcome = callPackage ../development/python-modules/outcome {}; outcome = callPackage ../development/python-modules/outcome {};
pdfminer = callPackage ../development/python-modules/pdfminer_six { };
plantuml = callPackage ../tools/misc/plantuml { }; plantuml = callPackage ../tools/misc/plantuml { };
Pmw = callPackage ../development/python-modules/Pmw { }; Pmw = callPackage ../development/python-modules/Pmw { };
@ -1323,7 +1325,7 @@ in {
#setupPyBuildFlags = [ "--berkeley-db=${pkgs.db}" ]; #setupPyBuildFlags = [ "--berkeley-db=${pkgs.db}" ];
# We can also use a variable # We can also use a variable
preConfigure = '' preConfigure = ''
export BERKELEYDB_DIR=${pkgs.db}; export BERKELEYDB_DIR=${pkgs.db.dev};
''; '';
meta = { meta = {
@ -3791,28 +3793,6 @@ in {
}; };
}; };
pdfminer = buildPythonPackage rec {
version = "20140328";
name = "pdfminer-${version}";
disabled = ! isPy27;
src = pkgs.fetchurl {
url = "mirror://pypi/p/pdfminer/pdfminer-${version}.tar.gz";
sha256 = "0qpjv4b776dwvpf5a7v19g41qsz97bv0qqsyvm7a31k50n9pn65s";
};
propagatedBuildInputs = with self; [ ];
meta = {
description = "Tool for extracting information from PDF documents";
homepage = http://euske.github.io/pdfminer/index.html;
license = licenses.mit;
maintainers = with maintainers; [ ];
};
};
peppercorn = buildPythonPackage rec { peppercorn = buildPythonPackage rec {
name = "peppercorn-0.5"; name = "peppercorn-0.5";