mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
52 lines
1.2 KiB
Nix
52 lines
1.2 KiB
Nix
|
{
|
||
|
description = "Constellation";
|
||
|
|
||
|
inputs = {
|
||
|
nixpkgsWorking = {
|
||
|
url = "github:katexochen/nixpkgs/working";
|
||
|
};
|
||
|
nixpkgsUnstable = {
|
||
|
url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||
|
};
|
||
|
flake-utils = {
|
||
|
url = "github:numtide/flake-utils";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
outputs =
|
||
|
{ self
|
||
|
, nixpkgsWorking
|
||
|
, nixpkgsUnstable
|
||
|
, flake-utils
|
||
|
}:
|
||
|
flake-utils.lib.eachDefaultSystem (system:
|
||
|
let
|
||
|
pkgsWorking = import nixpkgsWorking { inherit system; };
|
||
|
pkgsUnstable = import nixpkgsUnstable { inherit system; };
|
||
|
|
||
|
mkosiDev = (pkgsWorking.mkosi.overrideAttrs (oldAttrs: rec {
|
||
|
propagatedBuildInputs = oldAttrs.propagatedBuildInputs ++ (with pkgsWorking; [
|
||
|
# package management
|
||
|
dnf5
|
||
|
rpm
|
||
|
|
||
|
# filesystem tools
|
||
|
squashfsTools # mksquashfs
|
||
|
dosfstools # mkfs.vfat
|
||
|
mtools # mcopy
|
||
|
cryptsetup # dm-verity
|
||
|
util-linux # flock
|
||
|
kmod # depmod
|
||
|
]);
|
||
|
}));
|
||
|
|
||
|
in
|
||
|
{
|
||
|
packages.mkosi = mkosiDev;
|
||
|
|
||
|
devShells.default = import ./nix/shells/default.nix { pkgs = pkgsUnstable; };
|
||
|
|
||
|
formatter = nixpkgsUnstable.legacyPackages.${system}.nixpkgs-fmt;
|
||
|
});
|
||
|
}
|