nix: add support for non-flake builds

This commit is contained in:
Mustafa Çalışkan
2022-01-09 09:08:39 +03:00
parent 5a09dcae68
commit 957cd29dbf
5 changed files with 50 additions and 10 deletions

View File

@ -2,6 +2,10 @@
description = "PolyMC flake";
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
inputs.libnbtplusplus = {
url = "github:multimc/libnbtplusplus";
flake = false;
@ -17,7 +21,7 @@
pkgs = import nixpkgs {
inherit system;
};
packages = {
polymc = pkgs.libsForQt5.callPackage ./packages/nix/polymc {
inherit self;
@ -25,7 +29,8 @@
submoduleNbt = libnbtplusplus;
};
};
# 'nix flake check' fails
overlay = (final: prev: rec {
polymc = prev.libsForQt5.callPackage ./packages/nix/polymc {
inherit self;