nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, stdenvNoCC
3, fetchzip
4}:
5
6stdenvNoCC.mkDerivation rec {
7 pname = "mainsail";
8 version = "2.5.1";
9
10 src = fetchzip {
11 url = "https://github.com/mainsail-crew/mainsail/releases/download/v${version}/mainsail.zip";
12 hash = "sha256-xdmi1Q2j2gG4ajh57mBsjH3qCBwpsZCQbh0INFKifg4=";
13 stripRoot = false;
14 };
15
16 dontConfigure = true;
17 dontBuild = true;
18
19 installPhase = ''
20 runHook preInstall
21
22 mkdir -p $out/share/mainsail
23 cp -r ./* $out/share/mainsail
24
25 runHook postInstall
26 '';
27
28 meta = with lib; {
29 description = "Web interface for managing and controlling 3D printers with Klipper";
30 homepage = "https://docs.mainsail.xyz";
31 changelog = "https://github.com/mainsail-crew/mainsail/releases/tag/v${version}";
32 license = licenses.gpl3Plus;
33 platforms = platforms.linux;
34 maintainers = with maintainers; [ shhht lovesegfault ];
35 };
36}