bin.nix (1201B)
1 { lib, stdenv, fetchfromgh, undmg }: 2 3 let 4 arch = { 5 "aarch64-darwin" = "arm64"; 6 "x86_64-darwin" = "x64"; 7 }.${stdenv.hostPlatform.system}; 8 hash = { 9 "aarch64-darwin" = "sha256-3+Lib7gWF03UrIKRcyzHw9aX79aebkCQscAPdKAf6z0="; 10 "x86_64-darwin" = "sha256-miIw5xsL6GSHC+sX3JNxktfwhY5tkLrLCNdHHUwdtdY="; 11 }.${stdenv.hostPlatform.system}; 12 in 13 stdenv.mkDerivation (finalAttrs: { 14 pname = "podman-desktop"; 15 version = "1.7.0"; 16 17 src = fetchfromgh { 18 owner = "containers"; 19 repo = "podman-desktop"; 20 name = "podman-desktop-${finalAttrs.version}-${arch}.dmg"; 21 version = "v${finalAttrs.version}"; 22 inherit hash; 23 }; 24 25 nativeBuildInputs = [ undmg ]; 26 27 sourceRoot = "."; 28 29 installPhase = '' 30 runHook preInstall 31 mkdir -p $out/Applications 32 cp -R *.app $out/Applications 33 runHook postInstall 34 ''; 35 36 meta = with lib; { 37 description = "A graphical tool for developing on containers and Kubernetes"; 38 homepage = "https://podman-desktop.io/"; 39 sourceProvenance = with sourceTypes; [ binaryNativeCode ]; 40 license = licenses.asl20; 41 platforms = [ "aarch64-darwin" "x86_64-darwin" ]; 42 maintainers = [ maintainers.sikmir ]; 43 skip.ci = true; 44 }; 45 })