Merge pull request #313145 from DontEatOreo/pkgs-win-disk-writer

win-disk-writer: init at 1.3
This commit is contained in:
Pol Dellaiera 2024-06-02 19:57:32 +02:00 committed by GitHub
commit b83f677bd1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,36 @@
{
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 ];
};
})