Merge staging into staging-next

This commit is contained in:
Frederik Rietdijk 2019-04-16 19:13:13 +02:00
commit 951269cdb2
81 changed files with 282 additions and 248 deletions

View File

@ -81,7 +81,7 @@ let
intersperse concatStringsSep concatMapStringsSep intersperse concatStringsSep concatMapStringsSep
concatImapStringsSep makeSearchPath makeSearchPathOutput concatImapStringsSep makeSearchPath makeSearchPathOutput
makeLibraryPath makeBinPath optionalString makeLibraryPath makeBinPath optionalString
hasPrefix hasSuffix stringToCharacters stringAsChars escape hasInfix hasPrefix hasSuffix stringToCharacters stringAsChars escape
escapeShellArg escapeShellArgs replaceChars lowerChars escapeShellArg escapeShellArgs replaceChars lowerChars
upperChars toLower toUpper addContextFrom splitString upperChars toLower toUpper addContextFrom splitString
removePrefix removeSuffix versionOlder versionAtLeast getVersion removePrefix removeSuffix versionOlder versionAtLeast getVersion

View File

@ -8,7 +8,7 @@ let version = "0.15";
in stdenv.mkDerivation { in stdenv.mkDerivation {
name = "hsc3-mode-${version}"; name = "hsc3-mode-${version}";
src = fetchurl { src = fetchurl {
url = http://hackage.haskell.org/package/hsc3-0.15/hsc3-0.15.tar.gz; url = mirror://hackage/hsc3-0.15/hsc3-0.15.tar.gz;
sha256 = "2f3b15655419cf8ebe25ab1c6ec22993b2589b4ffca7c3a75ce478ca78a0bde6"; sha256 = "2f3b15655419cf8ebe25ab1c6ec22993b2589b4ffca7c3a75ce478ca78a0bde6";
}; };

View File

@ -1,12 +1,12 @@
{ lib, fetchFromGitHub }: { lib, fetchFromGitHub }:
rec { rec {
version = "8.1.0578"; version = "8.1.0675";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "vim"; owner = "vim";
repo = "vim"; repo = "vim";
rev = "v${version}"; rev = "v${version}";
sha256 = "0sawqxp2737y6mga9da36qya47h0idnnaxblzpsx8clw002piyv2"; sha256 = "00nlh8f2rf0af3n434s0lp6idxlg4l7mi1lrlbz0xld9dsrzdmas";
}; };
enableParallelBuilding = true; enableParallelBuilding = true;

View File

@ -69,7 +69,7 @@ in stdenv.mkDerivation rec {
configureFlags = [ configureFlags = [
"--without-webkit" # old version is required "--without-webkit" # old version is required
"--with-bug-report-url=https://github.com/NixOS/nixpkgs/issues/new" "--with-bug-report-url=https://github.com/NixOS/nixpkgs/issues/new"
"--with-icc-directory=/var/run/current-system/sw/share/color/icc" "--with-icc-directory=/run/current-system/sw/share/color/icc"
]; ];
# on Darwin, # on Darwin,

View File

@ -15,13 +15,13 @@ with lib;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "kubernetes-${version}"; name = "kubernetes-${version}";
version = "1.13.5"; version = "1.14.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "kubernetes"; owner = "kubernetes";
repo = "kubernetes"; repo = "kubernetes";
rev = "v${version}"; rev = "v${version}";
sha256 = "06pf4h76zsqs3dsxr57y9sb9sw48nfyw1x2q1725zww61jfz2a6y"; sha256 = "1c04x474m5b7qqs9kddrx2mygwpv40hvylr3cq34qxdxgang3qc6";
}; };
buildInputs = [ removeReferencesTo makeWrapper which go rsync go-bindata ]; buildInputs = [ removeReferencesTo makeWrapper which go rsync go-bindata ];
@ -30,7 +30,7 @@ stdenv.mkDerivation rec {
postPatch = '' postPatch = ''
substituteInPlace "hack/lib/golang.sh" --replace "_cgo" "" substituteInPlace "hack/lib/golang.sh" --replace "_cgo" ""
substituteInPlace "hack/generate-docs.sh" --replace "make" "make SHELL=${stdenv.shell}" substituteInPlace "hack/update-generated-docs.sh" --replace "make" "make SHELL=${stdenv.shell}"
# hack/update-munge-docs.sh only performs some tests on the documentation. # hack/update-munge-docs.sh only performs some tests on the documentation.
# They broke building k8s; disabled for now. # They broke building k8s; disabled for now.
echo "true" > "hack/update-munge-docs.sh" echo "true" > "hack/update-munge-docs.sh"
@ -41,7 +41,7 @@ stdenv.mkDerivation rec {
WHAT="${concatStringsSep " " components}"; WHAT="${concatStringsSep " " components}";
postBuild = '' postBuild = ''
./hack/generate-docs.sh ./hack/update-generated-docs.sh
(cd build/pause && cc pause.c -o pause) (cd build/pause && cc pause.c -o pause)
''; '';

View File

@ -308,6 +308,8 @@ rec {
hackage = [ hackage = [
http://hackage.haskell.org/package/ http://hackage.haskell.org/package/
http://hdiff.luite.com/packages/archive/package/ http://hdiff.luite.com/packages/archive/package/
http://hackage.fpcomplete.com/package/
http://objects-us-east-1.dream.io/hackage-mirror/package/
]; ];
# Roy marples mirrors # Roy marples mirrors

View File

@ -3,16 +3,16 @@
let let
# Note: the version MUST be one version prior to the version we're # Note: the version MUST be one version prior to the version we're
# building # building
version = "1.32.0"; version = "1.33.0";
# fetch hashes by running `print-hashes.sh 1.32.0` # fetch hashes by running `print-hashes.sh 1.33.0`
hashes = { hashes = {
i686-unknown-linux-gnu = "4ce3a6a656669fa86606074b43fadeac7465ef48394249407e21106ed714c8db"; i686-unknown-linux-gnu = "c379203687d98e60623aa88c4df4992dd5a9548bc30674b9fc8e671a979e9f3a";
x86_64-unknown-linux-gnu = "e024698320d76b74daf0e6e71be3681a1e7923122e3ebd03673fcac3ecc23810"; x86_64-unknown-linux-gnu = "6623168b9ee9de79deb0d9274c577d741ea92003768660aca184e04fe774393f";
armv7-unknown-linux-gnueabihf = "d7b69f60689d2905d8d3c2829b0f1cd0f86265a255ff88ea0deb601aebac6428"; armv7-unknown-linux-gnueabihf = "f6f0ec0a98d922c4bfd79703bc9e9eef439ba347453f33608a87cd63c47e7245";
aarch64-unknown-linux-gnu = "60def40961728212da4b3a9767d5a2ddb748400e150a5f8a6d5aa0e1b8ba1cee"; aarch64-unknown-linux-gnu = "a308044e4076b62f637313ea803fa0a8f340b0f1b53136856f2c43afcabe5387";
i686-apple-darwin = "76cc1280f6b61bf7cf1fddd5202cc236db7573ee05f39fc8cd12ddda8f39a7c3"; i686-apple-darwin = "ed20809d56bbaea041721ce6fc9f10f7ae7a720c5821587f01a537d07a5454b1";
x86_64-apple-darwin = "f0dfba507192f9b5c330b5984ba71d57d434475f3d62bd44a39201e36fa76304"; x86_64-apple-darwin = "864e7c074a0b88e38883c87c169513d072300bb52e1d320a067bd34cf14f66bd";
}; };
platform = platform =

View File

@ -17,11 +17,11 @@ let
llvmShared = llvm_7.override { enableSharedLibraries = true; }; llvmShared = llvm_7.override { enableSharedLibraries = true; };
in stdenv.mkDerivation rec { in stdenv.mkDerivation rec {
pname = "rustc"; pname = "rustc";
version = "1.33.0"; version = "1.34.0";
src = fetchurl { src = fetchurl {
url = "https://static.rust-lang.org/dist/rustc-${version}-src.tar.gz"; url = "https://static.rust-lang.org/dist/rustc-${version}-src.tar.gz";
sha256 = "152x91mg7bz4ygligwjb05fgm1blwy2i70s2j03zc9jiwvbsh0as"; sha256 = "0n8z1wngkxab1rvixqg6w8b727hzpnm9wp9h8iy3mpbrzp7mmj3s";
}; };
__darwinAllowLocalNetworking = true; __darwinAllowLocalNetworking = true;

View File

@ -118,7 +118,7 @@ let
binDir = if enableSeparateBinOutput then "$bin/bin" else "$out/bin"; binDir = if enableSeparateBinOutput then "$bin/bin" else "$out/bin";
newCabalFileUrl = "http://hackage.haskell.org/package/${pname}-${version}/revision/${revision}.cabal"; newCabalFileUrl = "mirror://hackage/${pname}-${version}/revision/${revision}.cabal";
newCabalFile = fetchurl { newCabalFile = fetchurl {
url = newCabalFileUrl; url = newCabalFileUrl;
sha256 = editedCabalFile; sha256 = editedCabalFile;

View File

@ -183,7 +183,7 @@ in package-set { inherit pkgs stdenv callPackage; } self // {
callHackageDirect = {pkg, ver, sha256}@args: callHackageDirect = {pkg, ver, sha256}@args:
let pkgver = "${pkg}-${ver}"; let pkgver = "${pkg}-${ver}";
in self.callCabal2nix pkg (pkgs.fetchzip { in self.callCabal2nix pkg (pkgs.fetchzip {
url = "http://hackage.haskell.org/package/${pkgver}/${pkgver}.tar.gz"; url = "mirror://hackage/${pkgver}/${pkgver}.tar.gz";
inherit sha256; inherit sha256;
}); });

View File

@ -30,7 +30,7 @@ with pkgs;
isPy2 = lib.strings.substring 0 1 pythonVersion == "2"; isPy2 = lib.strings.substring 0 1 pythonVersion == "2";
isPy3 = lib.strings.substring 0 1 pythonVersion == "3"; isPy3 = lib.strings.substring 0 1 pythonVersion == "3";
isPy3k = isPy3; isPy3k = isPy3;
isPyPy = interpreter == "pypy"; isPyPy = lib.hasInfix "pypy" interpreter;
buildEnv = callPackage ./wrapper.nix { python = self; inherit (pythonPackages) requiredPythonModules; }; buildEnv = callPackage ./wrapper.nix { python = self; inherit (pythonPackages) requiredPythonModules; };
withPackages = import ./with-packages.nix { inherit buildEnv pythonPackages;}; withPackages = import ./with-packages.nix { inherit buildEnv pythonPackages;};
@ -100,11 +100,11 @@ in {
pypy27 = callPackage ./pypy { pypy27 = callPackage ./pypy {
self = pypy27; self = pypy27;
sourceVersion = { sourceVersion = {
major = "6"; major = "7";
minor = "0"; minor = "0";
patch = "0"; patch = "0";
}; };
sha256 = "1qjwpc8n68sxxlfg36s5vn1h2gdfvvd6lxvr4lzbvfwhzrgqahsw"; sha256 = "1m6ja79sbkl38p1hs7c0n4kq5xzn01wp7wl5456hsw9q6cwg6894";
pythonVersion = "2.7"; pythonVersion = "2.7";
db = db.override { dbmSupport = true; }; db = db.override { dbmSupport = true; };
python = python27; python = python27;
@ -114,11 +114,11 @@ in {
pypy35 = callPackage ./pypy { pypy35 = callPackage ./pypy {
self = pypy35; self = pypy35;
sourceVersion = { sourceVersion = {
major = "6"; major = "7";
minor = "0"; minor = "0";
patch = "0"; patch = "0";
}; };
sha256 = "0lwq8nn0r5yj01bwmkk5p7xvvrp4s550l8184mkmn74d3gphrlwg"; sha256 = "0hbv9ziv8n9lqnr6cndrw70p6g40c00w1ds7lmzgrr153myxkp7w";
pythonVersion = "3.5"; pythonVersion = "3.5";
db = db.override { dbmSupport = true; }; db = db.override { dbmSupport = true; };
python = python27; python = python27;

View File

@ -108,6 +108,9 @@ in with passthru; stdenv.mkDerivation rec {
"test_pathlib" "test_pathlib"
# disable tarfile because it assumes gid 0 exists # disable tarfile because it assumes gid 0 exists
"test_tarfile" "test_tarfile"
# disable __all__ because of spurious imp/importlib warning and
# warning-to-error test policy
"test___all__"
]; ];
in '' in ''
export TERMINFO="${ncurses.out}/share/terminfo/"; export TERMINFO="${ncurses.out}/share/terminfo/";

View File

@ -2,11 +2,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "SDL2_ttf-${version}"; name = "SDL2_ttf-${version}";
version = "2.0.14"; version = "2.0.15";
src = fetchurl { src = fetchurl {
url = "https://www.libsdl.org/projects/SDL_ttf/release/${name}.tar.gz"; url = "https://www.libsdl.org/projects/SDL_ttf/release/${name}.tar.gz";
sha256 = "0xljwcpvd2knrjdfag5b257xqayplz55mqlszrqp0kpnphh5xnrl"; sha256 = "0cyd48dipc0m399qy8s03lci8b0bpiy8xlkvrm2ia7wcv0dfpv59";
}; };
configureFlags = stdenv.lib.optional stdenv.isDarwin "--disable-sdltest"; configureFlags = stdenv.lib.optional stdenv.isDarwin "--disable-sdltest";

View File

@ -2,11 +2,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "lv2-${version}"; name = "lv2-${version}";
version = "1.14.0"; version = "1.16.0";
src = fetchurl { src = fetchurl {
url = "http://lv2plug.in/spec/${name}.tar.bz2"; url = "http://lv2plug.in/spec/${name}.tar.bz2";
sha256 = "0chxwys3vnn3nxc9x2vchm74s9sx0vfra6y893byy12ci61jc1dq"; sha256 = "1ppippbpdpv13ibs06b0bixnazwfhiw0d0ja6hx42jnkgdyp5hyy";
}; };
nativeBuildInputs = [ pkgconfig wafHook ]; nativeBuildInputs = [ pkgconfig wafHook ];

View File

@ -86,6 +86,7 @@ in stdenv.mkDerivation rec {
# `-I' flags to be propagated. # `-I' flags to be propagated.
sed -i "src/cairo.pc.in" \ sed -i "src/cairo.pc.in" \
-es'|^Cflags:\(.*\)$|Cflags: \1 -I${freetype.dev}/include/freetype2 -I${freetype.dev}/include|g' -es'|^Cflags:\(.*\)$|Cflags: \1 -I${freetype.dev}/include/freetype2 -I${freetype.dev}/include|g'
substituteInPlace configure --replace strings $STRINGS
''; '';
enableParallelBuilding = true; enableParallelBuilding = true;

View File

@ -2,11 +2,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "glibmm"; pname = "glibmm";
version = "2.58.0"; version = "2.60.0";
src = fetchurl { src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "0idnaii4h3mdym2a55gkavipyxigwvbgfmzmwql85s4rgciqjhfk"; sha256 = "1g7jxqd270dv2d83r7pf5893mwpz7d5xib0q01na2yalh34v38d3";
}; };
outputs = [ "out" "dev" ]; outputs = [ "out" "dev" ];

View File

@ -13,14 +13,14 @@ assert cupsSupport -> cups != null;
with stdenv.lib; with stdenv.lib;
let let
version = "3.24.7"; version = "3.24.8";
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "gtk+3-${version}"; name = "gtk+3-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://gnome/sources/gtk+/${stdenv.lib.versions.majorMinor version}/gtk+-${version}.tar.xz"; url = "mirror://gnome/sources/gtk+/${stdenv.lib.versions.majorMinor version}/gtk+-${version}.tar.xz";
sha256 = "080m925dyhiidlhsxqzx040l4iha2gg38pzbfpnsnjyzl92124jj"; sha256 = "16f71bbkhwhndcsrpyhjia3b77cb5ksf5c45lyfgws4pkgg64sb6";
}; };
outputs = [ "out" "dev" ]; outputs = [ "out" "dev" ];

View File

@ -8,7 +8,7 @@
}: }:
let let
version = "2.3.1"; version = "2.4.0";
inherit (stdenv.lib) optional optionals optionalString; inherit (stdenv.lib) optional optionals optionalString;
in in
@ -17,7 +17,7 @@ stdenv.mkDerivation {
src = fetchurl { src = fetchurl {
url = "https://www.freedesktop.org/software/harfbuzz/release/harfbuzz-${version}.tar.bz2"; url = "https://www.freedesktop.org/software/harfbuzz/release/harfbuzz-${version}.tar.bz2";
sha256 = "0s74ramsbfa183rxkidqgfd2vbhrwicnrqzqsq440dwibffnj1gj"; sha256 = "11a3kq3m6mgyjymgrmacr3h562qmmy2f6rc6wcj21mwv31j0avrk";
}; };
postPatch = '' postPatch = ''

View File

@ -1,13 +1,13 @@
{ stdenv, fetchurl }: { stdenv, fetchurl }:
let let
version = "2.9.0"; version = "2.9.1";
in stdenv.mkDerivation { in stdenv.mkDerivation {
name = "http-parser-${version}"; name = "http-parser-${version}";
src = fetchurl { src = fetchurl {
url = "https://github.com/joyent/http-parser/archive/v${version}.tar.gz"; url = "https://github.com/joyent/http-parser/archive/v${version}.tar.gz";
sha256 = "0gv1dhzwlv1anbzrba20l39gzzmz818yv8jbclbls268aj62c9pg"; sha256 = "08fypqh3jkwvlznvmwwwir53ffg2xcxy0v8bjz6wxjlb41qhf8ik";
}; };
NIX_CFLAGS_COMPILE = "-Wno-error"; NIX_CFLAGS_COMPILE = "-Wno-error";

View File

@ -4,11 +4,11 @@ with stdenv.lib;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "libidn2-${version}"; name = "libidn2-${version}";
version = "2.1.1"; version = "2.1.1a";
src = fetchurl { src = fetchurl {
url = "mirror://gnu/gnu/libidn/${name}.tar.gz"; url = "mirror://gnu/gnu/libidn/${name}.tar.gz";
sha256 = "1cbq439dzf14jjpayk5mk0yyq32k3c27acg1d4ra364j6a060hcm"; sha256 = "0wlb0jrkccsdxlx90wx6ax5raqcm6y9c75dcgc6j6m6gdv7nnrjp";
}; };
outputs = [ "bin" "dev" "out" "info" "devdoc" ]; outputs = [ "bin" "dev" "out" "info" "devdoc" ];

View File

@ -27,11 +27,11 @@ in
with stdenv.lib; with stdenv.lib;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "libinput-${version}"; name = "libinput-${version}";
version = "1.12.6"; version = "1.13.1";
src = fetchurl { src = fetchurl {
url = "https://www.freedesktop.org/software/libinput/${name}.tar.xz"; url = "https://www.freedesktop.org/software/libinput/${name}.tar.xz";
sha256 = "0pgla0mc6mvyr1ljy10mcqvfz8i5z6yp7dbx2bcd70y67wx05d0j"; sha256 = "1as190kl5mnlpqab4qvkxnm4h8vz5cf22r0ai4cb2azfg3a8gm71";
}; };
outputs = [ "bin" "out" "dev" ]; outputs = [ "bin" "out" "dev" ];

View File

@ -2,11 +2,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "libmicrohttpd-${version}"; name = "libmicrohttpd-${version}";
version = "0.9.62"; version = "0.9.63";
src = fetchurl { src = fetchurl {
url = "mirror://gnu/libmicrohttpd/${name}.tar.gz"; url = "mirror://gnu/libmicrohttpd/${name}.tar.gz";
sha256 = "0jfvi1fb4im3a3m8qishbmzx3zch993c0mhvl2k92l1zf1yhjgmx"; sha256 = "173lj66crwvhzwp1r812sc5h1hda7g6lb9l1y5zf7w3pw4dnzhrp";
}; };
outputs = [ "out" "dev" "devdoc" "info" ]; outputs = [ "out" "dev" "devdoc" "info" ];

View File

@ -2,14 +2,14 @@
, fixedPoint ? false, withCustomModes ? true }: , fixedPoint ? false, withCustomModes ? true }:
let let
version = "1.3"; version = "1.3.1";
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "libopus-${version}"; name = "libopus-${version}";
src = fetchurl { src = fetchurl {
url = "https://archive.mozilla.org/pub/opus/opus-${version}.tar.gz"; url = "https://archive.mozilla.org/pub/opus/opus-${version}.tar.gz";
sha256 = "0l651n19h0vhc0sn6w2c95hgqks1i8m4b3j04ncaznzjznp6jgag"; sha256 = "17gz8kxs4i7icsc1gj713gadiapyklynlwqlf0ai98dj4lg8xdb5";
}; };
outputs = [ "out" "dev" ]; outputs = [ "out" "dev" ];

View File

@ -1,11 +1,11 @@
{ stdenv, fetchurl }: { stdenv, fetchurl }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "libpipeline-1.5.0"; name = "libpipeline-1.5.1";
src = fetchurl { src = fetchurl {
url = "mirror://savannah/libpipeline/${name}.tar.gz"; url = "mirror://savannah/libpipeline/${name}.tar.gz";
sha256 = "0avg525wvifcvjrwa6i1r6kvahmsswj0mpxrsxzzdzra9wpf2whd"; sha256 = "0bwh5xz5f2czwb7f564jz1mp4znm8pldnvf65fs0hpw4gmmp0cyn";
}; };
patches = stdenv.lib.optionals stdenv.isDarwin [ ./fix-on-osx.patch ]; patches = stdenv.lib.optionals stdenv.isDarwin [ ./fix-on-osx.patch ];

View File

@ -21,6 +21,10 @@ stdenv.mkDerivation rec {
buildInputs = [ libgcrypt ]; buildInputs = [ libgcrypt ];
# optional: build docs with gtk-doc? (probably needs a flag as well) # optional: build docs with gtk-doc? (probably needs a flag as well)
configureFlags = [
"--with-libgcrypt-prefix=${libgcrypt.dev}"
];
enableParallelBuilding = true; enableParallelBuilding = true;
installCheckInputs = [ python3 python3.pkgs.dbus-python python3.pkgs.pygobject3 xvfb_run dbus gnome3.gjs ]; installCheckInputs = [ python3 python3.pkgs.dbus-python python3.pkgs.pygobject3 xvfb_run dbus gnome3.gjs ];

View File

@ -1,11 +1,11 @@
{ stdenv, fetchurl }: { stdenv, fetchurl }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "libsodium-1.0.16"; name = "libsodium-1.0.17";
src = fetchurl { src = fetchurl {
url = "https://download.libsodium.org/libsodium/releases/${name}.tar.gz"; url = "https://download.libsodium.org/libsodium/releases/${name}.tar.gz";
sha256 = "0cq5pn7qcib7q70mm1lgjwj75xdxix27v0xl1xl0kvxww7hwgbgf"; sha256 = "1cf2d9v1gylz1qcy2zappbf526qfmph6gd6fnn3w2b347vixmhqc";
}; };
outputs = [ "out" "dev" ]; outputs = [ "out" "dev" ];

View File

@ -1,11 +1,11 @@
{ stdenv, fetchurl, fetchpatch, pkgconfig, cmake, zlib, openssl, libsodium }: { stdenv, fetchurl, fetchpatch, pkgconfig, cmake, zlib, openssl, libsodium }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "libssh-0.8.5"; name = "libssh-0.8.7";
src = fetchurl { src = fetchurl {
url = "https://www.libssh.org/files/0.8/${name}.tar.xz"; url = "https://www.libssh.org/files/0.8/${name}.tar.xz";
sha256 = "0dd3nmd20jw4z116qbz3wbffxbzrczi6mcxw0rmqzj0g4hqw9lh7"; sha256 = "14nmwfnnrhkwcfk5hn7azl905ivbh4wllmsbw5abd80b5yi4qc23";
}; };
postPatch = '' postPatch = ''

View File

@ -2,11 +2,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "libssh2"; pname = "libssh2";
version = "1.8.1"; version = "1.8.2";
src = fetchurl { src = fetchurl {
url = "${meta.homepage}/download/${pname}-${version}.tar.gz"; url = "${meta.homepage}/download/${pname}-${version}.tar.gz";
sha256 = "0ngif3ynk6xqzy5nlfjs7bsmfm81g9f145av0z86kf0vbgrigda0"; sha256 = "0rqd37pc80nm2pz4sa2m9pfc48axys7jwq1l7z0vii5nyvchg0q8";
}; };
outputs = [ "out" "dev" "devdoc" ]; outputs = [ "out" "dev" "devdoc" ];

View File

@ -1,14 +1,14 @@
{ stdenv, lib, fetchpatch, fetchFromGitHub, autoconf, automake, libtool, pkgconfig, ApplicationServices, CoreServices }: { stdenv, lib, fetchpatch, fetchFromGitHub, autoconf, automake, libtool, pkgconfig, ApplicationServices, CoreServices }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "1.26.0"; version = "1.27.0";
pname = "libuv"; pname = "libuv";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = pname; owner = pname;
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "08jvjyn5bp4xnzd5g4pi534mklm6hz5pw6wbzbaq3cnwb6a04iwj"; sha256 = "1nhd3772qymlv0b251wg9rrqz279vki4hnd4s23yyll0kpmzkpac";
}; };
postPatch = let postPatch = let

View File

@ -2,13 +2,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "libwacom-${version}"; name = "libwacom-${version}";
version = "0.32"; version = "0.33";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "linuxwacom"; owner = "linuxwacom";
repo = "libwacom"; repo = "libwacom";
rev = "libwacom-${version}"; rev = "libwacom-${version}";
sha256 = "15fz2z2h2awh2l08cv663s1zk4z8bmvvivwnnfvx2q8lkqgfkr7f"; sha256 = "0np0a7rpnlm9iqw1i8ycz5mprin6bb99p4h522v9vjk4lhzsp34m";
}; };
nativeBuildInputs = [ pkgconfig autoreconfHook ]; nativeBuildInputs = [ pkgconfig autoreconfHook ];

View File

@ -2,14 +2,14 @@
, CoreServices ? null , CoreServices ? null
, buildPackages }: , buildPackages }:
let version = "4.20"; in let version = "4.21"; in
stdenv.mkDerivation { stdenv.mkDerivation {
name = "nspr-${version}"; name = "nspr-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://mozilla/nspr/releases/v${version}/src/nspr-${version}.tar.gz"; url = "mirror://mozilla/nspr/releases/v${version}/src/nspr-${version}.tar.gz";
sha256 = "0vjms4j75zvv5b2siyafg7hh924ysx2cwjad8spzp7x87n8n929c"; sha256 = "0nkbgk0x31nfm4xl8la0a3vrnpa8gzkh7g4k65p7n880n73k5shm";
}; };
patches = [ patches = [

View File

@ -1,10 +1,10 @@
{ callPackage, fetchpatch, ... } @ args: { callPackage, fetchpatch, ... } @ args:
callPackage ./generic.nix (args // rec { callPackage ./generic.nix (args // rec {
version = "2.3.0"; version = "2.3.1";
branch = "2.3"; branch = "2.3";
revision = "v${version}"; revision = "v${version}";
sha256 = "08plxrnfl33sn2vh5nwbsngyv6b1sfpplvx881crm1v1ai10m2lz"; sha256 = "1dn98d2dfa1lqyxxmab6rrcv52dyhjr4g7i4xf2w54fqsx14ynrb";
extraFlags = [ extraFlags = [
"-DOPENJPEG_INSTALL_INCLUDE_DIR=${placeholder "dev"}/include/openjpeg-${branch}" "-DOPENJPEG_INSTALL_INCLUDE_DIR=${placeholder "dev"}/include/openjpeg-${branch}"
@ -12,20 +12,6 @@ callPackage ./generic.nix (args // rec {
]; ];
patches = [ patches = [
(fetchpatch {
name = "CVE-2018-7648.patch";
url = "https://github.com/uclouvain/openjpeg/commit/cc3824767bde397fedb8a1ae4786a222ba860c8d.patch";
sha256 = "1j5nxmlgyfkxldk2f1ij6h850xw45q3b5brxqa04dxsfsv8cdj5j";
})
(fetchpatch {
name = "CVE-2017-17480+CVE-2018-18088.patch";
url = "https://github.com/uclouvain/openjpeg/commit/92023cd6c377e0384a7725949b25655d4d94dced.patch";
sha256 = "0rrxxqcp3vjkmvywxj9ac766m3fppy0x0nszrkf8irrqy1gnp38k";
})
(fetchpatch {
url = https://github.com/uclouvain/openjpeg/commit/24fd3ce777a64b8b315cfe1ee642ec7b1cc6aa97.patch;
sha256 = "1sl5wplgdfiqw8qbd8s5j5hq3ynbwgsnv8nxqfrk5s7vyrzx9pxv";
})
./fix-cmake-config-includedir.patch ./fix-cmake-config-includedir.patch
]; ];
}) })

View File

@ -1,11 +1,11 @@
{ stdenv, fetchurl, openssl, cyrus_sasl, db, groff, libtool }: { stdenv, fetchurl, openssl, cyrus_sasl, db, groff, libtool }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "openldap-2.4.46"; name = "openldap-2.4.47";
src = fetchurl { src = fetchurl {
url = "https://www.openldap.org/software/download/OpenLDAP/openldap-release/${name}.tgz"; url = "https://www.openldap.org/software/download/OpenLDAP/openldap-release/${name}.tgz";
sha256 = "0bab1km8f2nan1x0zgwliknbxg0zlf2pafxrr867kblrdfwdr44s"; sha256 = "02sj0p1pq12hqq29b22m3f5zs2rykgvc0q3wlynxjcsjhrvmhk7m";
}; };
# TODO: separate "out" and "bin" # TODO: separate "out" and "bin"

View File

@ -8,7 +8,7 @@ with stdenv.lib;
assert elem variant [ null "cpp" "pcre16" "pcre32" ]; assert elem variant [ null "cpp" "pcre16" "pcre32" ];
let let
version = "8.42"; version = "8.43";
pname = if (variant == null) then "pcre" pname = if (variant == null) then "pcre"
else if (variant == "cpp") then "pcre-cpp" else if (variant == "cpp") then "pcre-cpp"
else variant; else variant;
@ -18,7 +18,7 @@ in stdenv.mkDerivation rec {
src = fetchurl { src = fetchurl {
url = "https://ftp.pcre.org/pub/pcre/pcre-${version}.tar.bz2"; url = "https://ftp.pcre.org/pub/pcre/pcre-${version}.tar.bz2";
sha256 = "00ckpzlgyr16bnqx8fawa3afjgqxw5yxgs2l081vw23qi1y4pl1c"; sha256 = "0sxg1wlknq05ryq63h21cchjmcjkin9lmnqsmhs3h08301965rwi";
}; };
outputs = [ "bin" "dev" "out" "doc" "man" ]; outputs = [ "bin" "dev" "out" "doc" "man" ];

View File

@ -6,7 +6,7 @@
with lib; with lib;
let let
v = "4.10.1"; v = "4.10.2";
soname = if withQt5 then "phonon4qt5" else "phonon"; soname = if withQt5 then "phonon4qt5" else "phonon";
buildsystemdir = "share/cmake/${soname}"; buildsystemdir = "share/cmake/${soname}";
@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
src = fetchurl { src = fetchurl {
url = "mirror://kde/stable/phonon/${v}/phonon-${v}.tar.xz"; url = "mirror://kde/stable/phonon/${v}/phonon-${v}.tar.xz";
sha256 = "1dwdw0hm6685psrp7v9frhkhqvsxrbdnm3gw794j5z7g3brqvag5"; sha256 = "02c8fyyvg5qb0lxwxmnxc5grkg6p3halakjf02vmwmvqaycb3v9l";
}; };
buildInputs = buildInputs =

View File

@ -19,7 +19,6 @@
, PyRSS2Gen , PyRSS2Gen
, Logbook , Logbook
, blinker , blinker
, setuptools
, natsort , natsort
, requests , requests
, piexif , piexif
@ -28,7 +27,6 @@
, jinja2 , jinja2
, Babel , Babel
, freezegun , freezegun
, pyyaml
, toml , toml
, notebook , notebook
, ruamel_yaml , ruamel_yaml
@ -46,9 +44,11 @@ buildPythonPackage rec {
checkInputs = [ pytest pytestcov mock glibcLocales freezegun ]; checkInputs = [ pytest pytestcov mock glibcLocales freezegun ];
propagatedBuildInputs = [ propagatedBuildInputs = [
pygments pillow dateutil docutils Mako unidecode lxml Yapsy PyRSS2Gen # requirements.txt
Logbook blinker setuptools natsort requests piexif markdown phpserialize doit pygments pillow dateutil docutils Mako markdown unidecode
jinja2 doit Babel pyyaml toml notebook ruamel_yaml lxml Yapsy PyRSS2Gen Logbook blinker natsort requests piexif Babel
# requirements-extras.txt
phpserialize jinja2 toml notebook ruamel_yaml
]; ];
src = fetchPypi { src = fetchPypi {

View File

@ -1,39 +1,53 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, python , pythonOlder
, attrs
, bitstruct
, future
, pathlib2
, typing
, lxml , lxml
, xlwt , xlwt
, xlrd , xlrd
, XlsxWriter , XlsxWriter
, pyyaml , pyyaml
, future }: , pytest
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "canmatrix"; pname = "canmatrix";
version = "0.6"; version = "0.7";
# uses fetchFromGitHub as PyPi release misses test/ dir # uses fetchFromGitHub as PyPi release misses test/ dir
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ebroecker"; owner = "ebroecker";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "1lb0krhchja2jqfsh5lsfgmqcchs1pd38akvc407jfmll96f4yqz"; sha256 = "0q8qb282nfgirl8r2i9c8whm3hvr14ig2r42ssgnv2hya971cwjq";
}; };
checkPhase = '' propagatedBuildInputs = [
cd test # required
${python.interpreter} ./test.py attrs
''; bitstruct
future
pathlib2
# optional
lxml
xlwt
xlrd
XlsxWriter
pyyaml
] ++ lib.optional (pythonOlder "3.5") typing;
propagatedBuildInputs = checkInputs = [
[ lxml pytest
xlwt ];
xlrd
XlsxWriter checkPhase = ''
pyyaml pytest -s src/canmatrix
future '';
];
meta = with lib; { meta = with lib; {
homepage = https://github.com/ebroecker/canmatrix; homepage = https://github.com/ebroecker/canmatrix;

View File

@ -1,5 +1,7 @@
{ stdenv { stdenv
, lib
, buildPythonPackage , buildPythonPackage
, isPyPy
, fetchPypi , fetchPypi
, pytest_3 , pytest_3
, setuptools_scm , setuptools_scm
@ -15,7 +17,7 @@ buildPythonPackage rec {
sha256 = "a7a84d5fa07a089186a329528f127c9d73b9de57f1a1131b82bb5320ee651f6a"; sha256 = "a7a84d5fa07a089186a329528f127c9d73b9de57f1a1131b82bb5320ee651f6a";
}; };
checkInputs = [ pytest_3 ]; checkInputs = [ pytest_3 ];
nativeBuildInputs = [ setuptools_scm ]; nativeBuildInputs = [ setuptools_scm ];
propagatedBuildInputs = [ apipkg ]; propagatedBuildInputs = [ apipkg ];
@ -25,6 +27,7 @@ buildPythonPackage rec {
rm -v testing/test_channel.py rm -v testing/test_channel.py
rm -v testing/test_xspec.py rm -v testing/test_xspec.py
rm -v testing/test_gateway.py rm -v testing/test_gateway.py
${lib.optionalString isPyPy "rm -v testing/test_multi.py"}
''; '';
checkPhase = '' checkPhase = ''

View File

@ -21,12 +21,12 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "intake"; pname = "intake";
version = "0.4.1"; version = "0.4.4";
disabled = isPy27; disabled = isPy27;
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "f47e53aa764eeadf6adcc667b9817b1ad32496477476da0b982d4fc0744b40ef"; sha256 = "3fc1b7c2949c9b4200ecbbfdff17da126981a1d8d95ccb7b7bcca3e3dd849d5e";
}; };
checkInputs = [ pytest ]; checkInputs = [ pytest ];
@ -47,8 +47,9 @@ buildPythonPackage rec {
]; ];
checkPhase = '' checkPhase = ''
# single test assumes python for executable name # test_filtered_compressed_cache requires calvert_uk_filter.tar.gz, which is not included in tarball
PATH=$out/bin:$PATH HOME=$(mktemp -d) pytest --ignore=intake/catalog/tests/test_default.py # test_which assumes python for executable name
PATH=$out/bin:$PATH HOME=$(mktemp -d) pytest -k "not test_filtered_compressed_cache and not test_which"
''; '';
meta = with lib; { meta = with lib; {

View File

@ -13,6 +13,12 @@ buildPythonPackage rec {
sha256 = "8403d6e48200c3f49cb6d6b3dcb5898aa5ab9d820831655bf9a2403e00cd4207"; sha256 = "8403d6e48200c3f49cb6d6b3dcb5898aa5ab9d820831655bf9a2403e00cd4207";
}; };
# https://github.com/emre/kaptan/pull/151
postPatch = ''
substituteInPlace requirements/base.txt \
--replace "PyYAML>=3.13,<4" "PyYAML>=3.13"
'';
propagatedBuildInputs = [ pyyaml ]; propagatedBuildInputs = [ pyyaml ];
# No tests in archive # No tests in archive

View File

@ -14,7 +14,7 @@ buildPythonPackage rec {
checkInputs = [ mock ]; checkInputs = [ mock ];
checkPhase = '' checkPhase = ''
python -m twisted.trial wormhole_transit_relay ${twisted}/bin/trial wormhole_transit_relay
''; '';
meta = with lib; { meta = with lib; {

View File

@ -20,6 +20,12 @@ buildPythonPackage rec {
buildInputs = [ unittest2 ]; buildInputs = [ unittest2 ];
propagatedBuildInputs = [ funcsigs six pbr ]; propagatedBuildInputs = [ funcsigs six pbr ];
# On PyPy for Python 2.7 in particular, Mock's tests have a known failure.
# Mock upstream has a decoration to disable the failing test and make
# everything pass, but it is not yet released. The commit:
# https://github.com/testing-cabal/mock/commit/73bfd51b7185#diff-354f30a63fb0907d4ad57269548329e3L12
doCheck = !(python.isPyPy && python.isPy27);
checkPhase = '' checkPhase = ''
${python.interpreter} -m unittest discover ${python.interpreter} -m unittest discover
''; '';

View File

@ -1,36 +1,27 @@
{ buildPythonPackage, stdenv, pyyaml, pytest, enum34 { lib, buildPythonPackage, fetchPypi, isPy3k
, pytestpep8, pytest-flakes, fetchFromGitHub, isPy3k, lib, glibcLocales , enum34, pyyaml, pytest
}: }:
buildPythonPackage rec { buildPythonPackage rec {
version = "4.13.2"; version = "4.15.0";
pname = "mt-940"; pname = "mt-940";
# No tests in PyPI tarball src = fetchPypi {
# See https://github.com/WoLpH/mt940/pull/72 inherit pname version;
src = fetchFromGitHub { sha256 = "4c1d5c23a9c3fec12a61ce3f61d8be107b4693be4a4b97381eca23f4a4dca8ed";
owner = "WoLpH";
repo = "mt940";
rev = "v${version}";
sha256 = "1lvw3qyv7qhjabcvg55br8x4pnc7hv8xzzaf6wnr8cfjg0q7dzzg";
}; };
postPatch = ''
# No coverage report
sed -i "/--\(no-\)\?cov/d" pytest.ini
'';
propagatedBuildInputs = lib.optional (!isPy3k) enum34; propagatedBuildInputs = lib.optional (!isPy3k) enum34;
checkInputs = [ pyyaml pytestpep8 pytest-flakes pytest ]; checkInputs = [ pyyaml pytest ];
checkPhase = '' checkPhase = ''
py.test py.test
''; '';
meta = with stdenv.lib; { meta = with lib; {
description = "A library to parse MT940 files and returns smart Python collections for statistics and manipulation"; description = "A library to parse MT940 files and returns smart Python collections for statistics and manipulation";
inherit (src.meta) homepage; homepage = https://github.com/WoLpH/mt940;
license = licenses.bsd3; license = licenses.bsd3;
}; };
} }

View File

@ -1,4 +1,4 @@
{ stdenv, lib, fetchPypi, python, buildPythonPackage, isPyPy, gfortran, pytest, blas, writeTextFile }: { stdenv, lib, fetchPypi, python, buildPythonPackage, gfortran, pytest, blas, writeTextFile }:
let let
blasImplementation = lib.nameFromURL blas.name "-"; blasImplementation = lib.nameFromURL blas.name "-";
@ -24,7 +24,6 @@ in buildPythonPackage rec {
sha256 = "1c4inssky16p6ab63n1gass6dik1dzxrp3y7kmxbdq6xg4w2wsbc"; sha256 = "1c4inssky16p6ab63n1gass6dik1dzxrp3y7kmxbdq6xg4w2wsbc";
}; };
disabled = isPyPy;
nativeBuildInputs = [ gfortran pytest ]; nativeBuildInputs = [ gfortran pytest ];
buildInputs = [ blas ]; buildInputs = [ blas ];

View File

@ -3,7 +3,6 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "pyasn1-modules"; pname = "pyasn1-modules";
version = "0.2.4"; version = "0.2.4";
disabled = isPyPy;
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;

View File

@ -2,7 +2,6 @@
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, isPy3k , isPy3k
, isPyPy
, setuptoolsDarcs , setuptoolsDarcs
, darcsver , darcsver
, pkgs , pkgs
@ -11,7 +10,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "pycryptopp"; pname = "pycryptopp";
version = "0.7.1.869544967005693312591928092448767568728501330214"; version = "0.7.1.869544967005693312591928092448767568728501330214";
disabled = isPy3k || isPyPy; # see https://bitbucket.org/pypy/pypy/issue/1190/ disabled = isPy3k; # see https://bitbucket.org/pypy/pypy/issue/1190/
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;

View File

@ -1,4 +1,4 @@
{ stdenv, buildPythonPackage, fetchPypi { stdenv, lib, isPyPy, buildPythonPackage, fetchPypi
, pytest_3, cmdline, pytestcov, coverage, setuptools-git, mock, pathpy, execnet , pytest_3, cmdline, pytestcov, coverage, setuptools-git, mock, pathpy, execnet
, contextlib2, termcolor }: , contextlib2, termcolor }:
@ -16,7 +16,7 @@ buildPythonPackage rec {
nativeBuildInputs = [ pytest_3 ]; nativeBuildInputs = [ pytest_3 ];
checkPhase = '' checkPhase = ''
py.test py.test ${lib.optionalString isPyPy "-k'not (test_run or test_run_integration)'"}
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {

View File

@ -1,23 +1,29 @@
{ stdenv { stdenv
, buildPythonPackage , buildPythonPackage
, fetchgit , fetchFromGitHub
, python , python
, pytest
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pytoml"; pname = "pytoml";
version = "0.1.14"; version = "0.1.20";
src = fetchFromGitHub {
owner = "avakar";
repo = "pytoml";
rev = "v${version}";
fetchSubmodules = true; # ensure test submodule is available
sha256 = "02hjq44zhh6z0fsbm3hvz34sav6fic90sjrw8g1pkdvskzzl46mz";
};
checkInputs = [ pytest ];
checkPhase = '' checkPhase = ''
${python.interpreter} test/test.py ${python.interpreter} test/test.py
pytest test
''; '';
# fetchgit used to ensure test submodule is available
src = fetchgit {
url = "${meta.homepage}.git";
rev = "refs/tags/v${version}";
sha256 = "1ip71yqxnyi4jhw5x1q7a0za61ndhpfh0vbx08jfv0w4ayng6rgv";
};
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "A TOML parser/writer for Python"; description = "A TOML parser/writer for Python";

View File

@ -1,17 +1,22 @@
{ lib, buildPythonPackage, fetchPypi, libyaml, buildPackages }: { lib, buildPythonPackage, fetchPypi, cython, libyaml, buildPackages }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "PyYAML"; pname = "PyYAML";
version = "3.13"; version = "5.1";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "3ef3092145e9b70e3ddd2c7ad59bdd0252a94dfe3949721633e41344de00a6bf"; sha256 = "436bc774ecf7c103814098159fbb84c2715d25980175292c648f2da143909f95";
}; };
nativeBuildInputs = [ buildPackages.stdenv.cc ]; # force regeneration using Cython
postPatch = ''
rm ext/_yaml.c
'';
propagatedBuildInputs = [ libyaml ]; nativeBuildInputs = [ cython buildPackages.stdenv.cc ];
buildInputs = [ libyaml ];
meta = with lib; { meta = with lib; {
description = "The next generation YAML parser and emitter for Python"; description = "The next generation YAML parser and emitter for Python";

View File

@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchPypi, pythonOlder, isPy3k, python }: { lib, buildPythonPackage, fetchPypi, pythonOlder, isPy3k, isPyPy, python }:
let let
testDir = if isPy3k then "src" else "python2"; testDir = if isPy3k then "src" else "python2";
@ -14,7 +14,8 @@ in buildPythonPackage rec {
# Error for Python3.6: ImportError: cannot import name 'ann_module' # Error for Python3.6: ImportError: cannot import name 'ann_module'
# See https://github.com/python/typing/pull/280 # See https://github.com/python/typing/pull/280
doCheck = pythonOlder "3.6"; # Also, don't bother on PyPy: AssertionError: TypeError not raised
doCheck = pythonOlder "3.6" && !isPyPy;
checkPhase = '' checkPhase = ''
cd ${testDir} cd ${testDir}

View File

@ -14,6 +14,13 @@ buildPythonPackage rec {
propagatedBuildInputs = [ itsdangerous ]; propagatedBuildInputs = [ itsdangerous ];
checkInputs = [ pytest requests hypothesis ]; checkInputs = [ pytest requests hypothesis ];
# Hi! New version of Werkzeug? Please double-check that this commit is
# inclucded, and then remove the following patch.
# https://github.com/pallets/werkzeug/commit/1cfdcf9824cb20e362979e8f7734012926492165
patchPhase = ''
substituteInPlace "tests/test_serving.py" --replace "'python'" "sys.executable"
'';
checkPhase = '' checkPhase = ''
pytest ${stdenv.lib.optionalString stdenv.isDarwin "-k 'not test_get_machine_id'"} pytest ${stdenv.lib.optionalString stdenv.isDarwin "-k 'not test_get_machine_id'"}
''; '';

View File

@ -3,13 +3,11 @@
, fetchPypi , fetchPypi
, setuptoolsDarcs , setuptoolsDarcs
, pyutil , pyutil
, isPyPy
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "zfec"; pname = "zfec";
version = "1.5.3"; version = "1.5.3";
disabled = isPyPy;
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;

View File

@ -37,6 +37,13 @@ let newPython = python3.override {
sha256 = "c0abe3218b86533cca287e7057a37481883c07acef7814b70583406938214cc8"; sha256 = "c0abe3218b86533cca287e7057a37481883c07acef7814b70583406938214cc8";
}; };
}); });
pyyaml = super.pyyaml.overridePythonAttrs (oldAttrs: rec {
version = "3.13";
src = oldAttrs.src.override {
inherit version;
sha256 = "3ef3092145e9b70e3ddd2c7ad59bdd0252a94dfe3949721633e41344de00a6bf";
};
});
}; };
}; };

View File

@ -2,13 +2,11 @@
python3Packages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
pname = "remarshal"; pname = "remarshal";
version = "0.8.0"; version = "0.9.1";
src = fetchFromGitHub { src = python3Packages.fetchPypi {
owner = "dbohdan"; inherit pname version;
repo = "remarshal"; sha256 = "564ffe9cbde85bd28a9c184b90c764abd2003abd6101a30802262198b5c7fc40";
rev = "v${version}";
sha256 = "192r1mfd5yj6kg6fqmkjngdlgn25g5rkvm0p6xaflpvavnhvhnsj";
}; };
propagatedBuildInputs = with python3Packages; [ propagatedBuildInputs = with python3Packages; [

View File

@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
name = "cups-${version}"; name = "cups-${version}";
# After 2.2.6, CUPS requires headers only available in macOS 10.12+ # After 2.2.6, CUPS requires headers only available in macOS 10.12+
version = if stdenv.isDarwin then "2.2.6" else "2.2.10"; version = if stdenv.isDarwin then "2.2.6" else "2.2.11";
passthru = { inherit version; }; passthru = { inherit version; };
@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
url = "https://github.com/apple/cups/releases/download/v${version}/cups-${version}-source.tar.gz"; url = "https://github.com/apple/cups/releases/download/v${version}/cups-${version}-source.tar.gz";
sha256 = if version == "2.2.6" sha256 = if version == "2.2.6"
then "16qn41b84xz6khrr2pa2wdwlqxr29rrrkjfi618gbgdkq9w5ff20" then "16qn41b84xz6khrr2pa2wdwlqxr29rrrkjfi618gbgdkq9w5ff20"
else "1fq52aw1mini3ld2czv5gg37wbbvh4n7yc7wzzxvbs3zpfrv5j3p"; else "0v5p10lyv8wv48s8ghkhjmdrxg6iwj8hn36v1ilkz46n7y0i107m";
}; };
outputs = [ "out" "lib" "dev" "man" ]; outputs = [ "out" "lib" "dev" "man" ];

View File

@ -6,11 +6,11 @@
assert enablePython -> python != null; assert enablePython -> python != null;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "audit-2.8.4"; name = "audit-2.8.5";
src = fetchurl { src = fetchurl {
url = "https://people.redhat.com/sgrubb/audit/${name}.tar.gz"; url = "https://people.redhat.com/sgrubb/audit/${name}.tar.gz";
sha256 = "0f4ci6ffznnmgblwgv7ich9mjfk3p6y5l6m6h3chhmzw156nj454"; sha256 = "1dzcwb2q78q7x41shcachn7f4aksxbxd470yk38zh03fch1l2p8f";
}; };
outputs = [ "bin" "dev" "out" "man" ]; outputs = [ "bin" "dev" "out" "man" ];
@ -23,6 +23,8 @@ stdenv.mkDerivation rec {
# and pulls in an extra openldap dependency otherwise # and pulls in an extra openldap dependency otherwise
"--disable-zos-remote" "--disable-zos-remote"
(if enablePython then "--with-python" else "--without-python") (if enablePython then "--with-python" else "--without-python")
"--with-arm"
"--with-aarch64"
]; ];
enableParallelBuilding = true; enableParallelBuilding = true;

View File

@ -2,14 +2,14 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "kexec-tools-${version}"; name = "kexec-tools-${version}";
version = "2.0.18"; version = "2.0.19";
src = fetchurl { src = fetchurl {
urls = [ urls = [
"mirror://kernel/linux/utils/kernel/kexec/${name}.tar.xz" "mirror://kernel/linux/utils/kernel/kexec/${name}.tar.xz"
"http://horms.net/projects/kexec/kexec-tools/${name}.tar.xz" "http://horms.net/projects/kexec/kexec-tools/${name}.tar.xz"
]; ];
sha256 = "0f5jnb0470nmxyl1cz2687hqjr8cwqniqc1ycq9bazlp85rz087h"; sha256 = "03jyi4c47ywclycf3a253xpqs7p6ys8inz9q66b8m3xc6nrh307d";
}; };
hardeningDisable = [ "format" "pic" "relro" "pie" ]; hardeningDisable = [ "format" "pic" "relro" "pie" ];

View File

@ -2,11 +2,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "linux-pam-${version}"; name = "linux-pam-${version}";
version = "1.3.0"; version = "1.3.1";
src = fetchurl { src = fetchurl {
url = "http://www.linux-pam.org/library/Linux-PAM-${version}.tar.bz2"; url = "https://github.com/linux-pam/linux-pam/releases/download/v1.3.1/Linux-PAM-${version}.tar.xz";
sha256 = "1fyi04d5nsh8ivd0rn2y0z83ylgc0licz7kifbb6xxi2ylgfs6i4"; sha256 = "1nyh9kdi3knhxcbv5v4snya0g3gff0m671lnvqcbygw3rm77mx7g";
}; };
patches = stdenv.lib.optionals (stdenv.hostPlatform.libc == "musl") [ patches = stdenv.lib.optionals (stdenv.hostPlatform.libc == "musl") [

View File

@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
substituteInPlace src/main.c --replace \ substituteInPlace src/main.c --replace \
"/sbin:/bin:/usr/sbin:/usr/bin" \ "/sbin:/bin:/usr/sbin:/usr/bin" \
"${utillinux}/bin:${mdadm}/sbin:/var/run/current-system/sw/bin:/var/run/current-system/sw/bin" "${utillinux}/bin:${mdadm}/sbin:/run/current-system/sw/bin:/run/current-system/sw/bin"
''; '';
buildInputs = buildInputs =

View File

@ -39,7 +39,7 @@ in stdenv.mkDerivation rec {
"--enable-last" "--enable-last"
"--enable-mesg" "--enable-mesg"
"--disable-use-tty-group" "--disable-use-tty-group"
"--enable-fs-paths-default=/run/wrappers/bin:/var/run/current-system/sw/bin:/sbin" "--enable-fs-paths-default=/run/wrappers/bin:/run/current-system/sw/bin:/sbin"
"--disable-makeinstall-setuid" "--disable-makeinstall-chown" "--disable-makeinstall-setuid" "--disable-makeinstall-chown"
(lib.withFeature (ncurses != null) "ncursesw") (lib.withFeature (ncurses != null) "ncursesw")
(lib.withFeature (systemd != null) "systemd") (lib.withFeature (systemd != null) "systemd")

View File

@ -5,7 +5,7 @@ diff -rupN asterisk-14.1.2/build_tools/make_defaults_h asterisk-14.1.2-patched/b
#!/bin/sh #!/bin/sh
+ +
+ASTLOGDIR=/var/log/asterisk +ASTLOGDIR=/var/log/asterisk
+ASTVARRUNDIR=/var/run/asterisk +ASTVARRUNDIR=/run/asterisk
+ASTVARLIBDIR=/var/lib/asterisk +ASTVARLIBDIR=/var/lib/asterisk
+ASTDBDIR=${ASTVARLIBDIR} +ASTDBDIR=${ASTVARLIBDIR}
+ASTDATADIR=${ASTVARLIBDIR} +ASTDATADIR=${ASTVARLIBDIR}

View File

@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
}; };
buildInputs = [ libtool ]; buildInputs = [ libtool ];
# configureFlags = [ "--datadir=/var/run/current-system/share/dictd" ]; # configureFlags = [ "--datadir=/run/current-system/share/dictd" ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Dict protocol server and client"; description = "Dict protocol server and client";

View File

@ -32,7 +32,7 @@ stdenv.mkDerivation rec {
cmakeFlags = [ cmakeFlags = [
"-DDEBIAN_BUILD=ON" "-DDEBIAN_BUILD=ON"
"-DRUNDIR=/var/run/rspamd" "-DRUNDIR=/run/rspamd"
"-DDBDIR=/var/lib/rspamd" "-DDBDIR=/var/lib/rspamd"
"-DLOGDIR=/var/log/rspamd" "-DLOGDIR=/var/log/rspamd"
"-DLOCAL_CONFDIR=/etc/rspamd" "-DLOCAL_CONFDIR=/etc/rspamd"

View File

@ -21,6 +21,13 @@ let
sha256 = "48eb22f4f8461b1df5734a074b57042430fb06e1d61bd1e11b078c0fe6d7a1f1"; sha256 = "48eb22f4f8461b1df5734a074b57042430fb06e1d61bd1e11b078c0fe6d7a1f1";
}; };
}); });
pyyaml = super.pyyaml.overridePythonAttrs (oldAttrs: rec {
version = "3.13";
src = oldAttrs.src.override {
inherit version;
sha256 = "3ef3092145e9b70e3ddd2c7ad59bdd0252a94dfe3949721633e41344de00a6bf";
};
});
}; };
}; };

View File

@ -2,11 +2,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "gnutar-${version}"; name = "gnutar-${version}";
version = "1.31"; version = "1.32";
src = fetchurl { src = fetchurl {
url = "mirror://gnu/tar/tar-${version}.tar.xz"; url = "mirror://gnu/tar/tar-${version}.tar.xz";
sha256 = "1h9dxhjhz1jnyhmh6jfhqw1g1sxqbg3cd32vpwg7x2xxxqffzwrp"; sha256 = "1n7xy657ii0sa42zx6944v2m4v9qrh6sqgmw17l3nch3y43sxlyh";
}; };
# avoid retaining reference to CF during stdenv bootstrap # avoid retaining reference to CF during stdenv bootstrap

View File

@ -42,8 +42,8 @@ stdenv.mkDerivation rec {
"--with-working-dir=/var/lib/bareos" "--with-working-dir=/var/lib/bareos"
"--with-bsrdir=/var/lib/bareos" "--with-bsrdir=/var/lib/bareos"
"--with-logdir=/var/log/bareos" "--with-logdir=/var/log/bareos"
"--with-pid-dir=/var/run/bareos" "--with-pid-dir=/run/bareos"
"--with-subsys-dir=/var/run/bareos" "--with-subsys-dir=/run/bareos"
"--enable-ndmp" "--enable-ndmp"
"--enable-lmdb" "--enable-lmdb"
"--enable-batch-insert" "--enable-batch-insert"

View File

@ -3,11 +3,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "btrbk-${version}"; name = "btrbk-${version}";
version = "0.27.1"; version = "0.27.2";
src = fetchurl { src = fetchurl {
url = "https://digint.ch/download/btrbk/releases/${name}.tar.xz"; url = "https://digint.ch/download/btrbk/releases/${name}.tar.xz";
sha256 = "040f6qzv188yd38n11zdiin3gaavrlld36xf1ks4hxhq921bh0jc"; sha256 = "1xxpwlvijzgvn17sag9gx3vbmk82plmyp19wah714z3j07djczh2";
}; };
nativeBuildInputs = [ asciidoc makeWrapper ]; nativeBuildInputs = [ asciidoc makeWrapper ];

View File

@ -1,26 +1,26 @@
{ stdenv, fetchFromGitHub, lib { stdenv, fetchurl, lib
, autoconf, automake, gnum4, libtool, perl, gnulib, uthash, pkgconfig, gettext , autoconf, automake, gnum4, libtool, perl, gnulib, uthash, pkgconfig, gettext
, python, freetype, zlib, glib, libungif, libpng, libjpeg, libtiff, libxml2, pango , python, freetype, zlib, glib, libungif, libpng, libjpeg, libtiff, libxml2, cairo, pango
, readline, woff2, zeromq
, withSpiro ? false, libspiro , withSpiro ? false, libspiro
, withGTK ? false, gtk2 , withGTK ? false, gtk2
, withPython ? true , withPython ? true
, withExtras ? true
, Carbon ? null, Cocoa ? null , Carbon ? null, Cocoa ? null
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "fontforge-${version}"; pname = "fontforge";
version = "20170730"; version = "20190317";
src = fetchFromGitHub { src = fetchurl {
owner = "fontforge"; url = "https://github.com/${pname}/${pname}/releases/download/${version}/${pname}-${version}.tar.gz";
repo = "fontforge"; sha256 = "1ddqbpc32cgbccdnv0lfw0qhj59hcqzb7616ph5lkvm91pnas4dp";
rev = version;
sha256 = "15k6x97383p8l40jvcivalhwgbbcdg5vciyjz6m9r0lrlnjqkv99";
}; };
patches = [ ./fontforge-20140813-use-system-uthash.patch ]; patches = [ ./fontforge-20140813-use-system-uthash.patch ];
# use $SOURCE_DATE_EPOCH instead of non-determenistic timestamps # use $SOURCE_DATE_EPOCH instead of non-deterministic timestamps
postPatch = '' postPatch = ''
find . -type f -name '*.c' -exec sed -r -i 's#\btime\(&(.+)\)#if (getenv("SOURCE_DATE_EPOCH")) \1=atol(getenv("SOURCE_DATE_EPOCH")); else &#g' {} \; find . -type f -name '*.c' -exec sed -r -i 's#\btime\(&(.+)\)#if (getenv("SOURCE_DATE_EPOCH")) \1=atol(getenv("SOURCE_DATE_EPOCH")); else &#g' {} \;
sed -r -i 's#author\s*!=\s*NULL#& \&\& !getenv("SOURCE_DATE_EPOCH")#g' fontforge/cvexport.c fontforge/dumppfa.c fontforge/print.c fontforge/svg.c fontforge/splineutil2.c sed -r -i 's#author\s*!=\s*NULL#& \&\& !getenv("SOURCE_DATE_EPOCH")#g' fontforge/cvexport.c fontforge/dumppfa.c fontforge/print.c fontforge/svg.c fontforge/splineutil2.c
@ -32,19 +32,20 @@ stdenv.mkDerivation rec {
# do not use x87's 80-bit arithmetic, rouding errors result in very different font binaries # do not use x87's 80-bit arithmetic, rouding errors result in very different font binaries
NIX_CFLAGS_COMPILE = lib.optionals stdenv.isi686 [ "-msse2" "-mfpmath=sse" ]; NIX_CFLAGS_COMPILE = lib.optionals stdenv.isi686 [ "-msse2" "-mfpmath=sse" ];
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [ pkgconfig autoconf automake gnum4 libtool perl gettext ];
buildInputs = [ buildInputs = [
autoconf automake gnum4 libtool perl gettext uthash readline uthash woff2 zeromq
python freetype zlib glib libungif libpng libjpeg libtiff libxml2 python freetype zlib glib libungif libpng libjpeg libtiff libxml2
] ]
++ lib.optionals withSpiro [libspiro] ++ lib.optionals withSpiro [libspiro]
++ lib.optionals withGTK [ gtk2 pango ] ++ lib.optionals withGTK [ gtk2 cairo pango ]
++ lib.optionals stdenv.isDarwin [ Carbon Cocoa ]; ++ lib.optionals stdenv.isDarwin [ Carbon Cocoa ];
configureFlags = configureFlags = [ "--enable-woff2" ]
lib.optionals (!withPython) [ "--disable-python-scripting" "--disable-python-extension" ] ++ lib.optionals (!withPython) [ "--disable-python-scripting" "--disable-python-extension" ]
++ lib.optional withGTK "--enable-gtk2-use" ++ lib.optional withGTK "--enable-gtk2-use"
++ lib.optional (!withGTK) "--without-x"; ++ lib.optional (!withGTK) "--without-x"
++ lib.optional withExtras "--enable-fontforge-extras";
# work-around: git isn't really used, but configuration fails without it # work-around: git isn't really used, but configuration fails without it
preConfigure = '' preConfigure = ''
@ -54,7 +55,7 @@ stdenv.mkDerivation rec {
export GIT="$(type -P true)" export GIT="$(type -P true)"
cp -r "${gnulib}" ./gnulib cp -r "${gnulib}" ./gnulib
chmod +w -R ./gnulib chmod +w -R ./gnulib
./bootstrap --skip-git --gnulib-srcdir=./gnulib ./bootstrap --skip-git --gnulib-srcdir=./gnulib --force
''; '';
doCheck = false; # tries to wget some fonts doCheck = false; # tries to wget some fonts

View File

@ -8,10 +8,11 @@
EXTRA_DIST = EXTRA_DIST =
CLEANFILES = CLEANFILES =
MOSTLYCLEANFILES = MOSTLYCLEANFILES =
@@ -113,7 +112,6 @@ @@ -113,8 +112,7 @@
Packaging/FontForge-doc.spec \ Packaging/FontForge-doc.spec \
Packaging/FontForge.spec \ Packaging/FontForge.spec \
Packaging/FontForge.static.spec \ Packaging/FontForge.static.spec \
README \
- uthash/src \ - uthash/src \
$(NULL) $(NULL)

View File

@ -1,32 +1 @@
{ stdenv, fetchFromGitHub, zlib }: { fontforge }: fontforge.override { withExtras = true; }
stdenv.mkDerivation rec {
version = "20160404";
name = "fontforge-fonttools-${version}";
src = fetchFromGitHub {
owner = "fontforge";
repo = "fontforge";
rev = version;
sha256 = "15nacq84n9gvlzp3slpmfrrbh57kfb6lbdlc46i7aqgci4qv6fg0";
};
buildInputs = [ zlib ];
setSourceRoot = ''export sourceRoot="$(echo */contrib/fonttools)"'';
installPhase = ''
mkdir -p "$out"/{bin,share/doc/fontforge-fonttools}
for i in *.c; do
$CC "$i" -lz -lm --std=c99 -o "$out"/bin/$(basename "$i" .c)
done
cp README* "$out/share/doc/fontforge-fonttools"
'';
meta = with stdenv.lib; {
description = ''Small font tools shipped in FontForge contrib'';
license = licenses.bsd3;
maintainers = with maintainers; [ raskin ];
platforms = with platforms; unix;
};
}

View File

@ -2,11 +2,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "mandoc-${version}"; name = "mandoc-${version}";
version = "1.14.4"; version = "1.14.5";
src = fetchurl { src = fetchurl {
url = "https://mandoc.bsd.lv/snapshots/mandoc-${version}.tar.gz"; url = "https://mandoc.bsd.lv/snapshots/mandoc-${version}.tar.gz";
sha256 = "24eb72103768987dcc63b53d27fdc085796330782f44b3b40c4660b1e1ee9b9c"; sha256 = "1xyqllxpjj1kimlipx11pzyywf5c25i4wmv0lqm7ph3gnlnb86c2";
}; };
buildInputs = [ zlib ]; buildInputs = [ zlib ];

View File

@ -11,11 +11,18 @@ python3Packages.buildPythonApplication rec {
sha256 = "16zwdqfbmlla6906g3a57a4nj8wnl11fq78r20qms717bzv211j0"; sha256 = "16zwdqfbmlla6906g3a57a4nj8wnl11fq78r20qms717bzv211j0";
}; };
# Fix for bibtexparser 1.1.0 patches = [
patches = fetchpatch { # Fix for bibtexparser 1.1.0
url = https://github.com/pubs/pubs/pull/185/commits/e58ae98b93b8364a07fd5f5f452ba88ad332c948.patch; (fetchpatch {
sha256 = "1n7zrk119v395jj8wqg8wlymc9l9pq3v752yy3kam9kflc0aashp"; url = https://github.com/pubs/pubs/pull/185/commits/e58ae98b93b8364a07fd5f5f452ba88ad332c948.patch;
}; sha256 = "1n7zrk119v395jj8wqg8wlymc9l9pq3v752yy3kam9kflc0aashp";
})
# Fix test broken by PyYAML 5.1
(fetchpatch {
url = https://github.com/pubs/pubs/pull/194/commits/c3cb713ae76528eeeaaeb948fe319a76ab3934d8.patch;
sha256 = "05as418m7wzs65839bb91b2jrs8l68z8ldcjcd9cn4b9fcgsf3rk";
})
];
propagatedBuildInputs = with python3Packages; [ propagatedBuildInputs = with python3Packages; [
argcomplete dateutil configobj feedparser bibtexparser pyyaml requests six beautifulsoup4 argcomplete dateutil configobj feedparser bibtexparser pyyaml requests six beautifulsoup4

View File

@ -41,8 +41,8 @@
# point to the library directory: # point to the library directory:
# #
dir /var/run/current-system/sw/share/timidity/instruments dir /run/current-system/sw/share/timidity/instruments
dir /var/run/current-system/sw/share/timidity/patch dir /run/current-system/sw/share/timidity/patch
############################################################################## ##############################################################################
# This sets up the default patches in the TiMidity support package # This sets up the default patches in the TiMidity support package

View File

@ -24,14 +24,14 @@ assert brotliSupport -> brotli != null;
assert gssSupport -> libkrb5 != null; assert gssSupport -> libkrb5 != null;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "curl-7.64.0"; name = "curl-7.64.1";
src = fetchurl { src = fetchurl {
urls = [ urls = [
"https://curl.haxx.se/download/${name}.tar.bz2" "https://curl.haxx.se/download/${name}.tar.bz2"
"https://github.com/curl/curl/releases/download/${lib.replaceStrings ["."] ["_"] name}/${name}.tar.bz2" "https://github.com/curl/curl/releases/download/${lib.replaceStrings ["."] ["_"] name}/${name}.tar.bz2"
]; ];
sha256 = "1szj9ia1snbfqzfcsk6hx1j7jhbqsy0f9k5d7x9xiy8w5lfblwym"; sha256 = "0pd484nk4q4dxjilwla3bw1l1jy44043xs991xld0l2jncwcgisc";
}; };
outputs = [ "bin" "dev" "out" "man" "devdoc" ]; outputs = [ "bin" "dev" "out" "man" "devdoc" ];

View File

@ -1,5 +1,6 @@
{ stdenv, fetchurl, perl, file, nettools, iputils, iproute, makeWrapper { stdenv, fetchurl, perl, file, nettools, iputils, iproute, makeWrapper
, coreutils, gnused, openldap ? null , coreutils, gnused, openldap ? null
, buildPackages, lib
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -19,7 +20,11 @@ stdenv.mkDerivation rec {
./set-hostname.patch ./set-hostname.patch
]; ];
buildInputs = [ perl makeWrapper openldap ]; nativeBuildInputs = [ perl ];
buildInputs = [ makeWrapper openldap ];
depsBuildBuild = [ buildPackages.stdenv.cc ];
configureFlags = [ configureFlags = [
"--enable-failover" "--enable-failover"
@ -31,6 +36,7 @@ stdenv.mkDerivation rec {
"--enable-early-chroot" "--enable-early-chroot"
"--sysconfdir=/etc" "--sysconfdir=/etc"
"--localstatedir=/var" "--localstatedir=/var"
(lib.optional stdenv.isLinux "--with-randomdev=/dev/random")
] ++ stdenv.lib.optionals (openldap != null) [ "--with-ldap" "--with-ldapcrypto" ]; ] ++ stdenv.lib.optionals (openldap != null) [ "--with-ldap" "--with-ldapcrypto" ];
NIX_CFLAGS_COMPILE = [ "-Wno-error=pointer-compare" ]; NIX_CFLAGS_COMPILE = [ "-Wno-error=pointer-compare" ];
@ -57,6 +63,8 @@ stdenv.mkDerivation rec {
substituteInPlace configure --replace "/usr/bin/file" "${file}/bin/file" substituteInPlace configure --replace "/usr/bin/file" "${file}/bin/file"
sed -i "includes/dhcpd.h" \ sed -i "includes/dhcpd.h" \
-"es|^ *#define \+_PATH_DHCLIENT_SCRIPT.*$|#define _PATH_DHCLIENT_SCRIPT \"$out/sbin/dhclient-script\"|g" -"es|^ *#define \+_PATH_DHCLIENT_SCRIPT.*$|#define _PATH_DHCLIENT_SCRIPT \"$out/sbin/dhclient-script\"|g"
export AR='${stdenv.cc.bintools.bintools}/bin/${stdenv.cc.targetPrefix}ar'
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {

View File

@ -79,7 +79,7 @@ in stdenv.mkDerivation rec {
installFlags = [ installFlags = [
"sysconfdir=${placeholder "out"}/etc" "sysconfdir=${placeholder "out"}/etc"
"localstatedir=${placeholder "out"}/var" "localstatedir=${placeholder "out"}/var"
"runstatedir=${placeholder "out"}/var/run" "runstatedir=${placeholder "out"}/run"
]; ];
postInstall = '' postInstall = ''

View File

@ -2,11 +2,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "unbound-${version}"; name = "unbound-${version}";
version = "1.9.0"; version = "1.9.1";
src = fetchurl { src = fetchurl {
url = "https://unbound.net/downloads/${name}.tar.gz"; url = "https://unbound.net/downloads/${name}.tar.gz";
sha256 = "05xrb8havr2vgjsdy7n85kgnvk1mg7qwhjp4a8n6pg4jhd5zjnj1"; sha256 = "1iarvk0i92asvrkpla9z55aan20k6pklzpck9yk4rfnchsdvzh63";
}; };
outputs = [ "out" "lib" "man" ]; # "dev" would only split ~20 kB outputs = [ "out" "lib" "man" ]; # "dev" would only split ~20 kB

View File

@ -4,7 +4,7 @@ version = 1
require identity *Identity anonymous_identity *Anonymous_identity password *Password ca_cert *Path_to_CA_Cert require identity *Identity anonymous_identity *Anonymous_identity password *Password ca_cert *Path_to_CA_Cert
protected password *Password protected password *Password
----- -----
ctrl_interface=/var/run/wpa_supplicant ctrl_interface=/run/wpa_supplicant
network={ network={
ssid="$_ESSID" ssid="$_ESSID"
scan_ssid=$_SCAN scan_ssid=$_SCAN

View File

@ -3,13 +3,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "pcsclite-${version}"; name = "pcsclite-${version}";
version = "1.8.24"; version = "1.8.25";
outputs = [ "bin" "out" "dev" "doc" "man" ]; outputs = [ "bin" "out" "dev" "doc" "man" ];
src = fetchurl { src = fetchurl {
url = "https://pcsclite.apdu.fr/files/pcsc-lite-${version}.tar.bz2"; url = "https://pcsclite.apdu.fr/files/pcsc-lite-${version}.tar.bz2";
sha256 = "0s3mv6csbi9303vvis0hilm71xsmi6cqkbh2kiipdisydbx6865q"; sha256 = "14l7irs1nsh8b036ag4cfy8wryyysch78scz5dw6xxqwqgnpjvfp";
}; };
patches = [ ./no-dropdir-literals.patch ]; patches = [ ./no-dropdir-literals.patch ];

View File

@ -11,6 +11,7 @@ stdenv.mkDerivation rec {
sha256 = "0w35ypl960pczg5kp6km3dyr000m1hf0vpwwlh72jjkjza36c1v8"; sha256 = "0w35ypl960pczg5kp6km3dyr000m1hf0vpwwlh72jjkjza36c1v8";
}; };
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libgpgerror libassuan libcap libsecret gtk2 gcr ncurses qt ]; buildInputs = [ libgpgerror libassuan libcap libsecret gtk2 gcr ncurses qt ];
prePatch = '' prePatch = ''
@ -33,9 +34,10 @@ stdenv.mkDerivation rec {
(stdenv.lib.enableFeature (gtk2 != null) "pinentry-gtk2") (stdenv.lib.enableFeature (gtk2 != null) "pinentry-gtk2")
(stdenv.lib.enableFeature (gcr != null) "pinentry-gnome3") (stdenv.lib.enableFeature (gcr != null) "pinentry-gnome3")
(stdenv.lib.enableFeature (qt != null) "pinentry-qt") (stdenv.lib.enableFeature (qt != null) "pinentry-qt")
];
nativeBuildInputs = [ pkgconfig ]; "--with-libassuan-prefix=${libassuan.dev}"
"--with-libgpg-error-prefix=${libgpgerror.dev}"
];
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = http://gnupg.org/aegypten2/; homepage = http://gnupg.org/aegypten2/;

View File

@ -5020,6 +5020,7 @@ in
pinentry = callPackage ../tools/security/pinentry { pinentry = callPackage ../tools/security/pinentry {
libcap = if stdenv.isDarwin then null else libcap; libcap = if stdenv.isDarwin then null else libcap;
gcr = null;
}; };
pinentry_ncurses = res.pinentry.override { pinentry_ncurses = res.pinentry.override {