treewide: replace make/build/configure/patchFlags with nix lists

This commit is contained in:
Merijn Broeren
2019-12-30 12:58:11 +01:00
committed by Jan Tojnar
parent 08d5fc3934
commit 133103d709
248 changed files with 336 additions and 335 deletions
+8 -11
View File
@@ -1,42 +1,39 @@
{ stdenv, hspell }:
let
dict = a: stdenv.mkDerivation ({
dict = variant: a: stdenv.mkDerivation ({
inherit (hspell) src patchPhase nativeBuildInputs;
meta = hspell.meta // {
broken = true;
description = "${a.buildFlags} Hebrew dictionary";
description = "${variant} Hebrew dictionary";
buildFlags = [ variant ];
} // (if a ? meta then a.meta else {});
} // (removeAttrs a ["meta"]));
in
{
recurseForDerivations = true;
aspell = dict {
aspell = dict "aspell" {
name = "aspell-dict-he-${hspell.version}";
buildFlags = "aspell";
installPhase = ''
mkdir -p $out/lib/aspell
cp -v he_affix.dat he.wl $out/lib/aspell'';
};
myspell = dict {
myspell = dict "myspell" {
name = "myspell-dict-he-${hspell.version}";
buildFlags = "myspell";
installPhase = ''
mkdir -p $out/lib/myspell
cp -v he.dic he.aff $out/lib/myspell'';
};
hunspell = dict {
hunspell = dict "hunspell" {
name = "hunspell-dict-he-${hspell.version}";
buildFlags = "hunspell";
installPhase = ''
mkdir -p $out/lib
cp -rv hunspell $out/lib'';