uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
44
pkgs/applications/misc/teleprompter/default.nix
Normal file
44
pkgs/applications/misc/teleprompter/default.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{ lib, stdenv, fetchurl, electron_10, makeDesktopItem, makeWrapper, nodePackages, autoPatchelfHook}:
|
||||
|
||||
let
|
||||
electron = electron_10;
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "teleprompter";
|
||||
version = "2.4.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/ImaginarySense/Imaginary-Teleprompter-Electron/releases/download/${lib.versions.majorMinor version}/imaginary-teleprompter-${version}.tar.gz";
|
||||
sha256 = "bgdtK8l5d26avv1WUw9cfOgZrIL1q/a9890Ams4yidQ=";
|
||||
};
|
||||
|
||||
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";
|
||||
desktopName = "Teleprompter";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "The most complete, free, teleprompter app on the web";
|
||||
license = [ licenses.gpl3Plus ];
|
||||
homepage = "https://github.com/ImaginarySense/Teleprompter-Core";
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ Scriptkiddi ];
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue