2024-09-12 21:57:01 +02:00
|
|
|
{
|
|
|
|
description = "PatOS is a minimal, immutable Linux distribution specialized for the Patagia Platform.";
|
|
|
|
|
|
|
|
inputs = {
|
2025-02-13 09:28:16 +01:00
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
2024-11-11 23:02:38 +01:00
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
2024-09-12 21:57:01 +02:00
|
|
|
};
|
|
|
|
|
2024-09-17 23:02:53 +02:00
|
|
|
outputs =
|
|
|
|
{
|
2025-02-13 09:28:16 +01:00
|
|
|
self,
|
|
|
|
flake-utils,
|
|
|
|
nixpkgs,
|
|
|
|
}:
|
|
|
|
flake-utils.lib.eachDefaultSystem (
|
|
|
|
system:
|
|
|
|
let
|
|
|
|
pkgs = import nixpkgs { inherit system; };
|
|
|
|
in
|
|
|
|
{
|
|
|
|
packages = {
|
|
|
|
default = self.packages.${system}.image;
|
|
|
|
image = pkgs.writeShellScriptBin "image" ''
|
|
|
|
echo "make image here..."
|
|
|
|
'';
|
|
|
|
|
|
|
|
kernel = pkgs.callPackage ./kernel { };
|
|
|
|
systemd = pkgs.callPackage ./systemd { };
|
|
|
|
};
|
|
|
|
|
|
|
|
checks = {
|
|
|
|
simple-test = pkgs.runCommand "simple-test" { } ''
|
|
|
|
${self.packages.${system}.default}/bin/my-program
|
|
|
|
touch $out
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
formatter = pkgs.nixpkgs-fmt;
|
|
|
|
|
|
|
|
devShells.default = pkgs.mkShell {
|
|
|
|
buildInputs = with pkgs; [
|
|
|
|
erofs-utils
|
|
|
|
just
|
|
|
|
nixd
|
|
|
|
nixfmt-rfc-style
|
|
|
|
squashfs-tools-ng
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
);
|
2024-09-12 21:57:01 +02:00
|
|
|
}
|