Files

43 lines
1.0 KiB
Nix

{
description = "uiuauiuaiauauaiuaua";
inputs.nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
outputs = { self, nixpkgs }:
let
inherit (nixpkgs) lib;
systems = [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
forAllSystems = f: lib.genAttrs systems (system: let
pkgs = nixpkgs.legacyPackages.${system};
in f system pkgs);
in {
apps = forAllSystems (system: pkgs: {
default = {
type = "app";
program = "${lib.getExe self.packages.${system}.default}";
meta.description = "Run uash as a normal executable";
};
});
devShells = forAllSystems (system: pkgs: {
default = pkgs.mkShell {
buildInputs = with pkgs; [
uiua-unstable
];
};
});
packages = forAllSystems (system: pkgs: {
default = self.packages.${system}.uash;
uash = pkgs.callPackage ./nix/package.nix { };
});
};
}