summary refs log tree commit diff
path: root/pkgs/os-specific/linux/mdadm
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2017-11-25 13:43:57 -0500
committerJohn Ericson <John.Ericson@Obsidian.Systems>2017-11-27 03:15:50 -0500
commite755a8a27d5c33d87a5742817c373028d35443e9 (patch)
tree68999720a17f0c6f71f35a7835030f44d409af0f /pkgs/os-specific/linux/mdadm
parentfbbda41e05d89325baaefef6fd0a420a1c365d7e (diff)
downloadnixpkgs-e755a8a27d5c33d87a5742817c373028d35443e9.tar
nixpkgs-e755a8a27d5c33d87a5742817c373028d35443e9.tar.gz
nixpkgs-e755a8a27d5c33d87a5742817c373028d35443e9.tar.bz2
nixpkgs-e755a8a27d5c33d87a5742817c373028d35443e9.tar.lz
nixpkgs-e755a8a27d5c33d87a5742817c373028d35443e9.tar.xz
nixpkgs-e755a8a27d5c33d87a5742817c373028d35443e9.tar.zst
nixpkgs-e755a8a27d5c33d87a5742817c373028d35443e9.zip
treewide: Use `targetPrefix` instead of `prefix` for platform name prefixes
Certain tools, e.g. compilers, are customarily prefixed with the name of
their target platform so that multiple builds can be used at once
without clobbering each other on the PATH. I was using identifiers named
`prefix` for this purpose, but that conflicts with the standard use of
`prefix` to mean the directory where something is installed. To avoid
conflict and confusion, I renamed those to `targetPrefix`.
Diffstat (limited to 'pkgs/os-specific/linux/mdadm')
-rw-r--r--pkgs/os-specific/linux/mdadm/4.nix2
-rw-r--r--pkgs/os-specific/linux/mdadm/default.nix2
2 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/os-specific/linux/mdadm/4.nix b/pkgs/os-specific/linux/mdadm/4.nix
index 5511d72884a..f9c2a5e09af 100644
--- a/pkgs/os-specific/linux/mdadm/4.nix
+++ b/pkgs/os-specific/linux/mdadm/4.nix
@@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
     "MANDIR=$(out)/share/man" "RUN_DIR=/dev/.mdadm"
     "STRIP="
   ] ++ stdenv.lib.optionals (hostPlatform != buildPlatform) [
-    "CROSS_COMPILE=${stdenv.cc.prefix}"
+    "CROSS_COMPILE=${stdenv.cc.targetPrefix}"
   ];
 
   nativeBuildInputs = [ groff ];
diff --git a/pkgs/os-specific/linux/mdadm/default.nix b/pkgs/os-specific/linux/mdadm/default.nix
index 0929bae991d..1e2c1dafb2d 100644
--- a/pkgs/os-specific/linux/mdadm/default.nix
+++ b/pkgs/os-specific/linux/mdadm/default.nix
@@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
     "MANDIR=$(out)/share/man" "RUN_DIR=/dev/.mdadm"
     "STRIP="
   ] ++ stdenv.lib.optionals (hostPlatform != buildPlatform) [
-    "CROSS_COMPILE=${stdenv.cc.prefix}"
+    "CROSS_COMPILE=${stdenv.cc.targetPrefix}"
   ];
 
   nativeBuildInputs = [ groff ];