add ente frontend
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
{pkgs, ...}: {
|
||||
{pkgs, ...}: rec {
|
||||
tetrio = pkgs.callPackage ./tetrio-desktop/package.nix { };
|
||||
hub = pkgs.callPackage ./hub/default.nix { };
|
||||
ente-frontend = pkgs.callPackage ./ente-frontend/default.nix { };
|
||||
website = pkgs.callPackage ./website/default.nix { inherit hub ente-frontend; };
|
||||
}
|
||||
|
||||
21
pkgs/ente-frontend/default.nix
Normal file
21
pkgs/ente-frontend/default.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{ lib, buildNpmPackage, fetchFromGitHub }:
|
||||
|
||||
buildNpmPackage rec {
|
||||
pname = "ente-website";
|
||||
version = "1.0.0";
|
||||
|
||||
src = "${(fetchGit {
|
||||
url = "git@github.com:oberprofis/ente.git";
|
||||
ref = "master";
|
||||
rev = "9a3545396fded13006fe804b2e75020ad65b9eaf";
|
||||
})}/website/tracker-site";
|
||||
npmDepsHash = "sha256-pNU7Y/73iltMSzGbQwUZWdD7GbIToXMFR5y763Bi50o=";
|
||||
|
||||
# The prepack script runs the build script, which we'd rather do in the build phase.
|
||||
npmPackFlags = [ "--ignore-scripts" ];
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
ls .
|
||||
cp -r ./dist/tracker-site/* $out
|
||||
'';
|
||||
}
|
||||
16
pkgs/website/default.nix
Normal file
16
pkgs/website/default.nix
Normal file
@@ -0,0 +1,16 @@
|
||||
{ stdenv, lib, buildNpmPackage, fetchFromGitHub, hub, ente-frontend }:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "kopatz-website";
|
||||
version = "1.0.0";
|
||||
|
||||
src = ./.;
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/tracker-site
|
||||
cp -r ${hub}/* $out
|
||||
cp -r ${ente-frontend}/* $out/tracker-site
|
||||
'';
|
||||
})
|
||||
Reference in New Issue
Block a user