nix: use user package set on overlay and switch to ninja

This commit is contained in:
Mustafa Çalışkan 2022-01-09 01:23:53 +03:00
parent ccde63bbab
commit ae3c613f6c
2 changed files with 8 additions and 2 deletions

View File

@ -27,7 +27,11 @@
};
overlay = (final: prev: rec {
polymc = packages.polymc;
polymc = prev.libsForQt5.callPackage ./packages/nix/polymc {
inherit self;
submoduleQuazip = quazip;
submoduleNbt = libnbtplusplus;
};
});
apps = {

View File

@ -5,6 +5,7 @@
, substituteAll
, fetchpatch
, cmake
, ninja
, jdk8
, jdk
, zlib
@ -38,7 +39,7 @@ mkDerivation rec {
src = lib.cleanSource self;
nativeBuildInputs = [ cmake file makeWrapper ];
nativeBuildInputs = [ cmake ninja file makeWrapper ];
buildInputs = [ qtbase jdk8 zlib ];
postUnpack = ''
@ -50,6 +51,7 @@ mkDerivation rec {
'';
cmakeFlags = [
"-GNinja"
"-DLauncher_LAYOUT=lin-system"
];