pollymc/flake.nix

33 lines
855 B
Nix
Raw Normal View History

2022-01-08 13:03:26 +05:30
{
2022-01-09 00:03:50 +05:30
description = "PolyMC flake";
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";
2022-01-08 13:03:26 +05:30
2022-01-09 00:03:50 +05:30
outputs = inputs@{ self, nixpkgs, flake-utils,... }:
flake-utils.lib.eachSystem [ "x86_64-linux" "aarch64-linux" ] (system:
let
pkgs = import nixpkgs {
inherit system;
};
packages = {
2022-01-09 00:23:50 +05:30
polymc = pkgs.libsForQt5.callPackage ./packages/nix/polymc { inherit self; };
2022-01-09 00:03:50 +05:30
};
apps = {
polymc = flake-utils.lib.mkApp {
name = "PolyMC";
drv = packages.polymc;
};
};
in
{
inherit packages apps;
defaultPackage = packages.polymc;
defaultApp = apps.polymc;
2022-01-09 00:23:50 +05:30
overlay = import ./packages/nix/overlay.nix { inherit self; };
2022-01-09 00:03:50 +05:30
}
);
}