pollymc/flake.nix
Mustafa Çalışkan 8d184958d8 nix: init flake
2022-01-08 22:32:49 +03:00

33 lines
814 B
Nix

{
description = "PolyMC flake";
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = inputs@{ self, nixpkgs, flake-utils,... }:
flake-utils.lib.eachSystem [ "x86_64-linux" "aarch64-linux" ] (system:
let
pkgs = import nixpkgs {
inherit system;
};
packages = {
polymc = pkgs.libsForQt5.callPackage ./package/nix {};
};
apps = {
polymc = flake-utils.lib.mkApp {
name = "PolyMC";
drv = packages.polymc;
};
};
in
{
inherit packages apps;
defaultPackage = packages.polymc;
defaultApp = apps.polymc;
overlay = import ./packages/nix/overlay.nix;
}
);
}