35 lines
794 B
Nix
35 lines
794 B
Nix
{
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, flake-utils, ... }:
|
|
flake-utils.lib.eachSystem [ "x86_64-linux" ] (system:
|
|
let
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
config.allowUnfree = true;
|
|
};
|
|
tsc = pkgs.writeShellScriptBin "tsc" ''
|
|
exec pnpm exec tsc "$@"
|
|
'';
|
|
in
|
|
{
|
|
|
|
devShells.default = pkgs.mkShell {
|
|
buildInputs =
|
|
with pkgs; [
|
|
nodejs pnpm tsc
|
|
zip unzip rsync
|
|
pkg-config openssl.dev openssl pwgen
|
|
jq curl git asciinema
|
|
];
|
|
};
|
|
|
|
devShell = self.devShells.${system}.default;
|
|
}
|
|
);
|
|
}
|