{ stdenv, fetchurl, lib, brand, type, version, homepage, url, hash, runCommand, dpkg, vmTools, runtimeShell, bubblewrap, ... }: let debian = let debs = lib.flatten (import ./deps.nix { inherit fetchurl; }); in runCommand "x32edit-debian" { nativeBuildInputs = [ dpkg ]; } ( lib.concatMapStringsSep "\n" (deb: '' dpkg-deb -x ${deb} $out '') debs ); in stdenv.mkDerivation rec { pname = "${lib.toLower type}-edit"; inherit version; src = fetchurl { inherit url hash; }; sourceRoot = "."; dontBuild = true; dontStrip = true; installPhase = '' mkdir -p $out/bin cp ${type}-Edit $out/bin/.${pname} cat >$out/bin/${pname} <