3
0
Fork 0
forked from mirrors/nixpkgs

migmix: make it a fixed-output derivation

Then we do not need to rebuild it for every platform and on mass-rebuilds.
Also it speedup evaluation.
This commit is contained in:
Joerg Thalheim 2017-11-21 18:01:48 +00:00
parent 05ce88e6dd
commit 759c815c22

View file

@ -23,18 +23,22 @@ stdenv.mkDerivation rec {
})
];
phases = [ "installPhase" ];
unpackPhase = ":";
installPhase = ''
mkdir -p $out/share/fonts/truetype/migmix
find ${toString srcs} -name '*.ttf' | xargs -I % cp % $out/share/fonts/truetype/migmix
find $srcs -name '*.ttf' | xargs install -m644 --target $out/share/fonts/truetype/migmix
'';
outputHashAlgo = "sha256";
outputHashMode = "recursive";
outputHash = "1fhh8wg6lxwrnsg9rl4ihffl0bsp1wqa5gps9fx60kr6j9wpvmbg";
meta = with stdenv.lib; {
description = "A high-quality Japanese font based on M+ fonts and IPA fonts";
homepage = http://mix-mplus-ipa.osdn.jp/migmix;
license = stdenv.lib.licenses.ipa;
platforms = stdenv.lib.platforms.unix;
license = licenses.ipa;
platforms = platforms.unix;
maintainers = [ maintainers.mikoim ];
};
}