nix: fix overlay

This commit is contained in:
Mustafa Çalışkan 2022-01-08 23:23:55 +03:00
parent 2a760a8e32
commit 9499acedab
3 changed files with 4 additions and 12 deletions

View File

@ -26,9 +26,9 @@
};
};
overlay = import ./packages/nix/overlay.nix {
inherit self quazip libnbtplusplus;
};
overlay = (final: prev: rec {
polymc = packages.polymc;
});
apps = {
polymc = flake-utils.lib.mkApp {

View File

@ -1,9 +0,0 @@
{ self, quazip, libnbtplusplus }:
final: prev: rec {
polymc = prev.libsForQt5.callPackage ./polymc {
inherit self;
submoduleQuazip = quazip;
submoduleNbt = libnbtplusplus;
};
}

View File

@ -42,6 +42,7 @@ mkDerivation rec {
buildInputs = [ qtbase jdk8 zlib ];
postUnpack = ''
rm -rf source/libraries/{libnbtplusplus,quazip}
mkdir source/libraries/{libnbtplusplus,quazip}
cp -a ${submoduleNbt}/* source/libraries/libnbtplusplus
cp -a ${submoduleQuazip}/* source/libraries/quazip