1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-28 08:31:59 +00:00
nixpkgs/pkgs/applications/office/marp/default.nix
R. RyanTM 4ee926e143 marp: 0.0.12 -> 0.0.13
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 invocation of /nix/store/xyisjivarv9zwlwh6nm0i55njfw7dkss-marp-0.0.13/bin/Marp had a zero exit code or showed the expected version
- 0 of 1 passed binary check by having a zero exit code.
- 0 of 1 passed binary check by having the new version present in output.
- found 0.0.13 with grep in /nix/store/xyisjivarv9zwlwh6nm0i55njfw7dkss-marp-0.0.13
- directory tree listing: https://gist.github.com/d9ae780141c62a0f06dfa28225d45e9a
- du listing: https://gist.github.com/2b208d562d59a7343631492d214dbfd1
2018-06-27 17:44:59 -07:00

33 lines
965 B
Nix

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