61 lines
834 B
Nix
61 lines
834 B
Nix
|
{ fetchFromGitLab
|
||
|
, stdenv
|
||
|
, cmake
|
||
|
, pkg-config
|
||
|
, opencv
|
||
|
, curl
|
||
|
, crow
|
||
|
, nlohmann_json
|
||
|
, mbedtls
|
||
|
, glib
|
||
|
, libsysprof-capture
|
||
|
, pcre2
|
||
|
, xorgserver
|
||
|
, libX11
|
||
|
, glm
|
||
|
, util-linux
|
||
|
, libselinux
|
||
|
, libsepol
|
||
|
, pipewire
|
||
|
, libXrandr
|
||
|
}:
|
||
|
|
||
|
stdenv.mkDerivation rec {
|
||
|
pname = "huenicorn";
|
||
|
version = "1.0.9";
|
||
|
|
||
|
src = fetchFromGitLab {
|
||
|
owner = "openjowelsofts";
|
||
|
repo = pname;
|
||
|
rev = "v${version}";
|
||
|
sha256 = "sha256-+IcIvudvFRu9VEiF0DAZX2ZtaIgz4ZCMgBPsAphdfrw=";
|
||
|
};
|
||
|
|
||
|
nativeBuildInputs = [
|
||
|
cmake
|
||
|
pkg-config
|
||
|
opencv
|
||
|
curl
|
||
|
crow
|
||
|
nlohmann_json
|
||
|
mbedtls
|
||
|
glib
|
||
|
libsysprof-capture
|
||
|
pcre2
|
||
|
xorgserver
|
||
|
libX11
|
||
|
glm
|
||
|
util-linux
|
||
|
libselinux
|
||
|
libsepol
|
||
|
pipewire
|
||
|
libXrandr
|
||
|
];
|
||
|
|
||
|
installPhase = ''
|
||
|
mkdir -p $out/bin
|
||
|
cp huenicorn $out/bin/
|
||
|
cp -r webroot/ $out/bin
|
||
|
'';
|
||
|
}
|