Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 554d3a239aed
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 05626cc86b8a
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Jan 24, 2020

  1. teleprompter: init at 2.3.4

    Scriptkiddi authored and Lassulus committed Jan 24, 2020
    Copy the full SHA
    05626cc View commit details
Showing with 44 additions and 0 deletions.
  1. +42 −0 pkgs/applications/misc/teleprompter/default.nix
  2. +2 −0 pkgs/top-level/all-packages.nix
42 changes: 42 additions & 0 deletions pkgs/applications/misc/teleprompter/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}

2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -21674,6 +21674,8 @@ in

telepathy-idle = callPackage ../applications/networking/instant-messengers/telepathy/idle {};

teleprompter = callPackage ../applications/misc/teleprompter {};

tendermint = callPackage ../tools/networking/tendermint {
buildGoModule = buildGo112Module;
};