Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 fetchzip, 3 lib, 4 stdenv, 5 nix-update-script, 6}: 7 8let 9 version = "3.3.39"; 10in 11stdenv.mkDerivation { 12 pname = "flashspace"; 13 14 inherit version; 15 16 src = fetchzip { 17 url = "https://github.com/wojciech-kulik/FlashSpace/releases/download/v${version}/FlashSpace.app.zip"; 18 hash = "sha256-/mgdeRxaxq+oIjbbaxCSExHxyYqqWl80+6jPzPIhT4M="; 19 }; 20 21 installPhase = '' 22 runHook preInstall 23 mkdir -p $out/Applications/FlashSpace.app $out/bin 24 mv Contents $out/Applications/FlashSpace.app 25 ln -s ../Applications/Flashspace.app/Contents/Resources/flashspace $out/bin/flashspace 26 runHook postInstall 27 ''; 28 29 doInstallCheck = true; 30 31 passthru.updateScript = nix-update-script { }; 32 meta = { 33 license = lib.licenses.mit; 34 homepage = "https://github.com/wojciech-kulik/FlashSpace"; 35 changelog = "https://github.com/wojciech-kulik/FlashSpace/releases/tag/v${version}"; 36 description = "Blazingly fast virtual workspace manager for macOS"; 37 platforms = lib.platforms.darwin; 38 maintainers = [ lib.maintainers.marcusramberg ]; 39 sourceProvenance = [ lib.sourceTypes.binaryNativeCode ]; 40 }; 41}