nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

at netboot-syslinux-multiplatform 39 lines 890 B view raw
1{ lib, stdenv, fetchurl, jdk }: 2 3stdenv.mkDerivation rec { 4 pname = "emem"; 5 version = "0.2.50"; 6 7 inherit jdk; 8 9 src = fetchurl { 10 url = "https://github.com/ebzzry/${pname}/releases/download/v${version}/${pname}.jar"; 11 sha256 = "18x3s3jrph8k3pc75jgwkfqazygpsx93zjxx68zms58my17cybh1"; 12 }; 13 14 dontUnpack = true; 15 16 buildPhase = '' 17 mkdir -p $out/bin $out/share/java 18 ''; 19 20 installPhase = '' 21 cp $src $out/share/java/${pname}.jar 22 23 cat > $out/bin/${pname} << EOF 24#! $SHELL 25$jdk/bin/java -jar $out/share/java/${pname}.jar "\$@" 26EOF 27 28 chmod +x $out/bin/${pname} 29 ''; 30 31 meta = with lib; { 32 homepage = "https://github.com/ebzzry/emem"; 33 description = "A trivial Markdown to HTML converter"; 34 sourceProvenance = with sourceTypes; [ binaryBytecode ]; 35 license = licenses.epl10; 36 maintainers = [ maintainers.ebzzry ]; 37 platforms = platforms.unix; 38 }; 39}