about summary refs log tree commit diff
path: root/pkgs/applications/networking/cluster
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2017-09-12 15:36:41 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2017-09-13 11:16:10 -0400
commit5aec3f96a26806dc26759bc2f13b062caaad3c17 (patch)
treea25ad6b59b59dfa7686c04398ed2527c3a16a7b6 /pkgs/applications/networking/cluster
parent741839a687b5ecad445dbb7afb87ceeacdde2d6b (diff)
downloadnixlib-5aec3f96a26806dc26759bc2f13b062caaad3c17.tar
nixlib-5aec3f96a26806dc26759bc2f13b062caaad3c17.tar.gz
nixlib-5aec3f96a26806dc26759bc2f13b062caaad3c17.tar.bz2
nixlib-5aec3f96a26806dc26759bc2f13b062caaad3c17.tar.lz
nixlib-5aec3f96a26806dc26759bc2f13b062caaad3c17.tar.xz
nixlib-5aec3f96a26806dc26759bc2f13b062caaad3c17.tar.zst
nixlib-5aec3f96a26806dc26759bc2f13b062caaad3c17.zip
treewide: Use `*Platform.extensions`
Diffstat (limited to 'pkgs/applications/networking/cluster')
-rw-r--r--pkgs/applications/networking/cluster/mesos/default.nix3
1 files changed, 1 insertions, 2 deletions
diff --git a/pkgs/applications/networking/cluster/mesos/default.nix b/pkgs/applications/networking/cluster/mesos/default.nix
index 16ef657111fd..0506f7c154d2 100644
--- a/pkgs/applications/networking/cluster/mesos/default.nix
+++ b/pkgs/applications/networking/cluster/mesos/default.nix
@@ -8,7 +8,6 @@
 
 let
   mavenRepo = import ./mesos-deps.nix { inherit stdenv curl; };
-  soext = if stdenv.system == "x86_64-darwin" then "dylib" else "so";
   # `tar -z` requires gzip on $PATH, so wrap tar.
   # At some point, we should try to patch mesos so we add gzip to the PATH when
   # tar is invoked. I think that only needs to be done here:
@@ -193,7 +192,7 @@ in stdenv.mkDerivation rec {
     mkdir -p $out/share/java
     cp src/java/target/mesos-*.jar $out/share/java
 
-    MESOS_NATIVE_JAVA_LIBRARY=$out/lib/libmesos.${soext}
+    MESOS_NATIVE_JAVA_LIBRARY=$out/lib/libmesos${stdenv.hostPlatform.extensions.sharedLibrary}
 
     mkdir -p $out/nix-support
     touch $out/nix-support/setup-hook