diff options
author | Merijn Broeren <merijnb@iloquent.com> | 2019-10-27 13:03:25 +0000 |
---|---|---|
committer | Jan Tojnar <jtojnar@gmail.com> | 2019-12-30 12:58:11 +0100 |
commit | 133103d7094c148bdc9152562b16c8872c44f345 (patch) | |
tree | 2ccef8bd86eff2104561da4eccdd41dd6776950b /pkgs/development/ruby-modules/gem-config | |
parent | 08d5fc393457121b531417ee6c922e3ebee0187c (diff) | |
download | nixpkgs-133103d7094c148bdc9152562b16c8872c44f345.tar nixpkgs-133103d7094c148bdc9152562b16c8872c44f345.tar.gz nixpkgs-133103d7094c148bdc9152562b16c8872c44f345.tar.bz2 nixpkgs-133103d7094c148bdc9152562b16c8872c44f345.tar.lz nixpkgs-133103d7094c148bdc9152562b16c8872c44f345.tar.xz nixpkgs-133103d7094c148bdc9152562b16c8872c44f345.tar.zst nixpkgs-133103d7094c148bdc9152562b16c8872c44f345.zip |
treewide: replace make/build/configure/patchFlags with nix lists
Diffstat (limited to 'pkgs/development/ruby-modules/gem-config')
-rw-r--r-- | pkgs/development/ruby-modules/gem-config/default.nix | 23 |
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 de9d06f7ce0..8a119aa2d32 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 ]; |