This repository has been archived on 2025-06-21. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
YUNODO/nix/flake.nix

32 lines
902 B
Nix

{
description = "SunServer";
inputs={
nixpkgs.url = "nixpkgs/nixpkgs-unstable";
};
outputs = { self, nixpkgs }@inputs:
let
supportedSystems = [ "x86_64-linux" ];
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
#v I improved how you call in packages
pkgs = forAllSystems (system:
import nixpkgs {
inherit system;
#v this can be adjusted to read args passed without impure later
config = { allowUnfreePredicate = pkg: builtins.elem (nixpkgs.lib.getName pkg) [
"unrar"
];
};
}
);
in {
packages = forAllSystems (system: {
default = pkgs.${system}.callPackage ./nix/default.nix { };
});
devShells = forAllSystems (system: {
default = pkgs.${system}.callPackage ./nix/devshell.nix { };
});
nixConfig = {
};
};
}