ma pkgs: rip zj-58 and jd-gui
This commit is contained in:
parent
4cf1dfeef2
commit
9104af869e
@ -1,36 +0,0 @@
|
|||||||
{ stdenv, lib, pkgs, fetchurl, jre, makeWrapper, unzip }:
|
|
||||||
stdenv.mkDerivation rec {
|
|
||||||
name = "${packageName}-${version}";
|
|
||||||
packageName = "jd-gui";
|
|
||||||
version = "1.4.0";
|
|
||||||
|
|
||||||
src = fetchurl {
|
|
||||||
url = "https://github.com/java-decompiler/jd-gui/releases/download/v${version}/${name}.jar";
|
|
||||||
sha256 = "0rvbplkhafb6s9aiwgcq4ffz4bvzyp7q511pd46hx4ahhzfg7lmx";
|
|
||||||
};
|
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper unzip ];
|
|
||||||
|
|
||||||
phases = [ "installPhase" ];
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
f=$out/lib/jd-gui/
|
|
||||||
bin=$out/bin
|
|
||||||
name=$(basename $src)
|
|
||||||
mkdir -p $f $bin
|
|
||||||
|
|
||||||
# fixup path to java
|
|
||||||
cp $src $f
|
|
||||||
cat > $bin/jd-gui <<EOF
|
|
||||||
#!/bin/sh
|
|
||||||
exec ${pkgs.jre}/bin/java -jar $f/$name \$@
|
|
||||||
EOF
|
|
||||||
chmod +x $bin/jd-gui
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
homepage = https://github.com/java-decompiler/jd-gui;
|
|
||||||
description = "A standalone Java Decompiler GUI";
|
|
||||||
license = lib.licenses.gpl3;
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,30 +0,0 @@
|
|||||||
{stdenv, fetchFromGitHub, cups}:
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
|
||||||
name = "cups-zj58-2018-02-22";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "klirichek";
|
|
||||||
repo = "zj-58";
|
|
||||||
rev = "e4212cd";
|
|
||||||
sha256 = "1w2qkspm4qqg5h8n6gmakzhiww7gag64chvy9kf89xsl3wsyp6pi";
|
|
||||||
};
|
|
||||||
|
|
||||||
buildInputs = [cups];
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
mkdir -p $out/lib/cups/filter
|
|
||||||
|
|
||||||
cp rastertozj $out/lib/cups/filter
|
|
||||||
|
|
||||||
|
|
||||||
mkdir -p $out/share/cups/model/zjiang
|
|
||||||
cp ZJ-58.ppd $out/share/cups/model/zjiang/
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "CUPS filter for thermal printer Zjiang ZJ-58";
|
|
||||||
homepage = https://github.com/klirichek/zj-58;
|
|
||||||
platforms = stdenv.lib.platforms.linux;
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user