1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-13 08:05:40 +00:00
nixpkgs/pkgs/applications/office/marp/default.nix

33 lines
965 B
Nix
Raw Normal View History

2016-07-13 11:59:37 +01:00
{ stdenv, fetchurl, atomEnv, libXScrnSaver }:
stdenv.mkDerivation rec {
name = "marp-${version}";
2017-10-23 17:54:26 +01:00
version = "0.0.11";
2016-07-13 11:59:37 +01:00
src = fetchurl {
url = "https://github.com/yhatt/marp/releases/download/v${version}/${version}-Marp-linux-x64.tar.gz";
2017-10-23 17:54:26 +01:00
sha256 = "06kka6kxrj35w23n34in6ks3vax9arl756jg720jhfy14vavyk0f";
2016-07-13 11:59:37 +01:00
};
sourceRoot = ".";
installPhase = ''
mkdir -p $out/lib/marp $out/bin
cp -r ./* $out/lib/marp
ln -s $out/lib/marp/Marp $out/bin
'';
postFixup = ''
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
--set-rpath "${atomEnv.libPath}:${stdenv.lib.makeLibraryPath [ libXScrnSaver ]}:$out/lib/marp" \
$out/bin/Marp
'';
meta = with stdenv.lib; {
description = "Markdown presentation writer, powered by Electron";
homepage = https://yhatt.github.io/marp/;
license = licenses.mit;
maintainers = [ maintainers.puffnfresh ];
platforms = [ "x86_64-linux" ];
};
}