summary refs log tree commit diff
path: root/pkgs/tools/misc/qjoypad
diff options
context:
space:
mode:
authorajs124 <git@ajs124.de>2022-05-09 23:33:46 +0100
committerajs124 <git@ajs124.de>2022-05-25 01:19:53 +0200
commit1bf834a1dd58c68e55e80fa6b9ee20956f6c509a (patch)
treeae09f57c62281f02bb8fb7fc7bb85b3d08197af0 /pkgs/tools/misc/qjoypad
parent824ad4fe309cfdadcb8614c0cfb2f1784325f615 (diff)
downloadnixpkgs-1bf834a1dd58c68e55e80fa6b9ee20956f6c509a.tar
nixpkgs-1bf834a1dd58c68e55e80fa6b9ee20956f6c509a.tar.gz
nixpkgs-1bf834a1dd58c68e55e80fa6b9ee20956f6c509a.tar.bz2
nixpkgs-1bf834a1dd58c68e55e80fa6b9ee20956f6c509a.tar.lz
nixpkgs-1bf834a1dd58c68e55e80fa6b9ee20956f6c509a.tar.xz
nixpkgs-1bf834a1dd58c68e55e80fa6b9ee20956f6c509a.tar.zst
nixpkgs-1bf834a1dd58c68e55e80fa6b9ee20956f6c509a.zip
qjoypad: 4.1.0 -> 4.3.1
Diffstat (limited to 'pkgs/tools/misc/qjoypad')
-rw-r--r--pkgs/tools/misc/qjoypad/default.nix36
1 files changed, 17 insertions, 19 deletions
diff --git a/pkgs/tools/misc/qjoypad/default.nix b/pkgs/tools/misc/qjoypad/default.nix
index 0c3b4a9ed2f..018086e6dc7 100644
--- a/pkgs/tools/misc/qjoypad/default.nix
+++ b/pkgs/tools/misc/qjoypad/default.nix
@@ -1,21 +1,19 @@
-{ lib, stdenv, fetchurl, pkg-config, libX11, libXtst, qt4 }:
-stdenv.mkDerivation rec {
+{ lib, mkDerivation, fetchFromGitHub, pkg-config, cmake, libX11, libXtst, qtbase, qttools, qtx11extras }:
+mkDerivation rec {
   pname = "qjoypad";
-  version = "4.1.0";
-  src = fetchurl {
-    url = "mirror://sourceforge/qjoypad/qjoypad-${version}.tar.gz";
-    sha256 = "1jlm7i26nfp185xrl41kz5z6fgvyj51bjpz48cg27xx64y40iamm";
+  version = "4.3.1";
+
+  src = fetchFromGitHub {
+    owner = "panzi";
+    repo = pname;
+    rev = "v${version}";
+    hash = "sha256:1w26ddxb1xirb7qjf7kv9llxzjhbhcb7warnxbx41qhbni46g26y";
   };
-  nativeBuildInputs = [ pkg-config ];
-  buildInputs = [ libX11 libXtst qt4 ];
-  NIX_LDFLAGS = "-lX11";
-  patchPhase = ''
-    cd src
-    substituteInPlace config --replace /bin/bash ${stdenv.shell}
-    mkdir -p $out
-    export NIX_LDFLAGS="$NIX_LDFLAGS -rpath ${libX11}/lib"
-  '';
-  meta = {
+
+  nativeBuildInputs = [ pkg-config cmake ];
+  buildInputs = [ libX11 libXtst qtbase qttools qtx11extras ];
+
+  meta = with lib; {
     description = "A program that lets you use gaming devices anywhere";
     longDescription = ''
       A simple Linux/QT program that lets you use your gaming devices
@@ -33,9 +31,9 @@ stdenv.mkDerivation rec {
       of gaming devices in Linux, and makes the Linux gaming
       experience just a little bit nicer.
     '';
-    homepage = "http://qjoypad.sourceforge.net";
+    homepage = "https://github.com/panzi/qjoypad/";
     license = lib.licenses.gpl2;
-    maintainers = with lib.maintainers; [ astsmtl ];
-    platforms = with lib.platforms; linux;
+    maintainers = with maintainers; [ astsmtl ];
+    platforms = with platforms; linux;
   };
 }