summaryrefslogtreecommitdiffstats
path: root/pkgs/development/ruby-modules
diff options
context:
space:
mode:
authorMerijn Broeren <merijnb@iloquent.com>2019-10-27 13:03:25 +0000
committerJan Tojnar <jtojnar@gmail.com>2019-12-30 12:58:11 +0100
commit133103d7094c148bdc9152562b16c8872c44f345 (patch)
tree2ccef8bd86eff2104561da4eccdd41dd6776950b /pkgs/development/ruby-modules
parent08d5fc393457121b531417ee6c922e3ebee0187c (diff)
treewide: replace make/build/configure/patchFlags with nix lists
Diffstat (limited to 'pkgs/development/ruby-modules')
-rw-r--r--pkgs/development/ruby-modules/gem-config/default.nix23
1 files changed, 11 insertions, 12 deletions
diff --git a/pkgs/development/ruby-modules/gem-config/default.nix b/pkgs/development/ruby-modules/gem-config/default.nix
index de9d06f7ce09..8a119aa2d326 100644
--- a/pkgs/development/ruby-modules/gem-config/default.nix
+++ b/pkgs/development/ruby-modules/gem-config/default.nix
@@ -236,7 +236,7 @@ in
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ openssl ];
hardeningDisable = [ "format" ];
- NIX_CFLAGS_COMPILE = [
+ NIX_CFLAGS_COMPILE = toString [
"-Wno-error=stringop-overflow"
"-Wno-error=implicit-fallthrough"
"-Wno-error=sizeof-pointer-memaccess"
@@ -495,23 +495,22 @@ in
sassc = attrs: {
nativeBuildInputs = [ rake ];
dontBuild = false;
- SASS_LIBSASS_PATH = libsass;
+ SASS_LIBSASS_PATH = toString libsass;
postPatch = ''
substituteInPlace lib/sassc/native.rb \
--replace 'gem_root = spec.gem_dir' 'gem_root = File.join(__dir__, "../../")'
'';
- } // (if stdenv.isDarwin then {
+ } // (lib.optionalAttrs stdenv.isDarwin {
# https://github.com/NixOS/nixpkgs/issues/19098
- buildFlags = "--disable-lto";
- } else {});
+ buildFlags = [ "--disable-lto" ];
+ });
- scrypt = attrs:
- if stdenv.isDarwin then {
- dontBuild = false;
- postPatch = ''
- sed -i -e "s/-arch i386//" Rakefile ext/scrypt/Rakefile
- '';
- } else {};
+ scrypt = attrs: lib.optionalAttrs stdenv.isDarwin {
+ dontBuild = false;
+ postPatch = ''
+ sed -i -e "s/-arch i386//" Rakefile ext/scrypt/Rakefile
+ '';
+ };
semian = attrs: {
buildInputs = [ openssl ];