default.nix (931B)
1 { 2 lib, 3 stdenvNoCC, 4 fetchurl, 5 undmg, 6 makeWrapper, 7 }: 8 9 stdenvNoCC.mkDerivation (finalAttrs: { 10 pname = "marta"; 11 version = "0.8.1"; 12 13 src = fetchurl { 14 url = "https://updates.marta.sh/release/Marta-${finalAttrs.version}.dmg"; 15 hash = "sha256-DbNkvLCy6q0CN8b4+8oheM4EaaLAQvH3O5zWVYxEyh8="; 16 }; 17 18 nativeBuildInputs = [ 19 undmg 20 makeWrapper 21 ]; 22 23 sourceRoot = "."; 24 25 installPhase = '' 26 runHook preInstall 27 mkdir -p $out/Applications 28 mv *.app $out/Applications 29 makeWrapper $out/{Applications/Marta.app/Contents/MacOS/Marta,bin/marta} 30 runHook postInstall 31 ''; 32 33 meta = { 34 description = "File Manager for macOS"; 35 homepage = "https://marta.sh/"; 36 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; 37 license = lib.licenses.free; 38 maintainers = [ lib.maintainers.sikmir ]; 39 platforms = [ "x86_64-darwin" ]; 40 mainProgram = "marta"; 41 skip.ci = true; 42 }; 43 })