9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
35 lines
856 B
Nix
35 lines
856 B
Nix
{ lib
|
|
, stdenvNoCC
|
|
, fetchurl
|
|
, unzip
|
|
}:
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
pname = "mountain-duck";
|
|
version = "4.14.1.21330";
|
|
|
|
src = fetchurl {
|
|
url = "https://dist.mountainduck.io/Mountain%20Duck-${finalAttrs.version}.zip";
|
|
sha256 = "0wcnqwzrhzgjpm7pqzbn4fbnwc5rnmw56gma0a1961d5j9vqcs49";
|
|
};
|
|
dontUnpack = true;
|
|
|
|
nativeBuildInputs = [ unzip ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/Applications
|
|
unzip -d $out/Applications $src
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Mount server and cloud storage as a disk on macOS and Windows";
|
|
homepage = "https://mountainduck.io";
|
|
license = licenses.unfree;
|
|
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
|
maintainers = with maintainers; [ emilytrau Enzime ];
|
|
platforms = platforms.darwin;
|
|
};
|
|
})
|