Skip to content

Commit

Permalink
treewide: fix some eval issues
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewbauer committed Aug 7, 2018
1 parent d74c59e commit ab8d498
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion pkgs/applications/audio/baudline/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ stdenv.mkDerivation rec {
cp -r . "$out/libexec/baudline/"
interpreter="$(echo ${stdenv.glibc.out}/lib/ld-linux*)"
interpreter="$(echo ${stdenv.cc.libc.out}/lib/ld-linux*)"
for prog in "$out"/libexec/baudline/baudline*; do
patchelf --interpreter "$interpreter" "$prog"
ln -sr "$prog" "$out/bin/"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ stdenv.mkDerivation rec {
'';

postFixup = ''
patchelf --set-interpreter ${stdenv.glibc}/lib/ld-linux-x86-64.so.2 $out/electron/crashplan
patchelf --set-interpreter ${stdenv.cc.libc}/lib/ld-linux-x86-64.so.2 $out/electron/crashplan
wrapProgram $out/bin/CrashPlanDesktop --prefix LD_LIBRARY_PATH ":" "${stdenv.lib.makeLibraryPath [
stdenv.cc.cc.lib gtk2 atk glib pango gdk_pixbuf cairo freetype
fontconfig dbus gconf nss nspr alsaLib cups expat udev
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/graphics/sane/backends/brscan4/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
let
myPatchElf = file: with stdenv.lib; ''
patchelf --set-interpreter \
${stdenv.glibc}/lib/ld-linux${optionalString stdenv.is64bit "-x86-64"}.so.2 \
${stdenv.cc.libc}/lib/ld-linux${optionalString stdenv.is64bit "-x86-64"}.so.2 \
${file}
'';

udevRules = callPackage ./udev_rules_type1.nix {};

in stdenv.mkDerivation rec {
name = "brscan4-0.4.4-4";
src =
src =
if stdenv.system == "i686-linux" then
fetchurl {
url = "http://download.brother.com/welcome/dlf006646/${name}.i386.deb";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/arduino/arduino-core/downloads.nix
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
};
"build/macosx/avrdude-6.3.0-arduino9-i386-apple-darwin11.tar.bz2" = fetchurl {
url = "https://downloads.arduino.cc/tools/avrdude-6.3.0-arduino9-i386-apple-darwin11.tar.bz2";
sha256 = "0rc4x8mcsva4v6j7ssfj8rdyg14l2pd9ivgdm39m5wnz8b06p85z11703f0r82aq3mmkiy7vwa4jfjhs9826qpp724hbng9dx74kk86r";
sha256 = "0rc4x8mcsva4v6j7ssfj8rdyg14l2pd9ivgdm39m5wnz8b06p85z";
};
"build/macosx/appbundler/appbundler-1.0ea-arduino4.jar.zip" = fetchurl {
url = "https://downloads.arduino.cc/appbundler-1.0ea-arduino4.jar.zip";
Expand Down
1 change: 1 addition & 0 deletions pkgs/development/compilers/openjdk/darwin/8.nix
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ let
passthru = {
jre = jdk;
home = jdk;
architecture = "";
};

meta.platforms = stdenv.lib.platforms.darwin;
Expand Down
1 change: 1 addition & 0 deletions pkgs/development/compilers/openjdk/darwin/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ let
passthru = {
jre = jdk;
home = jdk;
architecture = "";
};

meta.platforms = stdenv.lib.platforms.darwin;
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/compilers/oraclejdk/jdk-linux-base.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ let
x86_64-linux = "amd64";
armv7l-linux = "arm";
aarch64-linux = "aarch64";
}.${stdenv.system};
}.${stdenv.system} or (throw "No JRE architecture for ${stdenv.system}");

jce =
if installjce then
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/tools/iaca/2.1.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ stdenv.mkDerivation {
'';
preFixup = let libPath = makeLibraryPath [ stdenv.cc.cc.lib gcc ]; in ''
patchelf \
--set-interpreter ${stdenv.glibc}/lib/ld-linux-x86-64.so.2 \
--set-interpreter ${stdenv.cc.libc}/lib/ld-linux-x86-64.so.2 \
--set-rpath $out/lib:"${libPath}" \
$out/bin/iaca
'';
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/tools/iaca/3.0.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ stdenv.mkDerivation {
installPhase = ''
mkdir -p $out/bin
cp iaca $out/bin
patchelf --set-interpreter ${stdenv.glibc}/lib/ld-linux-x86-64.so.2 $out/bin/iaca
patchelf --set-interpreter ${stdenv.cc.libc}/lib/ld-linux-x86-64.so.2 $out/bin/iaca
'';
meta = {
description = "Intel Architecture Code Analyzer";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/os-specific/linux/cpufrequtils/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
-i Makefile
'';

buildInputs = [ stdenv.cc.libc.linuxHeaders libtool gettext ];
buildInputs = [ (stdenv.cc.libc.linuxHeaders or null) libtool gettext ];

meta = {
description = "Tools to display or change the CPU governor settings";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/tools/admin/google-cloud-sdk/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ let
url = "${baseUrl}/${name}-linux-x86_64.tar.gz";
sha256 = "d39293914b2e969bfe18dd19eb77ba96d283995f8cf1e5d7ba6ac712a3c9479a";
};
}.${system} or throw "Google Cloud SDK binaries for ${system} are unavailable.";
}.${system} or (throw "Google Cloud SDK binaries for ${system} are unavailable.");

in stdenv.mkDerivation rec {
name = "google-cloud-sdk-${version}";
Expand Down

0 comments on commit ab8d498

Please sign in to comment.