not quite, but very very near Force-Push: yes Change-Id: I79ae9f2970e4d7263db5c511e3a5398c22c4771c
37 lines
830 B
Nix
37 lines
830 B
Nix
{
|
|
inputs = {
|
|
nixpkgs = {
|
|
type = "github";
|
|
owner = "NixOS";
|
|
repo = "nixpkgs";
|
|
ref = "nixos-25.05";
|
|
};
|
|
};
|
|
|
|
outputs = { self, nixpkgs }:
|
|
let supportedSystems = [ "aarch64-linux" "x86_64-linux" ];
|
|
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
|
|
nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; });
|
|
in {
|
|
packages = forAllSystems (system: let pkgs = nixpkgsFor.${system}; in {
|
|
default = pkgs.stdenv.mkDerivation {
|
|
src = ./.;
|
|
};
|
|
});
|
|
|
|
devShells = forAllSystems (system: let pkgs = nixpkgsFor.${system}; in {
|
|
default = pkgs.mkShell {
|
|
nativeBuildInputs = with pkgs; [
|
|
binutils
|
|
fasm
|
|
fasmg
|
|
gcc
|
|
gdb
|
|
nasm
|
|
zydis
|
|
];
|
|
};
|
|
});
|
|
};
|
|
}
|
|
|