diff options
author | Brian McKenna <bmckenna@atlassian.com> | 2016-07-13 20:59:37 +1000 |
---|---|---|
committer | Brian McKenna <bmckenna@atlassian.com> | 2016-07-13 21:03:30 +1000 |
commit | 52d658df933c7cb6403829bc713ec6abf2fac937 (patch) | |
tree | f61e07a89f2c44fef55046e13881b88b848fc32f /pkgs/applications/office/marp/default.nix | |
parent | fe2468b88cbc586232a86aedf8e00facf8919219 (diff) | |
download | nixpkgs-52d658df933c7cb6403829bc713ec6abf2fac937.tar nixpkgs-52d658df933c7cb6403829bc713ec6abf2fac937.tar.gz nixpkgs-52d658df933c7cb6403829bc713ec6abf2fac937.tar.bz2 nixpkgs-52d658df933c7cb6403829bc713ec6abf2fac937.tar.lz nixpkgs-52d658df933c7cb6403829bc713ec6abf2fac937.tar.xz nixpkgs-52d658df933c7cb6403829bc713ec6abf2fac937.tar.zst nixpkgs-52d658df933c7cb6403829bc713ec6abf2fac937.zip |
marp: init at 0.0.8
Diffstat (limited to 'pkgs/applications/office/marp/default.nix')
-rw-r--r-- | pkgs/applications/office/marp/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/applications/office/marp/default.nix b/pkgs/applications/office/marp/default.nix new file mode 100644 index 00000000000..7c95bcafec5 --- /dev/null +++ b/pkgs/applications/office/marp/default.nix @@ -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" ]; + }; +} |