nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 51 lines 1.2 kB view raw
1{ 2 stdenv, 3 lib, 4 fetchurl, 5 callPackage, 6}: 7 8let 9 pname = "upscayl"; 10 version = "2.15.0"; 11 srcs = rec { 12 x86_64-linux = fetchurl { 13 url = "https://github.com/upscayl/upscayl/releases/download/v${version}/upscayl-${version}-linux.AppImage"; 14 hash = "sha256-ZFlFfliby5nneepELc5gi6zaM5FrcBmohit8YlKqgik="; 15 }; 16 aarch64-darwin = fetchurl { 17 url = "https://github.com/upscayl/upscayl/releases/download/v${version}/upscayl-${version}-mac.zip"; 18 hash = "sha256-gXqeRaNW0g7ZVkCSbxps9SqPMuVSzLTCGL5F3Om/iwo="; 19 }; 20 x86_64-darwin = aarch64-darwin; 21 }; 22 meta = { 23 description = "Free and Open Source AI Image Upscaler"; 24 homepage = "https://upscayl.github.io/"; 25 maintainers = with lib.maintainers; [ 26 icy-thought 27 matteopacini 28 ]; 29 license = lib.licenses.agpl3Plus; 30 platforms = [ "x86_64-linux" ] ++ lib.platforms.darwin; 31 mainProgram = "upscayl"; 32 }; 33in 34if stdenv.hostPlatform.isDarwin then 35 callPackage ./darwin.nix { 36 inherit 37 pname 38 version 39 meta 40 ; 41 src = srcs.${stdenv.hostPlatform.system}; 42 } 43else 44 callPackage ./linux.nix { 45 inherit 46 pname 47 version 48 meta 49 ; 50 src = srcs.${stdenv.hostPlatform.system}; 51 }