summary refs log tree commit diff
path: root/pkgs/development/libraries/librsync
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2018-08-03 12:52:40 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2018-08-03 17:06:03 -0400
commitf0d6b385d12600ab307ab205c166c993d3588087 (patch)
treefc915e69eb5a80b27e17214d285110283fcccf18 /pkgs/development/libraries/librsync
parentf92ed87372042fa2ee4c2048ae47c511c9285a1b (diff)
downloadnixlib-f0d6b385d12600ab307ab205c166c993d3588087.tar
nixlib-f0d6b385d12600ab307ab205c166c993d3588087.tar.gz
nixlib-f0d6b385d12600ab307ab205c166c993d3588087.tar.bz2
nixlib-f0d6b385d12600ab307ab205c166c993d3588087.tar.lz
nixlib-f0d6b385d12600ab307ab205c166c993d3588087.tar.xz
nixlib-f0d6b385d12600ab307ab205c166c993d3588087.tar.zst
nixlib-f0d6b385d12600ab307ab205c166c993d3588087.zip
treewide: Make all the rest of configureFlags
Diffstat (limited to 'pkgs/development/libraries/librsync')
-rw-r--r--pkgs/development/libraries/librsync/0.9.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/development/libraries/librsync/0.9.nix b/pkgs/development/libraries/librsync/0.9.nix
index 115f4cd90a0c..3ca84ed2ce5f 100644
--- a/pkgs/development/libraries/librsync/0.9.nix
+++ b/pkgs/development/libraries/librsync/0.9.nix
@@ -10,7 +10,10 @@ stdenv.mkDerivation {
 
   hardeningDisable = [ "format" ];
 
-  configureFlags = if stdenv.isCygwin then "--enable-static" else "--enable-shared";
+  configureFlags = [
+    (stdenv.lib.enableFeature stdenv.isCygwin    "static")
+    (stdenv.lib.enableFeature (!stdenv.isCygwin) "shared")
+  ];
 
   dontStrip = stdenv.hostPlatform != stdenv.buildPlatform;