koreader: Add gnutar and sdvc dependencies
This commit is contained in:
parent
a9d265cd39
commit
88901d789a
1 changed files with 16 additions and 5 deletions
|
@ -2,10 +2,12 @@
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
, dpkg
|
, dpkg
|
||||||
, luajit
|
|
||||||
, gtk3-x11
|
|
||||||
, SDL2
|
|
||||||
, glib
|
, glib
|
||||||
|
, gnutar
|
||||||
|
, gtk3-x11
|
||||||
|
, luajit
|
||||||
|
, sdcv
|
||||||
|
, SDL2
|
||||||
, noto-fonts
|
, noto-fonts
|
||||||
, nerdfonts }:
|
, nerdfonts }:
|
||||||
let font-droid = nerdfonts.override { fonts = [ "DroidSansMono" ]; };
|
let font-droid = nerdfonts.override { fonts = [ "DroidSansMono" ]; };
|
||||||
|
@ -21,7 +23,14 @@ in stdenv.mkDerivation rec {
|
||||||
|
|
||||||
sourceRoot = ".";
|
sourceRoot = ".";
|
||||||
nativeBuildInputs = [ makeWrapper dpkg ];
|
nativeBuildInputs = [ makeWrapper dpkg ];
|
||||||
buildInputs = [ luajit gtk3-x11 SDL2 glib ];
|
buildInputs = [
|
||||||
|
glib
|
||||||
|
gnutar
|
||||||
|
gtk3-x11
|
||||||
|
luajit
|
||||||
|
sdcv
|
||||||
|
SDL2
|
||||||
|
];
|
||||||
unpackCmd = "dpkg-deb -x ${src} .";
|
unpackCmd = "dpkg-deb -x ${src} .";
|
||||||
|
|
||||||
dontConfigure = true;
|
dontConfigure = true;
|
||||||
|
@ -30,7 +39,9 @@ in stdenv.mkDerivation rec {
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out
|
mkdir -p $out
|
||||||
cp -R usr/* $out/
|
cp -R usr/* $out/
|
||||||
cp ${luajit}/bin/luajit $out/lib/koreader/luajit
|
ln -sf ${luajit}/bin/luajit $out/lib/koreader/luajit
|
||||||
|
ln -sf ${sdcv}/bin/sdcv $out/lib/koreader/sdcv
|
||||||
|
ln -sf ${gnutar}/bin/tar $out/lib/koreader/tar
|
||||||
find $out -xtype l -delete
|
find $out -xtype l -delete
|
||||||
for i in ${noto-fonts}/share/fonts/truetype/noto/*; do
|
for i in ${noto-fonts}/share/fonts/truetype/noto/*; do
|
||||||
ln -s "$i" $out/lib/koreader/fonts/noto/
|
ln -s "$i" $out/lib/koreader/fonts/noto/
|
||||||
|
|
Loading…
Reference in a new issue