nixpkgs/pkgs/applications/office/marp/default.nix
R. RyanTM 766ecbb57a marp: 0.0.11 -> 0.0.12
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.

This update was made based on information from https://repology.org/metapackage/marp/versions.

These checks were done:

- built on NixOS
- Warning: no binary found that responded to help or version flags. (This warning appears even if the package isn't expected to have binaries.)
- found 0.0.12 with grep in /nix/store/q8kib6qhxndj4hzscdzhgvnjkaxm4mbw-marp-0.0.12
- directory tree listing: https://gist.github.com/691bc668acd4e57a2cf187b6e1062f34
2018-04-12 13:04:31 +01:00

33 lines
965 B
Nix

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