Files
42sh/flake.nix
2025-04-24 20:07:27 +02:00

36 lines
769 B
Nix

{
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
outputs = {
self,
nixpkgs,
}: let
forAllSystems = function:
nixpkgs.lib.genAttrs [
"x86_64-linux"
"aarch64-linux"
] (system: function nixpkgs.legacyPackages.${system});
in {
devShells = forAllSystems (pkgs: {
default = pkgs.mkShell {
hardeningDisable = ["fortify"];
packages = with pkgs; [
gcc
criterion
valgrind
compiledb
gcovr
tcsh
];
};
});
formatter = forAllSystems (pkgs: pkgs.alejandra);
packages = forAllSystems (pkgs: {
default = self.packages.${pkgs.system}._42sh;
_42sh = pkgs.callPackage ./42sh.nix { };
});
};
}