mirror of
https://github.com/RGBCube/crash
synced 2025-07-28 00:47:43 +00:00
Add README, LICENSE and clean up flake.nix
This commit is contained in:
parent
5d7802cdfd
commit
75eac3e74b
5 changed files with 125 additions and 11 deletions
24
flake.nix
24
flake.nix
|
@ -8,21 +8,27 @@
|
|||
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||
|
||||
outputs = { nixpkgs, ... }: with nixpkgs.lib; foldl' recursiveUpdate {} (map (system: let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
outputs = { self, nixpkgs }: let
|
||||
inherit (nixpkgs) lib;
|
||||
|
||||
forEachSystem = lib.genAttrs [ "x86_64-linux" "aarch64-linux" "riscv64-linux" ];
|
||||
in {
|
||||
devShell.${system} = pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
devShell = forEachSystem (system: with nixpkgs.legacyPackages.${system}; mkShell {
|
||||
packages = [
|
||||
zig_0_12
|
||||
zls
|
||||
zon2nix
|
||||
];
|
||||
};
|
||||
});
|
||||
|
||||
packages.${system} = rec {
|
||||
crash = pkgs.callPackage ./package.nix {};
|
||||
packages = forEachSystem (system: rec {
|
||||
inherit (self.overlays.crash null nixpkgs.legacyPackages.${system}) crash;
|
||||
default = crash;
|
||||
});
|
||||
|
||||
overlays = rec {
|
||||
crash = (final: prev: { crash = prev.callPackage ./package.nix {}; });
|
||||
default = crash;
|
||||
};
|
||||
|
||||
}) [ "x86_64-linux" "aarch64-linux" "riscv64-linux" ]);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue