2016-07-13 12:59:37 +02:00
|
|
|
{ stdenv, fetchurl, atomEnv, libXScrnSaver }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "marp-${version}";
|
2018-04-12 13:37:37 +02:00
|
|
|
version = "0.0.12";
|
2016-07-13 12:59:37 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/yhatt/marp/releases/download/v${version}/${version}-Marp-linux-x64.tar.gz";
|
2018-04-12 13:37:37 +02:00
|
|
|
sha256 = "0pljjkis9vb819d0akqmqnyakwgnvc3qqyg20yr13xms9a5iqv32";
|
2016-07-13 12:59:37 +02: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" ];
|
|
|
|
};
|
|
|
|
}
|