Skip to content

Commit

Permalink
Switch to fetchzip and remove custom unpackPhase
Browse files Browse the repository at this point in the history
  • Loading branch information
nasrally committed Feb 2, 2024
1 parent 9905c58 commit 14a246a
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions pkgs/tools/misc/xppen/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ stdenv
, lib
, fetchurl
, fetchzip
, libusb
, autoPatchelfHook
, qt5
Expand All @@ -10,11 +10,11 @@ stdenv.mkDerivation rec {
pname = "xppen";
version = "3.4.9";

src = fetchurl {
src = fetchzip {
extension = "tar.gz";
url = "https://www.xp-pen.com/download/file.html?id=1936&pid=990&ext=gz";
hash = "sha256-33B8JjOjsv17uFae3zhGKw40oeD6fHJ1YC9wEVQO7+Q=";
hash = "sha256-A/dv6DpelH0NHjlGj32tKv37S+9q3F8cYByiYlMuqLg=";
};

nativeBuildInputs = [ autoPatchelfHook ];

buildInputs = [ qt5.full libusb libGL ];
Expand All @@ -23,12 +23,6 @@ stdenv.mkDerivation rec {
dontBuild = true;
dontCheck = true;

unpackPhase = ''
runHook preUnpack
tar xzvf ${src} --strip-components=1
runHook postUnpack
'';

installPhase = ''
runHook preInstall
mkdir -p $out/bin $out/share
Expand Down

0 comments on commit 14a246a

Please sign in to comment.