From 957cd29dbf303771a6fbef54d37a07c002cd5843 Mon Sep 17 00:00:00 2001 From: Mustafa Çalışkan Date: Sun, 9 Jan 2022 09:08:39 +0300 Subject: nix: add support for non-flake builds --- flake.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 825f747e..47a13ac2 100644 --- a/flake.nix +++ b/flake.nix @@ -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; -- cgit