pkgs: Do all version requirements as overrides in all-packages

This commit is contained in:
Tyson Whitehead
2018-07-18 13:21:33 -04:00
parent 6118f8b275
commit 444bcbe26f
8 changed files with 22 additions and 25 deletions

View File

@@ -9,9 +9,9 @@ self: super: pkgs: with pkgs; {
boost = boost162; boost = boost162;
}; };
cloudcompare = libsForQt5.callPackage ./cloudcompare.nix { }; cloudcompare = libsForQt5.callPackage ./cloudcompare.nix { boost = boost15x; };
cryptominisat = callPackage ./cryptominisat.nix { }; cryptominisat = callPackage ./cryptominisat.nix { python = python27; };
#firedrake = callPackage ./firedrake { }; #firedrake = callPackage ./firedrake { };
@@ -20,22 +20,22 @@ self: super: pkgs: with pkgs; {
libxc4 = libxc404; libxc4 = libxc404;
libxc = libxc4; libxc = libxc4;
#meraculous = callPackage ./meraculous.nix { }; #meraculous = callPackage ./meraculous.nix { let stdenv49 = overrideCC stdenv gcc49; in stdenv = stdenv49; boost = boost159.override { stdenv = stdenv49 }; };
inherit (callPackage ./opengl/default.nix { inherit super; }) mesa_noglu; inherit (callPackage ./opengl/default.nix { inherit super; }) mesa_noglu;
inherit (callPackages ./octopus/octopus.nix { }) octopus72; inherit (callPackages ./octopus/octopus.nix { stdenv = overrideCC stdenv gcc5; gfortran = gfortran5; }) octopus72;
octopus7 = octopus72; octopus7 = octopus72;
octopus = octopus7; octopus = octopus7;
openfoam = callPackage ./openfoam.nix { }; openfoam = callPackage ./openfoam.nix { };
openslide = callPackage ./openslide { }; openslide = callPackage ./openslide { };
openslide-python = callPackage ./openslide/python.nix { }; openslide-python = callPackage ./openslide/python.nix { pythonPackages = python27Packages; };
ovito = libsForQt5.callPackage ./ovito.nix { stdenv = overrideCC stdenv gcc6; }; ovito = libsForQt5.callPackage ./ovito.nix { stdenv = overrideCC stdenv gcc6; };
#sumo = callPackage ./sumo.nix { }; #sumo = callPackage ./sumo.nix { fox = fox_1_6; };
namd = callPackage ./namd.nix { }; namd = callPackage ./namd.nix { };

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchurl, gcc5, cpio, curl { stdenv, fetchurl, cpio, curl
, python, perl, zlib, bzip2, boost }: , python, perl, zlib, bzip2, boost }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {

View File

@@ -1,5 +1,5 @@
{ stdenv, fetchFromGitHub, cmake { stdenv, fetchFromGitHub, cmake
, boost15x, eigen, dxflib, gdal, flann, libLAS, LASzip , boost, eigen, dxflib, gdal, flann, libLAS, LASzip
, qtbase }: , qtbase }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
buildInputs = [ buildInputs = [
cmake cmake
boost15x boost
eigen eigen
dxflib dxflib
gdal gdal

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchurl, cmake, zlib, sqlite, boost, python27, vim }: { stdenv, fetchurl, cmake, zlib, sqlite, boost, python, vim }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "cryptominisat-4.5.3"; name = "cryptominisat-4.5.3";
@@ -13,7 +13,7 @@ stdenv.mkDerivation {
zlib zlib
sqlite sqlite
boost boost
python27 python
vim vim
]; ];

View File

@@ -1,12 +1,9 @@
{ stdenv, overrideCC, gcc49, fetchurl, makeWrapper, gzip, cmake { stdenv, overrideCC, gcc49, fetchurl, makeWrapper, gzip, cmake
, boost159, perl, perlPackages, gnuplot }: , boost, perl, perlPackages, gnuplot }:
# gcc 5.x c++11 requires istream to be explicitly cast to bool # gcc 5.x c++11 requires istream to be explicitly cast to bool
let stdenv.mkDerivation rec {
stdenv49 = overrideCC stdenv gcc49;
in stdenv49.mkDerivation rec {
version = "2.2.2.5_lt"; version = "2.2.2.5_lt";
name = "meraculous-${version}"; name = "meraculous-${version}";
@@ -27,7 +24,7 @@ in stdenv49.mkDerivation rec {
makeWrapper makeWrapper
gzip gzip
cmake cmake
(boost159.override { stdenv = stdenv49; }) boost
perl perl
perlPackages.Log4Perl perlPackages.Log4Perl
gnuplot gnuplot

View File

@@ -9,12 +9,12 @@
# nlopt (only provides libnlopt_cxx which requires c++ compiler for linking) # nlopt (only provides libnlopt_cxx which requires c++ compiler for linking)
# #
{ stdenv, fetchurl, overrideCC, gcc5, gfortran5, perl, openmpi { stdenv, fetchurl, gfortran, perl, openmpi
, libxc3, blas, liblapack, gsl, fftw, netcdffortran , libxc3, blas, liblapack, gsl, fftw, netcdffortran
, arpack, libyaml }: , arpack, libyaml }:
let let
common = version: sha256: (overrideCC stdenv gcc5).mkDerivation rec { common = version: sha256: stdenv.mkDerivation rec {
inherit version; inherit version;
name = "octopus-${version}"; name = "octopus-${version}";
@@ -24,7 +24,7 @@ let
}; };
buildInputs = [ buildInputs = [
gfortran5 gfortran
perl perl
openmpi openmpi
libxc3 libxc3

View File

@@ -1,7 +1,7 @@
{ lib, fetchFromGitHub { lib, fetchFromGitHub
, python27Packages, openslide }: , pythonPackages, openslide }:
python27Packages.buildPythonPackage rec { pythonPackages.buildPythonPackage rec {
version = "1.1.1"; version = "1.1.1";
name = "openslide-python-${version}"; name = "openslide-python-${version}";
@@ -23,7 +23,7 @@ python27Packages.buildPythonPackage rec {
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [
python27Packages.pillow pythonPackages.pillow
]; ];
meta = with lib; { meta = with lib; {

View File

@@ -1,7 +1,7 @@
{ stdenv, fetchurl, unzip { stdenv, fetchurl, unzip
, lzma, bzip2, zlib, libjpeg, libtiff, openssl , lzma, bzip2, zlib, libjpeg, libtiff, openssl
, mesa, xorg , mesa, xorg
, fox_1_6, xercesc, proj, gdal, hdf5, curl }: , fox, xercesc, proj, gdal, hdf5, curl }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "0.25.0"; version = "0.25.0";
@@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
libjpeg libtiff libjpeg libtiff
openssl openssl
mesa xorg.libX11 mesa xorg.libX11
fox_1_6 fox
xercesc xercesc
proj gdal proj gdal
hdf5 hdf5