cetcd
This commit is contained in:
parent
f7244c7e45
commit
c28b44152f
5 changed files with 114 additions and 13 deletions
26
flake.nix
26
flake.nix
|
|
@ -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;
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue