29 lines
582 B
Nix
29 lines
582 B
Nix
{ pkgs ? import <nixpkgs> {} }:
|
|
|
|
with pkgs;
|
|
|
|
# TODO: Once https://github.com/svanderburg/node2nix/issues/184 is
|
|
# fixed, use a proper nixos package instead of a tarball.
|
|
stdenv.mkDerivation {
|
|
pname = "tlaternet-templates";
|
|
version = "1.0";
|
|
src = ./dist.tar.gz;
|
|
installPhase = ''
|
|
mkdir -p $out/srv/
|
|
mv browser $out/srv/web
|
|
'';
|
|
}
|
|
|
|
# let
|
|
# nodePackages = import ./node-packages.nix {
|
|
# inherit pkgs;
|
|
# };
|
|
|
|
# in
|
|
# nodePackages.package.override {
|
|
# buildInputs = [ pkgs.nodePackages.node-gyp-build ];
|
|
# postInstall = ''
|
|
# npm run build-dist
|
|
# '';
|
|
# }
|