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)
downloadnixpkgs-f0d6b385d12600ab307ab205c166c993d3588087.tar
nixpkgs-f0d6b385d12600ab307ab205c166c993d3588087.tar.gz
nixpkgs-f0d6b385d12600ab307ab205c166c993d3588087.tar.bz2
nixpkgs-f0d6b385d12600ab307ab205c166c993d3588087.tar.lz
nixpkgs-f0d6b385d12600ab307ab205c166c993d3588087.tar.xz
nixpkgs-f0d6b385d12600ab307ab205c166c993d3588087.tar.zst
nixpkgs-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 115f4cd90a0..3ca84ed2ce5 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;