b5f92a349c
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
36 lines
881 B
Nix
36 lines
881 B
Nix
{ lib
|
|
, stdenvNoCC
|
|
, fetchzip
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "mainsail";
|
|
version = "2.8.0";
|
|
|
|
src = fetchzip {
|
|
url = "https://github.com/mainsail-crew/mainsail/releases/download/v${version}/mainsail.zip";
|
|
hash = "sha256-YNI4WkWLnB1w8I0ETflDsWNkB6QGO5QrASajKpcmGcU=";
|
|
stripRoot = false;
|
|
};
|
|
|
|
dontConfigure = true;
|
|
dontBuild = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/share/mainsail
|
|
cp -r ./* $out/share/mainsail
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Web interface for managing and controlling 3D printers with Klipper";
|
|
homepage = "https://docs.mainsail.xyz";
|
|
changelog = "https://github.com/mainsail-crew/mainsail/releases/tag/v${version}";
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ shhht lovesegfault ];
|
|
};
|
|
}
|