diff options
author | Pol Dellaiera <pol.dellaiera@protonmail.com> | 2024-06-02 19:57:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-02 19:57:32 +0200 |
commit | b83f677bd1198ad432d186479b05bdb359ca7f86 (patch) | |
tree | 4b84b143638ccf64545875dac2e6093e3b8c96f5 /pkgs/by-name/wi | |
parent | 5c45ccfc992cb928a74a3d2ca83a165e1a8ec752 (diff) | |
parent | c2a1c5f8fc8e86fdc6816a0f7d2c27cf51426b91 (diff) |
Merge pull request #313145 from DontEatOreo/pkgs-win-disk-writer
win-disk-writer: init at 1.3
Diffstat (limited to 'pkgs/by-name/wi')
-rw-r--r-- | pkgs/by-name/wi/win-disk-writer/package.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/by-name/wi/win-disk-writer/package.nix b/pkgs/by-name/wi/win-disk-writer/package.nix new file mode 100644 index 0000000000000..667a91968a057 --- /dev/null +++ b/pkgs/by-name/wi/win-disk-writer/package.nix @@ -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 ]; + }; +}) |