nixpkgs/pkgs/applications/misc/fluidd/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
775 B
Nix
Raw Normal View History

2021-07-21 02:21:03 +00:00
{ lib, stdenvNoCC, fetchurl, unzip }:
stdenvNoCC.mkDerivation rec {
pname = "fluidd";
2024-05-02 01:43:55 +00:00
version = "1.30.0";
2021-07-21 02:21:03 +00:00
src = fetchurl {
name = "fluidd-v${version}.zip";
url = "https://github.com/cadriel/fluidd/releases/download/v${version}/fluidd.zip";
2024-05-02 01:43:55 +00:00
sha256 = "sha256-+nPVnKuZtYGFtqC48XNISSjay3lDAYR3l50kq026H3Q=";
2021-07-21 02:21:03 +00:00
};
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
'';
meta = with lib; {
description = "Klipper web interface";
homepage = "https://docs.fluidd.xyz";
license = licenses.gpl3Only;
maintainers = with maintainers; [ zhaofengli ];
};
}