initial commit

This commit is contained in:
EatThePooh 2025-12-18 11:40:05 +07:00
commit 8222743519
9 changed files with 314 additions and 0 deletions

18
package.nix Normal file
View file

@ -0,0 +1,18 @@
{ pkgs, config, name }:
pkgs.stdenv.mkDerivation {
inherit name;
src = ./src;
installPhase = ''
mkdir -p $out/bin
cp -r * $out
# This is meant to be executed from inside a devShell with Deno set up
cat > $out/bin/${name} <<EOF
#!/bin/sh
cd ${builtins.placeholder "out"}
exec ${config.deno-with-packages.package}/bin/deno task --quiet run "\$@"
EOF
chmod +x $out/bin/${name}
'';
}