Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: f9bb0b3c3af4
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: b854767dac6c
Choose a head ref
  • 18 commits
  • 21 files changed
  • 11 contributors

Commits on Feb 18, 2019

  1. cudatoolkit: Fixup cuda-gdb ncurses version

    The ncurses upgrade to libncurses.so.6 did silently break cuda-gdb quite
    some time ago.
    knedlsepp committed Feb 18, 2019
    Copy the full SHA
    c8fcd68 View commit details

Commits on Feb 19, 2019

  1. cudatoolkit: Fix building of older versions

    Versions prior to 9.0 did not build. Additionally we add some
    smoke tests for the binaries in $out/bin.
    knedlsepp committed Feb 19, 2019
    Copy the full SHA
    f483974 View commit details
  2. cudatoolkit: Fix GUI applications

    This fixes the following error when starting nvvp or nsight:
    
    ```
    (java:23876): Gtk-WARNING **: 19:12:17.777: Unable to locate theme engine in module_path: "adwaita",
    
    A fatal error has been detected by the Java Runtime Environment:
    
     SIGSEGV (0xb) at pc=0x00007f957f7b67fe, pid=23876, tid=140281059333888
    
    JRE version: Java(TM) SE Runtime Environment (8.0_77-b03) (build 1.8.0_77-b03)
    Java VM: Java HotSpot(TM) 64-Bit Server VM (25.77-b03 mixed mode linux-amd64 compressed oops)
    Problematic frame:
    C  [libpixbufloader-bmp.so+0x27fe]  gdk_pixbuf__bmp_image_load_increment+0xeee
    ```
    
    Since GDK_PIXBUF_MODULE_FILE should match the version we actually link
    to, we override the environment variable using the one provided by the
    gdk_pixbuf setup-hook.
    knedlsepp committed Feb 19, 2019
    Copy the full SHA
    ec2c972 View commit details
  3. Copy the full SHA
    3e0723f View commit details

Commits on Mar 4, 2019

  1. Copy the full SHA
    b47f47a View commit details

Commits on Mar 5, 2019

  1. qgis: 2.18.28 -> 3.4.5

    lsix committed Mar 5, 2019
    Copy the full SHA
    9bcdf81 View commit details

Commits on Mar 6, 2019

  1. Copy the full SHA
    3300c60 View commit details

Commits on Mar 10, 2019

  1. Copy the full SHA
    0015e52 View commit details
  2. Merge pull request #56877 from peti/t/fix-boost-version-strings

    boost: fix misspelled version numbers in 1.66.0, 1.67.0, 1.68.0, and 1.69.0
    peti authored Mar 10, 2019
    Copy the full SHA
    a8965a5 View commit details
  3. Merge pull request #57261 from Ma27/fix-autorandr-completions

    autorandr: install bash completions properly
    srhb authored Mar 10, 2019
    Copy the full SHA
    9b3da9e View commit details
  4. Copy the full SHA
    668d18c View commit details
  5. Copy the full SHA
    292a452 View commit details
  6. Copy the full SHA
    88d9ef9 View commit details
  7. Merge pull request #56486 from lsix/add_qgis_3

     qgis: 2.18.28 -> 3.4.5
    lsix authored Mar 10, 2019
    Copy the full SHA
    ce51fba View commit details
  8. sage: fix docbuild (#57294)

    The docbuild (or rather its tests) failed because sphinx built some
    English parts of the documentation in Russian. The added debian patch
    fixes that by isolating docbuilding threads in sphinx using
    proper subprocesses.
    timokau authored Mar 10, 2019
    Copy the full SHA
    ce96994 View commit details
  9. websocat: init at 1.3.0

    Signed-off-by: Austin Seipp <aseipp@pobox.com>
    thoughtpolice committed Mar 10, 2019
    Copy the full SHA
    37fe6bf View commit details
  10. Copy the full SHA
    907c478 View commit details
  11. Merge pull request #56018 from knedlsepp/fix-cuda-gdb

    cudatoolkit: Several fixes
    bendlas authored Mar 10, 2019
    Copy the full SHA
    b854767 View commit details
101 changes: 17 additions & 84 deletions pkgs/applications/gis/qgis/default.nix
Original file line number Diff line number Diff line change
@@ -1,94 +1,27 @@
{ stdenv, fetchurl, fetchpatch, gdal, cmake, qt4, flex, bison, proj, geos, xlibsWrapper, sqlite, gsl
, qwt, fcgi, python2Packages, libspatialindex, libspatialite, qscintilla, postgresql, makeWrapper
, qjson, qca2, txt2tags, openssl, darwin, pkgconfig
, withGrass ? true, grass, saga, IOKit, ApplicationServices
{ stdenv, lib, makeWrapper, symlinkJoin
, qgis-unwrapped, extraPythonPackages ? (ps: [ ])
}:
with lib;
symlinkJoin rec {
inherit (qgis-unwrapped) version;
name = "qgis-${version}";

stdenv.mkDerivation rec {
name = "qgis-2.18.28";
paths = [ qgis-unwrapped ];

buildInputs = [ gdal qt4 flex openssl bison proj geos xlibsWrapper sqlite gsl qwt qscintilla
fcgi libspatialindex libspatialite postgresql qjson qca2 txt2tags pkgconfig
saga ]
++
(stdenv.lib.optionals stdenv.isDarwin [IOKit ApplicationServices])
++
(stdenv.lib.optional withGrass grass) ++
(stdenv.lib.optional (stdenv.isDarwin && withGrass) darwin.apple_sdk.libs.utmp) ++
(with python2Packages; [ jinja2 numpy psycopg2 pygments requests python2Packages.qscintilla sip ]);
nativeBuildInputs = [ makeWrapper qgis-unwrapped.python3Packages.wrapPython ];

nativeBuildInputs = [ cmake makeWrapper pkgconfig ];
# extend to add to the python environment of QGIS without rebuilding QGIS application.
pythonInputs = qgis-unwrapped.pythonBuildInputs ++ (extraPythonPackages qgis-unwrapped.python3Packages);

# `make -f src/providers/wms/CMakeFiles/wmsprovider_a.dir/build.make src/providers/wms/CMakeFiles/wmsprovider_a.dir/qgswmssourceselect.cpp.o`:
# fatal error: ui_qgsdelimitedtextsourceselectbase.h: No such file or directory
enableParallelBuilding = false;
postBuild = ''
# unpackPhase
preConfigure = ''
NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE $(pkg-config --cflags libspatialindex)"
'';
buildPythonPath "$pythonInputs"
# To handle the lack of 'local' RPATH; required, as they call one of
# their built binaries requiring their libs, in the build process.
preBuild = ''
export LD_LIBRARY_PATH=`pwd`/output/lib:${stdenv.lib.makeLibraryPath [ openssl ]}:$LD_LIBRARY_PATH
wrapProgram $out/bin/qgis \
--prefix PATH : $program_PATH \
--set PYTHONPATH $program_PYTHONPATH
'';

src = fetchurl {
url = "https://qgis.org/downloads/${name}.tar.bz2";
sha256 = "18pijqls1isd2bpg0mkrw07jqvdfaiwwb9mvz7p2xrgqcjx7dxsq";
};

patches = [
# already merged upstream in QGIS-3.*, but needs to be backported to QGIS-2
(fetchpatch {
url = "https://patch-diff.githubusercontent.com/raw/qgis/QGIS/pull/7263.patch";
name = "Ensure_qgis.db_is_writable_when_copied_from_RO_source";
sha256 = "19wr2kz0x8x6p2n0ylzd4lqrdmbkxyxr0zpwf2vl9hdp92rdjxbv";
})
];

# CMAKE_FIND_FRAMEWORK=never stops the installer choosing system
# installed frameworks
# QGIS_MACAPP_BUNDLE=0 stops the installer copying the Qt binaries into the
# installation which causes havoc
# Building RelWithDebInfo allows QGIS_DEBUG to print debugging information
cmakeFlags = stdenv.lib.optional withGrass "-DGRASS_PREFIX7=${grass}/${grass.name}"
++ stdenv.lib.optional stdenv.isDarwin
(["-DCMAKE_FIND_FRAMEWORK=never"]
++ ["-DQGIS_MACAPP_BUNDLE=0"]);
# ++ ["-DCMAKE_BUILD_TYPE=RelWithDebInfo"];



postInstall =
(stdenv.lib.optionalString stdenv.isLinux ''
wrapProgram $out/bin/qgis \
--set PYTHONPATH $PYTHONPATH \
--prefix LD_LIBRARY_PATH : ${stdenv.lib.makeLibraryPath [ openssl ]}
'') +
(stdenv.lib.optionalString stdenv.isDarwin ''
# Necessary for QGIS to find the correct default GRASS path
# Plugins look for gdal tools like deminfo on the PATH
${stdenv.lib.optionalString withGrass "ln -sf ${grass} $out/QGIS.app/Contents/MacOS/grass"}
# Necessary for QGIS to find the right SAGA installation
ln -sf ${saga}/bin/saga_cmd $out/QGIS.app/Contents/MacOS/bin/saga_cmd
for file in $(find $out -type f -name "QGIS"); do
wrapProgram "$file" \
--prefix DYLD_LIBRARY_PATH : "${qwt}/lib" \
--prefix DYLD_LIBRARY_PATH : "${qscintilla}/lib" \
--prefix PATH : "${gdal}/bin" \
${stdenv.lib.optionalString withGrass "--prefix PATH : ${grass}/bin"} \
--set PYTHONPATH $PYTHONPATH
done
mkdir -p $out/bin
ln -s $out/QGIS.app/Contents/MacOS/QGIS $out/bin/qgis
'');

meta = {
description = "User friendly Open Source Geographic Information System";
homepage = http://www.qgis.org;
license = stdenv.lib.licenses.gpl2Plus;
platforms = with stdenv.lib.platforms; unix;
maintainers = with stdenv.lib.maintainers; [mpickering];
};
meta = qgis-unwrapped.meta;
}
54 changes: 54 additions & 0 deletions pkgs/applications/gis/qgis/unwrapped.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{ stdenv, lib, fetchurl, cmake, ninja, flex, bison, proj, geos, xlibsWrapper, sqlite, gsl
, qwt, fcgi, python3Packages, libspatialindex, libspatialite, postgresql
, txt2tags, openssl, libzip, hdf5, netcdf
, qtbase, qtwebkit, qtsensors, qca-qt5, qtkeychain, qscintilla, qtserialport, qtxmlpatterns
, withGrass ? true, grass
}:
with lib;
let
pythonBuildInputs = with python3Packages;
[ qscintilla-qt5 gdal jinja2 numpy psycopg2
chardet dateutil pyyaml pytz requests urllib3 pygments pyqt5 sip owslib six ];
in stdenv.mkDerivation rec {
version = "3.4.5";
name = "qgis-unwrapped-${version}";

src = fetchurl {
url = "http://qgis.org/downloads/qgis-${version}.tar.bz2";
sha256 = "0myw1jgz8v8wncmrjsszn9ixylx84hafn0281c4hqhz623n3lxgx";
};

passthru = {
inherit pythonBuildInputs;
inherit python3Packages;
};

buildInputs = [ openssl proj geos xlibsWrapper sqlite gsl qwt
fcgi libspatialindex libspatialite postgresql txt2tags libzip hdf5 netcdf
qtbase qtwebkit qtsensors qca-qt5 qtkeychain qscintilla qtserialport qtxmlpatterns] ++
(stdenv.lib.optional withGrass grass) ++ pythonBuildInputs;

nativeBuildInputs = [ cmake flex bison ninja ];

# Force this pyqt_sip_dir variable to point to the sip dir in PyQt5
#
# TODO: Correct PyQt5 to provide the expected directory and fix
# build to use PYQT5_SIP_DIR consistently.
postPatch = ''
substituteInPlace cmake/FindPyQt5.py \
--replace 'pyqtcfg.pyqt_sip_dir' '"${python3Packages.pyqt5}/share/sip/PyQt5"'
'';

cmakeFlags = [ "-DCMAKE_SKIP_BUILD_RPATH=OFF"
"-DPYQT5_SIP_DIR=${python3Packages.pyqt5}/share/sip/PyQt5"
"-DQSCI_SIP_DIR=${python3Packages.qscintilla-qt5}/share/sip/PyQt5" ] ++
stdenv.lib.optional withGrass "-DGRASS_PREFIX7=${grass}/${grass.name}";

meta = {
description = "A Free and Open Source Geographic Information System";
homepage = http://www.qgis.org;
license = stdenv.lib.licenses.gpl2Plus;
platforms = with stdenv.lib.platforms; linux;
maintainers = with stdenv.lib.maintainers; [ lsix ];
};
}
9 changes: 9 additions & 0 deletions pkgs/applications/science/math/sage/sage-src.nix
Original file line number Diff line number Diff line change
@@ -50,6 +50,15 @@ stdenv.mkDerivation rec {

# Fixes a potential race condition which can lead to transient doctest failures.
./patches/fix-ecl-race.patch

# Parallelize docubuild using subprocesses, fixing an isolation issue. See
# https://groups.google.com/forum/#!topic/sage-packaging/YGOm8tkADrE
(fetchpatch {
name = "sphinx-docbuild-subprocesses.patch";
url = "https://salsa.debian.org/science-team/sagemath/raw/8a215b17e6f791ddfae6df8ce6d01dfb89acb434/debian/patches/df-subprocess-sphinx.patch";
sha256 = "07p9i0fwjgapmfvmi436yn6v60p8pvmxqjc93wsssqgh5kd8qw3n";
stripLen = 1;
})
];

# Patches needed because of package updates. We could just pin the versions of
58 changes: 51 additions & 7 deletions pkgs/development/compilers/cudatoolkit/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ lib, stdenv, makeWrapper, fetchurl, requireFile, perl, ncurses, expat, python27, zlib
{ lib, stdenv, makeWrapper, fetchurl, requireFile, perl, ncurses5, expat, python27, zlib
, gcc48, gcc49, gcc5, gcc6, gcc7
, xorg, gtk2, glib, fontconfig, freetype, unixODBC, alsaLib, glibc
, xorg, gtk2, gdk_pixbuf, glib, fontconfig, freetype, unixODBC, alsaLib, glibc
}:

let
@@ -40,17 +40,15 @@ let
outputs = [ "out" "lib" "doc" ];

nativeBuildInputs = [ perl makeWrapper ];

buildInputs = [ gdk_pixbuf ]; # To get $GDK_PIXBUF_MODULE_FILE via setup-hook
runtimeDependencies = [
ncurses expat python zlib glibc
ncurses5 expat python zlib glibc
xorg.libX11 xorg.libXext xorg.libXrender xorg.libXt xorg.libXtst xorg.libXi xorg.libXext
gtk2 glib fontconfig freetype unixODBC alsaLib
];

rpath = "${stdenv.lib.makeLibraryPath runtimeDependencies}:${stdenv.cc.cc.lib}/lib64";

phases = [ "unpackPhase" "installPhase" "fixupPhase" ];

unpackPhase = ''
sh $src --keep --noexec
@@ -68,8 +66,10 @@ let
'';

installPhase = ''
runHook preInstall
mkdir $out
cd $(basename $src)
export PERL5LIB=.
perl ./install-linux.pl --prefix="$out"
cd ..
for patch in $runPatches; do
@@ -84,7 +84,7 @@ let
rm -rf $out/lib
# Remove some cruft.
rm $out/bin/uninstall*
${lib.optionalString (lib.versionAtLeast version "7.0") "rm $out/bin/uninstall*"}
# Fixup path to samples (needed for cuda 6.5 or else nsight will not find them)
if [ -d "$out"/cuda-samples ]; then
@@ -119,6 +119,15 @@ let
'' + lib.optionalString (lib.versionOlder version "8.0") ''
# Hack to fix building against recent Glibc/GCC.
echo "NIX_CFLAGS_COMPILE+=' -D_FORCE_INLINES'" >> $out/nix-support/setup-hook
'' + ''
runHook postInstall
'';

postInstall = ''
for b in nvvp nsight; do
wrapProgram "$out/bin/$b" \
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE"
done
'';

preFixup = ''
@@ -138,6 +147,23 @@ let
done < <(find $out $lib $doc -type f -print0)
'';

doInstallCheck = true;
postInstallCheck = let
in ''
# Smoke test binaries
pushd $out/bin
for f in *; do
case $f in
crt) continue;;
nvcc.profile) continue;;
nsight_ee_plugins_manage.sh) continue;;
uninstall_cuda_toolkit_6.5.pl) continue;;
computeprof|nvvp|nsight) continue;; # GUIs don't feature "--version"
*) echo "Executing '$f --version':"; ./$f --version;;
esac
done
popd
'';
passthru = {
cc = gcc;
majorVersion =
@@ -199,6 +225,24 @@ in rec {
version = "9.0.176.1";
url = "https://developer.nvidia.com/compute/cuda/9.0/Prod/local_installers/cuda_9.0.176_384.81_linux-run";
sha256 = "0308rmmychxfa4inb1ird9bpgfppgr9yrfg1qp0val5azqik91ln";
runPatches = [
(fetchurl {
url = "https://developer.nvidia.com/compute/cuda/9.0/Prod/patches/1/cuda_9.0.176.1_linux-run";
sha256 = "1vbqg97pq9z9c8nqvckiwmq3ljm88m7gaizikzxbvz01izh67gx4";
})
(fetchurl {
url = "https://developer.nvidia.com/compute/cuda/9.0/Prod/patches/2/cuda_9.0.176.2_linux-run";
sha256 = "1sz5dijbx9yf7drfipdxav5a5g6sxy4w6vi9xav0lb6m2xnmyd7c";
})
(fetchurl {
url = "https://developer.nvidia.com/compute/cuda/9.0/Prod/patches/3/cuda_9.0.176.3_linux-run";
sha256 = "1jm83bxpscpjhzs5q3qijdgjm0r8qrdlgkj7y08fq8c0v8q2r7j2";
})
(fetchurl {
url = "https://developer.nvidia.com/compute/cuda/9.0/Prod/patches/4/cuda_9.0.176.4_linux-run";
sha256 = "0pymg3mymsa2n48y0njz3spzlkm15lvjzw8fms1q83zslz4x0lwk";
})
];
gcc = gcc6;
};

2 changes: 1 addition & 1 deletion pkgs/development/libraries/boost/1.66.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ stdenv, callPackage, fetchurl, ... } @ args:

callPackage ./generic.nix (args // rec {
version = "1.66_0";
version = "1.66.0";

src = fetchurl {
url = "mirror://sourceforge/boost/boost_1_66_0.tar.bz2";
2 changes: 1 addition & 1 deletion pkgs/development/libraries/boost/1.67.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ stdenv, callPackage, fetchurl, fetchpatch, ... } @ args:

callPackage ./generic.nix (args // rec {
version = "1.67_0";
version = "1.67.0";

patches = [ (fetchpatch {
url = "https://github.com/boostorg/lockfree/commit/12726cda009a855073b9bedbdce57b6ce7763da2.patch";
2 changes: 1 addition & 1 deletion pkgs/development/libraries/boost/1.68.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ stdenv, callPackage, fetchurl, fetchpatch, ... } @ args:

callPackage ./generic.nix (args // rec {
version = "1.68_0";
version = "1.68.0";

src = fetchurl {
url = "mirror://sourceforge/boost/boost_1_68_0.tar.bz2";
2 changes: 1 addition & 1 deletion pkgs/development/libraries/boost/1.69.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ stdenv, callPackage, fetchurl, fetchpatch, ... } @ args:

callPackage ./generic.nix (args // rec {
version = "1.69_0";
version = "1.69.0";

src = fetchurl {
url = "mirror://sourceforge/boost/boost_1_69_0.tar.bz2";
7 changes: 5 additions & 2 deletions pkgs/development/mobile/titaniumenv/build-app.nix
Original file line number Diff line number Diff line change
@@ -40,8 +40,7 @@ in
stdenv.mkDerivation ({
name = stdenv.lib.replaceChars [" "] [""] name;

buildInputs = [ nodejs titanium alloy python which file jdk ]
++ stdenv.lib.optional (target == "iphone") xcodewrapper;
buildInputs = [ nodejs titanium alloy python which file jdk ];

buildPhase = ''
${preBuild}
@@ -91,6 +90,10 @@ stdenv.mkDerivation ({
''}
''
else if target == "iphone" then ''
# Be sure that the Xcode wrapper has priority over everything else.
# When using buildInputs this does not seem to be the case.
export PATH=${xcodewrapper}/bin:$PATH
# Configure the path to Xcode
titanium --config-file $TMPDIR/config.json --no-colors config paths.xcode ${xcodeBaseDir}
5 changes: 5 additions & 0 deletions pkgs/development/mobile/titaniumenv/titaniumsdk-7.5.nix
Original file line number Diff line number Diff line change
@@ -87,6 +87,11 @@ stdenv.mkDerivation {
# Patch maven central repository with our own local directory. This prevents the builder from downloading Maven artifacts
sed -i -e 's|mavenCentral()|maven { url "${fakeMavenRepo}" }|' android/templates/build/proguard.gradle
# Patch the strip frameworks script in the iPhone build template to not let
# it skip the strip phase. This is caused by an assumption on the file
# permissions in which Nix deviates from the standard.
sed -i -e "s|-perm +111|-perm /111|" iphone/templates/build/strip-frameworks.sh
# Patch some executables
${if stdenv.system == "i686-linux" then
3 changes: 3 additions & 0 deletions pkgs/development/mobile/xcodeenv/compose-xcodewrapper.nix
Original file line number Diff line number Diff line change
@@ -14,6 +14,9 @@ stdenv.mkDerivation {
ln -s /usr/bin/xcrun
ln -s /usr/bin/plutil
ln -s /usr/bin/clang
ln -s /usr/bin/lipo
ln -s /usr/bin/file
ln -s /usr/bin/rev
ln -s "${xcodeBaseDir}/Contents/Developer/usr/bin/xcodebuild"
ln -s "${xcodeBaseDir}/Contents/Developer/Applications/Simulator.app/Contents/MacOS/Simulator"
Original file line number Diff line number Diff line change
@@ -5,6 +5,7 @@
, azure-common
, azure-mgmt-nspkg
, requests
, msrestazure
}:

buildPythonPackage rec {
@@ -17,7 +18,7 @@ buildPythonPackage rec {
sha256 = "1rmzpz3733wv31rsnqpdy4bbafvk5dhbqx7q0xf62dlz7p0i4f66";
};

propagatedBuildInputs = [ azure-common azure-mgmt-nspkg requests ];
propagatedBuildInputs = [ azure-common azure-mgmt-nspkg requests msrestazure ];

postInstall = ''
echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/__init__.py
Original file line number Diff line number Diff line change
@@ -15,12 +15,6 @@ buildPythonPackage rec {
sha256 = "356219a354140ea26e6b4f4be4f855f1ffaf63af60de24cd2ca335b4ece9db00";
};

preConfigure = ''
# Patch to make this package work on requests >= 2.11.x
# CAN BE REMOVED ON NEXT PACKAGE UPDATE
sed -i 's|len(request_content)|str(len(request_content))|' azure/mgmt/compute/computemanagement.py
'';

postInstall = ''
echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/__init__.py
echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/mgmt/__init__.py
Original file line number Diff line number Diff line change
@@ -16,12 +16,6 @@ buildPythonPackage rec {
sha256 = "aef8573066026db04ed3e7c5e727904e42f6462b6421c2e8a3646e4c4f8128be";
};

preConfigure = ''
# Patch to make this package work on requests >= 2.11.x
# CAN BE REMOVED ON NEXT PACKAGE UPDATE
sed -i 's|len(request_content)|str(len(request_content))|' azure/mgmt/resource/resourcemanagement.py
'';

postInstall = ''
echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/__init__.py
echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/mgmt/__init__.py
28 changes: 28 additions & 0 deletions pkgs/development/python-modules/msrest/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{ pkgs
, buildPythonPackage
, fetchPypi
, python
, certifi
, requests_oauthlib
, typing
, isodate
}:

buildPythonPackage rec {
version = "0.6.2";
pname = "msrest";

src = fetchPypi {
inherit pname version;
sha256 = "0icklfjaagk0j9iwq897avmqhwwmgs7c5yy5jw3ppdqz6h0sm38v";
};

propagatedBuildInputs = [ certifi requests_oauthlib typing isodate ];

meta = with pkgs.lib; {
description = "The runtime library 'msrest' for AutoRest generated Python clients.";
homepage = "https://azure.microsoft.com/en-us/develop/python/";
license = licenses.mit;
maintainers = with maintainers; [ bendlas ];
};
}
26 changes: 26 additions & 0 deletions pkgs/development/python-modules/msrestazure/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{ pkgs
, buildPythonPackage
, fetchPypi
, python
, adal
, msrest
}:

buildPythonPackage rec {
version = "0.6.0";
pname = "msrestazure";

src = fetchPypi {
inherit pname version;
sha256 = "06s04f6nng4na2663kc12a3skiaqb631nscjfwpsrx4lzkf8bccr";
};

propagatedBuildInputs = [ adal msrest ];

meta = with pkgs.lib; {
description = "The runtime library 'msrestazure' for AutoRest generated Python clients.";
homepage = "https://azure.microsoft.com/en-us/develop/python/";
license = licenses.mit;
maintainers = with maintainers; [ bendlas ];
};
}
30 changes: 15 additions & 15 deletions pkgs/development/python-modules/qscintilla-qt5/default.nix
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
{ lib
, buildPythonPackage
, qscintillaCpp
, pythonPackages
, qscintilla
, lndir
, sip
, python
, pyqt5 }:

, qtbase
}:
with pythonPackages;
buildPythonPackage rec {
pname = "qscintilla";
version = qscintillaCpp.version;
src = qscintillaCpp.src;
version = qscintilla.version;
src = qscintilla.src;
format = "other";

nativeBuildInputs = [ lndir sip ];
buildInputs = [ qscintillaCpp ];
nativeBuildInputs = [ lndir sip qtbase ];
buildInputs = [ qscintilla ];
propagatedBuildInputs = [ pyqt5 ];

preConfigure = ''
@@ -23,13 +22,14 @@ buildPythonPackage rec {
cd Python
${python.executable} ./configure.py \
--pyqt=PyQt5 \
--destdir=$out/lib/${python.sitePackages}/PyQt5 \
--stubsdir=$out/lib/${python.sitePackages}/PyQt5 \
--destdir=$out/${python.sitePackages}/PyQt5 \
--stubsdir=$out/${python.sitePackages}/PyQt5 \
--apidir=$out/api/${python.libPrefix} \
--qsci-incdir=${qscintillaCpp}/include \
--qsci-libdir=${qscintillaCpp}/lib \
--qsci-incdir=${qscintilla}/include \
--qsci-libdir=${qscintilla}/lib \
--pyqt-sipdir=${pyqt5}/share/sip/PyQt5 \
--qsci-sipdir=$out/share/sip/PyQt5
--qsci-sipdir=$out/share/sip/PyQt5 \
--sip-incdir=${sip}/include
'';

meta = with lib; {
2 changes: 1 addition & 1 deletion pkgs/tools/misc/autorandr/default.nix
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@ in
runHook preInstall
make install TARGETS='autorandr' PREFIX=$out
make install TARGETS='bash_completion' DESTDIR=$out
make install TARGETS='bash_completion' DESTDIR=$out/share/bash-completion/completions
make install TARGETS='autostart_config' PREFIX=$out DESTDIR=$out
24 changes: 24 additions & 0 deletions pkgs/tools/misc/websocat/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{ stdenv, fetchFromGitHub, rustPlatform
}:

rustPlatform.buildRustPackage rec {
name = "websocat-${version}";
version = "1.3.0";

src = fetchFromGitHub {
owner = "vi";
repo = "websocat";
rev = "v${version}";
sha256 = "1gf2snr12vnx2mhsrwkb5274r1pvdrf8m3bybrqbh8s9wd83nrh6";
};

cargoSha256 = "0vkb3jmyb3zg3xiig5vlxhh74m27rvqbkgrwdqzprifn9vcj17ir";

meta = with stdenv.lib; {
description = "Command-line client for WebSockets (like netcat/socat)";
homepage = https://github.com/vi/websocat;
license = with licenses; [ mit ];
maintainers = [ maintainers.thoughtpolice ];
platforms = platforms.all;
};
}
9 changes: 6 additions & 3 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -19013,11 +19013,12 @@ in
inherit (darwin.stubs) rez setfile;
};

qgis = callPackage ../applications/gis/qgis {
inherit (darwin.apple_sdk.frameworks) IOKit ApplicationServices;
saga = saga_2_3_2;
qgis-unwrapped = libsForQt5.callPackage ../applications/gis/qgis/unwrapped.nix {
withGrass = false;
};

qgis = callPackage ../applications/gis/qgis { };

qgroundcontrol = libsForQt5.callPackage ../applications/science/robotics/qgroundcontrol { };

qjackctl = libsForQt5.callPackage ../applications/audio/qjackctl { };
@@ -22462,6 +22463,8 @@ in
inherit (darwin.apple_sdk.frameworks) Security;
};

websocat = callPackage ../tools/misc/websocat { };

epkowa = callPackage ../misc/drivers/epkowa { };

idsk = callPackage ../tools/filesystems/idsk { };
7 changes: 5 additions & 2 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -498,6 +498,9 @@ in {
mpi = pkgs.openmpi;
};

msrestazure = callPackage ../development/python-modules/msrestazure { };
msrest = callPackage ../development/python-modules/msrest { };

multiset = callPackage ../development/python-modules/multiset { };

mwclient = callPackage ../development/python-modules/mwclient { };
@@ -3993,8 +3996,8 @@ in {

qscintilla-qt4 = callPackage ../development/python-modules/qscintilla { };

qscintilla-qt5 = callPackage ../development/python-modules/qscintilla-qt5 {
qscintillaCpp = pkgs.libsForQt5.qscintilla;
qscintilla-qt5 = pkgs.libsForQt5.callPackage ../development/python-modules/qscintilla-qt5 {
pythonPackages = self;
lndir = pkgs.xorg.lndir;
};