nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenvNoCC,
4 fetchurl,
5 nix-update-script,
6 unzip,
7}:
8
9stdenvNoCC.mkDerivation (finalAttrs: {
10 pname = "subler";
11 version = "1.9.1";
12
13 src = fetchurl {
14 url = "https://github.com/SublerApp/Subler/releases/download/${finalAttrs.version}/Subler-${finalAttrs.version}.zip";
15 hash = "sha256-tYFyBG2G2Am+1HdS+pyOKr9MoAEpaYmITad04CyWL3Y=";
16 };
17
18 sourceRoot = ".";
19
20 nativeBuildInputs = [ unzip ];
21
22 installPhase = ''
23 runHook preInstall
24
25 mkdir -p $out/Applications
26 cp -R ./Subler.app $out/Applications
27
28 runHook postInstall
29 '';
30
31 passthru.updateScript = nix-update-script { };
32
33 meta = {
34 description = "MP4 muxer and editor";
35 homepage = "https://subler.org/";
36 changelog = "https://github.com/SublerApp/Subler/releases/tag/${finalAttrs.version}";
37 license = lib.licenses.gpl2Only;
38 maintainers = with lib.maintainers; [ delafthi ];
39 platforms = [
40 "x86_64-darwin"
41 "aarch64-darwin"
42 ];
43 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
44 };
45})