mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-27 02:26:14 +01:00
18 lines
370 B
Nix
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
|
||
|
'';
|
||
|
}
|