summary refs log tree commit diff
path: root/pkgs/development/libraries/libhdhomerun
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/development/libraries/libhdhomerun
parent741839a687b5ecad445dbb7afb87ceeacdde2d6b (diff)
downloadnixpkgs-5aec3f96a26806dc26759bc2f13b062caaad3c17.tar
nixpkgs-5aec3f96a26806dc26759bc2f13b062caaad3c17.tar.gz
nixpkgs-5aec3f96a26806dc26759bc2f13b062caaad3c17.tar.bz2
nixpkgs-5aec3f96a26806dc26759bc2f13b062caaad3c17.tar.lz
nixpkgs-5aec3f96a26806dc26759bc2f13b062caaad3c17.tar.xz
nixpkgs-5aec3f96a26806dc26759bc2f13b062caaad3c17.tar.zst
nixpkgs-5aec3f96a26806dc26759bc2f13b062caaad3c17.zip
treewide: Use `*Platform.extensions`
Diffstat (limited to 'pkgs/development/libraries/libhdhomerun')
-rw-r--r--pkgs/development/libraries/libhdhomerun/default.nix6
1 files changed, 2 insertions, 4 deletions
diff --git a/pkgs/development/libraries/libhdhomerun/default.nix b/pkgs/development/libraries/libhdhomerun/default.nix
index 273563b2a99..5dc1fb93834 100644
--- a/pkgs/development/libraries/libhdhomerun/default.nix
+++ b/pkgs/development/libraries/libhdhomerun/default.nix
@@ -14,11 +14,9 @@ stdenv.mkDerivation {
     substituteInPlace Makefile --replace "-arch i386" ""
   '';
 
-  installPhase = let
-    libSuff = if stdenv.isDarwin then "dylib" else "so";
-  in ''
+  installPhase = ''
     mkdir -p $out/{bin,lib,include/hdhomerun}
-    install -Dm444 libhdhomerun.${libSuff} $out/lib
+    install -Dm444 libhdhomerun${stdenv.hostPlatform.extensions.sharedLibrary} $out/lib
     install -Dm555 hdhomerun_config $out/bin
     cp *.h $out/include/hdhomerun
   '';