mirror of
https://github.com/mitchellh/zig-overlay.git
synced 2025-02-05 17:02:48 +02:00
fmt
This commit is contained in:
parent
b2763f8604
commit
13b0fe4dd5
2 changed files with 40 additions and 26 deletions
|
@ -6,34 +6,45 @@
|
||||||
flake-utils.url = "github:numtide/flake-utils";
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
|
|
||||||
# Used for shell.nix
|
# Used for shell.nix
|
||||||
flake-compat = { url = github:edolstra/flake-compat; flake = false; };
|
flake-compat = {
|
||||||
|
url = github:edolstra/flake-compat;
|
||||||
|
flake = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, flake-utils, ... }@inputs:
|
outputs = {
|
||||||
flake-utils.lib.eachDefaultSystem (system:
|
self,
|
||||||
let pkgs = import nixpkgs { inherit system; };
|
nixpkgs,
|
||||||
|
flake-utils,
|
||||||
|
...
|
||||||
|
} @ inputs:
|
||||||
|
flake-utils.lib.eachDefaultSystem (
|
||||||
|
system: let
|
||||||
|
pkgs = import nixpkgs {inherit system;};
|
||||||
in {
|
in {
|
||||||
devShells.default = pkgs.mkShell {
|
devShells.default = pkgs.mkShell {
|
||||||
nativeBuildInputs = with pkgs; [
|
nativeBuildInputs = with pkgs;
|
||||||
cmake
|
[
|
||||||
gdb
|
cmake
|
||||||
libxml2
|
gdb
|
||||||
ninja
|
libxml2
|
||||||
qemu
|
ninja
|
||||||
wasmtime
|
qemu
|
||||||
zlib
|
wasmtime
|
||||||
] ++ (with llvmPackages_14; [
|
zlib
|
||||||
clang
|
]
|
||||||
clang-unwrapped
|
++ (with llvmPackages_14; [
|
||||||
lld
|
clang
|
||||||
llvm
|
clang-unwrapped
|
||||||
]);
|
lld
|
||||||
|
llvm
|
||||||
|
]);
|
||||||
|
|
||||||
hardeningDisable = [ "all" ];
|
hardeningDisable = ["all"];
|
||||||
};
|
};
|
||||||
|
|
||||||
# For compatibility with older versions of the `nix` binary
|
# For compatibility with older versions of the `nix` binary
|
||||||
devShell = self.devShells.${system}.default;
|
devShell = self.devShells.${system}.default;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,12 @@
|
||||||
(import
|
(import
|
||||||
(
|
(
|
||||||
let flake-compat = (builtins.fromJSON (builtins.readFile ./flake.lock)).nodes.flake-compat; in
|
let
|
||||||
fetchTarball {
|
flake-compat = (builtins.fromJSON (builtins.readFile ./flake.lock)).nodes.flake-compat;
|
||||||
url = "https://github.com/edolstra/flake-compat/archive/${flake-compat.locked.rev}.tar.gz";
|
in
|
||||||
sha256 = flake-compat.locked.narHash;
|
fetchTarball {
|
||||||
}
|
url = "https://github.com/edolstra/flake-compat/archive/${flake-compat.locked.rev}.tar.gz";
|
||||||
|
sha256 = flake-compat.locked.narHash;
|
||||||
|
}
|
||||||
)
|
)
|
||||||
{ src = ./.; }).shellNix
|
{src = ./.;})
|
||||||
|
.shellNix
|
||||||
|
|
Loading…
Add table
Reference in a new issue