depot/third_party/nixpkgs/pkgs/by-name/wi/win-disk-writer/package.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

36 lines
953 B
Nix

{
lib,
stdenvNoCC,
fetchzip,
nix-update-script,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "win-disk-writer";
version = "1.3";
src = fetchzip {
url = "https://github.com/TechUnRestricted/WinDiskWriter/releases/download/v${finalAttrs.version}/WinDiskWriter.${finalAttrs.version}.zip";
hash = "sha256-3+Pjp1T0u6G64W8dm4pWRiznDWNW4cMxTkoAIQgvtQY=";
};
installPhase = ''
runHook preInstall
mkdir -p "$out/Applications/WinDiskWriter.app"
cp -R . "$out/Applications/WinDiskWriter.app/"
runHook postInstall
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "Windows Bootable USB creator for macOS";
homepage = "https://github.com/TechUnRestricted/WinDiskWriter";
license = lib.licenses.gpl3;
maintainers = with lib.maintainers; [ donteatoreo ];
platforms = lib.platforms.darwin;
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
};
})