dotfiles/nix/overlays/mainsail/mainsail.nix
Magic_RB 580b2ca7c6
Gooseberry 3D printing setup
Signed-off-by: Magic_RB <magic_rb@redalder.org>
2021-08-19 18:25:32 +02:00

18 lines
370 B
Nix

{ fetchurl
, lib
, unzip
}:
with lib;
fetchurl {
url = "https://github.com/meteyou/mainsail/releases/download/v1.6.0/mainsail.zip";
sha256 = "sha256-tg3wuJOe5umh6ZiRRdyXABPxhSER/BYvWBd5xuKdjb4=";
downloadToTemp = true;
recursiveHash = true;
name = "mainsail";
postFetch =
''
mkdir -p $out
${unzip}/bin/unzip -d $out $downloadedFile
'';
}