initial commit
This commit is contained in:
commit
8222743519
9 changed files with 314 additions and 0 deletions
18
package.nix
Normal file
18
package.nix
Normal 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}
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue