2024-07-11 01:10:35 +09:00
|
|
|
{
|
2024-09-04 17:03:21 +09:00
|
|
|
description = "fortify sandbox tool and nixos module";
|
2024-07-11 01:10:35 +09:00
|
|
|
|
|
|
|
inputs = {
|
2024-09-04 17:03:21 +09:00
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable-small";
|
2024-07-11 01:10:35 +09:00
|
|
|
};
|
|
|
|
|
2024-07-16 21:54:44 +09:00
|
|
|
outputs =
|
|
|
|
{ self, nixpkgs }:
|
2024-07-11 01:10:35 +09:00
|
|
|
let
|
2024-09-04 17:03:21 +09:00
|
|
|
supportedSystems = [
|
|
|
|
"aarch64-linux"
|
|
|
|
"i686-linux"
|
|
|
|
"x86_64-linux"
|
|
|
|
];
|
|
|
|
|
|
|
|
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
|
|
|
|
nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; });
|
2024-07-11 01:10:35 +09:00
|
|
|
in
|
|
|
|
{
|
2024-09-04 17:03:21 +09:00
|
|
|
nixosModules.fortify = import ./nixos.nix;
|
|
|
|
|
|
|
|
packages = forAllSystems (
|
2024-07-16 21:54:44 +09:00
|
|
|
system:
|
|
|
|
let
|
2024-09-04 17:03:21 +09:00
|
|
|
pkgs = nixpkgsFor.${system};
|
2024-07-16 21:54:44 +09:00
|
|
|
in
|
|
|
|
{
|
2024-09-04 17:03:21 +09:00
|
|
|
default = self.packages.${system}.fortify;
|
2024-07-16 21:54:44 +09:00
|
|
|
|
2024-09-04 17:03:21 +09:00
|
|
|
fortify = pkgs.callPackage ./package.nix { };
|
2024-07-16 21:54:44 +09:00
|
|
|
}
|
|
|
|
);
|
2024-09-04 17:03:21 +09:00
|
|
|
|
|
|
|
devShells = forAllSystems (system: {
|
|
|
|
default = nixpkgsFor.${system}.mkShell {
|
2024-09-17 23:15:33 +09:00
|
|
|
buildInputs =
|
|
|
|
with nixpkgsFor.${system};
|
|
|
|
[ self.packages.${system}.fortify ] ++ self.packages.${system}.fortify.buildInputs;
|
2024-09-04 17:03:21 +09:00
|
|
|
};
|
|
|
|
});
|
2024-07-11 01:10:35 +09:00
|
|
|
};
|
2024-07-16 21:54:44 +09:00
|
|
|
}
|