summaryrefslogtreecommitdiffstats
path: root/makefu/5pkgs/custom
diff options
context:
space:
mode:
Diffstat (limited to 'makefu/5pkgs/custom')
-rw-r--r--makefu/5pkgs/custom/alsa-tools/default.nix26
-rw-r--r--makefu/5pkgs/custom/default.nix3
-rw-r--r--makefu/5pkgs/custom/inkscape/dxf_fix.patch13
-rw-r--r--makefu/5pkgs/custom/qcma/default.nix65
4 files changed, 107 insertions, 0 deletions
diff --git a/makefu/5pkgs/custom/alsa-tools/default.nix b/makefu/5pkgs/custom/alsa-tools/default.nix
new file mode 100644
index 000000000..5134c10ec
--- /dev/null
+++ b/makefu/5pkgs/custom/alsa-tools/default.nix
@@ -0,0 +1,26 @@
+{stdenv,alsaToolTarget,fetchurl, alsaLib, ncurses, fltk13, gtk3}:
+
+stdenv.mkDerivation rec {
+ name = "alsa-${alsaToolTarget}-${version}";
+ alsaToolsName = "alsa-tools-${version}";
+ version = "1.0.29";
+
+ src = fetchurl {
+ urls = [
+ "ftp://ftp.alsa-project.org/pub/tools/${alsaToolsName}.tar.bz2"
+ "http://alsa.cybermirror.org/tools/${alsaToolsName}.tar.bz2"
+
+ ];
+ sha256 = "1lgvyb81md25s9ciswpdsbibmx9s030kvyylf0673w3kbamz1awl";
+ };
+ sourceRoot = "${alsaToolsName}/${alsaToolTarget}/";
+ buildInputs = [ alsaLib fltk13 gtk3 ncurses ];
+
+ meta = {
+ homepage = http://www.alsa-project.org/;
+ description = "ALSA tools - ${name}";
+
+ platforms = stdenv.lib.platforms.linux;
+ maintainers = [ stdenv.lib.maintainers.makefu ];
+ };
+}
diff --git a/makefu/5pkgs/custom/default.nix b/makefu/5pkgs/custom/default.nix
new file mode 100644
index 000000000..626938cdc
--- /dev/null
+++ b/makefu/5pkgs/custom/default.nix
@@ -0,0 +1,3 @@
+{}:
+{
+}
diff --git a/makefu/5pkgs/custom/inkscape/dxf_fix.patch b/makefu/5pkgs/custom/inkscape/dxf_fix.patch
new file mode 100644
index 000000000..5ea0a073e
--- /dev/null
+++ b/makefu/5pkgs/custom/inkscape/dxf_fix.patch
@@ -0,0 +1,13 @@
+--- ./share/extensions/dxf_outlines.py 2017-02-14 00:46:57.000000000 +0100
++++ ./share/extensions/dxf_outlines.py.new 2017-05-10 04:15:03.000000000 +0200
+@@ -340,7 +340,7 @@
+ scale = eval(self.options.units)
+ if not scale:
+ scale = 25.4/96 # if no scale is specified, assume inch as baseunit
+- h = self.unittouu(self.document.getroot().xpath('@height', namespaces=inkex.NSS)[0])
++ h = self.unittouu(self.getDocumentHeight())
+ self.groupmat = [[[scale, 0.0, 0.0], [0.0, -scale, h*scale]]]
+ doc = self.document.getroot()
+ self.process_group(doc)
+
+
diff --git a/makefu/5pkgs/custom/qcma/default.nix b/makefu/5pkgs/custom/qcma/default.nix
new file mode 100644
index 000000000..d67cda142
--- /dev/null
+++ b/makefu/5pkgs/custom/qcma/default.nix
@@ -0,0 +1,65 @@
+{ lib, stdenv, fetchFromGitHub, fetchgit, libusb, libtool, autoconf, pkgconfig, git,
+gettext, automake, libxml2 , qmake,
+qtbase, qttools, qtmultimedia, libnotify, ffmpeg, gdk_pixbuf }:
+let
+ libvitamtp = stdenv.mkDerivation rec {
+ name = "libvitamtp-${version}";
+ version = "2.5.9";
+
+ src = fetchFromGitHub {
+ owner = "codestation";
+ repo = "vitamtp";
+ rev = "v"+version;
+ sha256 = "09c9f7gqpyicfpnhrfb4r67s2hci6hh31bzmqlpds4fywv5mzaf8";
+ };
+
+ buildInputs = [ libusb libxml2 libtool autoconf automake gettext pkgconfig ];
+ preConfigure = "sh ./autogen.sh";
+
+ meta = {
+ description = "Content Manager Assistant for the PS Vita";
+ homepage = https://github.com/codestation/qcma;
+ license = stdenv.lib.licenses.gpl2;
+ platforms = stdenv.lib.platforms.linux;
+ maintainers = with stdenv.lib.maintainers; [ makefu ];
+ };
+ };
+in stdenv.mkDerivation rec {
+ name = "qcma-${version}";
+ version = "0.3.13";
+
+ src = fetchgit {
+ url = "git://github.com/codestation/qcma.git";
+ rev = "refs/tags/v"+version;
+ leaveDotGit = true;
+ sha256 = "164abjwlw2nw2i30wlwpsavz1zjkp6a14yprvinma5hflkw4yj6i";
+ };
+
+ preConfigure = ''
+ lrelease common/resources/translations/*.ts
+ '';
+
+ # TODO: manually adding qtbase and qtmultimedia to the library path is shit,
+ # this should be done somewhere before when building the project, idk.
+ installPhase = ''
+ make INSTALL_ROOT="$(out)" install
+ for i in qcma qcma_cli; do
+ wrapQtProgram $out/bin/$i --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [
+ qtbase qtmultimedia ]}
+ done
+ '';
+
+ enableParallelBuilding = true;
+
+ buildInputs = [ gdk_pixbuf ffmpeg libnotify libvitamtp git qtmultimedia qtbase ];
+ nativeBuildInputs = [ qmake qttools pkgconfig ];
+
+ meta = {
+ description = "Content Manager Assistant for the PS Vita";
+ homepage = https://github.com/codestation/qcma;
+ license = stdenv.lib.licenses.gpl2;
+ platforms = stdenv.lib.platforms.linux;
+ broken = true;
+ maintainers = with stdenv.lib.maintainers; [ makefu ];
+ };
+}