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

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

37 lines
882 B
Nix
Raw Normal View History

2023-03-08 12:45:25 +00:00
{ lib
, stdenvNoCC
, fetchzip
}:
stdenvNoCC.mkDerivation rec {
pname = "mainsail";
2024-04-29 01:13:54 +00:00
version = "2.11.0";
2023-03-08 12:45:25 +00:00
src = fetchzip {
url = "https://github.com/mainsail-crew/mainsail/releases/download/v${version}/mainsail.zip";
2024-04-29 01:13:54 +00:00
hash = "sha256-RQBSNfJQx3D07frYhKdNlRFMJYXiOC9NAT3bbqCr2Ls=";
2023-03-08 12:45:25 +00:00
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 ];
2023-03-08 12:45:25 +00:00
};
}