-
-
Save srid/31dfe66f55e926a38232da10bc77571c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let | |
pkgs = import <nixpkgs> {}; | |
pname = "zettlr"; | |
version = "1.6.0"; | |
in pkgs.appimageTools.wrapType2 rec { | |
name = "${pname}-${version}"; | |
src = pkgs.fetchurl { | |
url = "https://github.com/Zettlr/Zettlr/releases/download/v${version}/Zettlr-${version}-x86_64.appimage"; | |
sha256 = "0s6p8rs0ag6j3wvhm518hd80s48s3sk8n20s3mazj6xlvvhc6iy5"; | |
}; | |
profile = '' | |
export XDG_DATA_DIRS=${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}:${pkgs.gtk3}/share/gsettings-schemas/${pkgs.gtk3.name}:$XDG_DATA_DIRS | |
''; | |
multiPkgs = null; # no 32bit needed | |
extraPkgs = pkgs.appimageTools.defaultFhsEnvArgs.multiPkgs; | |
extraInstallCommands = "mv $out/bin/{${name},${pname}}"; | |
#installPhase = '' | |
# lib=$out/lib/${pname} | |
# mkdir -p $out/bin $lib | |
# cp -r opt/Zettlr/. $lib | |
# rpath=${atomEnv.libPath}:${at-spi2-core}/lib:$lib | |
# makeWrapper $lib/zettlr $out/bin/${pname} \ | |
# --prefix LD_LIBRARY_PATH : "$rpath" | |
# cp -r usr/share $out | |
#''; | |
meta = with pkgs.lib; { | |
description = "A markdown editor for writing academic texts and taking notes"; | |
homepage = "https://www.zettlr.com"; | |
platforms = [ "x86_64-linux" ]; | |
license = licenses.gpl3; | |
maintainers = with maintainers; [ maj0e ]; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment