This repository has been archived on 2022-09-16. You can view files and clone it, but cannot push or open issues or pull requests.
tlaternet-templates/default.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
# '';
# }