1 Commits

Author SHA1 Message Date
oysteikt 00450ddffd .gitea/workflows/check: init
Check / check (push) Successful in 1m13s
2026-05-07 02:56:31 +09:00
3 changed files with 7 additions and 82 deletions
-6
View File
@@ -1,6 +0,0 @@
# Uiua
*.uasm
# Nix
result
result-*
+7 -32
View File
@@ -5,38 +5,13 @@
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);
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
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 { };
});
devShells.x86_64-linux.default = pkgs.mkShell {
buildInputs = with pkgs; [
uiua-unstable
];
};
};
}
-44
View File
@@ -1,44 +0,0 @@
{
lib
, uiua
, stdenvNoCC
, runtimeShell
}:
stdenvNoCC.mkDerivation {
pname = "uash";
version = "unstable";
src = lib.fileset.toSource {
root = ./..;
fileset = lib.fileset.unions [
../uash.ua
];
};
nativeBuildInputs = [ uiua ];
buildPhase = ''
runHook preBuild
uiua build --output .uash.uasm uash.ua
runHook postBuild
'';
wrapper = ''
#!${runtimeShell}
"${uiua}"/bin/uiua run ${placeholder "out"}/bin/.uash.uasm
'';
passAsFile = [ "wrapper" ];
installPhase = ''
runHook preInstall
install -Dm444 .uash.uasm -t "$out"/bin
install -Dm555 "$wrapperPath" "$out"/bin/uash
runHook postInstall
'';
shellPath = "/bin/uash";
meta.mainProgram = "uash";
}