summary refs log tree commit diff
path: root/pkgs/applications
diff options
context:
space:
mode:
authorScriptkiddi <fritz@otlinghaus.it>2020-01-20 21:07:30 +0100
committerLassulus <github@lassul.us>2020-01-24 08:05:53 +0100
commit05626cc86b8a8bbadae7753d2e33661400ff67de (patch)
tree4edff88325fb7dc5afaedc1f557e5bb765a5f9ce /pkgs/applications
parent554d3a239aed1110e7650fbeb2e1b13c01349a74 (diff)
downloadnixpkgs-05626cc86b8a8bbadae7753d2e33661400ff67de.tar
nixpkgs-05626cc86b8a8bbadae7753d2e33661400ff67de.tar.gz
nixpkgs-05626cc86b8a8bbadae7753d2e33661400ff67de.tar.bz2
nixpkgs-05626cc86b8a8bbadae7753d2e33661400ff67de.tar.lz
nixpkgs-05626cc86b8a8bbadae7753d2e33661400ff67de.tar.xz
nixpkgs-05626cc86b8a8bbadae7753d2e33661400ff67de.tar.zst
nixpkgs-05626cc86b8a8bbadae7753d2e33661400ff67de.zip
teleprompter: init at 2.3.4
Diffstat (limited to 'pkgs/applications')
-rw-r--r--pkgs/applications/misc/teleprompter/default.nix42
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/applications/misc/teleprompter/default.nix b/pkgs/applications/misc/teleprompter/default.nix
new file mode 100644
index 00000000000..7cca3afa764
--- /dev/null
+++ b/pkgs/applications/misc/teleprompter/default.nix
@@ -0,0 +1,42 @@
+{ lib, stdenv, fetchurl, electron, makeDesktopItem, makeWrapper, nodePackages, autoPatchelfHook}:
+
+stdenv.mkDerivation rec {
+  pname = "teleprompter";
+  version = "2.3.4";
+
+  src = fetchurl {
+    url = "mirror://sourceforge/teleprompter-imaginary-films/imaginary-${pname}-${version}-64bit.tar.gz";
+    sha256 = "084ml2l3qg46bsazaapyxdx4zavvxp0j4ycsdpdwk3f94g9xb120";
+  };
+
+  dontBuild = true;
+  dontStrip = true;
+
+  nativeBuildInputs = [ autoPatchelfHook makeWrapper nodePackages.asar ];
+  installPhase = ''
+    mkdir -p $out/bin $out/opt/teleprompter $out/share/applications
+    asar e resources/app.asar $out/opt/teleprompter/resources/app.asar.unpacked
+    ln -s ${desktopItem}/share/applications/* $out/share/applications
+  '';
+
+  postFixup = ''
+    makeWrapper ${electron}/bin/electron $out/bin/teleprompter \
+      --add-flags "$out/opt/teleprompter/resources/app.asar.unpacked --without-update"
+  '';
+
+  desktopItem = makeDesktopItem {
+     name = "teleprompter";
+     exec = "teleprompter";
+     type = "Application";
+     desktopName = "Teleprompter";
+  };
+
+  meta = with lib; {
+    description = "The most complete, free, teleprompter app on the web";
+    license = [ licenses.gpl3 ];
+    homepage = "https://github.com/ImaginarySense/Teleprompter-Core";
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ Scriptkiddi ];
+  };
+}
+