diff options
Diffstat (limited to 'makefu/5pkgs')
-rw-r--r-- | makefu/5pkgs/cups-ptouch/default.nix | 55 | ||||
-rw-r--r-- | makefu/5pkgs/foomatic-db-engine/default.nix | 86 | ||||
-rw-r--r-- | makefu/5pkgs/ns-usbloader/default.nix | 35 | ||||
-rw-r--r-- | makefu/5pkgs/ptouch-print/default.nix | 45 | ||||
-rw-r--r-- | makefu/5pkgs/ratt/default.nix | 26 | ||||
-rw-r--r-- | makefu/5pkgs/tw-upload-plugin/default.nix | 4 |
6 files changed, 249 insertions, 2 deletions
diff --git a/makefu/5pkgs/cups-ptouch/default.nix b/makefu/5pkgs/cups-ptouch/default.nix new file mode 100644 index 000000000..be0dd1663 --- /dev/null +++ b/makefu/5pkgs/cups-ptouch/default.nix @@ -0,0 +1,55 @@ +{ lib, stdenv +, fetchFromGitHub +, autoreconfHook +, gd +, libusb1 +, cups +, libpng +, perl +, perlPackages +, libxml2 +, callPackage +, foomatic-db-engine ? ( callPackage ../foomatic-db-engine {} ) +}: + +stdenv.mkDerivation rec { + pname = "printer-driver-ptouch"; + version = "1.6"; + + src = fetchFromGitHub { + owner = "philpem"; + repo = "printer-driver-ptouch"; + rev = "v${version}"; + sha256 = "1c4hkncnr4qwkbz5dfvksngvq057j6xnbi1jjvchnlr7zgj7cndk"; + }; + + postPatch = '' + patchShebangs foomaticalize + ''; + nativeBuildInputs = [ + autoreconfHook + perl + libxml2 + perlPackages.XMLLibXML + foomatic-db-engine + ]; + + buildInputs = [ + cups + libpng + ]; + postInstall = '' + mkdir -p $out/share/cups/model/ + echo "dummy dummy" > "$out/share/foomatic/db/oldprinterids" + FOOMATICDB="$out/share/foomatic" foomatic-compiledb -t ppd -d "$out/share/cups/model/Brother/" + rm -r $out/share/foomatic + ''; + + meta = with lib; { + description = "Command line tool to print labels on Brother P-Touch printers on Linux"; + license = licenses.gpl3Plus; + homepage = "https://mockmoon-cybernetics.ch/computer/p-touch2430pc/"; + maintainers = with maintainers; [ shamilton ]; + platforms = platforms.linux; + }; +} diff --git a/makefu/5pkgs/foomatic-db-engine/default.nix b/makefu/5pkgs/foomatic-db-engine/default.nix new file mode 100644 index 000000000..242232c88 --- /dev/null +++ b/makefu/5pkgs/foomatic-db-engine/default.nix @@ -0,0 +1,86 @@ +{ lib, stdenv +, fetchFromGitHub +, autoreconfHook +, gd +, libusb1 +, cups +, libpng +, perl +, perlPackages +, libxml2 +, ghostscript +, a2ps +, wget +, file +, foomatic-filters +, makeWrapper +}: + +stdenv.mkDerivation rec { + pname = "foomatic-db-engine"; + version = "2020-01-31"; + + src = fetchFromGitHub { + owner = "OpenPrinting"; + repo = "foomatic-db-engine-4"; + rev = "bd265b77a9f66f672bf1e3f0803145f2eccabf06"; + sha256 = "1f53kd3b0sxgx7hg2dvw2624bpwdfcx0zh4dn0h89l84mirgw1bs"; + }; + + nativeBuildInputs = [ + autoreconfHook + perl + makeWrapper + ]; + postConfigure = '' + sed -i "s#$ENV{BINDIR}#${placeholder "out"}/bin#" makeDefaults + ''; + configureFlags = [ + #"PERL_INSTALLDIRS=vendor" + "PERL_INSTALLDIRS=site" + "--prefix=/" + "PERLPREFIX=/" + #"DESTDIR=$(out)" + #"sysconfdir=/etc" + "LIBDIR=/lib" + #"PERL_INSTALLDIRS=site" + #"PERL_INSTALLDIRS=perl" + #PERL_INSTALLDIRS=perl" + "PERL=${perl}/bin/perl" + "FILEUTIL=${file}/bin/file" + "SBINDIR=/bin" + ]; + makeFlags = [ + "DESTDIR=${placeholder "out"}" + "PERLLIB=$(out)/${perlPackages.perl.libPrefix}" + ]; + + buildInputs = [ + cups + ghostscript + a2ps + wget + perl + libxml2 + file + foomatic-filters + ]; + postFixup = '' + echo cups > "$out"/etc/foomatic/defaultspooler + + for file in $out/bin/foomatic-*;do + wrapProgram "$file" \ + --set PERL5LIB "$out/${perlPackages.perl.libPrefix}" \ + --prefix PATH : "$out/bin" + done + + ''; + + meta = with lib; { + description = "Command line tool to print labels on Brother P-Touch printers on Linux"; + license = licenses.gpl3Plus; + homepage = "https://mockmoon-cybernetics.ch/computer/p-touch2430pc/"; + maintainers = with maintainers; [ shamilton ]; + platforms = platforms.linux; + }; +} diff --git a/makefu/5pkgs/ns-usbloader/default.nix b/makefu/5pkgs/ns-usbloader/default.nix new file mode 100644 index 000000000..b3890d11b --- /dev/null +++ b/makefu/5pkgs/ns-usbloader/default.nix @@ -0,0 +1,35 @@ +{ lib, stdenv, fetchurl, makeWrapper, wrapGAppsHook, glib , jre }: + +stdenv.mkDerivation rec { + name = "ns-usbloader-${version}"; + version = "5.2"; + + src = fetchurl { + url = "https://github.com/developersu/ns-usbloader/releases/download/v${version}/ns-usbloader-${version}.jar"; + sha256 = "06kzshlvqfwcjjddzqqgq13pqa5qjlajpyn6ksqxy5p5hgarj6i6"; + }; + + + buildInputs = [ jre ]; + + dontUnpack = true; + + installPhase = '' + runHook preInstall + install -D $src $out/ns-usbloader/ns-usbloader.jar + makeWrapper ${jre}/bin/java $out/bin/ns-usbloader \ + --add-flags "-jar $out/ns-usbloader/ns-usbloader.jar" + runHook postInstall + ''; + nativeBuildInputs = [ glib wrapGAppsHook makeWrapper ]; + + + meta = with lib; { + description = "Awoo Installer and GoldLeaf uploader of the NSPs (and other files), RCM payload injector, application for split/merge files"; + homepage = https://github.com/developersu/ns-usbloader; + maintainers = [ maintainers.makefu ]; + platforms = platforms.linux; + license = with licenses; [ gpl3 ]; + }; + +} diff --git a/makefu/5pkgs/ptouch-print/default.nix b/makefu/5pkgs/ptouch-print/default.nix new file mode 100644 index 000000000..9bac9bb35 --- /dev/null +++ b/makefu/5pkgs/ptouch-print/default.nix @@ -0,0 +1,45 @@ +{ lib, stdenv +, fetchgit +, cmake +, gd +, git +, libusb1 +, gettext +, pkg-config +}: + +stdenv.mkDerivation rec { + pname = "ptouch-print"; + version = "1.5-master"; + + src = fetchgit { + url = "https://git.familie-radermacher.ch/cgi/cgit/linux/ptouch-print.git"; + rev = "674e0da5fb6254c4f015c6c910377b6f4f04e0f3"; + sha256 = "04a3kp01mvf538l9d6bw2b54azn64xh605qwaq1ig8imjphrn82s"; + }; + + nativeBuildInputs = [ + cmake + git + ]; + + installPhase = '' + install -D ptouch-print $out/bin/ptouch-print + install -D $src/ptouch-print.1 $out/share/man/man1/ptouch-print.1 + ''; + + buildInputs = [ + gd + pkg-config + gettext + libusb1 + ]; + + meta = with lib; { + description = "Command line tool to print labels on Brother P-Touch printers on Linux"; + license = licenses.gpl3Plus; + homepage = "https://mockmoon-cybernetics.ch/computer/p-touch2430pc/"; + maintainers = with maintainers; [ shamilton ]; + platforms = platforms.linux; + }; +} diff --git a/makefu/5pkgs/ratt/default.nix b/makefu/5pkgs/ratt/default.nix new file mode 100644 index 000000000..57ea545b9 --- /dev/null +++ b/makefu/5pkgs/ratt/default.nix @@ -0,0 +1,26 @@ +{ buildGoModule, fetchFromSourcehut, lib }: +buildGoModule rec { + pname = "ratt"; + version = "unstable-2022-05-09"; + + src = fetchFromSourcehut { + owner = "~ghost08"; + repo = "ratt"; + rev = "bf539e1cb04017f5e9d248a8e5f7a6f22f77d06e"; + sha256 = "0pfz6wnmpwabklayah3bddxkhvg64f5hfyvzkv3xfqpw8c70jdll"; + }; + + proxyVendor = true; + vendorSha256 = "sha256-901xkzF/p/kUy7tZELwNhgepRDScUeWQM3isy7APuik="; + + # tests try to access the internet to scrape websites + doCheck = false; + + meta = with lib; { + description = "A tool for converting websites to rss/atom feeds"; + homepage = "https://git.sr.ht/~ghost08/ratt"; + license = licenses.mit; + maintainers = with maintainers; [ kmein ]; + platforms = platforms.linux ++ platforms.darwin; + }; +} diff --git a/makefu/5pkgs/tw-upload-plugin/default.nix b/makefu/5pkgs/tw-upload-plugin/default.nix index 8bc675847..076867f35 100644 --- a/makefu/5pkgs/tw-upload-plugin/default.nix +++ b/makefu/5pkgs/tw-upload-plugin/default.nix @@ -3,6 +3,6 @@ pkgs.fetchFromGitHub { owner = "makefu"; repo = "tw-upload-plugin"; - rev = "621e5fbe"; - sha256 = "1wjy76s5mr6z772w6sr0dwqxaxn45c7ys4a5y2v55hxclr096dqg"; + rev = "aa95fc1"; + sha256 = "1nyx5jl4gd5nrrksjl4sz7f4ksg89p29znvd2fahd6dizs1vcw87"; } |