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: b3a9f9d6ba8b
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: 684d691c6e9d
Choose a head ref

Commits on Sep 16, 2020

  1. thermald: 2.2 -> 2.3

    Also cleanup the derivation:
    - remove unnecessary PKG_CONFIG_PATH export
    - change gpl2 to gpl2Only
    - add meta.changelog
    - reformat inputs and sort alphabetically
    last three suggested by @drewrisinger.
    Emantor committed Sep 16, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    5cae66c View commit details
  2. nixos/thermald: add adaptive mode

    thermald >=2.3 supports the adaptive DPTF mode, in conjunction with
    kernel 5.8.
    Emantor committed Sep 16, 2020

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    dtzWill Will Dietz
    Copy the full SHA
    0aaa5ad View commit details

Commits on Sep 17, 2020

  1. nixos-rebuild: add flake support for build-vm

    This relies on users using `nixpkgs.lib.nixosSystem` to define their
    system; otherwise, the `vm` and `vmWithBootLoader` attributes will not
    exist.
    cole-h committed Sep 17, 2020
    Copy the full SHA
    e26b348 View commit details

Commits on Sep 18, 2020

  1. Verified

    This commit was signed with the committer’s verified signature.
    davidtwco David Wood
    Copy the full SHA
    44c558b View commit details

Commits on Sep 19, 2020

  1. qcad: 3.25.0.0 -> 3.25.2.0

    yvesf committed Sep 19, 2020

    Verified

    This commit was signed with the committer’s verified signature.
    davidtwco David Wood
    Copy the full SHA
    ea72791 View commit details

Commits on Sep 20, 2020

  1. Verified

    This commit was signed with the committer’s verified signature.
    davidtwco David Wood
    Copy the full SHA
    4fc8c50 View commit details
  2. qcad: fix library browser

    the drawing library of qcad uses qt's database abstract for sqlite.
    
    Somehow the libqsqlite library file is not found in the default
    location. As workaround it is copied to the qcad library directory.
    yvesf committed Sep 20, 2020

    Verified

    This commit was signed with the committer’s verified signature.
    davidtwco David Wood
    Copy the full SHA
    2f934a9 View commit details
  3. Verified

    This commit was signed with the committer’s verified signature.
    fooker Dustin Frisch
    Copy the full SHA
    0c55017 View commit details
  4. Merge pull request #81014 from fgaz/platforms/endianness

    platforms: add bigEndian and littleEndian
    gebner authored Sep 20, 2020
    Copy the full SHA
    de3cc47 View commit details
  5. Copy the full SHA
    4e7b124 View commit details
  6. pythonPackages.glom: fix tests

    austinbutler authored and Jon committed Sep 20, 2020
    Copy the full SHA
    05f9944 View commit details
  7. pythonPackages.mock-open: 1.3.1 -> 1.3.2

    das-g authored and Jon committed Sep 20, 2020

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    nyanloutre Paul TREHIOU
    Copy the full SHA
    b103ddb View commit details
  8. pythonPackages.mock-open: 1.3.2 -> 1.4.0

    das-g authored and Jon committed Sep 20, 2020

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    nyanloutre Paul TREHIOU
    Copy the full SHA
    355d255 View commit details
  9. svgbob: fix build

    loosen lint settings
    risicle authored and Jon committed Sep 20, 2020

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    nyanloutre Paul TREHIOU
    Copy the full SHA
    a28068a View commit details
  10. qcad: replace qt argument

    change qcad to take the individual packages instead of qt5 as argument
    yvesf committed Sep 20, 2020

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    nyanloutre Paul TREHIOU
    Copy the full SHA
    a426157 View commit details
  11. python3Packages.crate: init at 0.24.0

    doronbehar authored and Jon committed Sep 20, 2020
    Copy the full SHA
    d07100d View commit details
  12. Copy the full SHA
    b3178ae View commit details
  13. csvkit: 1.0.4 -> 1.0.5

    doronbehar authored and Jon committed Sep 20, 2020
    Copy the full SHA
    eb9393a View commit details
  14. csvkit: fix tests

    Remove unneeded glibcLocales. Remove overrided agate-sql and agate-dbf,
    as these overrides are not needed. Use pytestCheckHook instead of
    overriding checkPhase. Add an upstream patch that fixes tests.
    doronbehar authored and Jon committed Sep 20, 2020
    Copy the full SHA
    8bf99f6 View commit details
  15. lldb_5, lldb_6: add patch for >=python-3.7

    maxxk authored and Jon committed Sep 20, 2020
    Copy the full SHA
    172f3a1 View commit details
  16. can-isotp: 20180629 -> 20200910

    RaghavSood authored and Jon committed Sep 20, 2020
    Copy the full SHA
    09bc8c8 View commit details
  17. libndtypes, pythonPackages.ndtypes: unstable-2018-11-27 -> unstable-2…

    …019-08-01
    
    this is the most recent commit to upstream's master at time of writing
    
    includes fixes of python package for darwin
    risicle authored and Jon committed Sep 20, 2020
    Copy the full SHA
    044533c View commit details
  18. libxnd, pythonPackages.xnd: unstable-2018-11-27 -> unstable-2019-08-01

    this is the most recent commit to upstream's master at time of writing
    
    includes fixes of python package for darwin
    risicle authored and Jon committed Sep 20, 2020

    Partially verified

    This commit is signed with the committer’s verified signature. The key has expired.
    marsam’s contribution has been verified via GPG key.
    We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
    Copy the full SHA
    dcd6847 View commit details
  19. libgumath, pythonPackages.gumath: unstable-2018-11-27 -> unstable-201…

    …9-08-01
    
    this is the most recent commit to upstream's master at time of writing
    
    includes fixes of python package for darwin
    risicle authored and Jon committed Sep 20, 2020
    Copy the full SHA
    eb86bff View commit details
  20. python38Packages.shouldbe: disable for python3.8

    Jonathan Ringer committed Sep 20, 2020
    Copy the full SHA
    43c0499 View commit details
  21. contributing.md: mention rebased or squashed merges

    Jonathan Ringer committed Sep 20, 2020
    Copy the full SHA
    96e4438 View commit details
  22. Merge pull request #98329 from jonringer/disable-shouldbe

    python38Packages.shouldbe: disable for python3.8
    mweinelt authored Sep 20, 2020

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    dtzWill Will Dietz
    Copy the full SHA
    1696de5 View commit details
  23. Merge pull request #98218 from Ma27/bump-matrix-synapse

    matrix-synapse: 1.19.2 -> 1.19.3
    Ma27 authored Sep 20, 2020
    Copy the full SHA
    783bf0a View commit details
  24. linux: 5.9-rc4 -> 5.9-rc5

    NeQuissimus committed Sep 20, 2020
    Copy the full SHA
    9a4468b View commit details
  25. pythonPackages.cfn-lint: 0.35.0 -> 0.35.1

    * Update version
    * Cleanup packaging: run tests & use GitHub source
    * Meta: add changelog
    drewrisinger authored and Jon committed Sep 20, 2020
    Copy the full SHA
    4e435ee View commit details
  26. Merge pull request #98327 from yvesf/qcad-fix-qt5-arg

    qcad: replace qt argument
    gebner authored Sep 20, 2020
    Copy the full SHA
    3aa1721 View commit details
  27. Merge pull request #98330 from jonringer/update-contributing

    contributing.md: mention rebased or squashed merges
    worldofpeace authored Sep 20, 2020
    Copy the full SHA
    8f00cc4 View commit details
  28. Merge pull request #97738 from cole-h/build-vm-for-flakes

    nixos-rebuild: add flake support for build-vm
    worldofpeace authored Sep 20, 2020
    Copy the full SHA
    684d691 View commit details
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -55,7 +55,7 @@ Follow these steps to backport a change into a release branch in compliance with
1. Take note of the commits in which the change was introduced into `master` branch.
2. Check out the target _release branch_, e.g. `release-20.03`. Do not use a _channel branch_ like `nixos-20.03` or `nixpkgs-20.03`.
3. Create a branch for your change, e.g. `git checkout -b backport`.
4. When the reason to backport is not obvious from the original commit message, use `git cherry-pick -xe <original commit>` and add a reason. Otherwise use `git cherry-pick -x <original commit>`. That's fine for minor version updates that only include security and bug fixes, commits that fixes an otherwise broken package or similar.
4. When the reason to backport is not obvious from the original commit message, use `git cherry-pick -xe <original commit>` and add a reason. Otherwise use `git cherry-pick -x <original commit>`. That's fine for minor version updates that only include security and bug fixes, commits that fixes an otherwise broken package or similar. Please also ensure the commits exists on the master branch; in the case of squashed or rebased merges, the commit hash will change and the new commits can be found in the merge message at the bottom of the master pull request.
5. Push to GitHub and open a backport pull request. Make sure to select the release branch (e.g. `release-20.03`) as the target branch of the pull request, and link to the pull request in which the original change was comitted to `master`. The pull request title should be the commit title with the release version as prefix, e.g. `[20.03]`.

## Reviewing contributions
26 changes: 23 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -5,7 +5,6 @@

outputs = { self }:
let

jobs = import ./pkgs/top-level/release.nix {
nixpkgs = self;
};
@@ -28,10 +27,31 @@
lib = lib.extend (final: prev: {
nixosSystem = { modules, ... } @ args:
import ./nixos/lib/eval-config.nix (args // {
modules = modules ++
[ { system.nixos.versionSuffix =
modules =
let
vmConfig = (import ./nixos/lib/eval-config.nix
(args // {
modules = modules ++ [ ./nixos/modules/virtualisation/qemu-vm.nix ];
})).config;

vmWithBootLoaderConfig = (import ./nixos/lib/eval-config.nix
(args // {
modules = modules ++ [
./nixos/modules/virtualisation/qemu-vm.nix
{ virtualisation.useBootLoader = true; }
];
})).config;
in
modules ++ [
{
system.nixos.versionSuffix =
".${final.substring 0 8 (self.lastModifiedDate or self.lastModified)}.${self.shortRev or "dirty"}";
system.nixos.revision = final.mkIf (self ? rev) self.rev;

system.build = {
vm = vmConfig.system.build.vm;
vmWithBootLoader = vmWithBootLoaderConfig.system.build.vm;
};
}
];
});
53 changes: 28 additions & 25 deletions lib/systems/doubles.nix
Original file line number Diff line number Diff line change
@@ -50,32 +50,35 @@ in {

none = [];

arm = filterDoubles predicates.isAarch32;
aarch64 = filterDoubles predicates.isAarch64;
x86 = filterDoubles predicates.isx86;
i686 = filterDoubles predicates.isi686;
x86_64 = filterDoubles predicates.isx86_64;
mips = filterDoubles predicates.isMips;
riscv = filterDoubles predicates.isRiscV;
vc4 = filterDoubles predicates.isVc4;
js = filterDoubles predicates.isJavaScript;

cygwin = filterDoubles predicates.isCygwin;
darwin = filterDoubles predicates.isDarwin;
freebsd = filterDoubles predicates.isFreeBSD;
arm = filterDoubles predicates.isAarch32;
aarch64 = filterDoubles predicates.isAarch64;
x86 = filterDoubles predicates.isx86;
i686 = filterDoubles predicates.isi686;
x86_64 = filterDoubles predicates.isx86_64;
mips = filterDoubles predicates.isMips;
riscv = filterDoubles predicates.isRiscV;
vc4 = filterDoubles predicates.isVc4;
js = filterDoubles predicates.isJavaScript;

bigEndian = filterDoubles predicates.isBigEndian;
littleEndian = filterDoubles predicates.isLittleEndian;

cygwin = filterDoubles predicates.isCygwin;
darwin = filterDoubles predicates.isDarwin;
freebsd = filterDoubles predicates.isFreeBSD;
# Should be better, but MinGW is unclear.
gnu = filterDoubles (matchAttrs { kernel = parse.kernels.linux; abi = parse.abis.gnu; }) ++ filterDoubles (matchAttrs { kernel = parse.kernels.linux; abi = parse.abis.gnueabi; }) ++ filterDoubles (matchAttrs { kernel = parse.kernels.linux; abi = parse.abis.gnueabihf; });
illumos = filterDoubles predicates.isSunOS;
linux = filterDoubles predicates.isLinux;
netbsd = filterDoubles predicates.isNetBSD;
openbsd = filterDoubles predicates.isOpenBSD;
unix = filterDoubles predicates.isUnix;
wasi = filterDoubles predicates.isWasi;
redox = filterDoubles predicates.isRedox;
windows = filterDoubles predicates.isWindows;
genode = filterDoubles predicates.isGenode;

embedded = filterDoubles predicates.isNone;
gnu = filterDoubles (matchAttrs { kernel = parse.kernels.linux; abi = parse.abis.gnu; }) ++ filterDoubles (matchAttrs { kernel = parse.kernels.linux; abi = parse.abis.gnueabi; }) ++ filterDoubles (matchAttrs { kernel = parse.kernels.linux; abi = parse.abis.gnueabihf; });
illumos = filterDoubles predicates.isSunOS;
linux = filterDoubles predicates.isLinux;
netbsd = filterDoubles predicates.isNetBSD;
openbsd = filterDoubles predicates.isOpenBSD;
unix = filterDoubles predicates.isUnix;
wasi = filterDoubles predicates.isWasi;
redox = filterDoubles predicates.isRedox;
windows = filterDoubles predicates.isWindows;
genode = filterDoubles predicates.isGenode;

embedded = filterDoubles predicates.isNone;

mesaPlatforms = ["i686-linux" "x86_64-linux" "x86_64-darwin" "armv5tel-linux" "armv6l-linux" "armv7l-linux" "armv7a-linux" "aarch64-linux" "powerpc64le-linux"];
}
10 changes: 6 additions & 4 deletions nixos/modules/installer/tools/nixos-rebuild.sh
Original file line number Diff line number Diff line change
@@ -438,15 +438,17 @@ if [ -z "$rollback" ]; then
if [[ -z $flake ]]; then
pathToConfig="$(nixBuild '<nixpkgs/nixos>' -A vm -k "${extraBuildFlags[@]}")"
else
echo "$0: 'build-vm' is not supported with '--flake'" >&2
exit 1
nix "${flakeFlags[@]}" build "$flake#$flakeAttr.config.system.build.vm" \
"${extraBuildFlags[@]}" "${lockFlags[@]}"
pathToConfig="$(readlink -f ./result)"
fi
elif [ "$action" = build-vm-with-bootloader ]; then
if [[ -z $flake ]]; then
pathToConfig="$(nixBuild '<nixpkgs/nixos>' -A vmWithBootLoader -k "${extraBuildFlags[@]}")"
else
echo "$0: 'build-vm-with-bootloader' is not supported with '--flake'" >&2
exit 1
nix "${flakeFlags[@]}" build "$flake#$flakeAttr.config.system.build.vmWithBootLoader" \
"${extraBuildFlags[@]}" "${lockFlags[@]}"
pathToConfig="$(readlink -f ./result)"
fi
else
showSyntax
10 changes: 10 additions & 0 deletions nixos/modules/services/hardware/thermald.nix
Original file line number Diff line number Diff line change
@@ -23,6 +23,15 @@ in {
default = null;
description = "the thermald manual configuration file.";
};

adaptive = mkOption {
type = types.bool;
default = false;
description = ''
Whether to enable adaptive mode, only working on kernel versions greater than 5.8.
Thermald will detect this itself, safe to enable on kernel versions below 5.8.
'';
};
};
};

@@ -39,6 +48,7 @@ in {
--no-daemon \
${optionalString cfg.debug "--loglevel=debug"} \
${optionalString (cfg.configFile != null) "--config-file ${cfg.configFile}"} \
${optionalString cfg.adaptive "--adaptive"} \
--dbus-enable
'';
};
36 changes: 22 additions & 14 deletions pkgs/applications/misc/qcad/default.nix
Original file line number Diff line number Diff line change
@@ -1,35 +1,39 @@
{ boost
, fetchFromGitHub
, libGLU
, mkDerivationWith
, muparser
, pkgconfig
, qtbase
, qmake
, qt5
, qtscript
, qtsvg
, qtxmlpatterns
, qttools
, stdenv
, libGLU
}:

mkDerivationWith stdenv.mkDerivation rec {
pname = "qcad";
version = "3.25.0.0";
version = "3.25.2.0";

src = fetchFromGitHub {
owner = "qcad";
repo = "qcad";
rev = "v${version}";
sha256 = "07qph2645m1wi9yi04ixdvx8dli03q1vimj3laqdmnpipi54lljc";
sha256 = "1lz6q9n2p0l7k8rwqsdj6av9p3426423g5avc4y6s7nbk36280mz";
};

patches = [
./application-dir.patch
];

postPatch = ''
if ! [ -d src/3rdparty/qt-labs-qtscriptgenerator-${qt5.qtbase.version} ]; then
mkdir src/3rdparty/qt-labs-qtscriptgenerator-${qt5.qtbase.version}
if ! [ -d src/3rdparty/qt-labs-qtscriptgenerator-${qtbase.version} ]; then
mkdir src/3rdparty/qt-labs-qtscriptgenerator-${qtbase.version}
cp \
src/3rdparty/qt-labs-qtscriptgenerator-5.14.0/qt-labs-qtscriptgenerator-5.14.0.pro \
src/3rdparty/qt-labs-qtscriptgenerator-${qt5.qtbase.version}/qt-labs-qtscriptgenerator-${qt5.qtbase.version}.pro
src/3rdparty/qt-labs-qtscriptgenerator-${qtbase.version}/qt-labs-qtscriptgenerator-${qtbase.version}.pro
fi
'';

@@ -61,6 +65,10 @@ mkDerivationWith stdenv.mkDerivation rec {
cp -r plugins $out/lib/plugins
cp -r patterns $out/lib/patterns
# workaround to fix the library browser:
rm -r $out/lib/plugins/sqldrivers
ln -s -t $out/lib/plugins ${qtbase}/${qtbase.qtPluginPrefix}/sqldrivers
install -Dm644 scripts/qcad_icon.svg $out/share/icons/hicolor/scalable/apps/qcad.svg
runHook postInstall
@@ -70,16 +78,16 @@ mkDerivationWith stdenv.mkDerivation rec {
boost
muparser
libGLU
qt5.qtbase
qt5.qtscript
qt5.qtsvg
qt5.qtxmlpatterns
qtbase
qtscript
qtsvg
qtxmlpatterns
];

nativeBuildInputs = [
pkgconfig
qt5.qmake
qt5.qttools
qmake
qttools
];

enableParallelBuilding = true;
@@ -89,6 +97,6 @@ mkDerivationWith stdenv.mkDerivation rec {
homepage = "https://qcad.org";
license = licenses.gpl3;
maintainers = with maintainers; [ yvesf ];
platforms = qt5.qtbase.meta.platforms;
platforms = qtbase.meta.platforms;
};
}
10 changes: 10 additions & 0 deletions pkgs/development/compilers/llvm/5/lldb.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{ stdenv
, fetch
, fetchpatch
, cmake
, zlib
, ncurses
@@ -20,6 +21,15 @@ stdenv.mkDerivation {

src = fetch "lldb" "05j2a63yzln43852nng8a7y47spzlyr1cvdmgmbxgd29c8r0bfkq";

patches = [
# Fix PythonString::GetString for >=python-3.7
(fetchpatch {
url = "https://github.com/llvm/llvm-project/commit/5457b426f5e15a29c0acc8af1a476132f8be2a36.patch";
sha256 = "1zbx4m0m8kbg0wq6740jcw151vb2pb1p25p401wiq8diqqagkjps";
stripLen = 1;
})
];

postPatch = ''
# Fix up various paths that assume llvm and clang are installed in the same place
sed -i 's,".*ClangConfig.cmake","${clang-unwrapped}/lib/cmake/clang/ClangConfig.cmake",' \
10 changes: 10 additions & 0 deletions pkgs/development/compilers/llvm/6/lldb.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{ stdenv
, fetch
, fetchpatch
, cmake
, zlib
, ncurses
@@ -20,6 +21,15 @@ stdenv.mkDerivation {

src = fetch "lldb" "05178zkyh84x32n91md6wm22lkzzrrfwa5cpmgzn0yrg3y2771bb";

patches = [
# Fix PythonString::GetString for >=python-3.7
(fetchpatch {
url = "https://github.com/llvm/llvm-project/commit/5457b426f5e15a29c0acc8af1a476132f8be2a36.patch";
sha256 = "1zbx4m0m8kbg0wq6740jcw151vb2pb1p25p401wiq8diqqagkjps";
stripLen = 1;
})
];

postPatch = ''
# Fix up various paths that assume llvm and clang are installed in the same place
sed -i 's,".*ClangConfig.cmake","${clang-unwrapped}/lib/cmake/clang/ClangConfig.cmake",' \
8 changes: 4 additions & 4 deletions pkgs/development/libraries/libgumath/default.nix
Original file line number Diff line number Diff line change
@@ -6,13 +6,13 @@

stdenv.mkDerivation {
pname = "libgumath";
version = "unstable-2018-11-27";
version = "unstable-2019-08-01";

src = fetchFromGitHub {
owner = "plures";
owner = "xnd-project";
repo = "gumath";
rev = "5a9d27883b40432246d6a93cd6133157267fd166";
sha256 = "0w2qzp7anxd1wzkvv5r2pdkkpgrnqzgrq47lrvpqc1i1wqzcwf0w";
rev = "360ed454105ac5615a7cb7d216ad25bc4181b876";
sha256 = "1wprkxpmjrk369fpw8rbq51r7jvqkcndqs209y7p560cnagmsxc6";
};

buildInputs = [ libndtypes libxnd ];
8 changes: 4 additions & 4 deletions pkgs/development/libraries/libndtypes/default.nix
Original file line number Diff line number Diff line change
@@ -4,13 +4,13 @@

stdenv.mkDerivation {
pname = "libndtypes";
version = "unstable-2018-11-27";
version = "unstable-2019-08-01";

src = fetchFromGitHub {
owner = "plures";
owner = "xnd-project";
repo = "ndtypes";
rev = "4d810d0c4d54c81a7136f313f0ae6623853d574a";
sha256 = "1kk1sa7f17ffh49jc1qlizlsj536fr3s4flb6x4rjyi81rp7psb9";
rev = "3ce6607c96d8fe67b72cc0c97bf595620cdd274e";
sha256 = "18303q0jfar1lmi4krp94plczb455zcgw772f9lb8xa5p0bkhx01";
};

# Override linker with cc (symlink to either gcc or clang)
16 changes: 12 additions & 4 deletions pkgs/development/libraries/libxnd/default.nix
Original file line number Diff line number Diff line change
@@ -6,13 +6,13 @@

stdenv.mkDerivation {
pname = "libxnd";
version = "unstable-2018-11-27";
version = "unstable-2019-08-01";

src = fetchFromGitHub {
owner = "plures";
owner = "xnd-project";
repo = "xnd";
rev = "8a9f3bd1d01d872828b40bc9dbd0bc0184524da3";
sha256 = "10jh2kqvhpzwy50adayh9az7z2lm16yxy4flrh99alzzbqdyls44";
rev = "6f305cd40d90b4f3fc2fe51ae144b433d186a6cc";
sha256 = "1n31d64qwlc7m3qkzbafhp0dgrvgvkdx89ykj63kll7r1n3yk59y";
};

buildInputs = [ libndtypes ];
@@ -28,6 +28,14 @@ stdenv.mkDerivation {
"--with-libs=${libndtypes}/lib"
];

# other packages which depend on libxnd seem to expect overflow.h, but
# it doesn't seem to be included in the installed headers. for now this
# works, but the generic name of the header could produce problems
# with collisions down the line.
postInstall = ''
cp libxnd/overflow.h $out/include/overflow.h
'';

doCheck = true;

meta = {
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/agate-sql/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchPypi, buildPythonPackage, agate, sqlalchemy }:
{ stdenv, fetchPypi, buildPythonPackage, agate, sqlalchemy, crate }:

buildPythonPackage rec {
pname = "agate-sql";
@@ -9,7 +9,7 @@ buildPythonPackage rec {
sha256 = "50a39754babef6cd0d1b1e75763324a49593394fe46ab1ea9546791b5e6b69a7";
};

propagatedBuildInputs = [ agate sqlalchemy ];
propagatedBuildInputs = [ agate sqlalchemy crate ];

meta = with stdenv.lib; {
description = "Adds SQL read/write support to agate.";
42 changes: 25 additions & 17 deletions pkgs/development/python-modules/cfn-lint/default.nix
Original file line number Diff line number Diff line change
@@ -1,49 +1,53 @@
{ lib
, buildPythonPackage
, fetchPypi
, fetchFromGitHub
, pythonOlder
, pyyaml
, six
, requests
, aws-sam-translator
, importlib-metadata
, importlib-resources
, jsonpatch
, jsonschema
, pathlib2
, setuptools
, junit-xml
, networkx
, pathlib2
, pyyaml
, requests
, setuptools
, six
# Test inputs
, pytestCheckHook
, mock
, pydot
}:

buildPythonPackage rec {
pname = "cfn-lint";
version = "0.35.0";
version = "0.35.1";

src = fetchPypi {
inherit pname version;
sha256 = "42023d89520e3a29891ec2eb4c326eef9d1f7516fe9abee8b6c97ce064187b45";
src = fetchFromGitHub {
owner = "aws-cloudformation";
repo = "cfn-python-lint";
rev = "v${version}";
sha256 = "1ajb0412hw9fg9m4b3xbpfbp8cixmnpjxrkaks6k749xinzsv7qk";
};

postPatch = ''
substituteInPlace setup.py --replace 'importlib_resources~=1.4;python_version<"3.7" and python_version!="3.4"' 'importlib_resources;python_version<"3.7"'
'';

propagatedBuildInputs = [
pyyaml
six
requests
aws-sam-translator
jsonpatch
jsonschema
pathlib2
setuptools
junit-xml
networkx
pathlib2
pyyaml
requests
setuptools
six
] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata importlib-resources ];

# No tests included in archive
doCheck = false;
pythonImportsCheck = [
"cfnlint"
"cfnlint.conditions"
@@ -60,9 +64,13 @@ buildPythonPackage rec {
"cfnlint.transform"
];

checkInputs = [ pytestCheckHook mock pydot ];
preCheck = "export PATH=$out/bin:$PATH";

meta = with lib; {
description = "Checks cloudformation for practices and behaviour that could potentially be improved";
homepage = "https://github.com/aws-cloudformation/cfn-python-lint";
changelog = "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/CHANGELOG.md";
license = licenses.mit;
};
}
37 changes: 37 additions & 0 deletions pkgs/development/python-modules/crate/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{ stdenv
, fetchPypi
, buildPythonPackage
, urllib3
, isPy3k
, mock
, sqlalchemy
, pytestCheckHook
}:

buildPythonPackage rec {
pname = "crate";
version = "0.24.0";
disabled = !isPy3k;

src = fetchPypi {
inherit pname version;
sha256 = "028q9r1qyqkq185awkazhplfy7y1081963fnjzi3kf3lxvz6yhay";
};

propagatedBuildInputs = [
urllib3
];

checkInputs = [
pytestCheckHook
sqlalchemy
mock
];

meta = with stdenv.lib; {
homepage = "https://github.com/crate/crate-python";
description = "A Python client library for CrateDB";
license = licenses.asl20;
maintainers = with maintainers; [ doronbehar ];
};
}
5 changes: 2 additions & 3 deletions pkgs/development/python-modules/glom/default.nix
Original file line number Diff line number Diff line change
@@ -21,9 +21,8 @@ buildPythonPackage rec {
propagatedBuildInputs = [ boltons attrs face ];

checkInputs = [ pytest pyyaml ];
checkPhase = "pytest glom/test";

doCheck = !isPy37; # https://github.com/mahmoud/glom/issues/72
# test_cli.py checks the output of running "glom"
checkPhase = "PATH=$out/bin:$PATH pytest glom/test";

meta = with stdenv.lib; {
homepage = "https://github.com/mahmoud/glom";
20 changes: 19 additions & 1 deletion pkgs/development/python-modules/gumath/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{ buildPythonPackage
{ stdenv
, buildPythonPackage
, python
, numba
, ndtypes
, xnd
@@ -25,4 +27,20 @@ buildPythonPackage {
--replace 'add_runtime_library_dirs = ["$ORIGIN"]' \
'add_runtime_library_dirs = ["${libndtypes}/lib", "${libxnd}/lib", "${libgumath}/lib"]'
'';

postInstall = stdenv.lib.optionalString stdenv.isDarwin ''
install_name_tool -add_rpath ${libgumath}/lib $out/${python.sitePackages}/gumath/_gumath.*.so
'';

checkPhase = ''
pushd python
mv gumath _gumath
# minor precision issues
substituteInPlace test_gumath.py --replace 'test_sin' 'dont_test_sin'
python test_gumath.py
python test_xndarray.py
popd
'';

}

13 changes: 10 additions & 3 deletions pkgs/development/python-modules/mock-open/default.nix
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, mock }:
{ lib, buildPythonPackage, fetchFromGitHub, fetchpatch, pythonOlder, mock }:

buildPythonPackage rec {
pname = "mock-open";
version = "1.3.1";
version = "1.4.0";

# no tests in PyPI tarball
src = fetchFromGitHub {
owner = "nivbend";
repo = pname;
rev = "v${version}";
sha256 = "0ikhrhlkl5c7qbigpsv44jw89ws1z7j06gzyg5dh1ki533ifbjm2";
sha256 = "0qlz4y8jqxsnmqg03yp9f87rmnjrvmxm5qvm6n1218gm9k5dixbm";
};

patches = lib.optional (pythonOlder "3.0")
(fetchpatch {
name = "ascii-only.patch";
url = "https://github.com/das-g/mock-open/commit/521ff260da127949fe4aceff1667cba223c5b07b.patch";
sha256 = "0ampbhk7kwkn0q5d2h9wrflkr8fji2bybmdck4qdzw1qkslfwwrn";
});

propagatedBuildInputs = lib.optional (pythonOlder "3.3") mock;

meta = with lib; {
13 changes: 12 additions & 1 deletion pkgs/development/python-modules/ndtypes/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{ buildPythonPackage
{ stdenv
, buildPythonPackage
, python
, numpy
, libndtypes
, isPy27
@@ -24,5 +26,14 @@ buildPythonPackage {
postInstall = ''
mkdir $out/include
cp python/ndtypes/*.h $out/include
'' + stdenv.lib.optionalString stdenv.isDarwin ''
install_name_tool -add_rpath ${libndtypes}/lib $out/${python.sitePackages}/ndtypes/_ndtypes.*.so
'';

checkPhase = ''
pushd python
mv ndtypes _ndtypes
python test_ndtypes.py
popd
'';
}
3 changes: 3 additions & 0 deletions pkgs/development/python-modules/shouldbe/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{ stdenv
, buildPythonPackage
, pythonAtLeast
, fetchPypi
, nose
, forbiddenfruit
@@ -8,6 +9,8 @@
buildPythonPackage rec {
version = "0.1.2";
pname = "shouldbe";
# incompatible, https://github.com/DirectXMan12/should_be/issues/4
disabled = pythonAtLeast "3.8";

src = fetchPypi {
inherit pname version;
13 changes: 12 additions & 1 deletion pkgs/development/python-modules/xnd/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{ buildPythonPackage
{ stdenv
, buildPythonPackage
, python
, ndtypes
, libndtypes
, libxnd
@@ -25,5 +27,14 @@ buildPythonPackage {
postInstall = ''
mkdir $out/include
cp python/xnd/*.h $out/include
'' + stdenv.lib.optionalString stdenv.isDarwin ''
install_name_tool -add_rpath ${libxnd}/lib $out/${python.sitePackages}/xnd/_xnd.*.so
'';

checkPhase = ''
pushd python
mv xnd _xnd
python test_xnd.py
popd
'';
}
6 changes: 3 additions & 3 deletions pkgs/os-specific/linux/can-isotp/default.nix
Original file line number Diff line number Diff line change
@@ -2,15 +2,15 @@

stdenv.mkDerivation {
pname = "can-isotp";
version = "20180629";
version = "20200910";

hardeningDisable = [ "pic" ];

src = fetchFromGitHub {
owner = "hartkopp";
repo = "can-isotp";
rev = "6003f9997587e6a563cebf1f246bcd0eb6deff3d";
sha256 = "0b2pqb0vd1wgv2zpl7lvfavqkzr8mrwhrv7zdqkq3rz9givcv8w7";
rev = "21a3a59e2bfad246782896841e7af042382fcae7";
sha256 = "1laax93czalclg7cy9iq1r7hfh9jigh7igj06y9lski75ap2vhfq";
};

KERNELDIR = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build";
4 changes: 2 additions & 2 deletions pkgs/os-specific/linux/kernel/linux-testing.nix
Original file line number Diff line number Diff line change
@@ -3,15 +3,15 @@
with stdenv.lib;

buildLinux (args // rec {
version = "5.9-rc4";
version = "5.9-rc5";
extraMeta.branch = "5.9";

# modDirVersion needs to be x.y.z, will always add .0
modDirVersion = if (modDirVersionArg == null) then builtins.replaceStrings ["-"] [".0-"] version else modDirVersionArg;

src = fetchurl {
url = "https://git.kernel.org/torvalds/t/linux-${version}.tar.gz";
sha256 = "080qd0dmxs0zmkpcx62vnf719wgkk64a3012r4vsaiymzhddxy8k";
sha256 = "1f410hkrk1b5g9wkh6078ph03fiyxpmbd5kdl9w592afphcddbrc";
};

# Should the testing kernels ever be built on Hydra?
4 changes: 2 additions & 2 deletions pkgs/servers/matrix-synapse/default.nix
Original file line number Diff line number Diff line change
@@ -9,11 +9,11 @@ let
in
buildPythonApplication rec {
pname = "matrix-synapse";
version = "1.19.2";
version = "1.19.3";

src = fetchPypi {
inherit pname version;
sha256 = "0q2w3aid6xsn1ibpsl3wf6m7vl0znngz8n717rx1jndz4s6014nj";
sha256 = "1r63gw9a4n2sd3520zadpn05zxfk45nqrgwxp3zky5nkyrh4qbys";
};

patches = [
5 changes: 4 additions & 1 deletion pkgs/tools/graphics/svgbob/default.nix
Original file line number Diff line number Diff line change
@@ -10,8 +10,11 @@ rustPlatform.buildRustPackage rec {
rev = "0febc4377134a2ea3b3cd43ebdf5ea688a0e7432";
sha256 = "1n0w5b3fjgbczy1iw52172x1p3y1bvw1qpz77fkaxkhrkgfd7vwr";
};

sourceRoot = "source/svgbob_cli";
postPatch = ''
substituteInPlace ../svgbob/src/lib.rs \
--replace '#![deny(warnings)]' ""
'';

cargoSha256 = "1y9jsnxmz51zychmmzp6mi29pb5ks2qww7lk5bshkhp56v51sm8d";

57 changes: 44 additions & 13 deletions pkgs/tools/system/thermald/default.nix
Original file line number Diff line number Diff line change
@@ -1,42 +1,73 @@
{ stdenv, fetchFromGitHub, autoconf, automake, libtool
, pkgconfig, dbus, dbus-glib, libxml2, autoconf-archive }:
{ autoconf
, autoconf-archive
, automake
, dbus
, dbus-glib
, docbook_xml_dtd_412
, docbook-xsl-nons
, fetchFromGitHub
, gtk-doc
, libevdev
, libtool
, libxml2
, lzma
, pkgconfig
, stdenv
, upower
}:

stdenv.mkDerivation rec {
pname = "thermald";
version = "2.2";
version = "2.3";

outputs = [ "out" "devdoc" ];

src = fetchFromGitHub {
owner = "intel";
repo = "thermal_daemon";
rev = "v${version}";
sha256 = "1nrhv3bypyc48h9smj5cpq63rawm6vqyg3cwkhpz69rgjnf1283m";
sha256 = "0cisaca2c2z1x9xvxc4lr6nl6yqx5bww6brh73m0p1n643jgq1dl";
};

nativeBuildInputs = [ pkgconfig ];
buildInputs = [ autoconf automake libtool dbus dbus-glib libxml2 autoconf-archive ];

patchPhase = ''sed -e 's/upstartconfdir = \/etc\/init/upstartconfdir = $(out)\/etc\/init/' -i data/Makefile.am'';
nativeBuildInputs = [
autoconf
autoconf-archive
automake
docbook-xsl-nons
docbook_xml_dtd_412
gtk-doc
libtool
pkgconfig
];

preConfigure = ''
export PKG_CONFIG_PATH="${dbus.dev}/lib/pkgconfig:$PKG_CONFIG_PATH"
./autogen.sh
'';
buildInputs = [
dbus
dbus-glib
libevdev
libxml2
lzma
upower
];

configureFlags = [
"--sysconfdir=${placeholder "out"}/etc"
"--localstatedir=/var"
"--enable-gtk-doc"
"--with-dbus-sys-dir=${placeholder "out"}/share/dbus-1/system.d"
"--with-systemdsystemunitdir=${placeholder "out"}/etc/systemd/system"
];

preConfigure = "NO_CONFIGURE=1 ./autogen.sh";

postInstall = ''
cp ./data/thermal-conf.xml $out/etc/thermald/
'';

meta = with stdenv.lib; {
description = "Thermal Daemon";
homepage = "https://01.org/linux-thermal-daemon";
license = licenses.gpl2;
changelog = "https://github.com/intel/thermal_daemon/blob/master/README.txt";
license = licenses.gpl2Plus;
platforms = [ "x86_64-linux" "i686-linux" ];
maintainers = with maintainers; [ abbradar ];
};
38 changes: 14 additions & 24 deletions pkgs/tools/text/csvkit/default.nix
Original file line number Diff line number Diff line change
@@ -1,44 +1,34 @@
{ lib, python3, glibcLocales }:
{ lib, fetchpatch, python3 }:

python3.pkgs.buildPythonApplication rec {
pname = "csvkit";
version = "1.0.4";
version = "1.0.5";

src = python3.pkgs.fetchPypi {
inherit pname version;
sha256 = "1830lb95rh1iyi3drlwxzb6y3pqkii0qiyzd40c1kvhvaf1s6lqk";
sha256 = "1ffmbzk4rxnl1yhqfl58v7kvl5m9cbvjm8v7xp4mvr00sgs91lvv";
};

patches = [
# Fixes a failing dbf related test. Won't be needed on 1.0.6 or later.
(fetchpatch{
url = "https://github.com/wireservice/csvkit/commit/5f22e664121b13d9ff005a9206873a8f97431dca.patch";
sha256 = "1kg00z65x7l6dnm5nfsr5krs8m7mv23hhb1inkaqf5m5fpkpnvv7";
})
];

propagatedBuildInputs = with python3.pkgs; [
agate
agate-excel
# dbf test fail with agate-dbf-0.2.2
(agate-dbf.overridePythonAttrs(old: rec {
version = "0.2.1";
src = python3.pkgs.fetchPypi {
inherit (old) pname;
inherit version;
sha256 = "0brprva3vjypb5r9lk6zy10jazp681rxsqxzhz2lr869ir4krj80";
};}))
# sql test fail with agate-sql-0.5.4
(agate-sql.overridePythonAttrs(old: rec {
version = "0.5.3";
src = python3.pkgs.fetchPypi {
inherit (old) pname;
inherit version;
sha256 = "1d6rbahmdix7xi7ma2v86fpk5yi32q5dba5vama35w5mmn2pnyw7";
};}))
agate-dbf
agate-sql
six
];

checkInputs = with python3.pkgs; [
glibcLocales nose
nose pytestCheckHook
];

checkPhase = ''
LC_ALL="en_US.UTF-8" nosetests -e test_csvsql
'';

meta = with lib; {
description = "A suite of command-line tools for converting to and working with CSV";
maintainers = with maintainers; [ vrthra ];
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -1311,6 +1311,8 @@ in {

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

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

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

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