xrfragment-haxe/shell.nix

32 lines
687 B
Nix
Raw Permalink Normal View History

2025-09-01 17:55:24 +02:00
{ pkgs ? import <nixos-unstable> {} } :
{
2023-08-04 09:11:26 +02:00
2025-09-01 17:55:24 +02:00
pkgs = import (builtins.fetchGit {
name = "nixos-23.05";
url = "https://github.com/nixos/nixpkgs/";
ref = "refs/heads/nixos-unstable";
rev = "ef99fa5c5ed624460217c31ac4271cfb5cb2502c";
});
foo = pkgs.mkShell {
2023-08-04 09:11:26 +02:00
# nativeBuildInputs is usually what you want -- tools you need to run
nativeBuildInputs = with pkgs.buildPackages; [
2023-10-30 16:15:08 +01:00
nodejs
2023-10-25 17:32:19 +02:00
haxe
mmark
xml2rfc
2024-01-03 14:23:34 +00:00
esbuild
2023-08-04 09:11:26 +02:00
];
2023-12-20 17:44:03 +00:00
shellHooks = ''
2025-08-14 10:40:01 +02:00
export NIX_SHELL_XRF=1
2025-02-07 16:18:37 +01:00
echo -e "\n run: './make build' to build all (haxe parser + js)\n"
echo -e "\n run: './make build javascript' to build js\n"
2023-12-20 17:44:03 +00:00
'';
2025-09-01 17:55:24 +02:00
};
2023-08-04 09:11:26 +02:00
}
2024-08-06 10:35:57 +02:00