reewide: Purge all uses `stdenv.system` and top-level `system`

It is deprecated and will be removed after 18.09.

Changed files
+594 -577
doc
old
nixos
pkgs
applications
altcoins
audio
baudline
google-musicmanager
renoise
transcribe
editors
eclipse
jetbrains
kodestudio
music
tuxguitar
sublime
typora
vscode
graphics
ImageMagick
gcolor2
sane
backends
brscan4
unigine-valley
misc
1password
adobe-reader
cura
googleearth
icesl
kdbplus
kiwix
playonlinux
rescuetime
sweethome3d
xmind
networking
apache-directory-studio
bittorrentsync
browsers
firefox
firefox-bin
mozilla-plugins
flashplayer
google-talk-plugin
trezor
tor-browser-bundle-bin
dropbox
instant-messengers
franz
mattermost-desktop
rambox
sencha
skypeforlinux
slack
wire-desktop
zoom-us
insync
mailreaders
nylas-mail-bin
thunderbird-bin
p2p
frostwire
soulseekqt
remote
anydesk
resilio-sync
spideroak
super-productivity
office
jameica
mendeley
moneyplex
wpsoffice
science
electronics
eagle
logic
isabelle
saw-tools
math
mathematica
scilab-bin
search
recoll
video
lightworks
mplayer
webtorrent_desktop
virtualization
qemu
virtualbox
guest-additions
window-managers
build-support
build-fhs-userenv
release
vm
windows
controller
cygwin-iso
development
arduino
arduino-core
compilers
interpreters
dart
spidermonkey
libraries
apr
audio
libbass
bootil
crypto++
gpgme
gsl
java
libspotify
live555
mesa
nettle
opencv
oracle-instantclient
physics
geant4
science
math
openblas
scmccid
skalibs
tachyon
v8
vigra
vxl
wtk
misc
amdapp-sdk
mobile
node-packages
ruby-modules
testing
tools
analysis
cov-build
valgrind
electron
github
github-release
google-app-engine-go-sdk
misc
cflow
iozone
kibana
lsof
saleae-logic
neoload
node-webkit
nwjs
phantomjs
sauce-connect
selenium
chromedriver
web
remarkjs
games
andyetitmoves
dwarf-fortress
eduke32
ezquake
factorio
nethack
oilrush
openarena
racer
sdlmame
steam
ut2004
vessel
worldofgoo
zandronum
misc
base16-builder
cups
drivers
cnijfilter_4_00
kyocera
kyodialog3
samsung
drivers
gutenprint
hplip
emulators
retroarch
wine
os-specific
linux
alsa-plugins
amdgpu-pro
ati-drivers
broadcom-sta
displaylink
fusionio
kernel
nvidia-x11
prl-tools
stdenv
tools
X11
xwinwrap
admin
bluemix-cli
google-cloud-sdk
archivers
gnutar
bootloaders
refind
compression
bzip2
filesystems
sshfs-fuse
graphics
pngout
misc
bandwidth
execline
grub
mongodb-compass
mprime
ocz-ssd-guru
os-prober
s6-portable-utils
staruml
networking
airfield
filegive
logmein-hamachi
ngrok-2
s6-dns
s6-networking
strongswan
package-management
checkinstall
nixui
security
afl
encryptr
enpass
pcsc-scm-scl011
sshuttle
system
s6
s6-rc
storebrowse
text
typesetting
kindlegen
top-level
+1 -1
doc/old/cross.txt
···
---
{stdenv, fetchurl}:
-
assert stdenv.system == "i686-linux";
+
assert stdenv.buildPlatform.system == "i686-linux";
stdenv.mkDerivation {
name = "linux-headers-2.6.13.1-arm";
+1 -1
nixos/lib/make-system-tarball.nix
···
{ stdenv, perl, pixz, pathsFromGraph
, # The file name of the resulting tarball
-
fileName ? "nixos-system-${stdenv.system}"
+
fileName ? "nixos-system-${stdenv.hostPlatform.system}"
, # The files and directories to be placed in the tarball.
# This is a list of attribute sets {source, target} where `source'
+2 -2
nixos/lib/qemu-flags.nix
···
qemuSerialDevice = if pkgs.stdenv.isi686 || pkgs.stdenv.isx86_64 then "ttyS0"
else if pkgs.stdenv.isAarch32 || pkgs.stdenv.isAarch64 then "ttyAMA0"
-
else throw "Unknown QEMU serial device for system '${pkgs.stdenv.system}'";
+
else throw "Unknown QEMU serial device for system '${pkgs.stdenv.hostPlatform.system}'";
qemuBinary = qemuPkg: {
"x86_64-linux" = "${qemuPkg}/bin/qemu-kvm -cpu kvm64";
"armv7l-linux" = "${qemuPkg}/bin/qemu-system-arm -enable-kvm -machine virt -cpu host";
"aarch64-linux" = "${qemuPkg}/bin/qemu-system-aarch64 -enable-kvm -machine virt,gic-version=host -cpu host";
"x86_64-darwin" = "${qemuPkg}/bin/qemu-kvm -cpu kvm64";
-
}.${pkgs.stdenv.system} or "${qemuPkg}/bin/qemu-kvm";
+
}.${pkgs.stdenv.hostPlatform.system} or "${qemuPkg}/bin/qemu-kvm";
}
+1 -1
nixos/modules/installer/cd-dvd/installation-cd-base.nix
···
];
# ISO naming.
-
isoImage.isoName = "${config.isoImage.isoBaseName}-${config.system.nixos.label}-${pkgs.stdenv.system}.iso";
+
isoImage.isoName = "${config.isoImage.isoBaseName}-${config.system.nixos.label}-${pkgs.stdenv.hostPlatform.system}.iso";
isoImage.volumeID = substring 0 11 "NIXOS_ISO";
+2 -1
nixos/modules/installer/cd-dvd/sd-image-aarch64.nix
···
];
assertions = lib.singleton {
-
assertion = pkgs.stdenv.system == "aarch64-linux";
+
assertion = pkgs.stdenv.hostPlatform.system == "aarch64-linux"
+
&& pkgs.stdenv.hostPlatform.system == pkgs.stdenv.buildPlatform.system;
message = "sd-image-aarch64.nix can be only built natively on Aarch64 / ARM64; " +
"it cannot be cross compiled";
};
+2 -1
nixos/modules/installer/cd-dvd/sd-image-armv7l-multiplatform.nix
···
];
assertions = lib.singleton {
-
assertion = pkgs.stdenv.system == "armv7l-linux";
+
assertion = pkgs.stdenv.hostPlatform.system == "armv7l-linux"
+
&& pkgs.stdenv.hostPlatform.system == pkgs.stdenv.buildPlatform.system;
message = "sd-image-armv7l-multiplatform.nix can be only built natively on ARMv7; " +
"it cannot be cross compiled";
};
+2 -1
nixos/modules/installer/cd-dvd/sd-image-raspberrypi.nix
···
];
assertions = lib.singleton {
-
assertion = pkgs.stdenv.system == "armv6l-linux";
+
assertion = pkgs.stdenv.hostPlatform.system == "armv6l-linux"
+
&& pkgs.stdenv.hostPlatform.system == pkgs.stdenv.buildPlatform.system;
message = "sd-image-raspberrypi.nix can be only built natively on ARMv6; " +
"it cannot be cross compiled";
};
+2 -2
nixos/modules/installer/cd-dvd/sd-image.nix
···
{
options.sdImage = {
imageName = mkOption {
-
default = "${config.sdImage.imageBaseName}-${config.system.nixos.label}-${pkgs.stdenv.system}.img";
+
default = "${config.sdImage.imageBaseName}-${config.system.nixos.label}-${pkgs.stdenv.hostPlatform.system}.img";
description = ''
Name of the generated image file.
'';
···
mkdir -p $out/nix-support $out/sd-image
export img=$out/sd-image/${config.sdImage.imageName}
-
echo "${pkgs.stdenv.system}" > $out/nix-support/system
+
echo "${pkgs.stdenv.buildPlatform.system}" > $out/nix-support/system
echo "file sd-image $img" >> $out/nix-support/hydra-build-products
# Create the image file sized to fit /boot and /, plus 20M of slack
+1 -1
nixos/modules/installer/netboot/netboot.nix
···
# !!! Hack - attributes expected by other modules.
environment.systemPackages = [ pkgs.grub2_efi ]
-
++ (if pkgs.stdenv.system == "aarch64-linux"
+
++ (if pkgs.stdenv.hostPlatform.system == "aarch64-linux"
then []
else [ pkgs.grub2 pkgs.syslinux ]);
+1 -1
nixos/modules/services/misc/gitit.nix
···
toYesNo = b: if b then "yes" else "no";
-
gititShared = with cfg.haskellPackages; gitit + "/share/" + pkgs.stdenv.system + "-" + ghc.name + "/" + gitit.pname + "-" + gitit.version;
+
gititShared = with cfg.haskellPackages; gitit + "/share/" + pkgs.stdenv.hostPlatform.system + "-" + ghc.name + "/" + gitit.pname + "-" + gitit.version;
gititWithPkgs = hsPkgs: extras: hsPkgs.ghcWithPackages (self: with self; [ gitit ] ++ (extras self));
+1 -1
nixos/modules/services/networking/vsftpd.nix
···
nopriv_user=vsftpd
secure_chroot_dir=/var/empty
syslog_enable=YES
-
${optionalString (pkgs.stdenv.system == "x86_64-linux") ''
+
${optionalString (pkgs.stdenv.hostPlatform.system == "x86_64-linux") ''
seccomp_sandbox=NO
''}
anon_umask=${cfg.anonymousUmask}
+1 -1
nixos/modules/system/boot/luksroot.nix
···
[ "aes" "aes_generic" "blowfish" "twofish"
"serpent" "cbc" "xts" "lrw" "sha1" "sha256" "sha512"
-
(if pkgs.stdenv.system == "x86_64-linux" then "aes_x86_64" else "aes_i586")
+
(if pkgs.stdenv.hostPlatform.system == "x86_64-linux" then "aes_x86_64" else "aes_i586")
];
description = ''
A list of cryptographic kernel modules needed to decrypt the root device(s).
+1 -1
nixos/modules/virtualisation/azure-agent.nix
···
config = mkIf cfg.enable {
assertions = [ {
assertion = pkgs.stdenv.isi686 || pkgs.stdenv.isx86_64;
-
message = "Azure not currently supported on ${pkgs.stdenv.system}";
+
message = "Azure not currently supported on ${pkgs.stdenv.hostPlatform.system}";
} {
assertion = config.networking.networkmanager.enable == false;
message = "Windows Azure Linux Agent is not compatible with NetworkManager";
+1 -1
nixos/modules/virtualisation/brightbox-image.nix
···
rm $diskImageBase
popd
'';
-
diskImageBase = "nixos-image-${config.system.nixos.label}-${pkgs.stdenv.system}.raw";
+
diskImageBase = "nixos-image-${config.system.nixos.label}-${pkgs.stdenv.hostPlatform.system}.raw";
buildInputs = [ pkgs.utillinux pkgs.perl ];
exportReferencesGraph =
[ "closure" config.system.build.toplevel ];
+1 -1
nixos/modules/virtualisation/google-compute-image.nix
···
PATH=$PATH:${pkgs.stdenv.lib.makeBinPath [ pkgs.gnutar pkgs.gzip ]}
pushd $out
mv $diskImage disk.raw
-
tar -Szcf nixos-image-${config.system.nixos.label}-${pkgs.stdenv.system}.raw.tar.gz disk.raw
+
tar -Szcf nixos-image-${config.system.nixos.label}-${pkgs.stdenv.hostPlatform.system}.raw.tar.gz disk.raw
rm $out/disk.raw
popd
'';
+1 -1
nixos/modules/virtualisation/virtualbox-guest.nix
···
config = mkIf cfg.enable (mkMerge [{
assertions = [{
assertion = pkgs.stdenv.isi686 || pkgs.stdenv.isx86_64;
-
message = "Virtualbox not currently supported on ${pkgs.stdenv.system}";
+
message = "Virtualbox not currently supported on ${pkgs.stdenv.hostPlatform.system}";
}];
environment.systemPackages = [ kernel.virtualboxGuestAdditions ];
+5 -5
nixos/modules/virtualisation/virtualbox-image.nix
···
};
vmDerivationName = mkOption {
type = types.str;
-
default = "nixos-ova-${config.system.nixos.label}-${pkgs.stdenv.system}";
+
default = "nixos-ova-${config.system.nixos.label}-${pkgs.stdenv.hostPlatform.system}";
description = ''
The name of the derivation for the VirtualBox appliance.
'';
};
vmName = mkOption {
type = types.str;
-
default = "NixOS ${config.system.nixos.label} (${pkgs.stdenv.system})";
+
default = "NixOS ${config.system.nixos.label} (${pkgs.stdenv.hostPlatform.system})";
description = ''
The name of the VirtualBox appliance.
'';
};
vmFileName = mkOption {
type = types.str;
-
default = "nixos-${config.system.nixos.label}-${pkgs.stdenv.system}.ova";
+
default = "nixos-${config.system.nixos.label}-${pkgs.stdenv.hostPlatform.system}.ova";
description = ''
The file name of the VirtualBox appliance.
'';
···
echo "creating VirtualBox VM..."
vmName="${cfg.vmName}";
VBoxManage createvm --name "$vmName" --register \
-
--ostype ${if pkgs.stdenv.system == "x86_64-linux" then "Linux26_64" else "Linux26"}
+
--ostype ${if pkgs.stdenv.hostPlatform.system == "x86_64-linux" then "Linux26_64" else "Linux26"}
VBoxManage modifyvm "$vmName" \
--memory ${toString cfg.memorySize} --acpi on --vram 32 \
-
${optionalString (pkgs.stdenv.system == "i686-linux") "--pae on"} \
+
${optionalString (pkgs.stdenv.hostPlatform.system == "i686-linux") "--pae on"} \
--nictype1 virtio --nic1 nat \
--audiocontroller ac97 --audio alsa \
--rtcuseutc on \
+1 -1
nixos/modules/virtualisation/vmware-guest.nix
···
config = mkIf cfg.enable {
assertions = [ {
assertion = pkgs.stdenv.isi686 || pkgs.stdenv.isx86_64;
-
message = "VMWare guest is not currently supported on ${pkgs.stdenv.system}";
+
message = "VMWare guest is not currently supported on ${pkgs.stdenv.hostPlatform.system}";
} ];
environment.systemPackages = [ open-vm-tools ];
+1 -1
nixos/modules/virtualisation/xen-dom0.nix
···
config = mkIf cfg.enable {
assertions = [ {
assertion = pkgs.stdenv.isx86_64;
-
message = "Xen currently not supported on ${pkgs.stdenv.system}";
+
message = "Xen currently not supported on ${pkgs.stdenv.hostPlatform.system}";
} {
assertion = config.boot.loader.grub.enable && (config.boot.loader.grub.efiSupport == false);
message = "Xen currently does not support EFI boot";
+2 -2
pkgs/applications/altcoins/mist.nix
···
version = "0.11.1";
name = "mist";
-
throwSystem = throw "Unsupported system: ${stdenv.system}";
+
throwSystem = throw "Unsupported system: ${stdenv.hostPlatform.system}";
meta = with stdenv.lib; {
description = "Browse and use Ðapps on the Ethereum network";
···
url = "https://github.com/ethereum/mist/releases/download/v${version}/Mist-linux64-${urlVersion}.zip";
sha256 = "0yx4x72l8gk68yh9saki48zgqx8k92xnkm79dc651wdpd5c25cz3";
};
-
}.${stdenv.system} or throwSystem;
+
}.${stdenv.hostPlatform.system} or throwSystem;
buildInputs = [ unzip makeWrapper ];
+3 -3
pkgs/applications/audio/baudline/default.nix
···
version = "1.08";
src =
-
if stdenv.system == "x86_64-linux" then
+
if stdenv.hostPlatform.system == "x86_64-linux" then
fetchurl {
url = "http://www.baudline.com/baudline_${version}_linux_x86_64.tar.gz";
sha256 = "09fn0046i69in1jpizkzbaq5ggij0mpflcsparyskm3wh71mbzvr";
}
-
else if stdenv.system == "i686-linux" then
+
else if stdenv.hostPlatform.system == "i686-linux" then
fetchurl {
url = "http://www.baudline.com/baudline_${version}_linux_i686.tar.gz";
sha256 = "1waip5pmcf5ffcfvn8lf1rvsaq2ab66imrbfqs777scz7k8fhhjb";
}
else
-
throw "baudline isn't supported (yet?) on ${stdenv.system}";
+
throw "baudline isn't supported (yet?) on ${stdenv.hostPlatform.system}";
buildInputs = [ makeWrapper ];
+1 -1
pkgs/applications/audio/google-musicmanager/default.nix
···
{ stdenv, fetchurl
, flac, expat, libidn, qtbase, qtwebkit, libvorbis }:
-
assert stdenv.system == "x86_64-linux";
+
assert stdenv.hostPlatform.system == "x86_64-linux";
stdenv.mkDerivation rec {
version = "beta_1.0.467.4929-r0"; # friendly to nix-env version sorting algo
+2 -2
pkgs/applications/audio/renoise/default.nix
···
version = "3.1.0";
src =
-
if stdenv.system == "x86_64-linux" then
+
if stdenv.hostPlatform.system == "x86_64-linux" then
if builtins.isNull releasePath then
fetchurl {
url = "https://files.renoise.com/demo/Renoise_${urlVersion version}_Demo_x86_64.tar.bz2";
···
}
else
releasePath
-
else if stdenv.system == "i686-linux" then
+
else if stdenv.hostPlatform.system == "i686-linux" then
if builtins.isNull releasePath then
fetchurl {
url = "http://files.renoise.com/demo/Renoise_${urlVersion version}_Demo_x86.tar.bz2";
+2 -2
pkgs/applications/audio/transcribe/default.nix
···
name = "transcribe-${version}";
version = "8.40";
-
src = if stdenv.system == "i686-linux" then
+
src = if stdenv.hostPlatform.system == "i686-linux" then
fetchzip {
url = "https://www.seventhstring.com/xscribe/downlinux32_old/xscsetup.tar.gz";
sha256 = "1ngidmj9zz8bmv754s5xfsjv7v6xr03vck4kigzq4bpc9b1fdhjq";
}
-
else if stdenv.system == "x86_64-linux" then
+
else if stdenv.hostPlatform.system == "x86_64-linux" then
fetchzip {
url = "https://www.seventhstring.com/xscribe/downlinux64_old/xsc64setup.tar.gz";
sha256 = "0svzi8svj6zn06gj0hr8mpnhq4416dvb4g5al0gpb1g3paywdaf9";
+1 -1
pkgs/applications/editors/eclipse/build-eclipse.nix
···
, zlib, jdk, glib, gtk3, libXtst, gsettings-desktop-schemas, webkitgtk
, makeWrapper, ... }:
-
{ name, src ? builtins.getAttr stdenv.system sources, sources ? null, description }:
+
{ name, src ? builtins.getAttr stdenv.hostPlatform.system sources, sources ? null, description }:
stdenv.mkDerivation rec {
inherit name src;
+7 -7
pkgs/applications/editors/eclipse/default.nix
···
name = "eclipse-cpp-4.7.0";
description = "Eclipse IDE for C/C++ Developers, Oxygen release";
src =
-
if stdenv.system == "x86_64-linux" then
+
if stdenv.hostPlatform.system == "x86_64-linux" then
fetchurl {
url = https://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/technology/epp/downloads/release/oxygen/R/eclipse-cpp-oxygen-R-linux-gtk-x86_64.tar.gz;
sha512 = "813c791e739d7d0e2ab242a5bacadca135bbeee20ef97aa830353cd90f63fa6e9c89cfcc6aadf635c742befe035bd6e3f15103013f63c419f6144e86ebde3ed1";
}
-
else if stdenv.system == "i686-linux" then
+
else if stdenv.hostPlatform.system == "i686-linux" then
fetchurl {
url = https://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/technology/epp/downloads/release/oxygen/R/eclipse-cpp-oxygen-R-linux-gtk.tar.gz;
sha512 = "2b50f4a00306a89cda1aaaa606e62285cacbf93464a9dd3f3319dca3e2c578b802e685de6f78e5e617d269e21271188effe73d41f491a6de946e28795d82db8a";
}
-
else throw "Unsupported system: ${stdenv.system}";
+
else throw "Unsupported system: ${stdenv.hostPlatform.system}";
};
eclipse-cpp-37 = buildEclipse {
name = "eclipse-cpp-3.7";
description = "Eclipse IDE for C/C++ Developers";
src =
-
if stdenv.system == "x86_64-linux" then
+
if stdenv.hostPlatform.system == "x86_64-linux" then
fetchurl {
url = https://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/technology/epp/downloads/release/indigo/R/eclipse-cpp-indigo-incubation-linux-gtk-x86_64.tar.gz;
sha256 = "14ppc9g9igzvj1pq7jl01vwhzb66nmzbl9wsdl1sf3xnwa9wnqk3";
···
name = "eclipse-modeling-4.7";
description = "Eclipse Modeling Tools";
src =
-
if stdenv.system == "x86_64-linux" then
+
if stdenv.hostPlatform.system == "x86_64-linux" then
fetchurl {
url = https://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/technology/epp/downloads/release/oxygen/R/eclipse-modeling-oxygen-R-linux-gtk-x86_64.tar.gz;
sha512 = "3b9a7ad4b5d6b77fbdd64e8d323e0adb6c2904763ad042b374b4d87cef8607408cb407e395870fc755d58c0c800e20818adcf456ebe193d76cede16c5fe12271";
···
name = "eclipse-modeling-3.6.2";
description = "Eclipse Modeling Tools (includes Incubating components)";
src =
-
if stdenv.system == "x86_64-linux" then
+
if stdenv.hostPlatform.system == "x86_64-linux" then
fetchurl {
url = https://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/technology/epp/downloads/release/helios/SR2/eclipse-modeling-helios-SR2-incubation-linux-gtk-x86_64.tar.gz;
sha1 = "e96f5f006298f68476f4a15a2be8589158d5cc61";
···
name = "eclipse-scala-sdk-4.4.1";
description = "Eclipse IDE for Scala Developers";
src =
-
if stdenv.system == "x86_64-linux" then
+
if stdenv.hostPlatform.system == "x86_64-linux" then
fetchurl { # tested
url = https://downloads.typesafe.com/scalaide-pack/4.4.1-vfinal-luna-211-20160504/scala-SDK-4.4.1-vfinal-2.11-linux.gtk.x86_64.tar.gz;
sha256 = "4c2d1ac68384e12a11a851cf0fc7757aea087eba69329b21d539382a65340d27";
+1 -1
pkgs/applications/editors/jetbrains/common.nix
···
}
interpreter=$(echo ${stdenv.glibc.out}/lib/ld-linux*.so.2)
-
if [ "${stdenv.system}" == "x86_64-linux" ]; then
+
if [ "${stdenv.hostPlatform.system}" == "x86_64-linux" ]; then
target_size=$(get_file_size bin/fsnotifier64)
patchelf --set-interpreter "$interpreter" bin/fsnotifier64
munge_size_hack bin/fsnotifier64 $target_size
+7 -7
pkgs/applications/editors/kodestudio/default.nix
···
version = "17.1";
-
sha256 = if stdenv.system == "x86_64-linux" then "1kddisnvlk48jip6k59mw3wlkrl7rkck2lxpaghn0gfx02cvms5f"
-
else if stdenv.system == "i686-cygwin" then "1izp42afrlh4yd322ax9w85ki388gnkqfqbw8dwnn4k3j7r5487z"
-
else throw "Unsupported system: ${stdenv.system}";
+
sha256 = if stdenv.hostPlatform.system == "x86_64-linux" then "1kddisnvlk48jip6k59mw3wlkrl7rkck2lxpaghn0gfx02cvms5f"
+
else if stdenv.hostPlatform.system == "i686-cygwin" then "1izp42afrlh4yd322ax9w85ki388gnkqfqbw8dwnn4k3j7r5487z"
+
else throw "Unsupported system: ${stdenv.hostPlatform.system}";
urlBase = "https://github.com/Kode/KodeStudio/releases/download/v${version}/KodeStudio-";
-
urlStr = if stdenv.system == "x86_64-linux" then urlBase + "linux64.tar.gz"
-
else if stdenv.system == "i686-cygwin" then urlBase + "win32.zip"
-
else throw "Unsupported system: ${stdenv.system}";
+
urlStr = if stdenv.hostPlatform.system == "x86_64-linux" then urlBase + "linux64.tar.gz"
+
else if stdenv.hostPlatform.system == "i686-cygwin" then urlBase + "win32.zip"
+
else throw "Unsupported system: ${stdenv.hostPlatform.system}";
in
···
cp -r ./* $out
'';
-
postFixup = lib.optionalString (stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux") ''
+
postFixup = lib.optionalString (stdenv.hostPlatform.system == "i686-linux" || stdenv.hostPlatform.system == "x86_64-linux") ''
# Patch Binaries
patchelf \
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
+2 -2
pkgs/applications/editors/music/tuxguitar/default.nix
···
{ stdenv, fetchurl, swt, jdk, makeWrapper, alsaLib }:
-
let metadata = assert stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux";
-
if stdenv.system == "i686-linux" then
+
let metadata = assert stdenv.hostPlatform.system == "i686-linux" || stdenv.hostPlatform.system == "x86_64-linux";
+
if stdenv.hostPlatform.system == "i686-linux" then
{ arch = "x86"; sha256 = "1qmb51k0538pn7gv4nsvhfv33xik4l4af0qmpllkzrikmj8wvzlb"; }
else
{ arch = "x86_64"; sha256 = "12af47jhlrh9aq5b3d13l7cdhlndgnfpy61gz002hajbq7i00ixh"; };
+1 -1
pkgs/applications/editors/sublime/2/default.nix
···
stdenv.mkDerivation rec {
name = "sublimetext-2.0.2";
src =
-
if stdenv.system == "i686-linux" then
+
if stdenv.hostPlatform.system == "i686-linux" then
fetchurl {
name = "sublimetext-2.0.2.tar.bz2";
url = http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%202.0.2.tar.bz2;
+2 -2
pkgs/applications/editors/sublime/3/common.nix
···
++ stdenv.lib.optional gksuSupport "/usr/bin/gksudo=${gksu}/bin/gksudo";
in let
archSha256 =
-
if stdenv.system == "i686-linux" then
+
if stdenv.hostPlatform.system == "i686-linux" then
x32sha256
else
x64sha256;
arch =
-
if stdenv.system == "i686-linux" then
+
if stdenv.hostPlatform.system == "i686-linux" then
"x32"
else
"x64";
+1 -1
pkgs/applications/editors/typora/default.nix
···
version = "0.9.53";
src =
-
if stdenv.system == "x86_64-linux" then
+
if stdenv.hostPlatform.system == "x86_64-linux" then
fetchurl {
url = "https://www.typora.io/linux/typora_${version}_amd64.deb";
sha256 = "02k6x30l4mbjragqbq5rn663xbw3h4bxzgppfxqf5lwydswldklb";
+6 -6
pkgs/applications/editors/vscode/default.nix
···
"i686-linux" = "linux-ia32";
"x86_64-linux" = "linux-x64";
"x86_64-darwin" = "darwin";
-
}.${stdenv.system};
+
}.${stdenv.hostPlatform.system};
sha256 = {
"i686-linux" = "1g7kqbz6mrf8ngx2bnwpi9fifq5rjznxgsgwjb532z3nh92ypa8n";
"x86_64-linux" = "02yldycakn5zxj1ji4nmhdyazqlkjqpzdj3g8j501c3j28pgiwjy";
"x86_64-darwin" = "0pnsfkh20mj7pzqw7wlfd98jqc6a1mnsq1iira15n7fafqgj8zpl";
-
}.${stdenv.system};
+
}.${stdenv.hostPlatform.system};
-
archive_fmt = if stdenv.system == "x86_64-darwin" then "zip" else "tar.gz";
+
archive_fmt = if stdenv.hostPlatform.system == "x86_64-darwin" then "zip" else "tar.gz";
rpath = lib.concatStringsSep ":" [
atomEnv.libPath
···
categories = "GNOME;GTK;Utility;TextEditor;Development;";
};
-
buildInputs = if stdenv.system == "x86_64-darwin"
+
buildInputs = if stdenv.hostPlatform.system == "x86_64-darwin"
then [ unzip libXScrnSaver libsecret ]
else [ wrapGAppsHook libXScrnSaver libxkbfile libsecret ];
installPhase =
-
if stdenv.system == "x86_64-darwin" then ''
+
if stdenv.hostPlatform.system == "x86_64-darwin" then ''
mkdir -p $out/lib/vscode $out/bin
cp -r ./* $out/lib/vscode
ln -s $out/lib/vscode/Contents/Resources/app/bin/code $out/bin
···
cp $out/lib/vscode/resources/app/resources/linux/code.png $out/share/pixmaps/code.png
'';
-
postFixup = lib.optionalString (stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux") ''
+
postFixup = lib.optionalString (stdenv.hostPlatform.system == "i686-linux" || stdenv.hostPlatform.system == "x86_64-linux") ''
patchelf \
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
--set-rpath "${rpath}" \
+4 -4
pkgs/applications/graphics/ImageMagick/7.0.nix
···
let
arch =
-
if stdenv.system == "i686-linux" then "i686"
-
else if stdenv.system == "x86_64-linux" || stdenv.system == "x86_64-darwin" then "x86-64"
-
else if stdenv.system == "armv7l-linux" then "armv7l"
-
else if stdenv.system == "aarch64-linux" then "aarch64"
+
if stdenv.hostPlatform.system == "i686-linux" then "i686"
+
else if stdenv.hostPlatform.system == "x86_64-linux" || stdenv.hostPlatform.system == "x86_64-darwin" then "x86-64"
+
else if stdenv.hostPlatform.system == "armv7l-linux" then "armv7l"
+
else if stdenv.hostPlatform.system == "aarch64-linux" then "aarch64"
else throw "ImageMagick is not supported on this platform.";
cfg = {
+4 -4
pkgs/applications/graphics/ImageMagick/default.nix
···
let
arch =
-
if stdenv.system == "i686-linux" then "i686"
-
else if stdenv.system == "x86_64-linux" || stdenv.system == "x86_64-darwin" then "x86-64"
-
else if stdenv.system == "armv7l-linux" then "armv7l"
-
else if stdenv.system == "aarch64-linux" then "aarch64"
+
if stdenv.hostPlatform.system == "i686-linux" then "i686"
+
else if stdenv.hostPlatform.system == "x86_64-linux" || stdenv.hostPlatform.system == "x86_64-darwin" then "x86-64"
+
else if stdenv.hostPlatform.system == "armv7l-linux" then "armv7l"
+
else if stdenv.hostPlatform.system == "aarch64-linux" then "aarch64"
else throw "ImageMagick is not supported on this platform.";
cfg = {
+2 -2
pkgs/applications/graphics/gcolor2/default.nix
···
let version = "0.4"; in
stdenv.mkDerivation {
name = "gcolor2-${version}";
-
arch = if stdenv.system == "x86_64-linux" then "amd64" else "386";
+
arch = if stdenv.hostPlatform.system == "x86_64-linux" then "amd64" else "386";
src = fetchurl {
url = "mirror://sourceforge/project/gcolor2/gcolor2/${version}/gcolor2-${version}.tar.bz2";
···
'';
# from https://github.com/PhantomX/slackbuilds/tree/master/gcolor2/patches
-
patches = if stdenv.system == "x86_64-linux" then
+
patches = if stdenv.hostPlatform.system == "x86_64-linux" then
[ ./gcolor2-amd64.patch ] else
[ ];
+3 -3
pkgs/applications/graphics/sane/backends/brscan4/default.nix
···
in stdenv.mkDerivation rec {
name = "brscan4-0.4.4-4";
src =
-
if stdenv.system == "i686-linux" then
+
if stdenv.hostPlatform.system == "i686-linux" then
fetchurl {
url = "http://download.brother.com/welcome/dlf006646/${name}.i386.deb";
sha256 = "13mhjbzf9nvpdzrc2s98684r7likg76zxs1wlz2h8w59fsqgx4k2";
}
-
else if stdenv.system == "x86_64-linux" then
+
else if stdenv.hostPlatform.system == "x86_64-linux" then
fetchurl {
url = "https://download.brother.com/welcome/dlf006645/${name}.amd64.deb";
sha256 = "0xy5px96y1saq9l80vwvfn6anr2q42qlxdhm6ci2a0diwib5q9fd";
}
-
else throw "${name} is not supported on ${stdenv.system} (only i686-linux and x86_64 linux are supported)";
+
else throw "${name} is not supported on ${stdenv.hostPlatform.system} (only i686-linux and x86_64 linux are supported)";
unpackPhase = ''
ar x $src
+3 -3
pkgs/applications/graphics/unigine-valley/default.nix
···
let
version = "1.0";
-
arch = if stdenv.system == "x86_64-linux" then
+
arch = if stdenv.hostPlatform.system == "x86_64-linux" then
"x64"
-
else if stdenv.system == "i686-linux" then
+
else if stdenv.hostPlatform.system == "i686-linux" then
"x86"
else
-
throw "Unsupported platform ${stdenv.system}";
+
throw "Unsupported platform ${stdenv.hostPlatform.system}";
in
stdenv.mkDerivation rec {
+3 -3
pkgs/applications/misc/1password/default.nix
···
name = "1password-${version}";
version = "0.5.3";
src =
-
if stdenv.system == "i686-linux" then
+
if stdenv.hostPlatform.system == "i686-linux" then
fetchzip {
url = "https://cache.agilebits.com/dist/1P/op/pkg/v${version}/op_linux_386_v${version}.zip";
sha256 = "05s223h1yps4k9kmignl0r5sbh6w7m1hnlmafnf1kiwv7gacvxjc";
stripRoot = false;
}
-
else if stdenv.system == "x86_64-linux" then
+
else if stdenv.hostPlatform.system == "x86_64-linux" then
fetchzip {
url = "https://cache.agilebits.com/dist/1P/op/pkg/v${version}/op_linux_amd64_v${version}.zip";
sha256 = "0p9x1fx0309v8dxxaf88m8x8q15zzqywfmjn6v5wb9v3scp9396v";
stripRoot = false;
}
-
else if stdenv.system == "x86_64-darwin" then
+
else if stdenv.hostPlatform.system == "x86_64-darwin" then
fetchzip {
url = "https://cache.agilebits.com/dist/1P/op/pkg/v${version}/op_darwin_amd64_v${version}.zip";
sha256 = "1z2xp9bn93gr4ha6zx65va1fb58a2xlnnmpv583y96gq3vbnqdcj";
+1 -1
pkgs/applications/misc/adobe-reader/default.nix
···
{ stdenv, fetchurl, libX11, cups, zlib, libxml2, pango, atk, gtk2, glib
, gdk_pixbuf }:
-
assert stdenv.system == "i686-linux";
+
assert stdenv.hostPlatform.system == "i686-linux";
let version = "9.5.5"; in
+3 -3
pkgs/applications/misc/cura/lulzbot.nix
···
version = "15.02.1-1.03-5064";
src =
-
if stdenv.system == "x86_64-linux" then
+
if stdenv.hostPlatform.system == "x86_64-linux" then
fetchurl {
url = "https://download.alephobjects.com/ao/aodeb/dists/jessie/main/binary-amd64/cura_${version}_amd64.deb";
sha256 = "1gsfidg3gim5pjbl82vkh0cw4ya253m4p7nirm8nr6yjrsirkzxg";
}
-
else if stdenv.system == "i686-linux" then
+
else if stdenv.hostPlatform.system == "i686-linux" then
fetchurl {
url = "http://download.alephobjects.com/ao/aodeb/dists/jessie/main/binary-i386/cura_${version}_i386.deb";
sha256 = "0xd3df6bxq4rijgvsqvps454jkc1nzhxbdzzj6j2w317ppsbhyc1";
}
-
else throw "${name} is not supported on ${stdenv.system}";
+
else throw "${name} is not supported on ${stdenv.hostPlatform.system}";
python_deps = with py; [ pyopengl pyserial numpy wxPython30 power setuptools ];
pythonPath = python_deps;
+3 -3
pkgs/applications/misc/googleearth/default.nix
···
let
arch =
-
if stdenv.system == "x86_64-linux" then "amd64"
-
else if stdenv.system == "i686-linux" then "i386"
-
else throw "Unsupported system ${stdenv.system}";
+
if stdenv.hostPlatform.system == "x86_64-linux" then "amd64"
+
else if stdenv.hostPlatform.system == "i686-linux" then "i386"
+
else throw "Unsupported system ${stdenv.hostPlatform.system}";
sha256 =
if arch == "amd64"
then "0dwnppn5snl5bwkdrgj4cyylnhngi0g66fn2k41j3dvis83x24k6"
+2 -2
pkgs/applications/misc/icesl/default.nix
···
name = "iceSL-${version}";
version = "2.1.10";
-
src = if stdenv.system == "x86_64-linux" then fetchzip {
+
src = if stdenv.hostPlatform.system == "x86_64-linux" then fetchzip {
url = "https://gforge.inria.fr/frs/download.php/file/37268/icesl${version}-amd64.zip";
sha256 = "0dv3mq6wy46xk9blzzmgbdxpsjdaxid3zadfrysxlhmgl7zb2cn2";
-
} else if stdenv.system == "i686-linux" then fetchzip {
+
} else if stdenv.hostPlatform.system == "i686-linux" then fetchzip {
url = "https://gforge.inria.fr/frs/download.php/file/37267/icesl${version}-i386.zip";
sha256 = "0sl54fsb2gz6dy0bwdscpdq1ab6ph5b7zald3bwzgkqsvna7p1jr";
} else throw "Unsupported architecture";
+1 -1
pkgs/applications/misc/kdbplus/default.nix
···
{ stdenv, requireFile, unzip, rlwrap, bash }:
-
assert (stdenv.system == "i686-linux");
+
assert (stdenv.hostPlatform.system == "i686-linux");
let
libPath = stdenv.lib.makeLibraryPath
+1 -1
pkgs/applications/misc/kiwix/default.nix
···
sha256 = "1h9vcbvf8wgds6i2z20y7krpys0mqsqhv1ijyfljanp6vyll9fvi";
};
-
xulrunner = if stdenv.system == "x86_64-linux"
+
xulrunner = if stdenv.hostPlatform.system == "x86_64-linux"
then { tar = xulrunner64_tar; sdk = xulrunnersdk64_tar; }
else { tar = xulrunner32_tar; sdk = xulrunnersdk32_tar; };
+4 -4
pkgs/applications/misc/playonlinux/default.nix
···
];
ld32 =
-
if stdenv.system == "x86_64-linux" then "${stdenv.cc}/nix-support/dynamic-linker-m32"
-
else if stdenv.system == "i686-linux" then "${stdenv.cc}/nix-support/dynamic-linker"
-
else throw "Unsupported platform for PlayOnLinux: ${stdenv.system}";
+
if stdenv.hostPlatform.system == "x86_64-linux" then "${stdenv.cc}/nix-support/dynamic-linker-m32"
+
else if stdenv.hostPlatform.system == "i686-linux" then "${stdenv.cc}/nix-support/dynamic-linker"
+
else throw "Unsupported platform for PlayOnLinux: ${stdenv.hostPlatform.system}";
ld64 = "${stdenv.cc}/nix-support/dynamic-linker";
libs = pkgs: stdenv.lib.makeLibraryPath [ pkgs.xorg.libX11 ];
···
bunzip2 $out/share/playonlinux/bin/check_dd_x86.bz2
patchelf --set-interpreter $(cat ${ld32}) --set-rpath ${libs pkgsi686Linux} $out/share/playonlinux/bin/check_dd_x86
-
${if stdenv.system == "x86_64-linux" then ''
+
${if stdenv.hostPlatform.system == "x86_64-linux" then ''
bunzip2 $out/share/playonlinux/bin/check_dd_amd64.bz2
patchelf --set-interpreter $(cat ${ld64}) --set-rpath ${libs pkgs} $out/share/playonlinux/bin/check_dd_amd64
'' else ''
+1 -1
pkgs/applications/misc/rescuetime/default.nix
···
let
src =
-
if stdenv.system == "i686-linux" then fetchurl {
+
if stdenv.hostPlatform.system == "i686-linux" then fetchurl {
name = "rescuetime-installer.deb";
url = "https://www.rescuetime.com/installers/rescuetime_current_i386.deb";
sha256 = "06q1jwqsrjvlj820dd4vl80jznwafsqshsg0p6si8qx4721blryz";
+1 -1
pkgs/applications/misc/sweethome3d/default.nix
···
makeWrapper ${jre}/bin/java $out/bin/$exec \
--prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS:${gtk3.out}/share:${gsettings-desktop-schemas}/share:$out/share:$GSETTINGS_SCHEMAS_PATH" \
-
--add-flags "-jar $out/share/java/${module}-${version}.jar -cp $out/share/java/Furniture.jar:$out/share/java/Textures.jar:$out/share/java/Help.jar ${if stdenv.system == "x86_64-linux" then "-d64" else "-d32"}"
+
--add-flags "-jar $out/share/java/${module}-${version}.jar -cp $out/share/java/Furniture.jar:$out/share/java/Textures.jar:$out/share/java/Help.jar -d${toString stdenv.hostPlatform.parsed.cpu.bits}"
'';
dontStrip = true;
+1 -1
pkgs/applications/misc/sweethome3d/editors.nix
···
cp "${editorItem}/share/applications/"* $out/share/applications
makeWrapper ${jre}/bin/java $out/bin/$exec \
--prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS:${gtk3.out}/share:${gsettings-desktop-schemas}/share:$out/share:$GSETTINGS_SCHEMAS_PATH" \
-
--add-flags "-jar $out/share/java/${module}-${version}.jar ${if stdenv.system == "x86_64-linux" then "-d64" else "-d32"}"
+
--add-flags "-jar $out/share/java/${module}-${version}.jar -d${toString stdenv.hostPlatform.parsed.cpu.bits}"
'';
dontStrip = true;
+3 -3
pkgs/applications/misc/xmind/default.nix
···
name = "xmind-${version}";
version = "7.5-update1";
-
src = if stdenv.system == "i686-linux" then fetchurl {
+
src = if stdenv.hostPlatform.system == "i686-linux" then fetchurl {
url = "http://dl2.xmind.net/xmind-downloads/${name}-linux_i386.deb";
sha256 = "04kr6pw0kwy715bp9wcnqnw1k5wl65xa87lhljrskm291p402jy1";
-
} else if stdenv.system == "x86_64-linux" then fetchurl {
+
} else if stdenv.hostPlatform.system == "x86_64-linux" then fetchurl {
url = "http://dl2.xmind.net/xmind-downloads/${name}-linux_amd64.deb";
sha256 = "1j2ynhk7p3m3vd6c4mjwpnlzqgfj5c4q3zydab3nfwncwx6gaqj9";
-
} else throw "platform ${stdenv.system} not supported!";
+
} else throw "platform ${stdenv.hostPlatform.system} not supported!";
nativeBuildInputs = [ dpkg makeWrapper ];
+3 -3
pkgs/applications/networking/apache-directory-studio/default.nix
···
version = "2.0.0.v20170904-M13";
src =
-
if stdenv.system == "x86_64-linux" then
+
if stdenv.hostPlatform.system == "x86_64-linux" then
fetchurl {
url = "mirror://apache/directory/studio/${version}/ApacheDirectoryStudio-${version}-linux.gtk.x86_64.tar.gz";
sha256 = "1jfnm6m0ijk31r30hhrxxnizk742dm317iny041p29v897rma7aq";
}
-
else if stdenv.system == "i686-linux" then
+
else if stdenv.hostPlatform.system == "i686-linux" then
fetchurl {
url = "mirror://apache/directory/studio/${version}/ApacheDirectoryStudio-${version}-linux.gtk.x86.tar.gz";
sha256 = "1bxmgram42qyhrqkgp5k8770f5mjjdd4c6xl4gj09smiycm1qa4n";
}
-
else throw "Unsupported system: ${stdenv.system}";
+
else throw "Unsupported system: ${stdenv.hostPlatform.system}";
buildInputs = [ makeWrapper ];
+3 -3
pkgs/applications/networking/bittorrentsync/generic.nix
···
arch = {
"x86_64-linux" = "x64";
"i686-linux" = "i386";
-
}.${stdenv.system} or throwSystem;
+
}.${stdenv.hostPlatform.system} or throwSystem;
libPath = stdenv.lib.makeLibraryPath [ stdenv.cc.libc ];
-
throwSystem = throw "Unsupported system: ${stdenv.system}";
+
throwSystem = throw "Unsupported system: ${stdenv.hostPlatform.system}";
in
stdenv.mkDerivation rec {
···
"https://download-cdn.getsync.com/${version}/linux-${arch}/BitTorrent-Sync_${arch}.tar.gz"
"http://syncapp.bittorrent.com/${version}/btsync_${arch}-${version}.tar.gz"
];
-
sha256 = sha256s.${stdenv.system} or throwSystem;
+
sha256 = sha256s.${stdenv.hostPlatform.system} or throwSystem;
};
dontStrip = true; # Don't strip, otherwise patching the rpaths breaks
+1 -1
pkgs/applications/networking/browsers/firefox-bin/default.nix
···
"x86_64-linux" = "linux-x86_64";
};
-
arch = mozillaPlatforms.${stdenv.system};
+
arch = mozillaPlatforms.${stdenv.hostPlatform.system};
isPrefixOf = prefix: string:
builtins.substring 0 (builtins.stringLength prefix) string == prefix;
+4 -4
pkgs/applications/networking/browsers/firefox/wrapper.nix
···
jre = cfg.jre or false;
icedtea = cfg.icedtea or false;
supportsJDK =
-
stdenv.system == "i686-linux" ||
-
stdenv.system == "x86_64-linux" ||
-
stdenv.system == "armv7l-linux" ||
-
stdenv.system == "aarch64-linux";
+
stdenv.hostPlatform.system == "i686-linux" ||
+
stdenv.hostPlatform.system == "x86_64-linux" ||
+
stdenv.hostPlatform.system == "armv7l-linux" ||
+
stdenv.hostPlatform.system == "aarch64-linux";
plugins =
assert !(jre && icedtea);
+3 -3
pkgs/applications/networking/browsers/mozilla-plugins/flashplayer/default.nix
···
let
arch =
-
if stdenv.system == "x86_64-linux" then
+
if stdenv.hostPlatform.system == "x86_64-linux" then
"x86_64"
-
else if stdenv.system == "i686-linux" then
+
else if stdenv.hostPlatform.system == "i686-linux" then
"i386"
else throw "Flash Player is not supported on this platform";
lib_suffix =
-
if stdenv.system == "x86_64-linux" then
+
if stdenv.hostPlatform.system == "x86_64-linux" then
"64"
else
"";
+2 -2
pkgs/applications/networking/browsers/mozilla-plugins/google-talk-plugin/default.nix
···
version = "5.41.3.0";
src =
-
if stdenv.system == "x86_64-linux" then
+
if stdenv.hostPlatform.system == "x86_64-linux" then
fetchurl {
url = "${baseURL}/google-talkplugin_${version}-1_amd64.deb";
sha1 = "0bbc3d6997ba22ce712d93e5bc336c894b54fc81";
}
-
else if stdenv.system == "i686-linux" then
+
else if stdenv.hostPlatform.system == "i686-linux" then
fetchurl {
url = "${baseURL}/google-talkplugin_${version}-1_i386.deb";
sha1 = "6eae0544858f85c68b0cc46d7786e990bd94f139";
+1 -1
pkgs/applications/networking/browsers/mozilla-plugins/trezor/default.nix
···
};
src =
-
if stdenv.system == "x86_64-linux" then
+
if stdenv.hostPlatform.system == "x86_64-linux" then
fetchurl {
url = https://mytrezor.com/data/plugin/1.0.5/browser-plugin-trezor_1.0.5_amd64.deb;
sha256 = "0097h4v88yca4aayzprrh4pk03xvvj7ncz2mi83chm81gsr2v67z";
+1 -1
pkgs/applications/networking/browsers/tor-browser-bundle-bin/default.nix
···
name = "tor-browser-bundle-bin-${version}";
inherit version;
-
src = srcs."${stdenv.system}" or (throw "unsupported system: ${stdenv.system}");
+
src = srcs."${stdenv.hostPlatform.system}" or (throw "unsupported system: ${stdenv.hostPlatform.system}");
preferLocalBuild = true;
allowSubstitutes = false;
+2 -2
pkgs/applications/networking/dropbox/default.nix
···
let platforms = [ "i686-linux" "x86_64-linux" ]; in
-
assert lib.elem stdenv.system platforms;
+
assert lib.elem stdenv.hostPlatform.system platforms;
# Dropbox client to bootstrap installation.
# The client is self-updating, so the actual version may be newer.
···
arch = {
"x86_64-linux" = "x86_64";
"i686-linux" = "x86";
-
}.${stdenv.system};
+
}.${stdenv.hostPlatform.system};
installer = "https://clientupdates.dropboxstatic.com/dbx-releng/client/dropbox-lnx.${arch}-${version}.tar.gz";
in
+1 -1
pkgs/applications/networking/instant-messengers/franz/default.nix
···
, gnome2, dbus, nss, nspr, alsaLib, cups, expat, udev, libnotify, xdg_utils }:
let
-
bits = if stdenv.system == "x86_64-linux" then "x64"
+
bits = if stdenv.hostPlatform.system == "x86_64-linux" then "x64"
else "ia32";
version = "4.0.4";
+3 -3
pkgs/applications/networking/instant-messengers/mattermost-desktop/default.nix
···
version = "4.1.2";
src =
-
if stdenv.system == "x86_64-linux" then
+
if stdenv.hostPlatform.system == "x86_64-linux" then
fetchurl {
url = "https://releases.mattermost.com/desktop/${version}/${name}-linux-x64.tar.gz";
sha256 = "16dn6870bs1nfl2082ym9gwvmqb3i5sli48qprap80p7riph6k9s";
}
-
else if stdenv.system == "i686-linux" then
+
else if stdenv.hostPlatform.system == "i686-linux" then
fetchurl {
url = "https://releases.mattermost.com/desktop/${version}/${name}-linux-ia32.tar.gz";
sha256 = "145zb1l37fa2slfrrlprlwzcc5km3plxs374yhgix25mlg2afkqr";
}
else
-
throw "Mattermost-Desktop is not currently supported on ${stdenv.system}";
+
throw "Mattermost-Desktop is not currently supported on ${stdenv.hostPlatform.system}";
phases = [ "unpackPhase" "installPhase" ];
installPhase = ''
+1 -1
pkgs/applications/networking/instant-messengers/rambox/sencha/bare.nix
···
inherit version;
name = "sencha-bare-${version}";
-
src = srcs.${stdenv.system};
+
src = srcs.${stdenv.hostPlatform.system};
nativeBuildInputs = [ gzip which unzip ];
buildInputs = [ jdk ];
+2 -2
pkgs/applications/networking/instant-messengers/skypeforlinux/default.nix
···
] + ":${stdenv.cc.cc.lib}/lib64";
src =
-
if stdenv.system == "x86_64-linux" then
+
if stdenv.hostPlatform.system == "x86_64-linux" then
fetchurl {
url = "https://repo.skype.com/deb/pool/main/s/skypeforlinux/skypeforlinux_${version}_amd64.deb";
sha256 = "1kydf71qbz35dx4674h3nxfx8a88k620217906i54ic4qq2mgy2x";
}
else
-
throw "Skype for linux is not supported on ${stdenv.system}";
+
throw "Skype for linux is not supported on ${stdenv.hostPlatform.system}";
in stdenv.mkDerivation {
name = "skypeforlinux-${version}";
+2 -2
pkgs/applications/networking/instant-messengers/slack/default.nix
···
] + ":${stdenv.cc.cc.lib}/lib64";
src =
-
if stdenv.system == "x86_64-linux" then
+
if stdenv.hostPlatform.system == "x86_64-linux" then
fetchurl {
url = "https://downloads.slack-edge.com/linux_releases/slack-desktop-${version}-amd64.deb";
sha256 = "095dpkwvvnwlxsglyg6wi9126wpalzi736b6g6j3bd6d93z9afah";
}
else
-
throw "Slack is not supported on ${stdenv.system}";
+
throw "Slack is not supported on ${stdenv.hostPlatform.system}";
in stdenv.mkDerivation {
name = "slack-${version}";
+2 -2
pkgs/applications/networking/instant-messengers/wire-desktop/default.nix
···
plat = {
"i686-linux" = "i386";
"x86_64-linux" = "amd64";
-
}.${stdenv.system};
+
}.${stdenv.hostPlatform.system};
sha256 = {
"i686-linux" = "071ddh2d8wmiybwafwyb97962zj358l0fq7g2r44231653sgybvq";
"x86_64-linux" = "0qp9ms94smnm7k47b0n0jdzvnm1b7gj25hyinsfc6lghrb6jqw3r";
-
}.${stdenv.system};
+
}.${stdenv.hostPlatform.system};
in
stdenv.mkDerivation rec {
+2 -2
pkgs/applications/networking/instant-messengers/zoom-us/default.nix
···
-
{ stdenv, fetchurl, system, makeWrapper, makeDesktopItem, autoPatchelfHook, env
+
{ stdenv, fetchurl, makeWrapper, makeDesktopItem, autoPatchelfHook, env
# Dynamic libraries
, dbus, glib, libGL, libX11, libXfixes, libuuid, libxcb, qtbase, qtdeclarative
, qtimageformats, qtlocation, qtquickcontrols, qtquickcontrols2, qtscript, qtsvg
···
in stdenv.mkDerivation {
name = "zoom-us-${version}";
-
src = srcs.${system};
+
src = srcs.${stdenv.hostPlatform.system};
nativeBuildInputs = [ autoPatchelfHook makeWrapper ];
+2 -2
pkgs/applications/networking/insync/default.nix
···
name = "insync-${version}";
version = "1.4.5.37069";
src =
-
if stdenv.system == "x86_64-linux" then
+
if stdenv.hostPlatform.system == "x86_64-linux" then
fetchurl {
url = "http://s.insynchq.com/builds/insync-portable_${version}_amd64.tar.bz2";
sha256 = "0mkqgpq4isngkj20c0ygmxf4cj975d446svhwvl3cqdrjkjm1ybd";
}
else
-
throw "${name} is not supported on ${stdenv.system}";
+
throw "${name} is not supported on ${stdenv.hostPlatform.system}";
buildInputs = [ makeWrapper ];
+2 -2
pkgs/applications/networking/mailreaders/nylas-mail-bin/default.nix
···
subVersion = "fec7941";
src =
-
if stdenv.system == "x86_64-linux" then
+
if stdenv.hostPlatform.system == "x86_64-linux" then
fetchurl {
url = "https://edgehill.s3.amazonaws.com/${version}-${subVersion}/linux-deb/x64/NylasMail.deb";
sha256 = "40060aa1dc3b5187b8ed4a07b9de3427e3c5a291df98c2c82395647fa2aa4ada";
}
else
-
throw "NylasMail is not supported on ${stdenv.system}";
+
throw "NylasMail is not supported on ${stdenv.hostPlatform.system}";
propagatedBuildInputs = [
alsaLib
+1 -1
pkgs/applications/networking/mailreaders/thunderbird-bin/default.nix
···
with (import ./release_sources.nix);
let
-
arch = if stdenv.system == "i686-linux"
+
arch = if stdenv.hostPlatform.system == "i686-linux"
then "linux-i686"
else "linux-x86_64";
+1 -1
pkgs/applications/networking/p2p/frostwire/default.nix
···
cp ${ { x86_64-darwin = "desktop/lib/native/*.dylib";
x86_64-linux = "desktop/lib/native/lib{jlibtorrent,SystemUtilities}.so";
i686-linux = "desktop/lib/native/lib{jlibtorrent,SystemUtilities}X86.so";
-
}.${stdenv.system} or (throw "unsupported system ${stdenv.system}")
+
}.${stdenv.hostPlatform.system} or (throw "unsupported system ${stdenv.hostPlatform.system}")
} $out/lib
cp -dpR ${desktopItem}/share $out
+1 -1
pkgs/applications/networking/p2p/soulseekqt/default.nix
···
name = "soulseekqt-${version}";
inherit version;
-
src = srcs."${stdenv.system}" or (throw "unsupported system: ${stdenv.system}");
+
src = srcs."${stdenv.hostPlatform.system}" or (throw "unsupported system: ${stdenv.hostPlatform.system}");
dontBuild = true;
+2 -2
pkgs/applications/networking/remote/anydesk/default.nix
···
sha256 = {
"x86_64-linux" = "0g19sac4j3m1nf400vn6qcww7prqg2p4k4zsj74i109kk1396aa2";
"i686-linux" = "1dd4ai2pclav9g872xil3x67bxy32gvz9pb3w76383pcsdh5zh45";
-
}."${stdenv.system}" or (throw "system ${stdenv.system} not supported");
+
}."${stdenv.hostPlatform.system}" or (throw "system ${stdenv.hostPlatform.system} not supported");
arch = {
"x86_64-linux" = "amd64";
"i686-linux" = "i686";
-
}."${stdenv.system}" or (throw "system ${stdenv.system} not supported");
+
}."${stdenv.hostPlatform.system}" or (throw "system ${stdenv.hostPlatform.system} not supported");
description = "Desktop sharing application, providing remote support and online meetings";
+2 -2
pkgs/applications/networking/resilio-sync/default.nix
···
arch = {
"x86_64-linux" = "x64";
"i686-linux" = "i386";
-
}.${stdenv.system} or (throw "Unsupported system: ${stdenv.system}");
+
}.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
libPath = stdenv.lib.makeLibraryPath [ stdenv.cc.libc ];
in stdenv.mkDerivation rec {
···
sha256 = {
"x86_64-linux" = "0041axi9carspkfaxvyirfvsa29zz55al01x90nh93nzxvpvywsz";
"i686-linux" = "1ar36lp4f6a1z9i82g3gpak4q4ny09faqxdd59q1pvfzq25ypdhs";
-
}.${stdenv.system};
+
}.${stdenv.hostPlatform.system};
};
dontStrip = true; # Don't strip, otherwise patching the rpaths breaks
+9 -9
pkgs/applications/networking/spideroak/default.nix
···
}:
let
-
arch = if stdenv.system == "x86_64-linux" then "x64"
-
else if stdenv.system == "i686-linux" then "x86"
-
else throw "Spideroak client for: ${stdenv.system} not supported!";
+
arch = if stdenv.hostPlatform.system == "x86_64-linux" then "x64"
+
else if stdenv.hostPlatform.system == "i686-linux" then "x86"
+
else throw "Spideroak client for: ${stdenv.hostPlatform.system} not supported!";
-
interpreter = if stdenv.system == "x86_64-linux" then "ld-linux-x86-64.so.2"
-
else if stdenv.system == "i686-linux" then "ld-linux.so.2"
-
else throw "Spideroak client for: ${stdenv.system} not supported!";
+
interpreter = if stdenv.hostPlatform.system == "x86_64-linux" then "ld-linux-x86-64.so.2"
+
else if stdenv.hostPlatform.system == "i686-linux" then "ld-linux.so.2"
+
else throw "Spideroak client for: ${stdenv.hostPlatform.system} not supported!";
-
sha256 = if stdenv.system == "x86_64-linux" then "a88e5a8fe4a565ac500668bd53cf5784752d7c9253304ddce39ee7b01d078533"
-
else if stdenv.system == "i686-linux" then "668f3b83a974a3877d16c8743c233a427ea0a44ab84b7f9aec19a2995db66c16"
-
else throw "Spideroak client for: ${stdenv.system} not supported!";
+
sha256 = if stdenv.hostPlatform.system == "x86_64-linux" then "a88e5a8fe4a565ac500668bd53cf5784752d7c9253304ddce39ee7b01d078533"
+
else if stdenv.hostPlatform.system == "i686-linux" then "668f3b83a974a3877d16c8743c233a427ea0a44ab84b7f9aec19a2995db66c16"
+
else throw "Spideroak client for: ${stdenv.hostPlatform.system} not supported!";
ldpath = stdenv.lib.makeLibraryPath [
fontconfig freetype glib libICE libSM
+2 -2
pkgs/applications/networking/super-productivity/default.nix
···
] + ":${stdenv.cc.cc.lib}/lib64";
src =
-
if stdenv.system == "x86_64-linux" then
+
if stdenv.hostPlatform.system == "x86_64-linux" then
fetchurl {
url = "https://github.com/johannesjo/super-productivity/releases/download/v${version}/superProductivity_${version}_amd64.deb";
sha256 = "0jfi0lfijnhij9jvkhxgyvq8m1jzaym8n1c7707fv3hjh1h0vxn1";
}
else
-
throw "super-productivity is not supported on ${stdenv.system}";
+
throw "super-productivity is not supported on ${stdenv.hostPlatform.system}";
in stdenv.mkDerivation {
name = "super-productivity-${version}";
+4 -4
pkgs/applications/office/jameica/default.nix
···
version = "${_version}-${_build}";
name = "jameica-${version}";
-
swtSystem = if stdenv.system == "i686-linux" then "linux"
-
else if stdenv.system == "x86_64-linux" then "linux64"
-
else if stdenv.system == "x86_64-darwin" then "macos64"
-
else throw "Unsupported system: ${stdenv.system}";
+
swtSystem = if stdenv.hostPlatform.system == "i686-linux" then "linux"
+
else if stdenv.hostPlatform.system == "x86_64-linux" then "linux64"
+
else if stdenv.hostPlatform.system == "x86_64-darwin" then "macos64"
+
else throw "Unsupported system: ${stdenv.hostPlatform.system}";
desktopItem = makeDesktopItem {
name = "jameica";
+2 -2
pkgs/applications/office/mendeley/default.nix
···
let
arch32 = "i686-linux";
-
arch = if stdenv.system == arch32
+
arch = if stdenv.hostPlatform.system == arch32
then "i386"
else "amd64";
···
version = "${shortVersion}_${arch}";
url = "http://desktop-download.mendeley.com/download/apt/pool/main/m/mendeleydesktop/mendeleydesktop_${version}.deb";
-
sha256 = if stdenv.system == arch32
+
sha256 = if stdenv.hostPlatform.system == arch32
then "0fcyl5i8xdgb5j0x1643qc0j74d8p11jczvqmgqkqh0wgid1y1ad"
else "1dzwa2cnn9xakrhhq159fhh71gw5wlbf017rrikdlia694m8akq6";
+2 -2
pkgs/applications/office/moneyplex/default.nix
···
name = "moneyplex-${version}";
version = "16.0.22424";
-
src = fetchurl (if stdenv.system == "i686-linux" then src_i686
-
else if stdenv.system == "x86_64-linux" then src_x86_64
+
src = fetchurl (if stdenv.hostPlatform.system == "i686-linux" then src_i686
+
else if stdenv.hostPlatform.system == "x86_64-linux" then src_x86_64
else throw "moneyplex requires i686-linux or x86_64-linux");
+1 -1
pkgs/applications/office/wpsoffice/default.nix
···
, zlib, libpng12, libICE, libXrender, cups }:
let
-
bits = if stdenv.system == "x86_64-linux" then "x86_64"
+
bits = if stdenv.hostPlatform.system == "x86_64-linux" then "x86_64"
else "x86";
version = "10.1.0.5672";
+3 -3
pkgs/applications/science/electronics/eagle/eagle7.nix
···
version = "7.7.0";
src =
-
if stdenv.system == "i686-linux" then
+
if stdenv.hostPlatform.system == "i686-linux" then
fetchurl {
url = "ftp://ftp.cadsoft.de/eagle/program/7.7/eagle-lin32-${version}.run";
sha256 = "16fa66p77xigc7zvzfm7737mllrcs6nrgk2p7wvkjw3p9lvbz7z1";
}
-
else if stdenv.system == "x86_64-linux" then
+
else if stdenv.hostPlatform.system == "x86_64-linux" then
fetchurl {
url = "ftp://ftp.cadsoft.de/eagle/program/7.7/eagle-lin64-${version}.run";
sha256 = "18dcn6wqph1sqh0ah98qzfi05wip8a8ifbkaq79iskbrsi8iqnrg";
}
else
-
throw "Unsupported system: ${stdenv.system}";
+
throw "Unsupported system: ${stdenv.hostPlatform.system}";
desktopItem = makeDesktopItem {
name = "eagle";
+1 -1
pkgs/applications/science/logic/isabelle/default.nix
···
rm -rf $comp/x86*
done
'' + (if ! stdenv.isLinux then "" else ''
-
arch=${if stdenv.system == "x86_64-linux" then "x86_64-linux" else "x86-linux"}
+
arch=${if stdenv.hostPlatform.system == "x86_64-linux" then "x86_64-linux" else "x86-linux"}
for f in contrib/*/$arch/{bash_process,epclextract,eprover,nunchaku,SPASS}; do
patchelf --set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) "$f"
done
+1 -1
pkgs/applications/science/logic/saw-tools/default.nix
···
url = "https://github.com/GaloisInc/saw-script/releases/download";
saw-bin =
-
if stdenv.system == "i686-linux"
+
if stdenv.hostPlatform.system == "i686-linux"
then fetchurl {
url = url + "/v0.1.1-dev/saw-0.1.1-dev-2015-07-31-CentOS6-32.tar.gz";
sha256 = "126iag5nnvndi78c921z7vjrjfwcspn1hlxwwhzmqm4rvbhhr9v9";
+2 -2
pkgs/applications/science/math/mathematica/10.nix
···
let
platform =
-
if stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux" then
+
if stdenv.hostPlatform.system == "i686-linux" || stdenv.hostPlatform.system == "x86_64-linux" then
"Linux"
else
throw "Mathematica requires i686-linux or x86_64 linux";
···
]);
ldpath = stdenv.lib.makeLibraryPath buildInputs
-
+ stdenv.lib.optionalString (stdenv.system == "x86_64-linux")
+
+ stdenv.lib.optionalString (stdenv.hostPlatform.system == "x86_64-linux")
(":" + stdenv.lib.makeSearchPathOutput "lib" "lib64" buildInputs);
phases = "unpackPhase installPhase fixupPhase";
+2 -2
pkgs/applications/science/math/mathematica/9.nix
···
let
platform =
-
if stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux" then
+
if stdenv.hostPlatform.system == "i686-linux" || stdenv.hostPlatform.system == "x86_64-linux" then
"Linux"
else
throw "Mathematica requires i686-linux or x86_64 linux";
···
]);
ldpath = stdenv.lib.makeLibraryPath buildInputs
-
+ stdenv.lib.optionalString (stdenv.system == "x86_64-linux")
+
+ stdenv.lib.optionalString (stdenv.hostPlatform.system == "x86_64-linux")
(":" + stdenv.lib.makeSearchPathOutput "lib" "lib64" buildInputs);
phases = "unpackPhase installPhase fixupPhase";
+1 -1
pkgs/applications/science/math/mathematica/default.nix
···
]);
ldpath = stdenv.lib.makeLibraryPath buildInputs
-
+ stdenv.lib.optionalString (stdenv.system == "x86_64-linux")
+
+ stdenv.lib.optionalString (stdenv.hostPlatform.system == "x86_64-linux")
(":" + stdenv.lib.makeSearchPathOutput "lib" "lib64" buildInputs);
phases = "unpackPhase installPhase fixupPhase";
+4 -4
pkgs/applications/science/math/scilab-bin/default.nix
···
badArch = throw "${name} requires i686-linux or x86_64-linux";
architecture =
-
if stdenv.system == "i686-linux" then
+
if stdenv.hostPlatform.system == "i686-linux" then
"i686"
-
else if stdenv.system == "x86_64-linux" then
+
else if stdenv.hostPlatform.system == "x86_64-linux" then
"x86_64"
else
badArch;
···
src = fetchurl {
url = "https://www.scilab.org/download/${ver}/scilab-${ver}.bin.linux-${architecture}.tar.gz";
sha256 =
-
if stdenv.system == "i686-linux" then
+
if stdenv.hostPlatform.system == "i686-linux" then
"0fgjc2ak3b2qi6yin3fy50qwk2bcj0zbz1h4lyyic9n1n1qcliib"
-
else if stdenv.system == "x86_64-linux" then
+
else if stdenv.hostPlatform.system == "x86_64-linux" then
"1scswlznc14vyzg0gqa1q9gcpwx05kz1sbn563463mzkdp7nd35d"
else
badArch;
+1 -1
pkgs/applications/search/recoll/default.nix
···
, ghostscript, gawk, gnugrep, gnused, gnutar, gzip, libiconv, zlib
, withGui ? true }:
-
assert stdenv.system != "powerpc-linux";
+
assert stdenv.hostPlatform.system != "powerpc-linux";
stdenv.mkDerivation rec {
ver = "1.23.7";
+2 -2
pkgs/applications/video/lightworks/default.nix
···
name = "lightworks-${version}";
src =
-
if stdenv.system == "x86_64-linux" then
+
if stdenv.hostPlatform.system == "x86_64-linux" then
fetchurl {
url = "http://downloads.lwks.com/v14/lwks-14.0.0-amd64.deb";
sha256 = "66eb9f9678d979db76199f1c99a71df0ddc017bb47dfda976b508849ab305033";
}
-
else throw "${name} is not supported on ${stdenv.system}";
+
else throw "${name} is not supported on ${stdenv.hostPlatform.system}";
buildInputs = [ dpkg makeWrapper ];
+3 -3
pkgs/applications/video/mplayer/default.nix
···
let
dir = http://www.mplayerhq.hu/MPlayer/releases/codecs/;
in
-
if stdenv.system == "i686-linux" then fetchurl {
+
if stdenv.hostPlatform.system == "i686-linux" then fetchurl {
url = "${dir}/essential-20071007.tar.bz2";
sha256 = "18vls12n12rjw0mzw4pkp9vpcfmd1c21rzha19d7zil4hn7fs2ic";
-
} else if stdenv.system == "x86_64-linux" then fetchurl {
+
} else if stdenv.hostPlatform.system == "x86_64-linux" then fetchurl {
url = "${dir}/essential-amd64-20071007.tar.bz2";
sha256 = "13xf5b92w1ra5hw00ck151lypbmnylrnznq9hhb0sj36z5wz290x";
-
} else if stdenv.system == "powerpc-linux" then fetchurl {
+
} else if stdenv.hostPlatform.system == "powerpc-linux" then fetchurl {
url = "${dir}/essential-ppc-20071007.tar.bz2";
sha256 = "18mlj8dp4wnz42xbhdk1jlz2ygra6fbln9wyrcyvynxh96g1871z";
} else null;
+2 -2
pkgs/applications/video/webtorrent_desktop/default.nix
···
version = "0.20.0";
src =
-
if stdenv.system == "x86_64-linux" then
+
if stdenv.hostPlatform.system == "x86_64-linux" then
fetchurl {
url = "https://github.com/webtorrent/webtorrent-desktop/releases/download/v0.20.0/webtorrent-desktop_${version}-1_amd64.deb";
sha256 = "1kkrnbimiip5pn2nwpln35bbdda9gc3cgrjwphq4fqasbjf2781k";
}
else
-
throw "Webtorrent is not currently supported on ${stdenv.system}";
+
throw "Webtorrent is not currently supported on ${stdenv.hostPlatform.system}";
phases = [ "unpackPhase" "installPhase" ];
nativeBuildInputs = [ dpkg ];
unpackPhase = "dpkg-deb -x $src .";
+1 -1
pkgs/applications/virtualization/qemu/default.nix
···
with stdenv.lib;
let
-
audio = optionalString (hasSuffix "linux" stdenv.system) "alsa,"
+
audio = optionalString (hasSuffix "linux" stdenv.hostPlatform.system) "alsa,"
+ optionalString pulseSupport "pa,"
+ optionalString sdlSupport "sdl,";
+8 -8
pkgs/applications/virtualization/virtualbox/guest-additions/default.nix
···
'';
buildCommand = with xorg; ''
-
${if stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux" then ''
+
${if stdenv.hostPlatform.system == "i686-linux" || stdenv.hostPlatform.system == "x86_64-linux" then ''
isoinfo -J -i $src -x /VBoxLinuxAdditions.run > ./VBoxLinuxAdditions.run
chmod 755 ./VBoxLinuxAdditions.run
./VBoxLinuxAdditions.run --noexec --keep
''
-
else throw ("Architecture: "+stdenv.system+" not supported for VirtualBox guest additions")
+
else throw ("Architecture: "+stdenv.hostPlatform.system+" not supported for VirtualBox guest additions")
}
# Unpack files
cd install
-
${if stdenv.system == "i686-linux" then ''
+
${if stdenv.hostPlatform.system == "i686-linux" then ''
tar xfvj VBoxGuestAdditions-x86.tar.bz2
''
-
else if stdenv.system == "x86_64-linux" then ''
+
else if stdenv.hostPlatform.system == "x86_64-linux" then ''
tar xfvj VBoxGuestAdditions-amd64.tar.bz2
''
-
else throw ("Architecture: "+stdenv.system+" not supported for VirtualBox guest additions")
+
else throw ("Architecture: "+stdenv.hostPlatform.system+" not supported for VirtualBox guest additions")
}
cd ../
···
# Change the interpreter for various binaries
for i in sbin/VBoxService bin/{VBoxClient,VBoxControl} other/mount.vboxsf
do
-
${if stdenv.system == "i686-linux" then ''
+
${if stdenv.hostPlatform.system == "i686-linux" then ''
patchelf --set-interpreter ${stdenv.glibc.out}/lib/ld-linux.so.2 $i
''
-
else if stdenv.system == "x86_64-linux" then ''
+
else if stdenv.hostPlatform.system == "x86_64-linux" then ''
patchelf --set-interpreter ${stdenv.glibc.out}/lib/ld-linux-x86-64.so.2 $i
''
-
else throw ("Architecture: "+stdenv.system+" not supported for VirtualBox guest additions")
+
else throw ("Architecture: "+stdenv.hostPlatform.system+" not supported for VirtualBox guest additions")
}
patchelf --set-rpath ${lib.makeLibraryPath [ stdenv.cc.cc dbus libX11 libXt libXext libXmu libXfixes libXrandr libXcursor ]} $i
done
+2 -2
pkgs/applications/window-managers/i3/default.nix
···
# they shouldn't, and then even once that's fixed have some
# perl-related errors later on. For more, see
# https://github.com/NixOS/nixpkgs/issues/7957
-
doCheck = false; # stdenv.system == "x86_64-linux";
+
doCheck = false; # stdenv.hostPlatform.system == "x86_64-linux";
-
checkPhase = stdenv.lib.optionalString (stdenv.system == "x86_64-linux")
+
checkPhase = stdenv.lib.optionalString (stdenv.hostPlatform.system == "x86_64-linux")
''
(cd testcases && xvfb-run ./complete-run.pl -p 1 --keep-xserver-output)
! grep -q '^not ok' testcases/latest/complete-run.log
+2 -2
pkgs/build-support/build-fhs-userenv/env.nix
···
-
{ stdenv, buildEnv, writeText, pkgs, pkgsi686Linux, system }:
+
{ stdenv, buildEnv, writeText, pkgs, pkgsi686Linux }:
{ name, profile ? ""
, targetPkgs ? pkgs: [], multiPkgs ? pkgs: []
···
# /lib will link to /lib32
let
-
is64Bit = system == "x86_64-linux";
+
is64Bit = stdenv.hostPlatform.parsed.cpu.bits == 64;
isMultiBuild = multiPkgs != null && is64Bit;
isTargetBuild = !isMultiBuild;
+1 -1
pkgs/build-support/release/nix-build.nix
···
postPhases = postPhases ++ ["finalPhase"];
meta = (if args ? meta then args.meta else {}) // {
-
description = if doCoverageAnalysis then "Coverage analysis" else "Nix package for ${stdenv.system}";
+
description = if doCoverageAnalysis then "Coverage analysis" else "Nix package for ${stdenv.hostPlatform.system}";
};
}
+1 -1
pkgs/build-support/vm/windows/controller/default.nix
···
"-net vde,vlan=0,sock=$QEMU_VDE_SOCKET"
]);
-
maybeKvm64 = optional (stdenv.system == "x86_64-linux") "-cpu kvm64";
+
maybeKvm64 = optional (stdenv.hostPlatform.system == "x86_64-linux") "-cpu kvm64";
cygwinQemuArgs = concatStringsSep " " (maybeKvm64 ++ [
"-monitor unix:$MONITOR_SOCKET,server,nowait"
+1 -1
pkgs/build-support/vm/windows/cygwin-iso/default.nix
···
};
cygwinCross = (import ../../../../.. {
-
inherit (stdenv) system;
+
localSystem = stdenv.hostPlatform;
crossSystem = {
libc = "msvcrt";
platform = {};
+11 -7
pkgs/development/arduino/arduino-core/default.nix
···
# xdotool script; the cause of this hang is not yet known.
# TODO: There is a fair chance that Teensyduino works with arm-linux, but it
# has not yet been tested.
-
if withTeensyduino && (stdenv.system != "x86_64-linux") then throw
+
if withTeensyduino && (stdenv.hostPlatform.system != "x86_64-linux") then throw
"Teensyduino is only supported on x86_64-linux at this time (patches welcome)."
else
let
-
externalDownloads = import ./downloads.nix {inherit fetchurl; inherit (lib) optionalAttrs; inherit (stdenv) system;};
+
externalDownloads = import ./downloads.nix {
+
inherit fetchurl;
+
inherit (lib) optionalAttrs;
+
inherit (stdenv.hostPlatform) system;
+
};
# Some .so-files are later copied from .jar-s to $HOME, so patch them beforehand
patchelfInJars =
-
lib.optional (stdenv.system == "x86_64-linux") {jar = "share/arduino/lib/jssc-2.8.0-arduino1.jar"; file = "libs/linux/libjSSC-2.8_x86_64.so";}
-
++ lib.optional (stdenv.system == "i686-linux") {jar = "share/arduino/lib/jssc-2.8.0-arduino1.jar"; file = "libs/linux/libjSSC-2.8_x86.so";}
+
lib.optional (stdenv.hostPlatform.system == "x86_64-linux") {jar = "share/arduino/lib/jssc-2.8.0-arduino1.jar"; file = "libs/linux/libjSSC-2.8_x86_64.so";}
+
++ lib.optional (stdenv.hostPlatform.system == "i686-linux") {jar = "share/arduino/lib/jssc-2.8.0-arduino1.jar"; file = "libs/linux/libjSSC-2.8_x86.so";}
;
# abiVersion 6 is default, but we need 5 for `avrdude_bin` executable
ncurses5 = ncurses.override { abiVersion = "5"; };
···
zlib
];
teensy_architecture =
-
lib.optionalString (stdenv.system == "x86_64-linux") "linux64"
-
+ lib.optionalString (stdenv.system == "i686-linux") "linux32"
-
+ lib.optionalString (stdenv.system == "arm-linux") "linuxarm";
+
lib.optionalString (stdenv.hostPlatform.system == "x86_64-linux") "linux64"
+
+ lib.optionalString (stdenv.hostPlatform.system == "i686-linux") "linux32"
+
+ lib.optionalString (stdenv.hostPlatform.system == "arm-linux") "linuxarm";
flavor = (if withTeensyduino then "teensyduino" else "arduino")
+ stdenv.lib.optionalString (!withGui) "-core";
+1 -1
pkgs/development/compilers/ccl/default.nix
···
};
armv6l-linux = armv7l-linux;
};
-
cfg = options."${stdenv.system}" or (throw "missing source url for platform ${stdenv.system}");
+
cfg = options."${stdenv.hostPlatform.system}" or (throw "missing source url for platform ${stdenv.hostPlatform.system}");
in
stdenv.mkDerivation rec {
+2 -2
pkgs/development/compilers/clean/default.nix
···
name = "clean-2.4";
src =
-
if stdenv.system == "i686-linux" then (fetchurl {
+
if stdenv.hostPlatform.system == "i686-linux" then (fetchurl {
url = "http://clean.cs.ru.nl/download/Clean24/linux/clean2.4_boot.tar.gz";
sha256 = "1w8vvmkwzq8g51639r62apcy75sj69nm08082a34xvqm9ymfgkq5";
})
-
else if stdenv.system == "x86_64-linux" then (fetchurl {
+
else if stdenv.hostPlatform.system == "x86_64-linux" then (fetchurl {
url = "https://clean.cs.ru.nl/download/Clean24/linux/clean2.4_64_boot.tar.gz";
sha256 = "08gsa1pjl5wyzh4ah8ccfx8a7mdcn6ycsn1lzkrr9adygv1gmm7r";
})
+1 -1
pkgs/development/compilers/cmucl/binary.nix
···
{stdenv, fetchurl}:
let
-
inherit (stdenv) system;
+
inherit (stdenv.hostPlatform) system;
version = "21b";
downloadUrl = arch:
"http://common-lisp.net/project/cmucl/downloads/release/" +
+2 -2
pkgs/development/compilers/crystal/default.nix
···
"x86_64-linux" = "linux-x86_64";
"i686-linux" = "linux-i686";
"x86_64-darwin" = "darwin-x86_64";
-
}."${stdenv.system}" or (throw "system ${stdenv.system} not supported");
+
}."${stdenv.hostPlatform.system}" or (throw "system ${stdenv.hostPlatform.system} not supported");
in fetchurl {
url = "https://github.com/crystal-lang/crystal/releases/download/0.26.0/${prebuiltName}-${arch}.tar.gz";
sha256 = {
"x86_64-linux" = "1xban102yiiwmlklxvn3xp3q546bp8hlxxpakayajkhhnpl6yv45";
"i686-linux" = "1igspf1lrv7wpmz0pfrkbx8m1ykvnv4zhic53cav4nicppm2v0ic";
"x86_64-darwin" = "0hzc65ccajr0yhmvi5vbdgbzbp1gbjy56da24ds3zwwkam1ddk0k";
-
}."${stdenv.system}";
+
}."${stdenv.hostPlatform.system}";
};
unpackPhase = ''
+3 -3
pkgs/development/compilers/fpc/binary.nix
···
name = "fpc-2.6.0-binary";
src =
-
if stdenv.system == "i686-linux" then
+
if stdenv.hostPlatform.system == "i686-linux" then
fetchurl {
url = "mirror://sourceforge/project/freepascal/Linux/2.6.0/fpc-2.6.0.i386-linux.tar";
sha256 = "08yklvrfxvk59bxsd4rh1i6s3cjn0q06dzjs94h9fbq3n1qd5zdf";
}
-
else if stdenv.system == "x86_64-linux" then
+
else if stdenv.hostPlatform.system == "x86_64-linux" then
fetchurl {
url = "mirror://sourceforge/project/freepascal/Linux/2.6.0/fpc-2.6.0.x86_64-linux.tar";
sha256 = "0k9vi75k39y735fng4jc2vppdywp82j4qhzn7x4r6qjkad64d8lx";
}
-
else throw "Not supported on ${stdenv.system}.";
+
else throw "Not supported on ${stdenv.hostPlatform.system}.";
builder = ./binary-builder.sh;
+1 -1
pkgs/development/compilers/fpc/default.nix
···
buildInputs = [ startFPC gawk ];
preConfigure =
-
if stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux" then ''
+
if stdenv.hostPlatform.system == "i686-linux" || stdenv.hostPlatform.system == "x86_64-linux" then ''
sed -e "s@'/lib/ld-linux[^']*'@'''@" -i fpcsrc/compiler/systems/t_linux.pas
sed -e "s@'/lib64/ld-linux[^']*'@'''@" -i fpcsrc/compiler/systems/t_linux.pas
'' else "";
+1 -1
pkgs/development/compilers/ghcjs-ng/default.nix
···
};
bootGhcjs = haskellLib.justStaticExecutables passthru.bootPkgs.ghcjs;
-
libexec = "${bootGhcjs}/libexec/${builtins.replaceStrings ["darwin" "i686"] ["osx" "i386"] stdenv.system}-${passthru.bootPkgs.ghc.name}/${bootGhcjs.name}";
+
libexec = "${bootGhcjs}/libexec/${builtins.replaceStrings ["darwin" "i686"] ["osx" "i386"] stdenv.buildPlatform.system}-${passthru.bootPkgs.ghc.name}/${bootGhcjs.name}";
in stdenv.mkDerivation {
name = bootGhcjs.name;
+3 -3
pkgs/development/compilers/go/1.10.nix
···
GOOS = if stdenv.isDarwin then "darwin" else "linux";
GOARCH = if stdenv.isDarwin then "amd64"
-
else if stdenv.system == "i686-linux" then "386"
-
else if stdenv.system == "x86_64-linux" then "amd64"
+
else if stdenv.hostPlatform.system == "i686-linux" then "386"
+
else if stdenv.hostPlatform.system == "x86_64-linux" then "amd64"
else if stdenv.isAarch32 then "arm"
else if stdenv.isAarch64 then "arm64"
else throw "Unsupported system";
-
GOARM = optionalString (stdenv.system == "armv5tel-linux") "5";
+
GOARM = optionalString (stdenv.hostPlatform.system == "armv5tel-linux") "5";
GO386 = 387; # from Arch: don't assume sse2 on i686
CGO_ENABLED = 1;
GOROOT_BOOTSTRAP = "${goBootstrap}/share/go";
+5 -5
pkgs/development/compilers/go/1.11.nix
···
GOOS = if stdenv.isDarwin then "darwin" else "linux";
GOARCH = if stdenv.isDarwin then "amd64"
-
else if stdenv.system == "i686-linux" then "386"
-
else if stdenv.system == "x86_64-linux" then "amd64"
-
else if stdenv.isAarch32 then "arm"
-
else if stdenv.isAarch64 then "arm64"
+
else if stdenv.targetPlatform.isi686 then "386"
+
else if stdenv.targetPlatform.isx86_64 then "amd64"
+
else if stdenv.targetPlatform.isAarch32 then "arm"
+
else if stdenv.targetPlatform.isAarch64 then "arm64"
else throw "Unsupported system";
-
GOARM = optionalString (stdenv.system == "armv5tel-linux") "5";
+
GOARM = stdenv.targetPlatform.parsed.cpu.version or "";
GO386 = 387; # from Arch: don't assume sse2 on i686
CGO_ENABLED = 1;
GOROOT_BOOTSTRAP = "${goBootstrap}/share/go";
+3 -3
pkgs/development/compilers/go/1.4.nix
···
GOOS = if stdenv.isDarwin then "darwin" else "linux";
GOARCH = if stdenv.isDarwin then "amd64"
-
else if stdenv.system == "i686-linux" then "386"
-
else if stdenv.system == "x86_64-linux" then "amd64"
+
else if stdenv.hostPlatform.system == "i686-linux" then "386"
+
else if stdenv.hostPlatform.system == "x86_64-linux" then "amd64"
else if stdenv.isAarch32 then "arm"
else throw "Unsupported system";
-
GOARM = stdenv.lib.optionalString (stdenv.system == "armv5tel-linux") "5";
+
GOARM = stdenv.lib.optionalString (stdenv.hostPlatform.system == "armv5tel-linux") "5";
GO386 = 387; # from Arch: don't assume sse2 on i686
CGO_ENABLED = 0;
+3 -3
pkgs/development/compilers/go/1.9.nix
···
GOOS = if stdenv.isDarwin then "darwin" else "linux";
GOARCH = if stdenv.isDarwin then "amd64"
-
else if stdenv.system == "i686-linux" then "386"
-
else if stdenv.system == "x86_64-linux" then "amd64"
+
else if stdenv.hostPlatform.system == "i686-linux" then "386"
+
else if stdenv.hostPlatform.system == "x86_64-linux" then "amd64"
else if stdenv.isAarch32 then "arm"
else if stdenv.isAarch64 then "arm64"
else throw "Unsupported system";
-
GOARM = optionalString (stdenv.system == "armv5tel-linux") "5";
+
GOARM = optionalString (stdenv.hostPlatform.system == "armv5tel-linux") "5";
GO386 = 387; # from Arch: don't assume sse2 on i686
CGO_ENABLED = 1;
GOROOT_BOOTSTRAP = "${goBootstrap}/share/go";
+2 -2
pkgs/development/compilers/jetbrains-jdk/default.nix
···
version = "152b1248.6";
name = pname + "-" + version;
-
src = if stdenv.system == "x86_64-linux" then
+
src = if stdenv.hostPlatform.system == "x86_64-linux" then
fetchurl {
url = "https://bintray.com/jetbrains/intellij-jdk/download_file?file_path=jbsdk8u${version}_linux_x64.tar.gz";
sha256 = "12l81g8zhaymh4rzyfl9nyzmpkgzc7wrphm3j4plxx129yn9i7d7";
}
else
-
throw "unsupported system: ${stdenv.system}";
+
throw "unsupported system: ${stdenv.hostPlatform.system}";
nativeBuildInputs = [ file ];
+1 -1
pkgs/development/compilers/julia/default.nix
···
makeFlags =
let
-
arch = head (splitString "-" stdenv.system);
+
arch = head (splitString "-" stdenv.hostPlatform.system);
march = { "x86_64" = "x86-64"; "i686" = "pentium4"; }."${arch}"
or (throw "unsupported architecture: ${arch}");
# Julia requires Pentium 4 (SSE2) or better
+3 -3
pkgs/development/compilers/mlton/default.nix
···
name = "mlton-${version}";
binSrc =
-
if stdenv.system == "i686-linux" then (fetchurl {
+
if stdenv.hostPlatform.system == "i686-linux" then (fetchurl {
url = "mirror://sourceforge/project/mlton/mlton/${version}/${name}-1.x86-linux.tgz";
sha256 = "1kxjjmnw4xk2d9hpvz43w9dvyhb3025k4zvjx785c33nrwkrdn4j";
})
-
else if stdenv.system == "x86_64-linux" then (fetchurl {
+
else if stdenv.hostPlatform.system == "x86_64-linux" then (fetchurl {
url = "mirror://sourceforge/project/mlton/mlton/${version}/${name}-1.amd64-linux.tgz";
sha256 = "0fyhwxb4nmpirjbjcvk9f6w67gmn2gkz7xcgz0xbfih9kc015ygn";
})
-
else if stdenv.system == "x86_64-darwin" then (fetchurl {
+
else if stdenv.hostPlatform.system == "x86_64-darwin" then (fetchurl {
url = "mirror://sourceforge/project/mlton/mlton/${version}/${name}-1.amd64-darwin.gmp-macports.tgz";
sha256 = "044wnh9hhg6if886xy805683k0as347xd37r0r1yi4x7qlxzzgx9";
})
+1 -1
pkgs/development/compilers/mozart/binary.nix
···
preferLocalBuild = true;
-
src = binaries."${stdenv.system}" or (throw "unsupported system: ${stdenv.system}");
+
src = binaries."${stdenv.hostPlatform.system}" or (throw "unsupported system: ${stdenv.hostPlatform.system}");
libPath = stdenv.lib.makeLibraryPath
[ stdenv.cc.cc
+3 -3
pkgs/development/compilers/nvidia-cg-toolkit/default.nix
···
name = "nvidia-cg-toolkit-${version}";
src =
-
if stdenv.system == "x86_64-linux" then
+
if stdenv.hostPlatform.system == "x86_64-linux" then
fetchurl {
url = "https://developer.download.nvidia.com/cg/Cg_${version}/Cg-${version}_${date}_x86_64.tgz";
sha256 = "e8ff01e6cc38d1b3fd56a083f5860737dbd2f319a39037528fb1a74a89ae9878";
}
-
else if stdenv.system == "i686-linux" then
+
else if stdenv.hostPlatform.system == "i686-linux" then
fetchurl {
url = "http://developer.download.nvidia.com/cg/Cg_${version}/Cg-${version}_${date}_x86.tgz";
sha256 = "cef3591e436f528852db0e8c145d3842f920e0c89bcfb219c466797cb7b18879";
}
-
else throw "nvidia-cg-toolkit does not support platform ${stdenv.system}";
+
else throw "nvidia-cg-toolkit does not support platform ${stdenv.hostPlatform.system}";
installPhase = ''
for b in cgc cgfxcat cginfo
+3 -3
pkgs/development/compilers/opendylan/bin.nix
···
stdenv.mkDerivation {
name = "opendylan-2013.2";
-
src = if stdenv.system == "x86_64-linux" then fetchurl {
+
src = if stdenv.hostPlatform.system == "x86_64-linux" then fetchurl {
url = https://opendylan.org/downloads/opendylan/2013.2/opendylan-2013.2-x86_64-linux.tar.bz2;
sha256 = "035brbw3hm7zrs593q4zc42yglj1gmmkw3b1r7zzlw3ks4i2lg7h";
}
-
else if stdenv.system == "i686-linux" then fetchurl {
+
else if stdenv.hostPlatform.system == "i686-linux" then fetchurl {
url = https://opendylan.org/downloads/opendylan/2013.2/opendylan-2013.2-x86-linux.tar.bz2;
sha256 = "0c61ihvblcsjrw6ncr8x8ylhskcrqs8pajs4mg5di36cvqw12nq5";
}
-
else throw "platform ${stdenv.system} not supported.";
+
else throw "platform ${stdenv.hostPlatform.system} not supported.";
buildInputs = [ patchelf boehmgc gnused makeWrapper ];
+3 -3
pkgs/development/compilers/opendylan/default.nix
···
fetchSubmodules = true;
};
-
buildInputs = (if stdenv.system == "i686-linux" then [ mps ] else [ boehmgc ]) ++ [
+
buildInputs = (if stdenv.hostPlatform.system == "i686-linux" then [ mps ] else [ boehmgc ]) ++ [
opendylan-bootstrap boehmgc gnused autoconf automake perl makeWrapper
];
-
preConfigure = if stdenv.system == "i686-linux" then ''
+
preConfigure = if stdenv.hostPlatform.system == "i686-linux" then ''
mkdir -p $TMPDIR/mps
tar --strip-components=1 -xf ${mps.src} -C $TMPDIR/mps
./autogen.sh
···
'';
configureFlags = [
-
(if stdenv.system == "i686-linux" then "--with-mps=$(TMPDIR)/mps" else "--with-gc=${boehmgc.out}")
+
(if stdenv.hostPlatform.system == "i686-linux" then "--with-mps=$(TMPDIR)/mps" else "--with-gc=${boehmgc.out}")
];
buildPhase = "make 3-stage-bootstrap";
+1 -1
pkgs/development/compilers/openjdk/10.nix
···
* The JRE libraries are in directories that depend on the CPU.
*/
architecture =
-
if stdenv.system == "i686-linux" then
+
if stdenv.hostPlatform.system == "i686-linux" then
"i386"
else "amd64";
+3 -3
pkgs/development/compilers/oraclejdk/jdk-linux-base.nix
···
x86_64-linux = "amd64";
armv7l-linux = "arm";
aarch64-linux = "aarch64";
-
}.${stdenv.system};
+
}.${stdenv.hostPlatform.system};
jce =
if installjce then
···
x86_64-linux = "jdk-${productVersion}u${patchVersion}-linux-x64.tar.gz";
armv7l-linux = "jdk-${productVersion}u${patchVersion}-linux-arm32-vfp-hflt.tar.gz";
aarch64-linux = "jdk-${productVersion}u${patchVersion}-linux-arm64-vfp-hflt.tar.gz";
-
}.${stdenv.system};
+
}.${stdenv.hostPlatform.system};
url = downloadUrl;
-
sha256 = sha256.${stdenv.system};
+
sha256 = sha256.${stdenv.hostPlatform.system};
};
nativeBuildInputs = [ file ]
+1 -1
pkgs/development/compilers/orc/default.nix
···
'';
# https://bugzilla.gnome.org/show_bug.cgi?id=728129#c15
-
doCheck = stdenv.system != "i686-linux"; # not sure about cross-compiling
+
doCheck = stdenv.hostPlatform.system != "i686-linux"; # not sure about cross-compiling
meta = with stdenv.lib; {
description = "The Oil Runtime Compiler";
+2 -2
pkgs/development/compilers/picat/default.nix
···
sha256 = "0wvl95gf4pjs93632g4wi0mw1glzzhjp9g4xg93ll2zxggbxibli";
};
-
ARCH = if stdenv.system == "i686-linux" then "linux32"
-
else if stdenv.system == "x86_64-linux" then "linux64"
+
ARCH = if stdenv.hostPlatform.system == "i686-linux" then "linux32"
+
else if stdenv.hostPlatform.system == "x86_64-linux" then "linux64"
else throw "Unsupported system";
hardeningDisable = [ "format" ];
+7 -7
pkgs/development/compilers/rust/bootstrap.nix
···
};
platform =
-
if stdenv.system == "i686-linux"
+
if stdenv.hostPlatform.system == "i686-linux"
then "i686-unknown-linux-gnu"
-
else if stdenv.system == "x86_64-linux"
+
else if stdenv.hostPlatform.system == "x86_64-linux"
then "x86_64-unknown-linux-gnu"
-
else if stdenv.system == "armv7l-linux"
+
else if stdenv.hostPlatform.system == "armv7l-linux"
then "armv7-unknown-linux-gnueabihf"
-
else if stdenv.system == "aarch64-linux"
+
else if stdenv.hostPlatform.system == "aarch64-linux"
then "aarch64-unknown-linux-gnu"
-
else if stdenv.system == "i686-darwin"
+
else if stdenv.hostPlatform.system == "i686-darwin"
then "i686-apple-darwin"
-
else if stdenv.system == "x86_64-darwin"
+
else if stdenv.hostPlatform.system == "x86_64-darwin"
then "x86_64-apple-darwin"
-
else throw "missing bootstrap url for platform ${stdenv.system}";
+
else throw "missing bootstrap url for platform ${stdenv.hostPlatform.system}";
src = fetchurl {
url = "https://static.rust-lang.org/dist/rust-${version}-${platform}.tar.gz";
+2 -2
pkgs/development/compilers/sbcl/bootstrap.nix
···
sha256 = "05c12fmac4ha72k1ckl6i780rckd7jh4g5s5hiic7fjxnf1kx8d0";
};
};
-
cfg = options.${stdenv.system};
+
cfg = options.${stdenv.hostPlatform.system};
in
-
assert builtins.hasAttr stdenv.system options;
+
assert builtins.hasAttr stdenv.hostPlatform.system options;
stdenv.mkDerivation rec {
name = "sbcl-bootstrap-${version}";
version = cfg.version;
+1 -1
pkgs/development/compilers/sbcl/default.nix
···
{ stdenv, fetchurl, writeText, sbclBootstrap
, sbclBootstrapHost ? "${sbclBootstrap}/bin/sbcl --disable-debugger --no-userinit --no-sysinit"
-
, threadSupport ? (stdenv.isi686 || stdenv.isx86_64 || "aarch64-linux" == stdenv.system)
+
, threadSupport ? (stdenv.isi686 || stdenv.isx86_64 || "aarch64-linux" == stdenv.hostPlatform.system)
# Meant for sbcl used for creating binaries portable to non-NixOS via save-lisp-and-die.
# Note that the created binaries still need `patchelf --set-interpreter ...`
# to get rid of ${glibc} dependency.
+1 -1
pkgs/development/interpreters/dart/default.nix
···
unzip
];
-
src = sources."${version}-${stdenv.system}" or (throw "unsupported version/system: ${version}/${stdenv.system}");
+
src = sources."${version}-${stdenv.hostPlatform.system}" or (throw "unsupported version/system: ${version}/${stdenv.hostPlatform.system}");
installPhase = ''
mkdir -p $out
+1 -1
pkgs/development/interpreters/spidermonkey/1.8.5.nix
···
# of polkit, which is what matters most, it does not override the allocator
# so the failure of that test does not matter much.
configureFlags = [ "--enable-threadsafe" "--with-system-nspr" ] ++
-
stdenv.lib.optionals (stdenv.system == "armv5tel-linux") [
+
stdenv.lib.optionals (stdenv.hostPlatform.system == "armv5tel-linux") [
"--with-cpu-arch=armv5t"
"--disable-tracejit" ];
+1 -1
pkgs/development/libraries/apr/default.nix
···
configureFlags =
# Including the Windows headers breaks unistd.h.
# Based on ftp://sourceware.org/pub/cygwin/release/libapr1/libapr1-1.3.8-2-src.tar.bz2
-
stdenv.lib.optional (stdenv.system == "i686-cygwin") "ac_cv_header_windows_h=no";
+
stdenv.lib.optional (stdenv.hostPlatform.system == "i686-cygwin") "ac_cv_header_windows_h=no";
enableParallelBuilding = true;
+2 -2
pkgs/development/libraries/audio/libbass/default.nix
···
dontBuild = true;
installPhase =
let so =
-
if bass.so ? ${stdenv.system} then bass.so.${stdenv.system}
-
else throw "${name} not packaged for ${stdenv.system} (yet).";
+
if bass.so ? ${stdenv.hostPlatform.system} then bass.so.${stdenv.hostPlatform.system}
+
else throw "${name} not packaged for ${stdenv.hostPlatform.system} (yet).";
in ''
mkdir -p $out/{lib,include}
install -m644 -t $out/lib/ ${so}
+1 -1
pkgs/development/libraries/bootil/default.nix
···
platform =
if stdenv.isLinux then "linux"
else if stdenv.isDarwin then "macosx"
-
else throw "unrecognized system ${stdenv.system}";
+
else throw "unrecognized system ${stdenv.hostPlatform.system}";
buildInputs = [ premake4 ];
+4 -3
pkgs/development/libraries/crypto++/default.nix
···
sha256 = "1yk7jyf4va9425cg05llskpls2jm7n3jwy2hj5jm74zkr4mwpvl7";
};
-
patches = with stdenv;
-
lib.optional (system != "i686-cygwin") ./dll.patch
-
++ lib.optional isDarwin ./GNUmakefile-darwin.patch;
+
patches = stdenv.lib.concatLists [
+
(stdenv.lib.optional (stdenv.hostPlatform.system != "i686-cygwin") ./dll.patch)
+
(stdenv.lib.optional stdenv.hostPlatform.isDarwin ./GNUmakefile-darwin.patch)
+
];
configurePhase = let
+4 -1
pkgs/development/libraries/gpgme/default.nix
···
, withPython ? false, swig2 ? null, python ? null
}:
-
let inherit (stdenv) lib system; in
+
let
+
inherit (stdenv) lib;
+
inherit (stdenv.hostPlatform) system;
+
in
stdenv.mkDerivation rec {
name = "gpgme-${version}";
+1 -1
pkgs/development/libraries/gsl/default.nix
···
];
# https://lists.gnu.org/archive/html/bug-gsl/2015-11/msg00012.html
-
doCheck = stdenv.system != "i686-linux" && stdenv.system != "aarch64-linux";
+
doCheck = stdenv.hostPlatform.system != "i686-linux" && stdenv.hostPlatform.system != "aarch64-linux";
meta = {
description = "The GNU Scientific Library, a large numerical library";
+1 -1
pkgs/development/libraries/java/jzmq/default.nix
···
buildInputs = [ zeromq3 jdk ];
preConfigure = ''
-
${if stdenv.system == "x86_64-darwin" then
+
${if stdenv.hostPlatform.system == "x86_64-darwin" then
'' sed -i -e 's~/Headers~/include~' -e 's~_JNI_INC_SUBDIRS=\".*\"~_JNI_INC_SUBDIRS=\"darwin\"~' configure
'' else ""}
'';
+1 -1
pkgs/development/libraries/java/swt/default.nix
···
sha256 = "00k1mfbncvyh8klgmk0891w8jwnd5niqb16j1j8yacrm2smmlb05"; };
};
-
metadata = assert platformMap ? ${stdenv.system}; platformMap.${stdenv.system};
+
metadata = assert platformMap ? ${stdenv.hostPlatform.system}; platformMap.${stdenv.hostPlatform.system};
in stdenv.mkDerivation rec {
version = "4.5";
+6 -6
pkgs/development/libraries/libspotify/default.nix
···
let
version = "12.1.51";
-
isLinux = (stdenv.system == "x86_64-linux" || stdenv.system == "i686-linux");
+
isLinux = (stdenv.hostPlatform.system == "x86_64-linux" || stdenv.hostPlatform.system == "i686-linux");
in
-
if (stdenv.system != "x86_64-linux" && stdenv.system != "x86_64-darwin" && stdenv.system != "i686-linux")
+
if (stdenv.hostPlatform.system != "x86_64-linux" && stdenv.hostPlatform.system != "x86_64-darwin" && stdenv.hostPlatform.system != "i686-linux")
then throw "Check https://developer.spotify.com/technologies/libspotify/ for a tarball for your system and add it here"
else stdenv.mkDerivation {
name = "libspotify-${version}";
src =
-
if stdenv.system == "x86_64-linux" then
+
if stdenv.hostPlatform.system == "x86_64-linux" then
fetchurl {
url = "https://developer.spotify.com/download/libspotify/libspotify-${version}-Linux-x86_64-release.tar.gz";
sha256 = "0n0h94i4xg46hfba95n3ypah93crwb80bhgsg00f6sms683lx8a3";
}
-
else if stdenv.system == "x86_64-darwin" then
+
else if stdenv.hostPlatform.system == "x86_64-darwin" then
fetchurl {
url = "https://developer.spotify.com/download/libspotify/libspotify-${version}-Darwin-universal.zip";
sha256 = "1gcgrc8arim3hnszcc886lmcdb4iigc08abkaa02l6gng43ky1c0";
}
-
else if stdenv.system == "i686-linux" then
+
else if stdenv.hostPlatform.system == "i686-linux" then
fetchurl {
url = "https://developer.spotify.com/download/libspotify/libspotify-${version}-Linux-i686-release.tar.gz";
sha256 = "1bjmn64gbr4p9irq426yap4ipq9rb84zsyhjjr7frmmw22xb86ll";
···
# darwin-specific
-
buildInputs = stdenv.lib.optional (stdenv.system == "x86_64-darwin") unzip;
+
buildInputs = stdenv.lib.optional (stdenv.hostPlatform.system == "x86_64-darwin") unzip;
# linux-specific
installFlags = stdenv.lib.optionalString (isLinux)
+1 -1
pkgs/development/libraries/live555/default.nix
···
i686-linux = "linux";
x86_64-linux = "linux-64bit";
aarch64-linux = "linux-64bit";
-
}.${stdenv.system}}
+
}.${stdenv.hostPlatform.system}}
'';
installPhase = ''
+1 -1
pkgs/development/libraries/mesa/default.nix
···
with stdenv.lib;
-
if ! lists.elem stdenv.system platforms.mesaPlatforms then
+
if ! lists.elem stdenv.hostPlatform.system platforms.mesaPlatforms then
throw "unsupported platform for Mesa"
else
+2 -2
pkgs/development/libraries/nettle/generic.nix
···
nativeBuildInputs = [ gnum4 ];
propagatedBuildInputs = [ gmp ];
-
doCheck = (stdenv.system != "i686-cygwin" && !stdenv.isDarwin);
+
doCheck = (stdenv.hostPlatform.system != "i686-cygwin" && !stdenv.isDarwin);
enableParallelBuilding = true;
-
patches = stdenv.lib.optional (stdenv.system == "i686-cygwin")
+
patches = stdenv.lib.optional (stdenv.hostPlatform.system == "i686-cygwin")
./cygwin.patch;
meta = with stdenv.lib; {
+3 -3
pkgs/development/libraries/opencv/3.x.nix
···
sha256 = "1ys9mshfpm8iy8h4ml792gnqrq959dsrcv26axx14niivxyjbji8";
} + "/ippicv";
files = let name = platform : "ippicv_2017u3_${platform}_general_20180518.tgz"; in
-
if stdenv.system == "x86_64-linux" then
+
if stdenv.hostPlatform.system == "x86_64-linux" then
{ ${name "lnx_intel64"} = "b7cc351267db2d34b9efa1cd22ff0572"; }
-
else if stdenv.system == "i686-linux" then
+
else if stdenv.hostPlatform.system == "i686-linux" then
{ ${name "lnx_ia32"} = "ea72de74dae3c604eb6348395366e78e"; }
-
else if stdenv.system == "x86_64-darwin" then
+
else if stdenv.hostPlatform.system == "x86_64-darwin" then
{ ${name "mac_intel64"} = "3ae52b9be0fe73dd45bc5e9429cd3732"; }
else
throw "ICV is not available for this platform (or not yet supported by this package)";
+3 -3
pkgs/development/libraries/oracle-instantclient/default.nix
···
sha256 = hash;
});
-
throwSystem = throw "Unsupported system: ${stdenv.system}";
+
throwSystem = throw "Unsupported system: ${stdenv.hostPlatform.system}";
arch = {
"x86_64-linux" = "linux.x64";
"x86_64-darwin" = "macos.x64";
-
}."${stdenv.system}" or throwSystem;
+
}."${stdenv.hostPlatform.system}" or throwSystem;
srcs = {
"x86_64-linux" = [
···
(requireSource "sdk" arch version "2" "e0befca9c4e71ebc9f444957ffa70f01aeeec5976ea27c40406471b04c34848b")
(requireSource "sqlplus" arch version "2" "d147cbb5b2a954fdcb4b642df4f0bd1153fd56e0f56e7fa301601b4f7e2abe0e") ]
++ optional odbcSupport (requireSource "odbc" arch version "2" "1805c1ab6c8c5e8df7bdcc35d7f2b94c329ecf4dff9bde55d5f9b159ecd8b64e");
-
}."${stdenv.system}" or throwSystem;
+
}."${stdenv.hostPlatform.system}" or throwSystem;
extLib = stdenv.hostPlatform.extensions.sharedLibrary;
in stdenv.mkDerivation rec {
+1 -1
pkgs/development/libraries/physics/geant4/fetch.nix
···
{ stdenv, fetchurl }:
let
-
fetch = { version, src ? builtins.getAttr stdenv.system sources, sources ? null }:
+
fetch = { version, src ? builtins.getAttr stdenv.hostPlatform.system sources, sources ? null }:
{
inherit version src;
};
+3 -3
pkgs/development/libraries/science/math/openblas/default.nix
···
let
config =
-
configs.${stdenv.system}
-
or (throw "unsupported system: ${stdenv.system}");
+
configs.${stdenv.hostPlatform.system}
+
or (throw "unsupported system: ${stdenv.hostPlatform.system}");
in
let
blas64 =
if blas64_ != null
then blas64_
-
else hasPrefix "x86_64" stdenv.system;
+
else hasPrefix "x86_64" stdenv.hostPlatform.system;
in
stdenv.mkDerivation rec {
name = "openblas-${version}";
+2 -2
pkgs/development/libraries/scmccid/default.nix
···
stdenv.mkDerivation rec {
name = "scmccid-5.0.11";
-
src = if stdenv.system == "i686-linux" then (fetchurl {
+
src = if stdenv.hostPlatform.system == "i686-linux" then (fetchurl {
url = "http://www.scmmicro.com/support/download/scmccid_5.0.11_linux.tar.gz";
sha256 = "1r5wkarhzl09ncgj55baizf573czw0nplh1pgddzx9xck66kh5bm";
})
-
else if stdenv.system == "x86_64-linux" then (fetchurl {
+
else if stdenv.hostPlatform.system == "x86_64-linux" then (fetchurl {
url = "http://www.scmmicro.com/support/download/scmccid_5.0.11_linux_x64.tar.gz";
sha256 = "0k9lzlk01sl4ycfqgrqqy3bildz0mcr1r0kkicgjz96l4s0jgz0i";
})
+1 -1
pkgs/development/libraries/skalibs/default.nix
···
# Explicitly setting target ensures code can be compiled against a skalibs
# binary built on a different version of darwin.
# http://www.skarnet.org/cgi-bin/archive.cgi?1:mss:623:heiodchokfjdkonfhdph
-
++ (stdenv.lib.optional stdenv.isDarwin "--build=${stdenv.system}");
+
++ (stdenv.lib.optional stdenv.isDarwin "--build=${stdenv.hostPlatform.system}");
postInstall = ''
mkdir -p $doc/share/doc/skalibs
+9 -9
pkgs/development/libraries/tachyon/default.nix
···
export USEPNG=" -DUSEPNG"
export PNGLIB=" -lpng -lz"
'';
-
arch = if stdenv.system == "x86_64-linux" then "linux-64-thr" else
-
if stdenv.system == "i686-linux" then "linux-thr" else
-
if stdenv.system == "aarch64-linux" then "linux-arm-thr" else
-
if stdenv.system == "armv7l-linux" then "linux-arm-thr" else
-
if stdenv.system == "x86_64-darwin" then "macosx-thr" else
-
if stdenv.system == "i686-darwin" then "macosx-64-thr" else
-
if stdenv.system == "i686-cygwin" then "win32" else
-
if stdenv.system == "x86_64-freebsd" then "bsd" else
-
if stdenv.system == "x686-freebsd" then "bsd" else
+
arch = if stdenv.hostPlatform.system == "x86_64-linux" then "linux-64-thr" else
+
if stdenv.hostPlatform.system == "i686-linux" then "linux-thr" else
+
if stdenv.hostPlatform.system == "aarch64-linux" then "linux-arm-thr" else
+
if stdenv.hostPlatform.system == "armv7l-linux" then "linux-arm-thr" else
+
if stdenv.hostPlatform.system == "x86_64-darwin" then "macosx-thr" else
+
if stdenv.hostPlatform.system == "i686-darwin" then "macosx-64-thr" else
+
if stdenv.hostPlatform.system == "i686-cygwin" then "win32" else
+
if stdenv.hostPlatform.system == "x86_64-freebsd" then "bsd" else
+
if stdenv.hostPlatform.system == "x686-freebsd" then "bsd" else
throw "Don't know what arch to select for tachyon build";
makeFlags = "${arch}";
patches = [
+1 -1
pkgs/development/libraries/v8/3.14.nix
···
installPhase = ''
install -vD out/Release/d8 "$out/bin/d8"
-
${if stdenv.system == "x86_64-darwin" then ''
+
${if stdenv.hostPlatform.system == "x86_64-darwin" then ''
install -vD out/Release/lib.target/libv8.dylib "$out/lib/libv8.dylib"
'' else ''
install -vD out/Release/lib.target/libv8.so "$out/lib/libv8.so"
+1 -1
pkgs/development/libraries/vigra/default.nix
···
preConfigure = "cmakeFlags+=\" -DVIGRANUMPY_INSTALL_DIR=$out/lib/${python.libPrefix}/site-packages\"";
cmakeFlags = [ "-DWITH_OPENEXR=1" ]
-
++ stdenv.lib.optionals (stdenv.system == "x86_64-linux")
+
++ stdenv.lib.optionals (stdenv.hostPlatform.system == "x86_64-linux")
[ "-DCMAKE_CXX_FLAGS=-fPIC" "-DCMAKE_C_FLAGS=-fPIC" ];
enableParallelBuilding = true;
+1 -1
pkgs/development/libraries/vxl/default.nix
···
# in stdenv linux headers
# BUILD_BRL fails to find open()
cmakeFlags = "-DBUILD_TESTING=OFF -DBUILD_OUL=OFF -DBUILD_BRL=OFF -DBUILD_CONTRIB=OFF "
-
+ (if stdenv.system == "x86_64-linux" then
+
+ (if stdenv.hostPlatform.system == "x86_64-linux" then
"-DCMAKE_CXX_FLAGS=-fPIC -DCMAKE_C_FLAGS=-fPIC"
else
"");
+1 -1
pkgs/development/libraries/wtk/default.nix
···
{ stdenv, requireFile, unzip, xorg }:
-
assert stdenv.system == "i686-linux";
+
assert stdenv.hostPlatform.system == "i686-linux";
stdenv.mkDerivation rec {
name = "sun-java-wtk-2.5.2_01";
+2 -2
pkgs/development/misc/amdapp-sdk/default.nix
···
let
-
bits = if stdenv.system == "x86_64-linux" then "64"
+
bits = if stdenv.hostPlatform.system == "x86_64-linux" then "64"
else "32";
-
arch = if stdenv.system == "x86_64-linux" then "x86_64"
+
arch = if stdenv.hostPlatform.system == "x86_64-linux" then "x86_64"
else "x86";
src_info = {
+2 -2
pkgs/development/mobile/androidenv/androidndk.nix
···
name = "android-ndk-r${version}";
inherit version;
-
src = if stdenv.system == "x86_64-linux" then fetchurl {
+
src = if stdenv.hostPlatform.system == "x86_64-linux" then fetchurl {
url = "https://dl.google.com/android/repository/${name}-linux-x86_64.zip";
inherit sha256;
-
} else throw "platform ${stdenv.system} not supported!";
+
} else throw "platform ${stdenv.hostPlatform.system} not supported!";
phases = "buildPhase";
+3 -3
pkgs/development/mobile/androidenv/androidndk_r8e.nix
···
stdenv.mkDerivation rec {
name = "android-ndk-r8e";
-
src = if stdenv.system == "i686-linux"
+
src = if stdenv.hostPlatform.system == "i686-linux"
then fetchurl {
url = "http://dl.google.com/android/ndk/${name}-linux-x86.tar.bz2";
sha256 = "c2c4e0c8b3037149a0f5dbb08d72f814a52af4da9fff9d80328c675457e95a98";
}
-
else if stdenv.system == "x86_64-linux" then fetchurl {
+
else if stdenv.hostPlatform.system == "x86_64-linux" then fetchurl {
url = "http://dl.google.com/android/ndk/${name}-linux-x86_64.tar.bz2";
sha256 = "093gf55zbh38p2gk5bdykj1vg9p5l774wjdzw5mhk4144jm1wdq7";
}
-
else throw "platform ${stdenv.system} not supported!";
+
else throw "platform ${stdenv.hostPlatform.system} not supported!";
phases = "buildPhase";
+9 -9
pkgs/development/mobile/androidenv/androidsdk.nix
···
name = "android-sdk-${version}";
version = "25.2.5";
-
src = if (stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux")
+
src = if (stdenv.hostPlatform.system == "i686-linux" || stdenv.hostPlatform.system == "x86_64-linux")
then fetchurl {
url = "https://dl.google.com/android/repository/tools_r${version}-linux.zip";
sha256 = "0gnk49pkwy4m0nqwm1xnf3w4mfpi9w0kk7841xlawpwbkj0icxap";
}
-
else if stdenv.system == "x86_64-darwin" then fetchurl {
+
else if stdenv.hostPlatform.system == "x86_64-darwin" then fetchurl {
url = "http://dl.google.com/android/repository/tools_r${version}-macosx.zip";
sha256 = "0yg7wjmyw70xsh8k4hgbqb5rilam2a94yc8dwbh7fjwqcmpxgwqb";
}
-
else throw "platform not ${stdenv.system} supported!";
+
else throw "platform not ${stdenv.hostPlatform.system} supported!";
buildCommand = ''
mkdir -p $out/libexec
···
sed -i -e "s|/bin/ls|${coreutils}/bin/ls|" "$f"
done
-
${stdenv.lib.optionalString (stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux")
+
${stdenv.lib.optionalString (stdenv.hostPlatform.system == "i686-linux" || stdenv.hostPlatform.system == "x86_64-linux")
''
# There are a number of native binaries. We must patch them to let them find the interpreter and libstdc++
···
patchelf --set-rpath ${stdenv_32bit.cc.cc.lib}/lib $i
done
-
${stdenv.lib.optionalString (stdenv.system == "x86_64-linux") ''
+
${stdenv.lib.optionalString (stdenv.hostPlatform.system == "x86_64-linux") ''
for i in bin64/{mkfs.ext4,fsck.ext4,e2fsck,tune2fs,resize2fs}
do
patchelf --set-interpreter ${stdenv.cc.libc.out}/lib/ld-linux-x86-64.so.2 $i
···
done
''}
-
${stdenv.lib.optionalString (stdenv.system == "x86_64-linux") ''
+
${stdenv.lib.optionalString (stdenv.hostPlatform.system == "x86_64-linux") ''
# We must also patch the 64-bit emulator instances, if needed
for i in emulator emulator64-arm emulator64-mips emulator64-x86 emulator64-crash-service emulator-check qemu/linux-x86_64/qemu-system-*
···
# The emulators need additional libraries, which are dynamically loaded => let's wrap them
-
${stdenv.lib.optionalString (stdenv.system == "x86_64-linux") ''
+
${stdenv.lib.optionalString (stdenv.hostPlatform.system == "x86_64-linux") ''
for i in emulator emulator64-arm emulator64-mips emulator64-x86 emulator64-crash-service
do
wrapProgram `pwd`/$i \
···
patchShebangs .
-
${if stdenv.system == "i686-linux" then
+
${if stdenv.hostPlatform.system == "i686-linux" then
''
# The monitor requires some more patching
···
cd ../..
''
-
else if stdenv.system == "x86_64-linux" then
+
else if stdenv.hostPlatform.system == "x86_64-linux" then
''
# The monitor requires some more patching
+4 -4
pkgs/development/mobile/androidenv/build-tools.nix
···
stdenv.mkDerivation rec {
version = "26.0.2";
name = "android-build-tools-r${version}";
-
src = if (stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux")
+
src = if (stdenv.hostPlatform.system == "i686-linux" || stdenv.hostPlatform.system == "x86_64-linux")
then fetchurl {
url = "https://dl.google.com/android/repository/build-tools_r${version}-linux.zip";
sha256 = "1kii880bwhjkc343zwx1ysxyisxhczrwhphnxbwsgi45mjgq8lm7";
}
-
else if stdenv.system == "x86_64-darwin" then fetchurl {
+
else if stdenv.hostPlatform.system == "x86_64-darwin" then fetchurl {
url = "https://dl.google.com/android/repository/build-tools_r${version}-macosx.zip";
sha256 = "1x0ycprl6hgsm23kck5ind7x00hzydc5k3h3ch4a13407xbpvzvx";
}
-
else throw "System ${stdenv.system} not supported!";
+
else throw "System ${stdenv.hostPlatform.system} not supported!";
buildCommand = ''
mkdir -p $out/build-tools
···
unzip $src
mv android-* ${version}
-
${stdenv.lib.optionalString (stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux")
+
${stdenv.lib.optionalString (stdenv.hostPlatform.system == "i686-linux" || stdenv.hostPlatform.system == "x86_64-linux")
''
cd ${version}
+3 -3
pkgs/development/mobile/androidenv/default.nix
···
inherit (pkgs) stdenv fetchurl unzip;
};
-
platforms = if (pkgs.stdenv.system == "i686-linux" || pkgs.stdenv.system == "x86_64-linux")
+
platforms = if (pkgs.stdenv.hostPlatform.system == "i686-linux" || pkgs.stdenv.hostPlatform.system == "x86_64-linux")
then import ./platforms-linux.nix {
inherit (pkgs) stdenv fetchurl unzip;
}
-
else if pkgs.stdenv.system == "x86_64-darwin"
+
else if pkgs.stdenv.hostPlatform.system == "x86_64-darwin"
then import ./platforms-macosx.nix {
inherit (pkgs) stdenv fetchurl unzip;
}
-
else throw "Platform: ${pkgs.stdenv.system} not supported!";
+
else throw "Platform: ${pkgs.stdenv.hostPlatform.system} not supported!";
sysimages = import ./sysimages.nix {
inherit (pkgs) stdenv fetchurl unzip;
+4 -4
pkgs/development/mobile/androidenv/platform-tools.nix
···
stdenv.mkDerivation rec {
version = "26.0.2";
name = "android-platform-tools-r${version}";
-
src = if (stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux")
+
src = if (stdenv.hostPlatform.system == "i686-linux" || stdenv.hostPlatform.system == "x86_64-linux")
then fetchurl {
url = "https://dl.google.com/android/repository/platform-tools_r${version}-linux.zip";
sha256 = "0695npvxljbbh8xwfm65k34fcpyfkzvfkssgnp46wkmnq8w5mcb3";
}
-
else if stdenv.system == "x86_64-darwin" then fetchurl {
+
else if stdenv.hostPlatform.system == "x86_64-darwin" then fetchurl {
url = "https://dl.google.com/android/repository/platform-tools_r${version}-darwin.zip";
sha256 = "0gy7apw9pmnnm41z6ywglw5va4ghmny4j57778may4q7ar751l56";
}
-
else throw "System ${stdenv.system} not supported!";
+
else throw "System ${stdenv.hostPlatform.system} not supported!";
buildCommand = ''
mkdir -p $out
···
unzip $src
cd platform-tools
-
${stdenv.lib.optionalString (stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux")
+
${stdenv.lib.optionalString (stdenv.hostPlatform.system == "i686-linux" || stdenv.hostPlatform.system == "x86_64-linux")
''
for i in adb dmtracedump fastboot hprof-conv sqlite3
do
+1 -1
pkgs/development/mobile/titaniumenv/build-app.nix
···
name = stdenv.lib.replaceChars [" "] [""] name;
inherit src;
-
buildInputs = [ nodejs titanium alloy jdk python which file ] ++ stdenv.lib.optional (stdenv.system == "x86_64-darwin") xcodewrapper;
+
buildInputs = [ nodejs titanium alloy jdk python which file ] ++ stdenv.lib.optional (stdenv.hostPlatform.system == "x86_64-darwin") xcodewrapper;
buildPhase = ''
${preBuild}
+1 -1
pkgs/development/mobile/titaniumenv/default.nix
···
rec {
androidenv = pkgs.androidenv;
-
xcodeenv = if pkgs.stdenv.system == "x86_64-darwin" then pkgs.xcodeenv.override {
+
xcodeenv = if pkgs.stdenv.hostPlatform.system == "x86_64-darwin" then pkgs.xcodeenv.override {
version = xcodeVersion;
inherit xcodeBaseDir;
} else null;
+6 -6
pkgs/development/mobile/titaniumenv/titaniumsdk-6.3.nix
···
stdenv.mkDerivation {
name = "mobilesdk-6.3.1.GA";
-
src = if (stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux") then fetchurl {
+
src = if (stdenv.hostPlatform.system == "i686-linux" || stdenv.hostPlatform.system == "x86_64-linux") then fetchurl {
url = http://builds.appcelerator.com/mobile/6_3_X/mobilesdk-6.3.1.v20171101154403-linux.zip;
sha256 = "0g8dqqf5ffa7ll3rqm5naywipnv2vvfxcj9fmqg1wnvvxf0rflqj";
}
-
else if stdenv.system == "x86_64-darwin" then fetchurl {
+
else if stdenv.hostPlatform.system == "x86_64-darwin" then fetchurl {
url = http://builds.appcelerator.com/mobile/6_3_X/mobilesdk-6.3.1.v20171101154403-osx.zip;
sha256 = "00bm8vv70mg4kd7jvmxd1bfqafv6zdpdx816i0hvf801zwnak4nj";
}
-
else throw "Platform: ${stdenv.system} not supported!";
+
else throw "Platform: ${stdenv.hostPlatform.system} not supported!";
buildInputs = [ unzip makeWrapper ];
···
cd mobilesdk/*
mv * 6.3.1.GA
cd *
-
${stdenv.lib.optionalString (stdenv.system == "x86_64-darwin") ''
+
${stdenv.lib.optionalString (stdenv.hostPlatform.system == "x86_64-darwin") ''
# Fixes a bad archive copying error when generating an IPA file
sed -i -e "s|cp -rf|/bin/cp -rf|" iphone/cli/commands/_build.js
''}
# Patch some executables
-
${if stdenv.system == "i686-linux" then
+
${if stdenv.hostPlatform.system == "i686-linux" then
''
patchelf --set-interpreter ${stdenv.cc.libc}/lib/ld-linux.so.2 android/titanium_prep.linux32
''
-
else if stdenv.system == "x86_64-linux" then
+
else if stdenv.hostPlatform.system == "x86_64-linux" then
''
patchelf --set-interpreter ${stdenv.cc.libc}/lib/ld-linux-x86-64.so.2 android/titanium_prep.linux64
''
+5 -5
pkgs/development/mobile/titaniumenv/titaniumsdk-7.1.nix
···
in
stdenv.mkDerivation {
name = "mobilesdk-7.1.0.GA";
-
src = if (stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux") then fetchurl {
+
src = if (stdenv.hostPlatform.system == "i686-linux" || stdenv.hostPlatform.system == "x86_64-linux") then fetchurl {
url = http://builds.appcelerator.com/mobile/7_1_X/mobilesdk-7.1.0.v20180314133955-linux.zip;
sha256 = "18b3jnr65sdn5wj191bcl48gvhyklxmighxakv4vrz1fb59kyvqn";
}
-
else if stdenv.system == "x86_64-darwin" then fetchurl {
+
else if stdenv.hostPlatform.system == "x86_64-darwin" then fetchurl {
url = http://builds.appcelerator.com/mobile/7_1_X/mobilesdk-7.1.0.v20180314133955-osx.zip;
sha256 = "1f62616biwsw1fqxz2sq7lpa6bsfjazffliplyf5dpnh298cnc1m";
}
-
else throw "Platform: ${stdenv.system} not supported!";
+
else throw "Platform: ${stdenv.hostPlatform.system} not supported!";
buildInputs = [ unzip makeWrapper ];
···
# Patch some executables
-
${if stdenv.system == "i686-linux" then
+
${if stdenv.hostPlatform.system == "i686-linux" then
''
patchelf --set-interpreter ${stdenv.cc.libc}/lib/ld-linux.so.2 android/titanium_prep.linux32
''
-
else if stdenv.system == "x86_64-linux" then
+
else if stdenv.hostPlatform.system == "x86_64-linux" then
''
patchelf --set-interpreter ${stdenv.cc.libc}/lib/ld-linux-x86-64.so.2 android/titanium_prep.linux64
''
+3 -2
pkgs/development/node-packages/default-v10.nix
···
-
{pkgs, system, nodejs, stdenv}:
+
{ pkgs, nodejs, stdenv }:
let
nodePackages = import ./composition-v10.nix {
-
inherit pkgs system nodejs;
+
inherit pkgs nodejs;
+
inherit (stdenv.hostPlatform) system;
};
in
nodePackages // {
+3 -2
pkgs/development/node-packages/default-v6.nix
···
-
{pkgs, system, nodejs, stdenv}:
+
{ pkgs, nodejs, stdenv }:
let
nodePackages = import ./composition-v6.nix {
-
inherit pkgs system nodejs;
+
inherit pkgs nodejs;
+
inherit (stdenv.hostPlatform) system;
};
in
nodePackages // {
+3 -2
pkgs/development/node-packages/default-v8.nix
···
-
{pkgs, system, nodejs, stdenv}:
+
{ pkgs, nodejs, stdenv }:
let
nodePackages = import ./composition-v8.nix {
-
inherit pkgs system nodejs;
+
inherit pkgs nodejs;
+
inherit (stdenv.hostPlatform) system;
};
in
nodePackages // {
+1 -1
pkgs/development/ruby-modules/testing/stubs.nix
···
text = (builtins.toJSON (lib.filterAttrs ( n: v: builtins.any (x: x == n) ["name" "system"]) argSet));
builder = stdenv.shell;
args = [ "-c" "echo $(<$textPath) > $out"];
-
system = stdenv.system;
+
system = stdenv.hostPlatform.system;
passAsFile = ["text"];
};
fetchurl = {url?"", urls ? [],...}: "fetchurl:${if urls == [] then url else builtins.head urls}";
+1 -1
pkgs/development/tools/analysis/cov-build/default.nix
···
version = "7.0.2";
src =
-
if stdenv.system == "i686-linux"
+
if stdenv.hostPlatform.system == "i686-linux"
then requireFile {
name = "cov-analysis-linux32-${version}.tar.gz";
sha256 = "0i06wbd7blgx9adh9w09by4i18vwmldfp9ix97a5dph2cjymsviy";
+1 -1
pkgs/development/tools/analysis/valgrind/default.nix
···
'';
configureFlags =
-
stdenv.lib.optional (stdenv.system == "x86_64-linux" || stdenv.system == "x86_64-darwin") "--enable-only64bit";
+
stdenv.lib.optional (stdenv.hostPlatform.system == "x86_64-linux" || stdenv.hostPlatform.system == "x86_64-darwin") "--enable-only64bit";
doCheck = false; # fails
+2 -2
pkgs/development/tools/electron/default.nix
···
version = "1.8.2";
name = "electron-${version}";
-
throwSystem = throw "Unsupported system: ${stdenv.system}";
+
throwSystem = throw "Unsupported system: ${stdenv.hostPlatform.system}";
meta = with stdenv.lib; {
description = "Cross platform desktop application shell";
···
url = "https://github.com/electron/electron/releases/download/v${version}/electron-v${version}-linux-arm64.zip";
sha256 = "0k4np2d4y15x1qfay8y9m8v9y223vdpbq5fdxa3ywbbyf8j361zd";
};
-
}.${stdenv.system} or throwSystem;
+
}.${stdenv.hostPlatform.system} or throwSystem;
buildInputs = [ unzip makeWrapper ];
+3 -3
pkgs/development/tools/github/github-release/default.nix
···
{ stdenv, fetchurl }:
let
-
linuxPredicate = stdenv.system == "x86_64-linux";
-
bsdPredicate = stdenv.system == "x86_64-freebsd";
-
darwinPredicate = stdenv.system == "x86_64-darwin";
+
linuxPredicate = stdenv.hostPlatform.system == "x86_64-linux";
+
bsdPredicate = stdenv.hostPlatform.system == "x86_64-freebsd";
+
darwinPredicate = stdenv.hostPlatform.system == "x86_64-darwin";
metadata = assert linuxPredicate || bsdPredicate || darwinPredicate;
if linuxPredicate then
{ arch = "linux-amd64";
+1 -1
pkgs/development/tools/google-app-engine-go-sdk/default.nix
···
name = "google-app-engine-go-sdk-${version}";
version = "1.9.61";
src =
-
if stdenv.system == "x86_64-linux" then
+
if stdenv.hostPlatform.system == "x86_64-linux" then
fetchzip {
url = "https://storage.googleapis.com/appengine-sdks/featured/go_appengine_sdk_linux_amd64-${version}.zip";
sha256 = "1i2j9ympl1218akwsmm7yb31v0gibgpzlb657bcravi1irfv1hhs";
+1 -1
pkgs/development/tools/misc/cflow/default.nix
···
buildInputs = [ gettext ] ++
# We don't have Emacs/GTK/etc. on {Dar,Cyg}win.
stdenv.lib.optional
-
(! (stdenv.lib.lists.any (x: stdenv.system == x)
+
(! (stdenv.lib.lists.any (x: stdenv.hostPlatform.system == x)
[ "i686-cygwin" ]))
emacs;
+5 -5
pkgs/development/tools/misc/iozone/default.nix
···
{ stdenv, fetchurl, gnuplot }:
let
-
target = if stdenv.system == "i686-linux" then
+
target = if stdenv.hostPlatform.system == "i686-linux" then
"linux"
-
else if stdenv.system == "x86_64-linux" then
+
else if stdenv.hostPlatform.system == "x86_64-linux" then
"linux-AMD64"
-
else if stdenv.system == "x86_64-darwin" then
+
else if stdenv.hostPlatform.system == "x86_64-darwin" then
"macosx"
-
else if stdenv.system == "aarch64-linux" then
+
else if stdenv.hostPlatform.system == "aarch64-linux" then
"linux-arm"
-
else throw "Platform ${stdenv.system} not yet supported.";
+
else throw "Platform ${stdenv.hostPlatform.system} not yet supported.";
in
stdenv.mkDerivation rec {
+2 -2
pkgs/development/tools/misc/kibana/5.x.nix
···
archOverrides = {
"i686" = "x86";
};
-
info = splitString "-" stdenv.system;
+
info = splitString "-" stdenv.hostPlatform.system;
arch = (elemAt info 0);
elasticArch = archOverrides."${arch}" or arch;
plat = elemAt info 1;
···
src = fetchurl {
url = "https://artifacts.elastic.co/downloads/kibana/${name}-${plat}-${elasticArch}.tar.gz";
-
sha256 = shas."${stdenv.system}" or (throw "Unknown architecture");
+
sha256 = shas."${stdenv.hostPlatform.system}" or (throw "Unknown architecture");
};
buildInputs = [ makeWrapper ];
+2 -2
pkgs/development/tools/misc/kibana/default.nix
···
with stdenv.lib;
let
inherit (builtins) elemAt;
-
info = splitString "-" stdenv.system;
+
info = splitString "-" stdenv.hostPlatform.system;
arch = elemAt info 0;
plat = elemAt info 1;
shas =
···
src = fetchurl {
url = "https://artifacts.elastic.co/downloads/kibana/${name}-${plat}-${arch}.tar.gz";
-
sha256 = shas."${stdenv.system}" or (throw "Unknown architecture");
+
sha256 = shas."${stdenv.hostPlatform.system}" or (throw "Unknown architecture");
};
buildInputs = [ makeWrapper ];
+1 -1
pkgs/development/tools/misc/lsof/default.nix
···
{ stdenv, fetchurl, buildPackages, ncurses }:
-
let dialect = with stdenv.lib; last (splitString "-" stdenv.system); in
+
let dialect = with stdenv.lib; last (splitString "-" stdenv.hostPlatform.system); in
stdenv.mkDerivation rec {
name = "lsof-${version}";
+2 -2
pkgs/development/tools/misc/saleae-logic/default.nix
···
name = "${pname}-${version}";
src =
-
if stdenv.system == "i686-linux" then
+
if stdenv.hostPlatform.system == "i686-linux" then
fetchurl {
name = "saleae-logic-${version}-32bit.zip";
url = "http://downloads.saleae.com/logic/${version}/Logic%20${version}%20(32-bit).zip";
sha256 = "1dyrj07cgj2fvwi1sk97vady9ri8f8n7mxy9zyzmw9isngs7bmll";
}
-
else if stdenv.system == "x86_64-linux" then
+
else if stdenv.hostPlatform.system == "x86_64-linux" then
fetchurl {
name = "saleae-logic-${version}-64bit.zip";
url = "http://downloads.saleae.com/logic/${version}/Logic%20${version}%20(64-bit).zip";
+1 -1
pkgs/development/tools/neoload/default.nix
···
name = "neoload-4.1.4";
src = fetchurl (
-
if stdenv.system == "x86_64-linux" then
+
if stdenv.hostPlatform.system == "x86_64-linux" then
{ url = http://neoload.installers.neotys.com/documents/download/neoload/v4.1/neoload_4_1_4_linux_x64.sh;
sha256 = "199jcf5a0nwfm8wfld2rcjgq64g91vvz2bkmki8dxfzf1yasifcd"; }
else
+1 -1
pkgs/development/tools/node-webkit/nw12.nix
···
, gdk_pixbuf, cairo, nss, nspr, gconf, expat, systemd, libcap
, libnotify}:
let
-
bits = if stdenv.system == "x86_64-linux" then "x64"
+
bits = if stdenv.hostPlatform.system == "x86_64-linux" then "x64"
else "ia32";
nwEnv = buildEnv {
+1 -1
pkgs/development/tools/nwjs/default.nix
···
, sqlite, udev
}:
let
-
bits = if stdenv.system == "x86_64-linux" then "x64"
+
bits = if stdenv.hostPlatform.system == "x86_64-linux" then "x64"
else "ia32";
nwEnv = buildEnv {
+2 -2
pkgs/development/tools/phantomjs/default.nix
···
# because it has bundled a lot of external libraries (like QT and Webkit)
# and no easy/nice way to use the system versions of these
-
src = if stdenv.system == "i686-linux" then
+
src = if stdenv.hostPlatform.system == "i686-linux" then
fetchurl {
url = "https://bitbucket.org/ariya/phantomjs/downloads/${name}-linux-i686.tar.bz2";
sha256 = "11fzmssz9pqf3arh4f36w06sl2nyz8l9h8iyxyd7w5aqnq5la0j1";
}
else
-
if stdenv.system == "x86_64-linux" then
+
if stdenv.hostPlatform.system == "x86_64-linux" then
fetchurl {
url = "https://bitbucket.org/ariya/phantomjs/downloads/${name}-linux-x86_64.tar.bz2";
sha256 = "0fhnqxxsxhy125fmif1lwgnlhfx908spy7fx9mng4w72320n5nd1";
+2 -2
pkgs/development/tools/sauce-connect/default.nix
···
version = "4.4.12";
src = fetchurl (
-
if stdenv.system == "x86_64-linux" then {
+
if stdenv.hostPlatform.system == "x86_64-linux" then {
url = "https://saucelabs.com/downloads/sc-${version}-linux.tar.gz";
sha256 = "1yqvx64bgiq27hdhwkzgmzyib8pbjn1idpq6783srxq64asf6iyw";
-
} else if stdenv.system == "i686-linux" then {
+
} else if stdenv.hostPlatform.system == "i686-linux" then {
url = "https://saucelabs.com/downloads/sc-${version}-linux32.tar.gz";
sha256 = "02kib56lv4lhwkj5r15484lvvbyjvf9ydi5vccsmxgsxrzmddnl6";
} else {
+2 -2
pkgs/development/tools/selenium/chromedriver/default.nix
···
};
};
-
spec = allSpecs."${stdenv.system}"
-
or (throw "missing chromedriver binary for ${stdenv.system}");
+
spec = allSpecs."${stdenv.hostPlatform.system}"
+
or (throw "missing chromedriver binary for ${stdenv.hostPlatform.system}");
libs = stdenv.lib.makeLibraryPath [
stdenv.cc.cc.lib
+1 -1
pkgs/development/web/remarkjs/default.nix
···
nodePackages = import ./nodepkgs.nix {
inherit pkgs;
-
inherit (stdenv) system;
+
inherit (stdenv.hostPlatform) system;
};
in stdenv.mkDerivation rec {
+4 -4
pkgs/games/andyetitmoves/default.nix
···
stdenv.mkDerivation rec {
name = "${plainName}-${version}";
-
src = if stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux"
+
src = if stdenv.hostPlatform.system == "i686-linux" || stdenv.hostPlatform.system == "x86_64-linux"
then
-
let postfix = if stdenv.system == "i686-linux" then "i386" else "x86_64";
+
let postfix = if stdenv.hostPlatform.system == "i686-linux" then "i386" else "x86_64";
commercialName = "${plainName}-${version}_${postfix}.tar.gz";
demoUrl = "http://www.andyetitmoves.net/demo/${plainName}Demo-${version}_${postfix}.tar.gz";
in
···
directory where yousaved it.
'';
name = commercialName;
-
sha256 = if stdenv.system == "i686-linux"
+
sha256 = if stdenv.hostPlatform.system == "i686-linux"
then "15wvzmmidvykwjrbnq70h5jrvnjx1hcrm0357qj85q4aqbzavh01"
else "1v8z16qa9ka8sf7qq45knsxj87s6sipvv3a7xq11pb5xk08fb2ql";
}
else fetchurl {
url = demoUrl;
-
sha256 = if stdenv.system == "i686-linux"
+
sha256 = if stdenv.hostPlatform.system == "i686-linux"
then "0f14vrrbq05hsbdajrb5y9za65fpng1lc8f0adb4aaz27x7sh525"
else "0mg41ya0b27blq3b5498kwl4rj46dj21rcd7qd0rw1kyvr7sx4v4";
}
+2 -2
pkgs/games/dwarf-fortress/dfhack/default.nix
···
xmlRev = "23500e4e9bd1885365d0a2ef1746c321c1dd5094";
arch =
-
if stdenv.system == "x86_64-linux" then "64"
-
else if stdenv.system == "i686-linux" then "32"
+
if stdenv.hostPlatform.system == "x86_64-linux" then "64"
+
else if stdenv.hostPlatform.system == "i686-linux" then "32"
else throw "Unsupported architecture";
fakegit = writeScriptBin "git" ''
+3 -3
pkgs/games/dwarf-fortress/game.nix
···
game = if hasAttr dfVersion df-hashes
then getAttr dfVersion df-hashes
else throw "Unknown Dwarf Fortress version: ${dfVersion}";
-
dfPlatform = if hasAttr stdenv.system platforms
-
then getAttr stdenv.system platforms
-
else throw "Unsupported system: ${stdenv.system}";
+
dfPlatform = if hasAttr stdenv.hostPlatform.system platforms
+
then getAttr stdenv.hostPlatform.system platforms
+
else throw "Unsupported system: ${stdenv.hostPlatform.system}";
sha256 = if hasAttr dfPlatform game
then getAttr dfPlatform game
else throw "Unsupported dfPlatform: ${dfPlatform}";
+1 -1
pkgs/games/eduke32/default.nix
···
};
buildInputs = [ flac gtk2 libvorbis libvpx libGLU_combined SDL2 SDL2_mixer ]
-
++ stdenv.lib.optional (stdenv.system == "i686-linux") nasm;
+
++ stdenv.lib.optional (stdenv.hostPlatform.system == "i686-linux") nasm;
nativeBuildInputs = [ pkgconfig ];
postPatch = ''
+2 -2
pkgs/games/ezquake/default.nix
···
];
installPhase = with stdenv.lib; let
-
sys = last (splitString "-" stdenv.system);
-
arch = head (splitString "-" stdenv.system);
+
sys = last (splitString "-" stdenv.hostPlatform.system);
+
arch = head (splitString "-" stdenv.hostPlatform.system);
in ''
mkdir -p $out/bin
find .
+1 -1
pkgs/games/factorio/default.nix
···
};
};
};
-
actual = binDists.${stdenv.system}.${releaseType}.${branch} or (throw "Factorio: unsupported platform");
+
actual = binDists.${stdenv.hostPlatform.system}.${releaseType}.${branch} or (throw "Factorio: unsupported platform");
bdistForArch = arch: { sha256 ? null
, version ? "0.16.51"
+1 -1
pkgs/games/nethack/default.nix
···
let
platform =
if stdenv.hostPlatform.isUnix then "unix"
-
else throw "Unknown platform for NetHack: ${stdenv.system}";
+
else throw "Unknown platform for NetHack: ${stdenv.hostPlatform.system}";
unixHint =
if x11Mode then "linux-x11"
else if qtMode then "linux-qt4"
+2 -2
pkgs/games/oilrush/default.nix
···
assert url != null && sha256 != null;
fetchurl { inherit url sha256; };
shell = stdenv.shell;
-
arch = if stdenv.system == "x86_64-linux" then "x64"
-
else if stdenv.system == "i686-linux" then "x86"
+
arch = if stdenv.hostPlatform.system == "x86_64-linux" then "x64"
+
else if stdenv.hostPlatform.system == "i686-linux" then "x86"
else "";
unpackPhase = ''
mkdir oilrush
+1 -1
pkgs/games/openarena/default.nix
···
cd $out
unzip $src
-
${if stdenv.system == "x86_64-linux" then ''
+
${if stdenv.hostPlatform.system == "x86_64-linux" then ''
patchelf --set-interpreter "${interpreter}" "${gameDir}/openarena.x86_64"
makeWrapper "${gameDir}/openarena.x86_64" "$out/bin/openarena" \
--prefix LD_LIBRARY_PATH : "${libPath}"
+2 -2
pkgs/games/racer/default.nix
···
stdenv.mkDerivation rec {
name = "racer-1.1";
-
src = if stdenv.system == "i686-linux" then fetchurl {
+
src = if stdenv.hostPlatform.system == "i686-linux" then fetchurl {
url = http://hippo.nipax.cz/src/racer-1.1.tar.gz;
sha256 = "0fll1qkqfcjq87k0jzsilcw701z92lfxn2y5ga1n038772lymxl9";
-
} else if stdenv.system == "x86_64-linux" then fetchurl {
+
} else if stdenv.hostPlatform.system == "x86_64-linux" then fetchurl {
url = https://hippo.nipax.cz/src/racer-1.1.64.tar.gz;
sha256 = "0rjy3gmlhwfkb9zs58j0mc0dar0livwpbc19r6zw5r2k6r7xdan0";
} else
+1 -1
pkgs/games/sdlmame/default.nix
···
version = "0.151.u0-1";
name = "sdlmame-${version}";
-
src = if stdenv.system == "x86_64-linux"
+
src = if stdenv.hostPlatform.system == "x86_64-linux"
then fetchurl {
url = "http://seblu.net/a/archive/packages/s/sdlmame/${name}-x86_64.pkg.tar.xz";
sha256 = "1j9vjxhrhsskrlk5wr7al4wk2hh3983kcva42mqal09bmc8qg3m9";
+3 -3
pkgs/games/steam/default.nix
···
callPackage = newScope self;
self = rec {
-
steamArch = if pkgs.stdenv.system == "x86_64-linux" then "amd64"
-
else if pkgs.stdenv.system == "i686-linux" then "i386"
-
else throw "Unsupported platform: ${pkgs.stdenv.system}";
+
steamArch = if pkgs.stdenv.hostPlatform.system == "x86_64-linux" then "amd64"
+
else if pkgs.stdenv.hostPlatform.system == "i686-linux" then "i386"
+
else throw "Unsupported platform: ${pkgs.stdenv.hostPlatform.system}";
steam-runtime = callPackage ./runtime.nix { };
steam-runtime-wrapped = callPackage ./runtime-wrapped.nix { };
+2 -2
pkgs/games/ut2004/demo.nix
···
let
arch =
-
if stdenv.system == "x86_64-linux" then "amd64"
-
else if stdenv.system == "i686-linux" then "x86"
+
if stdenv.hostPlatform.system == "x86_64-linux" then "amd64"
+
else if stdenv.hostPlatform.system == "i686-linux" then "x86"
else throw "Unsupported architecture";
in stdenv.mkDerivation rec {
+1 -1
pkgs/games/vessel/default.nix
···
message = goBuyItNow;
name = "${name}-bin";
sha256 = "1vpwcrjiln2mx43h7ib3jnccyr3chk7a5x2bw9kb4lw8ycygvg96";
-
} else throw "unsupported platform ${stdenv.system} only i686-linux supported for now.";
+
} else throw "unsupported platform ${stdenv.hostPlatform.system} only i686-linux supported for now.";
phases = "installPhase";
ld_preload = ./isatty.c;
+1 -1
pkgs/games/worldofgoo/default.nix
···
then "WorldOfGooDemo-1.41"
else "WorldofGoo-1.41";
-
arch = if stdenv.system == "x86_64-linux" then "supported"
+
arch = if stdenv.hostPlatform.system == "x86_64-linux" then "supported"
else throw "Sorry. World of Goo only is only supported on x86_64 now.";
goBuyItNow = ''
+1 -1
pkgs/games/zandronum/fmod.nix
···
{ stdenv, lib, fetchurl, alsaLib, libpulseaudio, undmg }:
let
-
bits = stdenv.lib.optionalString (stdenv.system == "x86_64-linux") "64";
+
bits = stdenv.lib.optionalString (stdenv.hostPlatform.system == "x86_64-linux") "64";
libPath = lib.makeLibraryPath [ stdenv.cc.cc alsaLib libpulseaudio ];
in
+1 -1
pkgs/misc/base16-builder/default.nix
···
#
nodePackages = import ./node-packages.nix {
inherit pkgs;
-
inherit (stdenv) system;
+
inherit (stdenv.hostPlatform) system;
};
in nodePackages.base16-builder
+3 -3
pkgs/misc/cups/drivers/cnijfilter_4_00/default.nix
···
file included in the tarball */
let arch =
-
if stdenv.system == "x86_64-linux" then "64"
-
else if stdenv.system == "i686-linux" then "32"
-
else throw "Unsupported system ${stdenv.system}";
+
if stdenv.hostPlatform.system == "x86_64-linux" then "64"
+
else if stdenv.hostPlatform.system == "i686-linux" then "32"
+
else throw "Unsupported system ${stdenv.hostPlatform.system}";
in stdenv.mkDerivation rec {
name = "cnijfilter-${version}";
+3 -3
pkgs/misc/cups/drivers/kyocera/default.nix
···
let
platform =
-
if stdenv.system == "x86_64-linux" then "64bit"
-
else if stdenv.system == "i686-linux" then "32bit"
-
else throw "Unsupported system: ${stdenv.system}";
+
if stdenv.hostPlatform.system == "x86_64-linux" then "64bit"
+
else if stdenv.hostPlatform.system == "i686-linux" then "32bit"
+
else throw "Unsupported system: ${stdenv.hostPlatform.system}";
libPath = lib.makeLibraryPath [ cups ];
in
+3 -3
pkgs/misc/cups/drivers/kyodialog3/default.nix
···
let
platform =
-
if stdenv.system == "x86_64-linux" then "64bit"
-
else if stdenv.system == "i686-linux" then "32bit"
-
else throw "Unsupported system: ${stdenv.system}";
+
if stdenv.hostPlatform.system == "x86_64-linux" then "64bit"
+
else if stdenv.hostPlatform.system == "i686-linux" then "32bit"
+
else throw "Unsupported system: ${stdenv.hostPlatform.system}";
debPlatform =
if platform == "64bit" then "amd64"
else "i386";
+2 -2
pkgs/misc/cups/drivers/samsung/4.01.17.nix
···
# Do not bump lightly! Visit <http://www.bchemnet.com/suldr/supported.html>
# to see what will break when upgrading. Consider a new versioned attribute.
let
-
installationPath = if stdenv.system == "x86_64-linux" then "x86_64" else "i386";
-
appendPath = if stdenv.system == "x86_64-linux" then "64" else "";
+
installationPath = if stdenv.hostPlatform.system == "x86_64-linux" then "x86_64" else "i386";
+
appendPath = if stdenv.hostPlatform.system == "x86_64-linux" then "64" else "";
libPath = stdenv.lib.makeLibraryPath [ cups libusb ] + ":$out/lib:${stdenv.cc.cc.lib}/lib${appendPath}";
in stdenv.mkDerivation rec {
name = "samsung-UnifiedLinuxDriver-${version}";
+1 -1
pkgs/misc/cups/drivers/samsung/default.nix
···
let
-
arch = if stdenv.system == "x86_64-linux"
+
arch = if stdenv.hostPlatform.system == "x86_64-linux"
then "x86_64"
else "i386";
+1 -1
pkgs/misc/drivers/gutenprint/bin.nix
···
stdenv.mkDerivation {
name = "cups-gutenprint-binary-5.0.1";
-
src = if stdenv.system == "x86_64-linux" then fetchurl {
+
src = if stdenv.hostPlatform.system == "x86_64-linux" then fetchurl {
url = https://www.openprinting.org/download/printdriver/debian/dists/lsb3.1/main/binary-amd64/gutenprint_5.0.1-1lsb3.1_amd64.deb;
sha256 = "0an5gba6r6v54r53s2gj2fjk8fzpl4lrksjas2333528b0k8gbbc";
} else throw "TODO"; # get from openprint.com -> drivers -> gutenprint
+3 -3
pkgs/misc/drivers/hplip/3.16.11.nix
···
"armv7l-linux" = "arm32";
};
-
hplipArch = hplipPlatforms."${stdenv.system}"
-
or (throw "HPLIP not supported on ${stdenv.system}");
+
hplipArch = hplipPlatforms."${stdenv.hostPlatform.system}"
+
or (throw "HPLIP not supported on ${stdenv.hostPlatform.system}");
pluginArches = [ "x86_32" "x86_64" "arm32" ];
in
assert withPlugin -> builtins.elem hplipArch pluginArches
-
|| throw "HPLIP plugin not supported on ${stdenv.system}";
+
|| throw "HPLIP plugin not supported on ${stdenv.hostPlatform.system}";
pythonPackages.buildPythonApplication {
inherit name src;
+3 -3
pkgs/misc/drivers/hplip/default.nix
···
"armv7l-linux" = "arm32";
};
-
hplipArch = hplipPlatforms."${stdenv.system}"
-
or (throw "HPLIP not supported on ${stdenv.system}");
+
hplipArch = hplipPlatforms."${stdenv.hostPlatform.system}"
+
or (throw "HPLIP not supported on ${stdenv.hostPlatform.system}");
pluginArches = [ "x86_32" "x86_64" "arm32" ];
in
assert withPlugin -> builtins.elem hplipArch pluginArches
-
|| throw "HPLIP plugin not supported on ${stdenv.system}";
+
|| throw "HPLIP plugin not supported on ${stdenv.hostPlatform.system}";
pythonPackages.buildPythonApplication {
inherit name src;
+2 -2
pkgs/misc/emulators/retroarch/cores.nix
···
extraBuildInputs = [ libGLU_combined libpng ];
}).override {
-
buildPhase = "make WITH_DYNAREC=${if stdenv.system == "x86_64-linux" then "x86_64" else "x86"}";
+
buildPhase = "make WITH_DYNAREC=${if stdenv.hostPlatform.system == "x86_64-linux" then "x86_64" else "x86"}";
};
nestopia = (mkLibRetroCore rec {
···
extraBuildInputs = [ libGLU_combined libpng ];
}).override {
-
buildPhase = "make WITH_DYNAREC=${if stdenv.system == "x86_64-linux" then "x86_64" else "x86"}";
+
buildPhase = "make WITH_DYNAREC=${if stdenv.hostPlatform.system == "x86_64-linux" then "x86_64" else "x86"}";
};
picodrive = (mkLibRetroCore rec {
+2 -2
pkgs/misc/emulators/wine/default.nix
···
# };
# Make additional configurations on demand:
# wine.override { wineBuild = "wine32"; wineRelease = "staging"; };
-
{ lib, system, callPackage,
+
{ lib, stdenv, callPackage,
wineRelease ? "stable",
-
wineBuild ? (if system == "x86_64-linux" then "wineWow" else "wine32"),
+
wineBuild ? if stdenv.hostPlatform.system == "x86_64-linux" then "wineWow" else "wine32",
libtxc_dxtn_Name ? "libtxc_dxtn_s2tc",
pngSupport ? false,
jpegSupport ? false,
+1 -1
pkgs/os-specific/linux/alsa-plugins/wrapper.nix
···
{ writeScriptBin, stdenv, alsaPlugins }:
-
writeScriptBin "ap${if stdenv.system == "i686-linux" then "32" else "64"}" ''
+
writeScriptBin "ap${if stdenv.hostPlatform.system == "i686-linux" then "32" else "64"}" ''
#/bin/sh
ALSA_PLUGIN_DIRS=${alsaPlugins}/lib/alsa-lib "$@"
''
+2 -2
pkgs/os-specific/linux/amdgpu-pro/default.nix
···
bitness = if stdenv.is64bit then "64" else "32";
libArch =
-
if stdenv.system == "i686-linux" then
+
if stdenv.hostPlatform.system == "i686-linux" then
"i386-linux-gnu"
-
else if stdenv.system == "x86_64-linux" then
+
else if stdenv.hostPlatform.system == "x86_64-linux" then
"x86_64-linux-gnu"
else throw "amdgpu-pro is Linux only. Sorry. The build was stopped.";
+2 -2
pkgs/os-specific/linux/ati-drivers/default.nix
···
build = "15.302";
linuxonly =
-
if stdenv.system == "i686-linux" then
+
if stdenv.hostPlatform.system == "i686-linux" then
true
-
else if stdenv.system == "x86_64-linux" then
+
else if stdenv.hostPlatform.system == "x86_64-linux" then
true
else throw "ati-drivers are Linux only. Sorry. The build was stopped.";
+2 -2
pkgs/os-specific/linux/broadcom-sta/default.nix
···
x86_64-linux = "1gj485qqr190idilacpxwgqyw21il03zph2rddizgj7fbd6pfyaz";
};
-
arch = stdenv.lib.optionalString (stdenv.system == "x86_64-linux") "_64";
+
arch = stdenv.lib.optionalString (stdenv.hostPlatform.system == "x86_64-linux") "_64";
tarballVersion = stdenv.lib.replaceStrings ["."] ["_"] version;
tarball = "hybrid-v35${arch}-nodebug-pcoem-${tarballVersion}.tar.gz";
in
···
src = fetchurl {
url = "https://docs.broadcom.com/docs-and-downloads/docs/linux_sta/${tarball}";
-
sha256 = hashes.${stdenv.system} or (throw "Unsupported system: ${stdenv.system}");
+
sha256 = hashes.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
};
hardeningDisable = [ "pic" ];
+2 -2
pkgs/os-specific/linux/displaylink/default.nix
···
let
arch =
-
if stdenv.system == "x86_64-linux" then "x64"
-
else if stdenv.system == "i686-linux" then "x86"
+
if stdenv.hostPlatform.system == "x86_64-linux" then "x64"
+
else if stdenv.hostPlatform.system == "i686-linux" then "x86"
else throw "Unsupported architecture";
bins = "${arch}-ubuntu-1604";
libPath = lib.makeLibraryPath [ stdenv.cc.cc utillinux libusb1 evdi ];
+1 -1
pkgs/os-specific/linux/fusionio/util.nix
···
description = "Fusionio command line utilities";
license = licenses.unfree;
platforms = [ "x86_64-linux" ];
-
broken = stdenv.system != "x86_64-linux";
+
broken = stdenv.hostPlatform.system != "x86_64-linux";
maintainers = with maintainers; [ wkennington ];
};
}
+1 -1
pkgs/os-specific/linux/fusionio/vsl.nix
···
description = "Kernel driver for accessing fusion-io cards";
license = licenses.unfree;
platforms = [ "x86_64-linux" ];
-
broken = stdenv.system != "x86_64-linux";
+
broken = stdenv.hostPlatform.system != "x86_64-linux";
maintainers = with maintainers; [ wkennington ];
};
}
+3 -3
pkgs/os-specific/linux/kernel/common-config.nix
···
IP_DCCP_CCID3 = no; # experimental
CLS_U32_PERF = yes;
CLS_U32_MARK = yes;
-
BPF_JIT = when (stdenv.system == "x86_64-linux") yes;
+
BPF_JIT = when (stdenv.hostPlatform.system == "x86_64-linux") yes;
WAN = yes;
# Required by systemd per-cgroup firewalling
CGROUP_BPF = option yes;
···
FB_VESA = yes;
FRAMEBUFFER_CONSOLE = yes;
FRAMEBUFFER_CONSOLE_ROTATION = yes;
-
FB_GEODE = when (stdenv.system == "i686-linux") yes;
+
FB_GEODE = when (stdenv.hostPlatform.system == "i686-linux") yes;
};
video = {
···
};
# Support x2APIC (which requires IRQ remapping)
-
x2apic = optionalAttrs (stdenv.system == "x86_64-linux") {
+
x2apic = optionalAttrs (stdenv.hostPlatform.system == "x86_64-linux") {
X86_X2APIC = yes;
IRQ_REMAP = yes;
};
+1 -1
pkgs/os-specific/linux/kernel/linux-rpi.nix
···
defconfig = {
"armv6l-linux" = "bcmrpi_defconfig";
"armv7l-linux" = "bcm2709_defconfig";
-
}.${stdenv.system} or (throw "linux_rpi not supported on '${stdenv.system}'");
+
}.${stdenv.hostPlatform.system} or (throw "linux_rpi not supported on '${stdenv.hostPlatform.system}'");
features = {
efiBootStub = false;
+4 -4
pkgs/os-specific/linux/nvidia-x11/generic.nix
···
builder = ./builder.sh;
src =
-
if stdenv.system == "i686-linux" then
+
if stdenv.hostPlatform.system == "i686-linux" then
fetchurl {
url = "https://download.nvidia.com/XFree86/Linux-x86/${version}/NVIDIA-Linux-x86-${version}${pkgSuffix}.run";
sha256 = sha256_32bit;
}
-
else if stdenv.system == "x86_64-linux" then
+
else if stdenv.hostPlatform.system == "x86_64-linux" then
fetchurl {
url = "https://download.nvidia.com/XFree86/Linux-x86_64/${version}/NVIDIA-Linux-x86_64-${version}${pkgSuffix}.run";
sha256 = sha256_64bit;
}
-
else throw "nvidia-x11 does not support platform ${stdenv.system}";
+
else throw "nvidia-x11 does not support platform ${stdenv.hostPlatform.system}";
patches = if libsOnly then null else patches;
inherit prePatch;
inherit version useGLVND useProfiles;
-
inherit (stdenv) system;
+
inherit (stdenv.hostPlatform) system;
outputs = [ "out" ] ++ optional (!libsOnly) "bin";
outputDev = if libsOnly then null else "bin";
+2 -2
pkgs/os-specific/linux/prl-tools/default.nix
···
let xorgFullVer = (builtins.parseDrvName xorg.xorgserver.name).version;
xorgVer = lib.concatStringsSep "." (lib.take 2 (lib.splitString "." xorgFullVer));
-
x64 = if stdenv.system == "x86_64-linux" then true
-
else if stdenv.system == "i686-linux" then false
+
x64 = if stdenv.hostPlatform.system == "x86_64-linux" then true
+
else if stdenv.hostPlatform.system == "i686-linux" then false
else throw "Parallels Tools for Linux only support {x86-64,i686}-linux targets";
in
stdenv.mkDerivation rec {
+1 -1
pkgs/stdenv/generic/make-derivation.nix
···
builder = attrs.realBuilder or stdenv.shell;
args = attrs.args or ["-e" (attrs.builder or ./default-builder.sh)];
inherit stdenv;
-
inherit (stdenv) system;
+
inherit (stdenv.hostPlatform) system;
userHook = config.stdenv.userHook or null;
__ignoreNulls = true;
+3 -3
pkgs/tools/X11/xwinwrap/default.nix
···
xlibsWrapper
];
-
buildPhase = if stdenv.system == "x86_64-linux" then ''
+
buildPhase = if stdenv.hostPlatform.system == "x86_64-linux" then ''
make all64
-
'' else if stdenv.system == "i686-linux" then ''
+
'' else if stdenv.hostPlatform.system == "i686-linux" then ''
make all32
-
'' else throw "xwinwrap is not supported on ${stdenv.system}";
+
'' else throw "xwinwrap is not supported on ${stdenv.hostPlatform.system}";
installPhase = ''
mkdir -p $out/bin
+1 -1
pkgs/tools/admin/bluemix-cli/default.nix
···
version = "0.8.0";
src =
-
if stdenv.system == "i686-linux" then
+
if stdenv.hostPlatform.system == "i686-linux" then
fetchurl {
name = "linux32-${version}.tar.gz";
url = "https://clis.ng.bluemix.net/download/bluemix-cli/${version}/linux32";
+1 -1
pkgs/tools/admin/google-cloud-sdk/default.nix
···
name = "google-cloud-sdk-${version}";
version = "206.0.0";
-
src = fetchurl (sources name stdenv.system);
+
src = fetchurl (sources name stdenv.hostPlatform.system);
buildInputs = [ python makeWrapper ];
+1 -1
pkgs/tools/archivers/gnutar/default.nix
···
# May have some issues with root compilation because the bootstrap tool
# cannot be used as a login shell for now.
-
FORCE_UNSAFE_CONFIGURE = stdenv.lib.optionalString (stdenv.system == "armv7l-linux" || stdenv.isSunOS) "1";
+
FORCE_UNSAFE_CONFIGURE = stdenv.lib.optionalString (stdenv.hostPlatform.system == "armv7l-linux" || stdenv.isSunOS) "1";
preConfigure = if stdenv.isCygwin then ''
sed -i gnu/fpending.h -e 's,include <stdio_ext.h>,,'
+1 -1
pkgs/tools/bootloaders/refind/default.nix
···
};
inherit
-
(archids.${stdenv.system} or (throw "unsupported system: ${stdenv.system}"))
+
(archids.${stdenv.hostPlatform.system} or (throw "unsupported system: ${stdenv.hostPlatform.system}"))
hostarch efiPlatform;
in
+1 -1
pkgs/tools/compression/bzip2/default.nix
···
{ stdenv, fetchurl
-
, linkStatic ? (stdenv.system == "i686-cygwin")
+
, linkStatic ? (stdenv.hostPlatform.system == "i686-cygwin")
}:
stdenv.mkDerivation rec {
+1 -1
pkgs/tools/filesystems/sshfs-fuse/default.nix
···
checkInputs = [ which python3Packages.pytest ];
NIX_CFLAGS_COMPILE = stdenv.lib.optional
-
(stdenv.system == "i686-linux")
+
(stdenv.hostPlatform.system == "i686-linux")
"-D_FILE_OFFSET_BITS=64";
postInstall = ''
+5 -5
pkgs/tools/graphics/pngout/default.nix
···
{stdenv, fetchurl}:
let
-
folder = if stdenv.system == "i686-linux" then "i686"
-
else if stdenv.system == "x86_64-linux" then "x86_64"
-
else throw "Unsupported system: ${stdenv.system}";
+
folder = if stdenv.hostPlatform.system == "i686-linux" then "i686"
+
else if stdenv.hostPlatform.system == "x86_64-linux" then "x86_64"
+
else throw "Unsupported system: ${stdenv.hostPlatform.system}";
in
stdenv.mkDerivation {
name = "pngout-20130221";
···
mkdir -p $out/bin
cp ${folder}/pngout $out/bin
-
${if stdenv.system == "i686-linux" then ''
+
${if stdenv.hostPlatform.system == "i686-linux" then ''
patchelf --set-interpreter ${stdenv.glibc.out}/lib/ld-linux.so.2 $out/bin/pngout
-
'' else if stdenv.system == "x86_64-linux" then ''
+
'' else if stdenv.hostPlatform.system == "x86_64-linux" then ''
patchelf --set-interpreter ${stdenv.glibc.out}/lib/ld-linux-x86-64.so.2 $out/bin/pngout
'' else ""}
'';
+5 -5
pkgs/tools/misc/bandwidth/default.nix
···
let
arch =
-
if stdenv.system == "x86_64-linux" then "bandwidth64"
-
else if stdenv.system == "i686-linux" then "bandwidth32"
-
else if stdenv.system == "x86_64-darwin" then "bandwidth-mac64"
-
else if stdenv.system == "i686-darwin" then "bandwidth-mac32"
-
else if stdenv.system == "i686-cygwin" then "bandwidth-win32"
+
if stdenv.hostPlatform.system == "x86_64-linux" then "bandwidth64"
+
else if stdenv.hostPlatform.system == "i686-linux" then "bandwidth32"
+
else if stdenv.hostPlatform.system == "x86_64-darwin" then "bandwidth-mac64"
+
else if stdenv.hostPlatform.system == "i686-darwin" then "bandwidth-mac32"
+
else if stdenv.hostPlatform.system == "i686-cygwin" then "bandwidth-win32"
else throw "Unknown architecture";
in
stdenv.mkDerivation rec {
+1 -1
pkgs/tools/misc/execline/default.nix
···
"--with-dynlib=${skalibs.lib}/lib"
]
++ (if stdenv.isDarwin then [ "--disable-shared" ] else [ "--enable-shared" ])
-
++ (stdenv.lib.optional stdenv.isDarwin "--build=${stdenv.system}");
+
++ (stdenv.lib.optional stdenv.isDarwin "--build=${stdenv.hostPlatform.system}");
postInstall = ''
mkdir -p $doc/share/doc/execline
+6 -6
pkgs/tools/misc/grub/2.0x.nix
···
"aarch64-linux".target = "arm64";
};
-
canEfi = any (system: stdenv.system == system) (mapAttrsToList (name: _: name) efiSystemsBuild);
-
inPCSystems = any (system: stdenv.system == system) (mapAttrsToList (name: _: name) pcSystems);
+
canEfi = any (system: stdenv.hostPlatform.system == system) (mapAttrsToList (name: _: name) efiSystemsBuild);
+
inPCSystems = any (system: stdenv.hostPlatform.system == system) (mapAttrsToList (name: _: name) pcSystems);
version = "2.02";
···
configureFlags = [ "--enable-grub-mount" ] # dep of os-prober
++ optional zfsSupport "--enable-libzfs"
-
++ optionals efiSupport [ "--with-platform=efi" "--target=${efiSystemsBuild.${stdenv.system}.target}" "--program-prefix=" ]
-
++ optionals xenSupport [ "--with-platform=xen" "--target=${efiSystemsBuild.${stdenv.system}.target}"];
+
++ optionals efiSupport [ "--with-platform=efi" "--target=${efiSystemsBuild.${stdenv.hostPlatform.system}.target}" "--program-prefix=" ]
+
++ optionals xenSupport [ "--with-platform=xen" "--target=${efiSystemsBuild.${stdenv.hostPlatform.system}.target}"];
# save target that grub is compiled for
grubTarget = if efiSupport
-
then "${efiSystemsInstall.${stdenv.system}.target}-efi"
+
then "${efiSystemsInstall.${stdenv.hostPlatform.system}.target}-efi"
else if inPCSystems
-
then "${pcSystems.${stdenv.system}.target}-pc"
+
then "${pcSystems.${stdenv.hostPlatform.system}.target}-pc"
else "";
doCheck = false;
+4 -4
pkgs/tools/misc/grub/pvgrub_image/default.nix
···
tar -cf memdisk.tar grub.cfg
# We include all modules except all_video.mod as otherwise grub will fail printing "no symbol table"
# if we include it.
-
grub-mkimage -O "${efiSystemsBuild.${stdenv.system}.target}-xen" -c grub-bootstrap.cfg \
-
-m memdisk.tar -o "grub-${efiSystemsBuild.${stdenv.system}.target}-xen.bin" \
-
$(ls "${grub2_xen}/lib/grub/${efiSystemsBuild.${stdenv.system}.target}-xen/" |grep 'mod''$'|grep -v '^all_video\.mod''$')
+
grub-mkimage -O "${efiSystemsBuild.${stdenv.hostPlatform.system}.target}-xen" -c grub-bootstrap.cfg \
+
-m memdisk.tar -o "grub-${efiSystemsBuild.${stdenv.hostPlatform.system}.target}-xen.bin" \
+
$(ls "${grub2_xen}/lib/grub/${efiSystemsBuild.${stdenv.hostPlatform.system}.target}-xen/" |grep 'mod''$'|grep -v '^all_video\.mod''$')
mkdir -p "$out/lib/grub-xen"
-
cp "grub-${efiSystemsBuild.${stdenv.system}.target}-xen.bin" $out/lib/grub-xen/
+
cp "grub-${efiSystemsBuild.${stdenv.hostPlatform.system}.target}-xen.bin" $out/lib/grub-xen/
'';
meta = with stdenv.lib; {
+2 -2
pkgs/tools/misc/grub/trusted.nix
···
"x86_64-linux".target = "i386";
};
-
inPCSystems = any (system: stdenv.system == system) (mapAttrsToList (name: _: name) pcSystems);
+
inPCSystems = any (system: stdenv.hostPlatform.system == system) (mapAttrsToList (name: _: name) pcSystems);
version = if for_HP_laptop then "1.2.1" else "1.2.0";
···
# save target that grub is compiled for
grubTarget = if inPCSystems
-
then "${pcSystems.${stdenv.system}.target}-pc"
+
then "${pcSystems.${stdenv.hostPlatform.system}.target}-pc"
else "";
doCheck = false;
+2 -2
pkgs/tools/misc/mongodb-compass/default.nix
···
] + ":${stdenv.cc.cc.lib}/lib64";
src =
-
if stdenv.system == "x86_64-linux" then
+
if stdenv.hostPlatform.system == "x86_64-linux" then
fetchurl {
url = "https://downloads.mongodb.com/compass/mongodb-compass_${version}_amd64.deb";
sha256 = "0x23jshnr0rafm5sn2vhq2y2gryg8mksahzyv5fszblgaxay234p";
}
else
-
throw "MongoDB compass is not supported on ${stdenv.system}";
+
throw "MongoDB compass is not supported on ${stdenv.hostPlatform.system}";
in stdenv.mkDerivation {
name = "mongodb-compass-${version}";
+7 -7
pkgs/tools/misc/mprime/default.nix
···
let
srcDir =
-
if stdenv.system == "x86_64-linux" then "linux64"
-
else if stdenv.system == "i686-linux" then "linux"
-
else if stdenv.system == "x86_64-darwin" then "macosx64"
+
if stdenv.hostPlatform.system == "x86_64-linux" then "linux64"
+
else if stdenv.hostPlatform.system == "i686-linux" then "linux"
+
else if stdenv.hostPlatform.system == "x86_64-darwin" then "macosx64"
else throwSystem;
-
throwSystem = throw "Unsupported system: ${stdenv.system}";
+
throwSystem = throw "Unsupported system: ${stdenv.hostPlatform.system}";
gwnum =
-
if stdenv.system == "x86_64-linux" then "make64"
-
else if stdenv.system == "i686-linux" then "makefile"
-
else if stdenv.system == "x86_64-darwin" then "makemac"
+
if stdenv.hostPlatform.system == "x86_64-linux" then "make64"
+
else if stdenv.hostPlatform.system == "i686-linux" then "makefile"
+
else if stdenv.hostPlatform.system == "x86_64-darwin" then "makemac"
else throwSystem;
in
+1 -1
pkgs/tools/misc/ocz-ssd-guru/default.nix
···
{ fetchurl, stdenv, xorg, freetype, fontconfig, libGLU_combined, glibc, makeWrapper }:
let
-
system = if stdenv.system == "x86_64-linux" then "linux64" else "linux32";
+
system = if stdenv.hostPlatform.system == "x86_64-linux" then "linux64" else "linux32";
in
stdenv.mkDerivation rec {
name = "ocz-ssd-guru-${version}";
+1 -1
pkgs/tools/misc/os-prober/default.nix
···
install -Dt $out/share common.sh
# probes
-
case "${stdenv.system}" in
+
case "${stdenv.hostPlatform.system}" in
i686*|x86_64*) ARCH=x86;;
powerpc*) ARCH=powerpc;;
arm*) ARCH=arm;;
+1 -1
pkgs/tools/misc/s6-portable-utils/default.nix
···
# Explicitly setting target ensures code can be compiled against a skalibs
# binary built on a different version of darwin.
# http://www.skarnet.org/cgi-bin/archive.cgi?1:mss:623:heiodchokfjdkonfhdph
-
++ (stdenv.lib.optional stdenv.isDarwin "--build=${stdenv.system}");
+
++ (stdenv.lib.optional stdenv.isDarwin "--build=${stdenv.hostPlatform.system}");
postInstall = ''
mkdir -p $doc/share/doc/s6-portable-utils/
+1 -1
pkgs/tools/misc/staruml/default.nix
···
name = "staruml-${version}";
src =
-
if stdenv.system == "i686-linux" then fetchurl {
+
if stdenv.hostPlatform.system == "i686-linux" then fetchurl {
url = "http://staruml.io/download/release/v${version}/StarUML-v${version}-32-bit.deb";
sha256 = "0vb3k9m3l6pmsid4shlk0xdjsriq3gxzm8q7l04didsppg0vvq1n";
} else fetchurl {
+1 -1
pkgs/tools/networking/airfield/default.nix
···
let
nodePackages = import ./node.nix {
inherit pkgs;
-
system = stdenv.system;
+
system = stdenv.hostPlatform.system;
};
runtimeEnv = buildEnv {
+1 -1
pkgs/tools/networking/filegive/default.nix
···
buildInputs = [ go ];
buildPhase = ''
-
${stdenv.lib.optionalString (stdenv.system == "armv5tel-linux") "export GOARM=5"}
+
${stdenv.lib.optionalString (stdenv.hostPlatform.system == "armv5tel-linux") "export GOARM=5"}
mkdir $TMPDIR/go
export GOPATH=$TMPDIR/go
+5 -5
pkgs/tools/networking/logmein-hamachi/default.nix
···
let
arch =
-
if stdenv.system == "x86_64-linux" then "x64"
-
else if stdenv.system == "i686-linux" then "x86"
+
if stdenv.hostPlatform.system == "x86_64-linux" then "x64"
+
else if stdenv.hostPlatform.system == "i686-linux" then "x86"
else throwSystem;
-
throwSystem = throw "Unsupported system: ${stdenv.system}";
+
throwSystem = throw "Unsupported system: ${stdenv.hostPlatform.system}";
sha256 =
-
if stdenv.system == "x86_64-linux" then "11mxa4kls5xjj3462ycrfvfxb1xkk23p5m9iirvwsi0zdmhpnwm8"
-
else if stdenv.system == "i686-linux" then "03ml9xv19km99f0z7fpr21b1zkxvw7q39kjzd8wpb2pds51wnc62"
+
if stdenv.hostPlatform.system == "x86_64-linux" then "11mxa4kls5xjj3462ycrfvfxb1xkk23p5m9iirvwsi0zdmhpnwm8"
+
else if stdenv.hostPlatform.system == "i686-linux" then "03ml9xv19km99f0z7fpr21b1zkxvw7q39kjzd8wpb2pds51wnc62"
else throwSystem;
libraries = stdenv.lib.makeLibraryPath [ stdenv.cc.cc ];
+1 -1
pkgs/tools/networking/ngrok-2/default.nix
···
} else if stdenv.isDarwin then fetchurl {
url = "https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-darwin-386.zip";
sha256 = "0yfd250b55wcpgqd00rqfaa7a82f35fmybb31q5xwdbgc2i47pbh";
-
} else throw "platform ${stdenv.system} not supported!";
+
} else throw "platform ${stdenv.hostPlatform.system} not supported!";
sourceRoot = ".";
+1 -1
pkgs/tools/networking/s6-dns/default.nix
···
"--with-dynlib=${skalibs.lib}/lib"
]
++ (if stdenv.isDarwin then [ "--disable-shared" ] else [ "--enable-shared" ])
-
++ (stdenv.lib.optional stdenv.isDarwin "--build=${stdenv.system}");
+
++ (stdenv.lib.optional stdenv.isDarwin "--build=${stdenv.hostPlatform.system}");
postInstall = ''
mkdir -p $doc/share/doc/s6-dns/
+1 -1
pkgs/tools/networking/s6-networking/default.nix
···
"--with-include=${lib.getDev sslLibs.${sslSupport}}/include"
"--with-lib=${lib.getLib sslLibs.${sslSupport}}/lib"
])
-
++ (lib.optional stdenv.isDarwin "--build=${stdenv.system}");
+
++ (lib.optional stdenv.isDarwin "--build=${stdenv.hostPlatform.system}");
postInstall = ''
mkdir -p $doc/share/doc/s6-networking/
+1 -1
pkgs/tools/networking/strongswan/default.nix
···
"--enable-af-alg" "--enable-xauth-pam" "--enable-chapoly"
"--enable-curl" ]
++ optionals stdenv.isx86_64 [ "--enable-aesni" "--enable-rdrand" ]
-
++ optional (stdenv.system == "i686-linux") "--enable-padlock"
+
++ optional (stdenv.hostPlatform.system == "i686-linux") "--enable-padlock"
++ optionals enableTNC [
"--disable-gmp" "--disable-aes" "--disable-md5" "--disable-sha1" "--disable-sha2" "--disable-fips-prf"
"--enable-eap-tnc" "--enable-eap-ttls" "--enable-eap-dynamic" "--enable-tnccs-20"
+1 -1
pkgs/tools/package-management/checkinstall/default.nix
···
./set-buildroot.patch
]
-
++ stdenv.lib.optional (stdenv.system == "x86_64-linux")
+
++ stdenv.lib.optional (stdenv.hostPlatform.system == "x86_64-linux")
# Force use of old memcpy so that installwatch works on Glibc <
# 2.14.
./use-old-memcpy.patch;
+1 -1
pkgs/tools/package-management/nixui/default.nix
···
};
nixui = (import ./nixui.nix {
inherit pkgs;
-
inherit (stdenv) system;
+
inherit (stdenv.hostPlatform) system;
})."nixui-git://github.com/matejc/nixui.git#0.2.1";
script = writeScript "nixui" ''
#! ${stdenv.shell}
+3 -3
pkgs/tools/security/afl/default.nix
···
let
afl-qemu = callPackage ./qemu.nix {};
-
qemu-exe-name = if stdenv.system == "x86_64-linux" then "qemu-x86_64"
-
else if stdenv.system == "i686-linux" then "qemu-i386"
-
else throw "afl: no support for ${stdenv.system}!";
+
qemu-exe-name = if stdenv.hostPlatform.system == "x86_64-linux" then "qemu-x86_64"
+
else if stdenv.hostPlatform.system == "i686-linux" then "qemu-i386"
+
else throw "afl: no support for ${stdenv.hostPlatform.system}!";
in
stdenv.mkDerivation rec {
+4 -4
pkgs/tools/security/afl/qemu.nix
···
aflTypesFile = writeText "afl-types.h"
(builtins.readFile ./qemu-patches/afl-types.h);
-
cpuTarget = if stdenv.system == "x86_64-linux" then "x86_64-linux-user"
-
else if stdenv.system == "i686-linux" then "i386-linux-user"
-
else throw "afl: no support for ${stdenv.system}!";
+
cpuTarget = if stdenv.hostPlatform.system == "x86_64-linux" then "x86_64-linux-user"
+
else if stdenv.hostPlatform.system == "i686-linux" then "i386-linux-user"
+
else throw "afl: no support for ${stdenv.hostPlatform.system}!";
in
stdenv.mkDerivation rec {
name = "afl-${n}";
···
vde2 texinfo libuuid flex bison lzo snappy autoconf
libcap_ng gnutls
]
-
++ optionals (hasSuffix "linux" stdenv.system) [ libaio ];
+
++ optionals (hasSuffix "linux" stdenv.hostPlatform.system) [ libaio ];
enableParallelBuilding = true;
+6 -6
pkgs/tools/security/encryptr/default.nix
···
}:
let
-
arch = if stdenv.system == "x86_64-linux" then "amd"
-
else if stdenv.system == "i686-linux" then "i386"
-
else throw "Encryptr for ${stdenv.system} not supported!";
+
arch = if stdenv.hostPlatform.system == "x86_64-linux" then "amd"
+
else if stdenv.hostPlatform.system == "i686-linux" then "i386"
+
else throw "Encryptr for ${stdenv.hostPlatform.system} not supported!";
-
sha256 = if stdenv.system == "x86_64-linux" then "1j3g467g7ar86hpnh6q9mf7mh2h4ia94mwhk1283zh739s2g53q2"
-
else if stdenv.system == "i686-linux" then "02j9hg9b1jlv25q1sjfhv8d46mii33f94dj0ccn83z9z18q4y2cm"
-
else throw "Encryptr for ${stdenv.system} not supported!";
+
sha256 = if stdenv.hostPlatform.system == "x86_64-linux" then "1j3g467g7ar86hpnh6q9mf7mh2h4ia94mwhk1283zh739s2g53q2"
+
else if stdenv.hostPlatform.system == "i686-linux" then "02j9hg9b1jlv25q1sjfhv8d46mii33f94dj0ccn83z9z18q4y2cm"
+
else throw "Encryptr for ${stdenv.hostPlatform.system} not supported!";
in stdenv.mkDerivation rec {
name = "encryptr-${version}";
+4 -3
pkgs/tools/security/enpass/default.nix
···
-
{stdenv, system, fetchurl, dpkg, openssl, xorg
+
{ stdenv, fetchurl, dpkg, openssl, xorg
, glib, libGLU_combined, libpulseaudio, zlib, dbus, fontconfig, freetype
, gtk2, pango, atk, cairo, gdk_pixbuf, jasper, xkeyboardconfig
, makeWrapper , python, pythonPackages, lib
-
, libredirect, lsof}:
+
, libredirect, lsof
+
}:
let
all_data = builtins.fromJSON (builtins.readFile ./data.json);
···
x86_64-linux = "amd64";
};
-
data = all_data.${system_map.${system} or (throw "Unsupported platform")};
+
data = all_data.${system_map.${stdenv.hostPlatform.system} or (throw "Unsupported platform")};
baseUrl = http://repo.sinew.in;
+3 -3
pkgs/tools/security/pcsc-scm-scl011/default.nix
···
{ stdenv, fetchurl, unzip, libusb }:
let
-
arch = if stdenv.system == "i686-linux" then "32"
-
else if stdenv.system == "x86_64-linux" then "64"
-
else throw "Unsupported system: ${stdenv.system}";
+
arch = if stdenv.hostPlatform.system == "i686-linux" then "32"
+
else if stdenv.hostPlatform.system == "x86_64-linux" then "64"
+
else throw "Unsupported system: ${stdenv.hostPlatform.system}";
in
stdenv.mkDerivation rec {
name = "pcsc-scm-scl-${version}";
+1 -1
pkgs/tools/security/sshuttle/default.nix
···
patches = [ ./sudo.patch ];
-
nativeBuildInputs = [ makeWrapper python3Packages.setuptools_scm ] ++ stdenv.lib.optional (stdenv.system != "i686-linux") pandoc;
+
nativeBuildInputs = [ makeWrapper python3Packages.setuptools_scm ] ++ stdenv.lib.optional (stdenv.hostPlatform.system != "i686-linux") pandoc;
buildInputs =
[ coreutils openssh procps nettools ]
++ stdenv.lib.optionals stdenv.isLinux [ iptables ];
+1 -1
pkgs/tools/system/s6-rc/default.nix
···
"--with-dynlib=${s6.out}/lib"
]
++ (if stdenv.isDarwin then [ "--disable-shared" ] else [ "--enable-shared" ])
-
++ (stdenv.lib.optional stdenv.isDarwin "--build=${stdenv.system}");
+
++ (stdenv.lib.optional stdenv.isDarwin "--build=${stdenv.hostPlatform.system}");
postInstall = ''
mkdir -p $doc/share/doc/s6-rc/
+1 -1
pkgs/tools/system/s6/default.nix
···
"--with-dynlib=${execline.lib}/lib"
]
++ (if stdenv.isDarwin then [ "--disable-shared" ] else [ "--enable-shared" ])
-
++ (stdenv.lib.optional stdenv.isDarwin "--build=${stdenv.system}");
+
++ (stdenv.lib.optional stdenv.isDarwin "--build=${stdenv.hostPlatform.system}");
postInstall = ''
mkdir -p $doc/share/doc/s6/
+1 -1
pkgs/tools/system/storebrowse/default.nix
···
mkdir $TMPDIR/go
export GOPATH=$TMPDIR/go
-
${stdenv.lib.optionalString (stdenv.system == "armv5tel-linux") "export GOARM=5"}
+
${stdenv.lib.optionalString (stdenv.hostPlatform.system == "armv5tel-linux") "export GOARM=5"}
GOSQLITE=$GOPATH/src/code.google.com/p/gosqlite
mkdir -p $GOSQLITE
+1 -1
pkgs/tools/text/gawk/default.nix
···
{ stdenv, fetchurl
# TODO: links -lsigsegv but loses the reference for some reason
-
, withSigsegv ? (false && stdenv.system != "x86_64-cygwin"), libsigsegv
+
, withSigsegv ? (false && stdenv.hostPlatform.system != "x86_64-cygwin"), libsigsegv
, interactive ? false, readline
/* Test suite broke on:
+3 -3
pkgs/tools/text/xidel/default.nix
···
#};
src =
-
if stdenv.system == "x86_64-linux" then
+
if stdenv.hostPlatform.system == "x86_64-linux" then
fetchurl {
url = "mirror://sourceforge/videlibri/Xidel/Xidel%20${version}/xidel_${version}-1_amd64.deb";
sha256 = "0hskc74y7p4j1x33yx0w4fvr610p2yimas8pxhr6bs7mb9b300h7";
}
-
else if stdenv.system == "i686-linux" then
+
else if stdenv.hostPlatform.system == "i686-linux" then
fetchurl {
url = "mirror://sourceforge/videlibri/Xidel/Xidel%20${version}/xidel_${version}-1_i386.deb";
sha256 = "07yk5sk1p4jm0jmgjwdm2wq8d2wybi1wkn1qq5j5y03z1pdc3fi6";
}
-
else throw "xidel is not supported on ${stdenv.system}";
+
else throw "xidel is not supported on ${stdenv.hostPlatform.system}";
buildInputs = [ dpkg ];
+2 -2
pkgs/tools/typesetting/kindlegen/default.nix
···
"i686-darwin" = "0zniyn0s41fxqrajbgwxbcsj5vzf9m7a6yvdz2b11mphr00kpbbs";
"x86_64-cygwin" = "02slfh1bbpijay4skj85cjiv7z43ha8vm5aa1lwiqjk86qbl1f3h";
"i686-cygwin" = "02slfh1bbpijay4skj85cjiv7z43ha8vm5aa1lwiqjk86qbl1f3h";
-
}."${stdenv.system}" or (throw "system #{stdenv.system.} is not supported");
+
}."${stdenv.hostPlatform.system}" or (throw "system #{stdenv.hostPlatform.system.} is not supported");
url = {
"x86_64-linux" = "http://kindlegen.s3.amazonaws.com/kindlegen_linux_2.6_i386_v${fileVersion}.tar.gz";
···
"i686-darwin" = "http://kindlegen.s3.amazonaws.com/KindleGen_Mac_i386_v${fileVersion}.zip";
"x86_64-cygwin" = "http://kindlegen.s3.amazonaws.com/kindlegen_win32_v${fileVersion}.zip";
"i686-cygwin" = "http://kindlegen.s3.amazonaws.com/kindlegen_win32_v${fileVersion}.zip";
-
}."${stdenv.system}" or (throw "system #{stdenv.system.} is not supported");
+
}."${stdenv.hostPlatform.system}" or (throw "system #{stdenv.hostPlatform.system.} is not supported");
in stdenv.mkDerivation rec {
name = "kindlegen-${version}";
+15 -15
pkgs/top-level/all-packages.nix
···
chunksync = callPackage ../tools/backup/chunksync { };
cipherscan = callPackage ../tools/security/cipherscan {
-
openssl = if stdenv.system == "x86_64-linux"
+
openssl = if stdenv.hostPlatform.system == "x86_64-linux"
then openssl-chacha
else openssl;
};
···
gcc8Stdenv = overrideCC gccStdenv gcc8;
wrapCCMulti = cc:
-
if system == "x86_64-linux" then let
+
if stdenv.targetPlatform.system == "x86_64-linux" then let
# Binutils with glibc multi
bintools = cc.bintools.override {
libc = glibc_multi;
···
extraBuildCommands = ''
echo "dontMoveLib64=1" >> $out/nix-support/setup-hook
'';
-
}) else throw "Multilib ${cc.name} not supported on ‘${system}’";
+
}) else throw "Multilib ${cc.name} not supported for ‘${stdenv.targetPlatform.system}’";
wrapClangMulti = clang:
-
if system == "x86_64-linux" then
+
if stdenv.targetPlatform.system == "x86_64-linux" then
callPackage ../development/compilers/llvm/multi.nix {
inherit clang;
gcc32 = pkgsi686Linux.gcc;
gcc64 = pkgs.gcc;
-
else throw "Multilib ${clang.cc.name} not supported on '${system}'";
+
else throw "Multilib ${clang.cc.name} not supported for '${stdenv.targetPlatform.system}'";
gcc_multi = wrapCCMulti gcc;
clang_multi = wrapClangMulti clang;
···
# Default derivation with libGL.so.1 to link into /run/opengl-drivers (if need)
libGL_driver = libGLDarwinOr mesa_drivers;
-
libGLSupported = lib.elem system lib.platforms.mesaPlatforms;
+
libGLSupported = lib.elem stdenv.hostPlatform.system lib.platforms.mesaPlatforms;
libGLDarwin = callPackage ../development/libraries/mesa-darwin {
inherit (darwin.apple_sdk.frameworks) OpenGL;
···
wxGTK28 = callPackage ../development/libraries/wxwidgets/2.8 {
inherit (gnome2) GConf;
-
withMesa = lib.elem system lib.platforms.mesaPlatforms;
+
withMesa = lib.elem stdenv.hostPlatform.system lib.platforms.mesaPlatforms;
wxGTK29 = callPackage ../development/libraries/wxwidgets/2.9 {
inherit (gnome2) GConf;
inherit (darwin.stubs) setfile;
inherit (darwin.apple_sdk.frameworks) AGL Carbon Cocoa Kernel QuickTime;
-
withMesa = lib.elem system lib.platforms.mesaPlatforms;
+
withMesa = lib.elem stdenv.hostPlatform.system lib.platforms.mesaPlatforms;
wxGTK30 = callPackage ../development/libraries/wxwidgets/3.0 {
inherit (gnome2) GConf;
inherit (darwin.stubs) setfile;
inherit (darwin.apple_sdk.frameworks) AGL Carbon Cocoa Kernel QTKit;
-
withMesa = lib.elem system lib.platforms.mesaPlatforms;
+
withMesa = lib.elem stdenv.hostPlatform.system lib.platforms.mesaPlatforms;
wxGTK31 = callPackage ../development/libraries/wxwidgets/3.1 {};
···
}) murmur_git;
mumble_overlay = callPackage ../applications/networking/mumble/overlay.nix {
-
mumble_i686 = if system == "x86_64-linux"
+
mumble_i686 = if stdenv.hostPlatform.system == "x86_64-linux"
then pkgsi686Linux.mumble
else null;
···
virtualgl = callPackage ../tools/X11/virtualgl {
-
virtualglLib_i686 = if system == "x86_64-linux"
+
virtualglLib_i686 = if stdenv.hostPlatform.system == "x86_64-linux"
then pkgsi686Linux.virtualglLib
else null;
···
primus = callPackage ../tools/X11/primus {
stdenv_i686 = pkgsi686Linux.stdenv;
-
primusLib_i686 = if system == "x86_64-linux"
+
primusLib_i686 = if stdenv.hostPlatform.system == "x86_64-linux"
then pkgsi686Linux.primusLib
else null;
bumblebee = callPackage ../tools/X11/bumblebee {
nvidia_x11 = linuxPackages.nvidia_x11;
-
nvidia_x11_i686 = if system == "x86_64-linux"
+
nvidia_x11_i686 = if stdenv.hostPlatform.system == "x86_64-linux"
then pkgsi686Linux.linuxPackages.nvidia_x11.override { libsOnly = true; }
else null;
-
libglvnd_i686 = if system == "x86_64-linux"
+
libglvnd_i686 = if stdenv.hostPlatform.system == "x86_64-linux"
then pkgsi686Linux.libglvnd
else null;
···
nixos = configuration:
(import (self.path + "/nixos/lib/eval-config.nix") {
-
inherit (pkgs) system;
+
inherit (pkgs.stdenv.hostPlatform) system;
modules = [(
{ lib, ... }: {
config.nixpkgs.pkgs = lib.mkDefault pkgs;
+3 -1
pkgs/top-level/ocaml-packages.nix
···
-
{ lib, callPackage, newScope, pkgs, config, system }:
+
{ lib, callPackage, newScope, pkgs, config }:
let
+
inherit (pkgs.stdenv.hostPlatform) system;
+
mkOcamlPackages = ocaml: overrides:
let
packageSet = self:
+3 -3
pkgs/top-level/python-packages.nix
···
};
};
-
gurobipy = if stdenv.system == "x86_64-darwin"
+
gurobipy = if stdenv.hostPlatform.system == "x86_64-darwin"
then callPackage ../development/python-modules/gurobipy/darwin.nix {
inherit (pkgs.darwin) cctools insert_dylib;
-
else if stdenv.system == "x86_64-linux"
+
else if stdenv.hostPlatform.system == "x86_64-linux"
then callPackage ../development/python-modules/gurobipy/linux.nix {}
-
else throw "gurobipy not yet supported on ${stdenv.system}";
+
else throw "gurobipy not yet supported on ${stdenv.hostPlatform.system}";
hbmqtt = callPackage ../development/python-modules/hbmqtt { };