1
Fork 0
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:
RGBCube 2024-05-15 13:36:51 +03:00
parent 5d7802cdfd
commit 75eac3e74b
No known key found for this signature in database
5 changed files with 125 additions and 11 deletions

View file

@ -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" ]);
};
}