git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #17657 from matthewbauer/darwin-misc

Darwin misc. fixes

commit40d217b90ec1254f5b2d9652278a5fbb3ea929f5 authorRobin Gloster <mail@glob.in> dateThu 11 Aug 2016, 16:41 (10 years ago) parente8c7f1996322f6
7 files changed+25−10
pkgs/applications/science/biology/bcftools/default.nix+5−3 pkgs/applications/science/logic/aspino/default.nix+5 pkgs/applications/science/math/LiE/default.nix+2−2 pkgs/development/arduino/arduino-core/default.nix+1−1 pkgs/development/libraries/alure/default.nix+1−1 pkgs/tools/video/atomicparsley/default.nix+10−2 pkgs/top-level/all-packages.nix+1−1
pkgs/applications/science/biology/bcftools/default.nix+5−3
@@ -12,9 +12,11 @@ stdenv.mkDerivation rec {
1212
1313 buildInputs = [ zlib ];
1414
15− preBuild = ''
16− makeFlagsArray=("HSTDIR=${htslib}" "prefix=$out")
17− '';
15+ makeFlags = [
16+ "HSTDIR=${htslib}"
17+ "prefix=$out"
18+ "CC=cc"
19+ ];
1820
1921 meta = with stdenv.lib; {
2022 description = "Tools for manipulating BCF2/VCF/gVCF format, SNP and short indel sequence variants";
pkgs/applications/science/logic/aspino/default.nix+5
@@ -11,6 +11,11 @@ stdenv.mkDerivation rec {
1111
1212 buildInputs = [ zlib boost ];
1313
14+ patchPhase = ''
15+ substituteInPlace Makefile \
16+ --replace "GCC = g++" "GCC = c++"
17+ '';
18+
1419 preBuild = ''
1520 cp ${glucose.src} patches/glucose-syrup.tgz
1621 ./bootstrap.sh
pkgs/applications/science/math/LiE/default.nix+2−2
@@ -5,7 +5,7 @@ stdenv.mkDerivation rec {
55 version = "2.2.2";
66 # The current version of LiE is 2.2.2, which is more or less unchanged
77 # since about the year 2000. Minor bugfixes do get applied now and then.
8− name = "LiE-${version}";
8+ name = "lie-${version}";
99
1010 meta = {
1111 description = "A Computer algebra package for Lie group computations";
@@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
1919 characteristics, we refer to the following sources of information.
2020 ''; # take from the website
2121
22− platforms = stdenv.lib.platforms.unix;
22+ platforms = stdenv.lib.platforms.linux;
2323 maintainers = [ ]; # this package is probably not going to change anyway
2424 };
2525
pkgs/development/arduino/arduino-core/default.nix+1−1
@@ -112,7 +112,7 @@ stdenv.mkDerivation rec {
112112 description = "Open-source electronics prototyping platform";
113113 homepage = http://arduino.cc/;
114114 license = stdenv.lib.licenses.gpl2;
115− platforms = platforms.all;
115+ platforms = platforms.linux;
116116 maintainers = with maintainers; [ antono robberer bjornfor ];
117117 };
118118}
pkgs/development/libraries/alure/default.nix+1−1
@@ -15,6 +15,6 @@ stdenv.mkDerivation rec {
1515 description = "A utility library to help manage common tasks with OpenAL applications";
1616 homepage = http://kcat.strangesoft.net/alure.html;
1717 license = licenses.mit;
18− platforms = platforms.unix;
18+ platforms = platforms.linux;
1919 };
2020}
pkgs/tools/video/atomicparsley/default.nix+10−2
@@ -1,7 +1,7 @@
11{ stdenv, pkgs, fetchurl }:
22
33stdenv.mkDerivation rec {
4− name = "${product}-${version}";
4+ name = "atomicparsley-${version}";
55 product = "AtomicParsley";
66 version = "0.9.0";
77
@@ -10,12 +10,20 @@ stdenv.mkDerivation rec {
1010 sha256 = "de83f219f95e6fe59099b277e3ced86f0430ad9468e845783092821dff15a72e";
1111 };
1212
13− buildInputs = with pkgs; [ unzip ];
13+ buildInputs = with pkgs; [ unzip ]
14+ ++ stdenv.lib.optional stdenv.isDarwin [ darwin.apple_sdk.frameworks.Cocoa ];
1415 patches = [ ./casts.patch ];
1516 setSourceRoot = "sourceRoot=${product}-source-${version}";
1617 buildPhase = "bash build";
1718 installPhase = "install -D AtomicParsley $out/bin/AtomicParsley";
1819
20+ postPatch = ''
21+ substituteInPlace build \
22+ --replace 'g++' 'c++'
23+ substituteInPlace AP_NSImage.mm \
24+ --replace '_NSBitmapImageFileType' 'NSBitmapImageFileType'
25+ '';
26+
1927 meta = with stdenv.lib; {
2028 description = ''
2129 A lightweight command line program for reading, parsing and
pkgs/top-level/all-packages.nix+1−1
@@ -16545,7 +16545,7 @@ in
1654516545
1654616546 openspecfun = callPackage ../development/libraries/science/math/openspecfun {};
1654716547
16548− LiE = callPackage ../applications/science/math/LiE { };
16548+ lie = callPackage ../applications/science/math/LiE { };
1654916549
1655016550 magma = callPackage ../development/libraries/science/math/magma { };
1655116551