mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 10:23:29 +00:00
commit
9f761047cc
@ -1,72 +0,0 @@
|
||||
{ stdenv
|
||||
, lib
|
||||
, fetchurl
|
||||
, makeWrapper
|
||||
, electron_9
|
||||
, dpkg
|
||||
, gtk3
|
||||
, glib
|
||||
, gsettings-desktop-schemas
|
||||
, wrapGAppsHook
|
||||
, withPandoc ? false
|
||||
, pandoc
|
||||
}:
|
||||
|
||||
let
|
||||
electron = electron_9;
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "typora";
|
||||
version = "0.9.98";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://www.typora.io/linux/typora_${version}_amd64.deb";
|
||||
sha256 = "sha256-JiqjxT8ZGttrcJrcQmBoGPnRuuYWZ9u2083RxZoLMus=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
dpkg
|
||||
makeWrapper
|
||||
wrapGAppsHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
glib
|
||||
gsettings-desktop-schemas
|
||||
gtk3
|
||||
];
|
||||
|
||||
# The deb contains setuid permission on `chrome-sandbox`, which will actually not get installed.
|
||||
unpackPhase = "dpkg-deb --fsys-tarfile $src | tar -x --no-same-permissions --no-same-owner";
|
||||
|
||||
dontWrapGApps = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/bin $out/share
|
||||
{
|
||||
cd usr
|
||||
mv share/typora/resources/app $out/share/typora
|
||||
mv share/{applications,icons,doc} $out/share/
|
||||
}
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
makeWrapper ${electron}/bin/electron $out/bin/typora \
|
||||
--add-flags $out/share/typora \
|
||||
"''${gappsWrapperArgs[@]}" \
|
||||
${lib.optionalString withPandoc ''--prefix PATH : "${lib.makeBinPath [ pandoc ]}"''} \
|
||||
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ stdenv.cc.cc ]}"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A minimal Markdown reading & writing app";
|
||||
homepage = "https://typora.io";
|
||||
license = licenses.unfree;
|
||||
maintainers = with maintainers; [ jensbin ];
|
||||
platforms = [ "x86_64-linux"];
|
||||
};
|
||||
}
|
@ -913,7 +913,8 @@ mapAliases ({
|
||||
truecrypt = veracrypt; # added 2018-10-24
|
||||
tshark = wireshark-cli; # added 2018-04-25
|
||||
tuijam = throw "tuijam has been removed because Google Play Music was discontinued"; # added 2021-03-07
|
||||
turbo-geth = throw "turbo-geth has been renamed to erigon"; # added 20201-08-08
|
||||
turbo-geth = throw "turbo-geth has been renamed to erigon"; # added 2021-08-08
|
||||
typora = throw "Newer versions of typora use anti-user encryption and refuse to start. As such it has been removed."; # added 2021-09-11
|
||||
uberwriter = apostrophe; # added 2020-04-23
|
||||
ubootBeagleboneBlack = ubootAmx335xEVM; # added 2020-01-21
|
||||
ucsFonts = ucs-fonts; # added 2016-07-15
|
||||
|
@ -26633,8 +26633,6 @@ with pkgs;
|
||||
mlt-qt5 = libsForQt514.mlt;
|
||||
};
|
||||
|
||||
typora = callPackage ../applications/editors/typora { };
|
||||
|
||||
taxi = callPackage ../applications/networking/ftp/taxi { };
|
||||
|
||||
librep = callPackage ../development/libraries/librep { };
|
||||
|
Loading…
Reference in New Issue
Block a user