Merge pull request #212034 from Et7f3/modernize_satysfi
satysfi: rewrite with buildDunePackage
This commit is contained in:
commit
18eb2b994f
@ -1,4 +1,4 @@
|
|||||||
{ lib, stdenv, fetchFromGitHub, ruby, dune_3, ocamlPackages
|
{ lib, stdenv, fetchFromGitHub, ruby, ocamlPackages
|
||||||
, ipaexfont, junicode, lmodern, lmmath
|
, ipaexfont, junicode, lmodern, lmmath
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
@ -34,7 +34,7 @@ let
|
|||||||
inherit (ocamlPackages.yojson) meta;
|
inherit (ocamlPackages.yojson) meta;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation rec {
|
ocamlPackages.buildDunePackage rec {
|
||||||
pname = "satysfi";
|
pname = "satysfi";
|
||||||
version = "0.0.8";
|
version = "0.0.8";
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
@ -51,23 +51,24 @@ in
|
|||||||
$out/share/satysfi
|
$out/share/satysfi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
DUNE_PROFILE = "release";
|
duneVersion = "3";
|
||||||
|
|
||||||
nativeBuildInputs = [ ruby dune_3 ];
|
nativeBuildInputs = with ocamlPackages; [ menhir cppo ];
|
||||||
|
|
||||||
buildInputs = [ camlpdf otfm yojson-with-position ] ++ (with ocamlPackages; [
|
buildInputs = [ camlpdf otfm yojson-with-position ] ++ (with ocamlPackages; [
|
||||||
ocaml findlib menhir menhirLib
|
menhirLib
|
||||||
batteries camlimages core_kernel ppx_deriving uutf omd cppo re
|
batteries camlimages core_kernel ppx_deriving uutf omd re
|
||||||
]);
|
]);
|
||||||
|
|
||||||
installPhase = ''
|
postInstall = ''
|
||||||
cp -r ${ipaexfont}/share/fonts/opentype/* lib-satysfi/dist/fonts/
|
mkdir -p $out/share/satysfi/dist/fonts
|
||||||
cp -r ${junicode}/share/fonts/junicode-ttf/* lib-satysfi/dist/fonts/
|
|
||||||
cp -r ${lmodern}/share/fonts/opentype/public/lm/* lib-satysfi/dist/fonts/
|
|
||||||
cp -r ${lmmath}/share/fonts/opentype/latinmodern-math.otf lib-satysfi/dist/fonts/
|
|
||||||
make install PREFIX=$out LIBDIR=$out/share/satysfi
|
|
||||||
mkdir -p $out/share/satysfi/
|
|
||||||
cp -r lib-satysfi/dist/ $out/share/satysfi/
|
cp -r lib-satysfi/dist/ $out/share/satysfi/
|
||||||
|
cp -r \
|
||||||
|
${ipaexfont}/share/fonts/opentype/* \
|
||||||
|
${junicode}/share/fonts/junicode-ttf/* \
|
||||||
|
${lmodern}/share/fonts/opentype/public/lm/* \
|
||||||
|
${lmmath}/share/fonts/opentype/latinmodern-math.otf \
|
||||||
|
$out/share/satysfi/dist/fonts
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user