Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

stretchly: init at 0.19.1

This commit adds the program `stretchly`:

https://github.com/hovancik/stretchly

`stretchly` is an Electron app, so this commit just packages the binary
version for Linux.

(cherry picked from commit e48cfb5c5 and 1c39349)

+143
+139
pkgs/applications/misc/stretchly/default.nix
···
··· 1 + { GConf 2 + , alsaLib 3 + , at-spi2-atk 4 + , atk 5 + , cairo 6 + , cups 7 + , dbus 8 + , expat 9 + , fetchurl 10 + , fontconfig 11 + , gdk_pixbuf 12 + , glib 13 + , gtk2 14 + , gtk3 15 + , lib 16 + , libX11 17 + , libXScrnSaver 18 + , libXcomposite 19 + , libXcursor 20 + , libXdamage 21 + , libXext 22 + , libXfixes 23 + , libXi 24 + , libXrandr 25 + , libXrender 26 + , libXtst 27 + , libappindicator 28 + , libdrm 29 + , libnotify 30 + , libpciaccess 31 + , libpng12 32 + , libxcb 33 + , nspr 34 + , nss 35 + , pango 36 + , pciutils 37 + , pulseaudio 38 + , stdenv 39 + , udev 40 + , wrapGAppsHook 41 + }: 42 + 43 + let 44 + libs = [ 45 + GConf 46 + alsaLib 47 + at-spi2-atk 48 + atk 49 + cairo 50 + cups 51 + dbus 52 + expat 53 + fontconfig 54 + gdk_pixbuf 55 + glib 56 + gtk2 57 + gtk3 58 + libX11 59 + libXScrnSaver 60 + libXcomposite 61 + libXcursor 62 + libXdamage 63 + libXext 64 + libXfixes 65 + libXi 66 + libXrandr 67 + libXrender 68 + libXtst 69 + libappindicator 70 + libdrm 71 + libnotify 72 + libpciaccess 73 + libpng12 74 + libxcb 75 + nspr 76 + nss 77 + pango 78 + pciutils 79 + pulseaudio 80 + stdenv.cc.cc.lib 81 + udev 82 + ]; 83 + 84 + libPath = lib.makeLibraryPath libs; 85 + in 86 + 87 + stdenv.mkDerivation rec { 88 + pname = "stretchly"; 89 + version = "0.19.1"; 90 + 91 + src = fetchurl { 92 + url = "https://github.com/hovancik/stretchly/releases/download/v${version}/stretchly-${version}.tar.xz"; 93 + sha256 = "1q2wxfqs8qv9b1rfh5lhmyp3rrgdl05m6ihsgkxlgp0yzi07afz8"; 94 + }; 95 + 96 + nativeBuildInputs = [ 97 + wrapGAppsHook 98 + ]; 99 + 100 + buildInputs = libs; 101 + 102 + dontPatchELF = true; 103 + dontBuild = true; 104 + dontConfigure = true; 105 + 106 + installPhase = '' 107 + mkdir -p $out/bin $out/lib/stretchly 108 + cp -r ./* $out/lib/stretchly/ 109 + ln -s $out/lib/stretchly/libffmpeg.so $out/lib/ 110 + ln -s $out/lib/stretchly/libnode.so $out/lib/ 111 + ln -s $out/lib/stretchly/stretchly $out/bin/ 112 + ''; 113 + 114 + preFixup = '' 115 + patchelf --set-rpath "${libPath}" $out/lib/stretchly/libffmpeg.so 116 + patchelf --set-rpath "${libPath}" $out/lib/stretchly/libnode.so 117 + 118 + patchelf \ 119 + --set-rpath "$out/lib/stretchly:${libPath}" \ 120 + --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 121 + $out/lib/stretchly/stretchly 122 + ''; 123 + 124 + meta = with stdenv.lib; { 125 + description = "A break time reminder app"; 126 + longDescription = '' 127 + stretchly is a cross-platform electron app that reminds you to take 128 + breaks when working on your computer. By default, it runs in your tray 129 + and displays a reminder window containing an idea for a microbreak for 20 130 + seconds every 10 minutes. Every 30 minutes, it displays a window 131 + containing an idea for a longer 5 minute break. 132 + ''; 133 + homepage = https://hovancik.net/stretchly; 134 + downloadPage = https://hovancik.net/stretchly/downloads/; 135 + license = licenses.bsd2; 136 + maintainers = with maintainers; [ cdepillabout ]; 137 + platforms = platforms.linux; 138 + }; 139 + }
+4
pkgs/top-level/all-packages.nix
··· 19529 bison = bison2; 19530 }; 19531 19532 stumpish = callPackage ../applications/window-managers/stumpish {}; 19533 19534 stumpwm = callPackage ../applications/window-managers/stumpwm {
··· 19529 bison = bison2; 19530 }; 19531 19532 + stretchly = callPackage ../applications/misc/stretchly { 19533 + inherit (gnome2) GConf; 19534 + }; 19535 + 19536 stumpish = callPackage ../applications/window-managers/stumpish {}; 19537 19538 stumpwm = callPackage ../applications/window-managers/stumpwm {