504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
36 lines
881 B
Nix
36 lines
881 B
Nix
{ lib
|
|
, stdenvNoCC
|
|
, fetchzip
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "mainsail";
|
|
version = "2.9.1";
|
|
|
|
src = fetchzip {
|
|
url = "https://github.com/mainsail-crew/mainsail/releases/download/v${version}/mainsail.zip";
|
|
hash = "sha256-OrCS+0zfXs72vJbrqjvEaHJWD0ndozfCcHs1N9Gqios=";
|
|
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 ];
|
|
};
|
|
}
|