create monitor pkg

This commit is contained in:
Kopatz
2024-05-20 12:17:51 +02:00
parent 27c07b527b
commit effdbf8ac5
9 changed files with 69 additions and 34 deletions

View File

@@ -1,6 +1,8 @@
{pkgs, ...}: rec {
{ pkgs, ... }: rec {
tetrio = pkgs.callPackage ./tetrio-desktop/package.nix { };
hub = pkgs.callPackage ./hub/default.nix { };
kop-hub = pkgs.callPackage ./hub/default.nix { };
ente-frontend = pkgs.callPackage ./ente-frontend/default.nix { };
website = pkgs.callPackage ./website/default.nix { inherit hub ente-frontend; };
kop-website =
pkgs.callPackage ./website/default.nix { inherit kop-hub ente-frontend; };
kop-monitor = pkgs.callPackage ./monitor/default.nix { };
}

20
pkgs/monitor/default.nix Normal file
View File

@@ -0,0 +1,20 @@
{ rustPlatform
, lib
, pkgs
, ...
}:
rustPlatform.buildRustPackage {
pname = "kop-monitor";
version = "1.0.0";
src = fetchGit {
url = "git@github.com:kropatz/monitor.git";
ref = "master";
rev = "0e460dd24f73e060acf9f16e84b45aea97781151";
};
nativeBuildInputs = with pkgs; [ pkg-config ];
buildInputs = with pkgs; [ openssl ];
cargoHash = "sha256-/bpxo5LUrdMJBzI6N4Dr+f7/pH6fE+fayzZW3CZ/lwA=";
}

View File

@@ -1,4 +1,4 @@
{ stdenv, lib, buildNpmPackage, fetchFromGitHub, hub, ente-frontend }:
{ stdenv, lib, buildNpmPackage, fetchFromGitHub, kop-hub, ente-frontend }:
stdenv.mkDerivation (finalAttrs: {
pname = "kopatz-website";
@@ -10,7 +10,7 @@ stdenv.mkDerivation (finalAttrs: {
installPhase = ''
mkdir -p $out/tracker-site
cp -r ${hub}/* $out
cp -r ${kop-hub}/* $out
cp -r ${ente-frontend}/* $out/tracker-site
'';
})