add package for website

This commit is contained in:
Kopatz
2024-05-04 16:47:08 +02:00
parent e9271d8c0f
commit def344c5af
3 changed files with 23 additions and 0 deletions

View File

@@ -47,6 +47,10 @@ in
'';
virtualHosts = {
"localhost" = {
forceSSL = false;
root = pkgs.hub;
};
"kopatz.ddns.net" = {
#serverAliases = [
# "www.kopatz.ddns.net"

View File

@@ -1,3 +1,4 @@
{pkgs, ...}: {
tetrio = pkgs.callPackage ./tetrio-desktop/package.nix { };
hub = pkgs.callPackage ./hub/default.nix { };
}

18
pkgs/hub/default.nix Normal file
View File

@@ -0,0 +1,18 @@
{ stdenv
, lib
, ...
}:
stdenv.mkDerivation (finalAttrs: {
pname = "hub";
version = "1.0.0";
src = fetchGit {
url = "git@github.com:oberprofis/hub.git";
ref = "master";
rev = "39cadbabb0a9b038aa40a586178323b2981595dd";
};
installPhase = ''
mkdir -p $out
cp -r src/* $out
'';
})