anthy: don't include stdenv in $out closure (#394127)
This commit is contained in:
@@ -11,10 +11,10 @@ stdenv.mkDerivation rec {
|
||||
|
||||
postPatch = lib.optionalString (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||
# for cross builds, copy build tools from the native package
|
||||
cp -r "${buildPackages.anthy}"/lib/internals/{mkdepgraph,.libs} depgraph/
|
||||
cp -r "${buildPackages.anthy}"/lib/internals/{mkworddic,.libs} mkworddic/
|
||||
cp -r "${buildPackages.anthy}"/lib/internals/{calctrans,.libs} calctrans/
|
||||
cp -r "${buildPackages.anthy}"/lib/internals/{mkfiledic,.libs} mkanthydic/
|
||||
cp -r "${buildPackages.anthy.dev}"/lib/internals/{mkdepgraph,.libs} depgraph/
|
||||
cp -r "${buildPackages.anthy.dev}"/lib/internals/{mkworddic,.libs} mkworddic/
|
||||
cp -r "${buildPackages.anthy.dev}"/lib/internals/{calctrans,.libs} calctrans/
|
||||
cp -r "${buildPackages.anthy.dev}"/lib/internals/{mkfiledic,.libs} mkanthydic/
|
||||
substituteInPlace mkworddic/Makefile.in \
|
||||
--replace-fail 'anthy.wdic : mkworddic' 'anthy.wdic : ' \
|
||||
--replace-fail 'all: ' 'all: anthy.wdic #'
|
||||
@@ -30,6 +30,11 @@ stdenv.mkDerivation rec {
|
||||
--replace-fail 'all-am: Makefile $(PROGRAMS) $(SCRIPTS) $(DATA)' 'all-am: $(DATA)'
|
||||
'';
|
||||
|
||||
outputs = [
|
||||
"out"
|
||||
"dev"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Hiragana text to Kana Kanji mixed text Japanese input method";
|
||||
homepage = "https://anthy.osdn.jp/";
|
||||
@@ -39,8 +44,9 @@ stdenv.mkDerivation rec {
|
||||
};
|
||||
|
||||
postFixup = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||
mkdir "$out/lib/internals"
|
||||
cp -r depgraph/{mkdepgraph,.libs} mkworddic/{mkworddic,.libs} calctrans/{calctrans,.libs} mkanthydic/{mkfiledic,.libs} "$out/lib/internals"
|
||||
# not relevant for installed package
|
||||
mkdir "$dev/lib/internals"
|
||||
cp -r depgraph/{mkdepgraph,.libs} mkworddic/{mkworddic,.libs} calctrans/{calctrans,.libs} mkanthydic/{mkfiledic,.libs} "$dev/lib/internals"
|
||||
'';
|
||||
|
||||
src = fetchurl {
|
||||
|
||||
Reference in New Issue
Block a user