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: 0ee6d7e3ab7f
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: ad71d9b0d5bb
Choose a head ref
  • 9 commits
  • 11 files changed
  • 7 contributors

Commits on Aug 14, 2018

  1. Verified

    This commit was signed with the committer’s verified signature.
    Copy the full SHA
    47aa6ab View commit details
  2. givaro: Add darwin support

    jbaum98 committed Aug 14, 2018
    Copy the full SHA
    2ab014e View commit details

Commits on Aug 15, 2018

  1. Merge pull request #45009 from jbaum98/ratpoints-darwin

    ratpoints: 2.1.3 -> 2.1.3.p4; add darwin support
    adisbladis authored Aug 15, 2018

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    infinisil Silvan Mosberger
    Copy the full SHA
    2937e73 View commit details
  2. python.pkgs.orderedset: fix ofborg checkMeta

    broken by 44a4370
    xeji committed Aug 15, 2018
    Copy the full SHA
    6e3d0ef View commit details
  3. qemu: add path to bin utilites

    Izorkin authored and dezgeg committed Aug 15, 2018
    Copy the full SHA
    e2c9852 View commit details
  4. atd: 1.12.0 -> 2.0.0 (#45046)

    atdgen is now part of atd
    aij authored and xeji committed Aug 15, 2018

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    ef98b96 View commit details
  5. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    cc8e4a5 View commit details
  6. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    16d4753 View commit details
  7. Merge pull request #45001 from jbaum98/givaro-darwin

    givaro: Add darwin support
    timokau authored Aug 15, 2018
    Copy the full SHA
    ad71d9b View commit details
26 changes: 21 additions & 5 deletions pkgs/applications/science/math/ratpoints/default.nix
Original file line number Diff line number Diff line change
@@ -1,20 +1,36 @@
{stdenv, fetchurl, gmp}:
{ stdenv, fetchurl, fetchpatch, gmp }:
stdenv.mkDerivation rec {
name = "ratpoints-${version}";
version = "2.1.3";
version = "2.1.3.p4";

src = fetchurl {
url = "http://www.mathe2.uni-bayreuth.de/stoll/programs/ratpoints-${version}.tar.gz";
sha256 = "0zhad84sfds7izyksbqjmwpfw4rvyqk63yzdjd3ysd32zss5bgf4";
};
buildInputs = [gmp];
makeFlags = "INSTALL_DIR=$(out)";

enableParallelBuilding = true;

patches = [
(fetchpatch {
url = "https://git.sagemath.org/sage.git/plain/build/pkgs/ratpoints/patches/sturm_and_rp_private.patch?id=1615f58890e8f9881c4228c78a6b39b9aab1303a";
sha256 = "0q3wajncyfr3gahd8gwk9x7g56zw54lpywrl63lqk7drkf60mrcl";
})
];

buildInputs = [ gmp ];

makeFlags = [ "CC=cc" ];
buildFlags = stdenv.lib.optional stdenv.isDarwin ["CCFLAGS2=-lgmp -lc -lm" "CCFLAGS=-UUSE_SSE"];
installFlags = [ "INSTALL_DIR=$(out)" ];

preInstall = ''mkdir -p "$out"/{bin,share,lib,include}'';

meta = {
inherit version;
description = ''A program to find rational points on hyperelliptic curves'';
license = stdenv.lib.licenses.gpl2Plus;
maintainers = [stdenv.lib.maintainers.raskin];
platforms = stdenv.lib.platforms.linux;
platforms = stdenv.lib.platforms.unix;
homepage = http://www.mathe2.uni-bayreuth.de/stoll/programs/;
updateWalker = true;
};
6 changes: 4 additions & 2 deletions pkgs/applications/virtualization/qemu/default.nix
Original file line number Diff line number Diff line change
@@ -71,8 +71,10 @@ stdenv.mkDerivation rec {

outputs = [ "out" "ga" ];

patches = [ ./no-etc-install.patch ]
++ optional nixosTestRunner ./force-uid0-on-9p.patch
patches = [
./no-etc-install.patch
./fix-qemu-ga.patch
] ++ optional nixosTestRunner ./force-uid0-on-9p.patch
++ optional pulseSupport ./fix-hda-recording.patch
++ optionals stdenv.hostPlatform.isMusl [
(fetchpatch {
22 changes: 22 additions & 0 deletions pkgs/applications/virtualization/qemu/fix-qemu-ga.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
diff --git a/qga/commands-posix.c b/qga/commands-posix.c
index 0dc219d..9d020d3 100644
--- a/qga/commands-posix.c
+++ b/qga/commands-posix.c
@@ -102,6 +102,8 @@ void qmp_guest_shutdown(bool has_mode, const char *mode, Error **errp)
reopen_fd_to_null(1);
reopen_fd_to_null(2);

+ execle("/run/current-system/sw/bin/shutdown", "shutdown", "-h", shutdown_flag, "+0",
+ "hypervisor initiated shutdown", (char*)NULL, environ);
execle("/sbin/shutdown", "shutdown", "-h", shutdown_flag, "+0",
"hypervisor initiated shutdown", (char*)NULL, environ);
_exit(EXIT_FAILURE);
@@ -189,6 +191,8 @@ void qmp_guest_set_time(bool has_time, int64_t time_ns, Error **errp)

/* Use '/sbin/hwclock -w' to set RTC from the system time,
* or '/sbin/hwclock -s' to set the system time from RTC. */
+ execle("/run/current-system/sw/bin/hwclock", "hwclock", has_time ? "-w" : "-s",
+ NULL, environ);
execle("/sbin/hwclock", "hwclock", has_time ? "-w" : "-s",
NULL, environ);
_exit(EXIT_FAILURE);
14 changes: 12 additions & 2 deletions pkgs/development/libraries/givaro/default.nix
Original file line number Diff line number Diff line change
@@ -11,8 +11,12 @@ stdenv.mkDerivation rec {
rev = "v${version}";
sha256 = "199p8wyj5i63jbnk7j8qbdbfp5rm2lpmcxyk3mdjy9bz7ygx3hhy";
};

enableParallelBuilding = true;

nativeBuildInputs = [ autoreconfHook ];
buildInputs = [autoconf automake libtool gmpxx];

configureFlags = [
"--disable-optimization"
] ++ stdenv.lib.optionals (!optimize) [
@@ -28,12 +32,18 @@ stdenv.mkDerivation rec {
"--disable-fma"
"--disable-fma4"
];
doCheck = true;

# On darwin, tests are linked to dylib in the nix store, so we need to make
# sure tests run after installPhase.
doInstallCheck = true;
installCheckTarget = "check";
doCheck = false;

meta = {
inherit version;
description = ''A C++ library for arithmetic and algebraic computations'';
license = stdenv.lib.licenses.cecill-b;
maintainers = [stdenv.lib.maintainers.raskin];
platforms = stdenv.lib.platforms.linux;
platforms = stdenv.lib.platforms.unix;
};
}
38 changes: 13 additions & 25 deletions pkgs/development/ocaml-modules/atd/default.nix
Original file line number Diff line number Diff line change
@@ -1,41 +1,29 @@
{ stdenv, menhir, easy-format, ocaml, findlib, fetchurl, jbuilder, which }:

let param =
if stdenv.lib.versionAtLeast ocaml.version "4.02"
then {
version = "1.12.0";
sha256 = "1pcd4fqbilv8zm2mc1nj2s26vc5y8vnisg1q1y6bjx23wxidb09y";
buildPhase = "jbuilder build -p atd";
inherit (jbuilder) installPhase;
} else {
version = "1.1.2";
sha256 = "0ef10c63192aed75e9a4274e89c5f9ca27efb1ef230d9949eda53ad4a9a37291";
buildPhase = "";
installPhase = ''
mkdir -p $out/bin
make PREFIX=$out install
'';
};
in
{ stdenv, menhir, easy-format, ocaml, findlib, fetchFromGitHub, jbuilder, which, biniou, yojson }:

stdenv.mkDerivation rec {
inherit (param) version buildPhase installPhase;
version = "2.0.0";

name = "ocaml${ocaml.version}-atd-${version}";

src = fetchurl {
url = "https://github.com/mjambon/atd/archive/v${version}.tar.gz";
inherit (param) sha256;
src = fetchFromGitHub {
owner = "mjambon";
repo = "atd";
rev = version;
sha256 = "0alzmk97rxg7s6irs9lvf89dy9n3r769my5n4j9p9qyigcdgjaia";
};

createFindlibDestdir = true;

buildInputs = [ which jbuilder ocaml findlib menhir ];
propagatedBuildInputs = [ easy-format ];
propagatedBuildInputs = [ easy-format biniou yojson ];

buildPhase = "jbuilder build";
inherit (jbuilder) installPhase;

meta = with stdenv.lib; {
homepage = https://github.com/mjambon/atd;
description = "Syntax for cross-language type definitions";
license = licenses.bsd3;
maintainers = [ maintainers.jwilberding ];
maintainers = with maintainers; [ aij jwilberding ];
};
}
25 changes: 0 additions & 25 deletions pkgs/development/ocaml-modules/atdgen/default.nix

This file was deleted.

20 changes: 20 additions & 0 deletions pkgs/development/python-modules/fastcache/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{ lib, buildPythonPackage, fetchPypi, pytest }:

buildPythonPackage rec {
pname = "fastcache";
version = "1.0.2";

src = fetchPypi {
inherit pname version;
sha256 = "1rl489zfbm2x67n7i6r7r4nhrhwk6yz3yc7x9y2rky8p95vhaw46";
};

checkInputs = [ pytest ];

meta = with lib; {
description = "C implementation of Python3 lru_cache for Python 2 and 3";
homepage = https://github.com/pbrady/fastcache;
license = licenses.mit;
maintainers = [ maintainers.bhipple ];
};
}
22 changes: 22 additions & 0 deletions pkgs/development/python-modules/multiprocess/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{ lib, buildPythonPackage, fetchPypi, dill }:

buildPythonPackage rec {
pname = "multiprocess";
version = "0.70.6.1";

src = fetchPypi {
inherit pname version;
sha256 = "1ip5caz67b3q0553mr8gm8xwsb8x500jn8ml0gihgyfy52m2ypcq";
};

propagatedBuildInputs = [ dill ];

# Python-version dependent tests
doCheck = false;

meta = with lib; {
description = "Better multiprocessing and multithreading in python";
homepage = https://github.com/uqfoundation/multiprocess;
license = licenses.bsd3;
};
}
2 changes: 1 addition & 1 deletion pkgs/development/python-modules/orderedset/default.nix
Original file line number Diff line number Diff line change
@@ -13,6 +13,6 @@ buildPythonPackage rec {
description = "An Ordered Set implementation in Cython";
homepage = https://pypi.python.org/pypi/orderedset;
license = licenses.bsd3;
maintainers = maintainers.jtojnar;
maintainers = [ maintainers.jtojnar ];
};
}
2 changes: 0 additions & 2 deletions pkgs/top-level/ocaml-packages.nix
Original file line number Diff line number Diff line change
@@ -50,8 +50,6 @@ let

atd = callPackage ../development/ocaml-modules/atd { };

atdgen = callPackage ../development/ocaml-modules/atdgen { };

base64 = callPackage ../development/ocaml-modules/base64 { };

bap = callPackage ../development/ocaml-modules/bap {
23 changes: 3 additions & 20 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -2537,6 +2537,8 @@ in {
};
};

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

functools32 = if isPy3k then null else buildPythonPackage rec {
name = "functools32-${version}";
version = "3.2.3-2";
@@ -7776,26 +7778,7 @@ in {

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

multiprocess = buildPythonPackage rec {
name = "multiprocess-${version}";
version = "0.70.4";

src = pkgs.fetchurl {
url = "mirror://pypi/m/multiprocess/${name}.tgz";
sha256 = "73f8b9b7009860e3c3c8b9bdcad7e8366b130929775f89c114d4346a9cfcb31b";
};

propagatedBuildInputs = with self; [ dill ];

# Python-version dependent tests
doCheck = false;

meta = {
description = "Better multiprocessing and multithreading in python";
homepage = https://github.com/uqfoundation;
license = licenses.bsd3;
};
};
multiprocess = callPackage ../development/python-modules/multiprocess { };

munkres = buildPythonPackage rec {
name = "munkres-1.0.6";