159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
36 lines
841 B
Nix
36 lines
841 B
Nix
{ lib, stdenvNoCC, fetchurl, unzip, nixosTests }:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "fluidd";
|
|
version = "1.30.3";
|
|
|
|
src = fetchurl {
|
|
name = "fluidd-v${version}.zip";
|
|
url = "https://github.com/cadriel/fluidd/releases/download/v${version}/fluidd.zip";
|
|
sha256 = "sha256-wkrWmP5GeodM7wWaEkxT8JsUIc/jhRNHAP1gnLjZ7W4=";
|
|
};
|
|
|
|
nativeBuildInputs = [ unzip ];
|
|
|
|
dontConfigure = true;
|
|
dontBuild = true;
|
|
|
|
unpackPhase = ''
|
|
mkdir fluidd
|
|
unzip $src -d fluidd
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/share/fluidd
|
|
cp -r fluidd $out/share/fluidd/htdocs
|
|
'';
|
|
|
|
passthru.tests = { inherit (nixosTests) fluidd; };
|
|
|
|
meta = with lib; {
|
|
description = "Klipper web interface";
|
|
homepage = "https://docs.fluidd.xyz";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ zhaofengli ];
|
|
};
|
|
}
|