This commit is contained in:
Rongsong Shen 2025-11-05 16:42:06 +08:00
parent f7244c7e45
commit c28b44152f
5 changed files with 114 additions and 13 deletions

View file

@ -1,21 +1,29 @@
{
description = "A very basic flake";
description = "Flake for some special packages";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs}:
outputs = { self, nixpkgs, flake-utils}:
let
supportedSystems = [ "x86_64-linux" ];
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
in
{
packages = forAllSystems (system: let
pkgs = nixpkgs.legacyPackages.${system};
in
import ./default.nix { inherit pkgs; });
};
flake-utils.lib.eachSystem supportedSystems (
system: let
pkgs = nixpkgs.legacyPackages.${system};
xpkgs = import ./default.nix { inherit pkgs; };
in rec {
packages = xpkgs;
defaultPackage = xpkgs.uem;
devShells.default = pkgs.mkShell {
nativeBuildInputs = xpkgs.uem.nativeBuildInputs;
};
devShell = self.devShells.${system}.default;
}
);
}