base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / fl / fluidd / package.nix
blob8efda607089629286d037ac7e23004cb3d7e824b
1 { lib, stdenvNoCC, fetchurl, unzip, nixosTests }:
3 stdenvNoCC.mkDerivation rec {
4   pname = "fluidd";
5   version = "1.30.5";
7   src = fetchurl {
8     name = "fluidd-v${version}.zip";
9     url = "https://github.com/fluidd-core/fluidd/releases/download/v${version}/fluidd.zip";
10     sha256 = "sha256-Ry9aD8pSFw076yIywik0ov+ZPNRsI9srM4YJBW/1bY8=";
11   };
13   nativeBuildInputs = [ unzip ];
15   dontConfigure = true;
16   dontBuild = true;
18   unpackPhase = ''
19     mkdir fluidd
20     unzip $src -d fluidd
21   '';
23   installPhase = ''
24     mkdir -p $out/share/fluidd
25     cp -r fluidd $out/share/fluidd/htdocs
26   '';
28   passthru.tests = { inherit (nixosTests) fluidd; };
30   meta = with lib; {
31     description = "Klipper web interface";
32     homepage = "https://docs.fluidd.xyz";
33     license = licenses.gpl3Only;
34     maintainers = with maintainers; [ zhaofengli ];
35   };