about summary refs log tree commit diff
path: root/pkgs/tools/system
diff options
context:
space:
mode:
authorDaniel Peebles <copumpkin@users.noreply.github.com>2016-08-24 11:52:27 +0200
committerGitHub <noreply@github.com>2016-08-24 11:52:27 +0200
commit3f337a2b23eab043fbea3b15796e7002dfa96751 (patch)
treeadabe4dd64a11aedae79bb6e888347ee38a8487a /pkgs/tools/system
parent76223aa4b2cc7ebda27a93f00829bd447701740a (diff)
parenta6faa04ee45f1466335cfeb28cfa1b897e31a9b7 (diff)
downloadnixlib-3f337a2b23eab043fbea3b15796e7002dfa96751.tar
nixlib-3f337a2b23eab043fbea3b15796e7002dfa96751.tar.gz
nixlib-3f337a2b23eab043fbea3b15796e7002dfa96751.tar.bz2
nixlib-3f337a2b23eab043fbea3b15796e7002dfa96751.tar.lz
nixlib-3f337a2b23eab043fbea3b15796e7002dfa96751.tar.xz
nixlib-3f337a2b23eab043fbea3b15796e7002dfa96751.tar.zst
nixlib-3f337a2b23eab043fbea3b15796e7002dfa96751.zip
Merge pull request #17685 from matthewbauer/darwin-misc2
Darwin misc. fixes
Diffstat (limited to 'pkgs/tools/system')
-rw-r--r--pkgs/tools/system/dog/default.nix5
-rw-r--r--pkgs/tools/system/hardlink/default.nix2
-rw-r--r--pkgs/tools/system/smartmontools/default.nix5
-rw-r--r--pkgs/tools/system/tm/default.nix4
-rw-r--r--pkgs/tools/system/yeshup/default.nix2
5 files changed, 14 insertions, 4 deletions
diff --git a/pkgs/tools/system/dog/default.nix b/pkgs/tools/system/dog/default.nix
index d05e2986204c..a48c2678aa63 100644
--- a/pkgs/tools/system/dog/default.nix
+++ b/pkgs/tools/system/dog/default.nix
@@ -8,6 +8,11 @@ stdenv.mkDerivation rec {
     sha256 = "3ef25907ec5d1dfb0df94c9388c020b593fbe162d7aaa9bd08f35d2a125af056";
   };
 
+  patchPhase = ''
+    substituteInPlace Makefile \
+      --replace "gcc" "cc"
+  '';
+
   installPhase = ''
     mkdir -p $out/bin
     mkdir -p $out/man/man1
diff --git a/pkgs/tools/system/hardlink/default.nix b/pkgs/tools/system/hardlink/default.nix
index c34d81f63536..f464b7e9320e 100644
--- a/pkgs/tools/system/hardlink/default.nix
+++ b/pkgs/tools/system/hardlink/default.nix
@@ -14,7 +14,7 @@ stdenv.mkDerivation {
 
   installPhase = ''
     mkdir -p $out/bin $out/share/man/man1
-    gcc -O2 hardlink.c -o $out/bin/hardlink
+    cc -O2 hardlink.c -o $out/bin/hardlink
     mv hardlink.1 $out/share/man/man1/hardlink.1
   '';
 
diff --git a/pkgs/tools/system/smartmontools/default.nix b/pkgs/tools/system/smartmontools/default.nix
index 8445767e7b78..cc30cd7a4881 100644
--- a/pkgs/tools/system/smartmontools/default.nix
+++ b/pkgs/tools/system/smartmontools/default.nix
@@ -1,4 +1,5 @@
-{ stdenv, fetchurl }:
+{ stdenv, fetchurl
+, IOKit ? null }:
 
 let
   version = "6.4";
@@ -18,6 +19,8 @@ stdenv.mkDerivation rec {
     sha256 = "11bsxcghh7adzdklcslamlynydxb708vfz892d5w7agdq405ddza";
   };
 
+  buildInputs = [] ++ stdenv.lib.optional stdenv.isDarwin IOKit;
+
   patchPhase = ''
     cp ${driverdb} drivedb.h
     sed -i -e 's@which which >/dev/null || exit 1@alias which="type -p"@' update-smart-drivedb.in
diff --git a/pkgs/tools/system/tm/default.nix b/pkgs/tools/system/tm/default.nix
index a297f9371001..3326f535b5f6 100644
--- a/pkgs/tools/system/tm/default.nix
+++ b/pkgs/tools/system/tm/default.nix
@@ -6,7 +6,9 @@ stdenv.mkDerivation {
 
   installPhase=''make install "PREFIX=$out"'';
 
-  patchPhase = ''sed -i 's@/usr/bin/install@install@g' Makefile'';
+  patchPhase = ''
+    sed -i 's@/usr/bin/install@install@g ; s/gcc/cc/g' Makefile
+  '';
 
   crossAttrs = {
     makeFlags = "CC=${stdenv.cross.config}-gcc";
diff --git a/pkgs/tools/system/yeshup/default.nix b/pkgs/tools/system/yeshup/default.nix
index 806d6cc5b945..8cea90b6758d 100644
--- a/pkgs/tools/system/yeshup/default.nix
+++ b/pkgs/tools/system/yeshup/default.nix
@@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
 
   meta = with stdenv.lib; {
     homepage = https://github.com/RhysU/yeshup;
-    platforms = platforms.all;
+    platforms = platforms.linux;
     license = licenses.cc-by-sa-30; # From Stackoverflow answer
     maintainers = with maintainers; [ obadz ];
   };