mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 06:01:15 +00:00
Merge pull request #16915 from puffnfresh/package/marp
marp: init at 0.0.8
This commit is contained in:
commit
b6cbb5d03f
32
pkgs/applications/office/marp/default.nix
Normal file
32
pkgs/applications/office/marp/default.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{ stdenv, fetchurl, atomEnv, libXScrnSaver }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "marp-${version}";
|
||||
version = "0.0.8";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/yhatt/marp/releases/download/v${version}/${version}-Marp-linux-x64.tar.gz";
|
||||
sha256 = "0d7vvz34ik2jafwl3qjkdsvcva25gyrgrfg1gz1nk8f5dkl1wjcf";
|
||||
};
|
||||
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" ];
|
||||
};
|
||||
}
|
|
@ -13660,6 +13660,8 @@ in
|
|||
|
||||
marathon = callPackage ../applications/networking/cluster/marathon { };
|
||||
|
||||
marp = callPackage ../applications/office/marp { };
|
||||
|
||||
matchbox = callPackage ../applications/window-managers/matchbox { };
|
||||
|
||||
MBdistortion = callPackage ../applications/audio/MBdistortion { };
|
||||
|
|
Loading…
Reference in a new issue