From e484667ec2993859d74b635f6859944e6debba83 Mon Sep 17 00:00:00 2001 From: worldofpeace Date: Fri, 26 Jul 2019 20:32:52 -0400 Subject: [PATCH] vaapiVdpau: cleanup expression --- .../libraries/vaapi-vdpau/default.nix | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pkgs/development/libraries/vaapi-vdpau/default.nix b/pkgs/development/libraries/vaapi-vdpau/default.nix index f31f7e430e08..e3fd7ad57e02 100644 --- a/pkgs/development/libraries/vaapi-vdpau/default.nix +++ b/pkgs/development/libraries/vaapi-vdpau/default.nix @@ -1,10 +1,11 @@ { stdenv, fetchurl, fetchpatch, libvdpau, libGLU_combined, libva, pkgconfig }: stdenv.mkDerivation rec { - name = "libva-vdpau-driver-0.7.4"; - + pname = "libva-vdpau-driver"; + version = "0.7.4"; + src = fetchurl { - url = "https://www.freedesktop.org/software/vaapi/releases/libva-vdpau-driver/${name}.tar.bz2"; + url = "https://www.freedesktop.org/software/vaapi/releases/${pname}/${pname}-${version}.tar.bz2"; sha256 = "1fcvgshzyc50yb8qqm6v6wn23ghimay23ci0p8sm8gxcy211jp0m"; }; @@ -26,15 +27,14 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ pkgconfig ]; buildInputs = [ libvdpau libGLU_combined libva ]; - preConfigure = '' + postPatch = '' sed -i -e "s,LIBVA_DRIVERS_PATH=.*,LIBVA_DRIVERS_PATH=$out/lib/dri," configure ''; - - meta = { + meta = with stdenv.lib; { homepage = "https://cgit.freedesktop.org/vaapi/vdpau-driver"; - license = stdenv.lib.licenses.gpl2Plus; + license = licenses.gpl2Plus; description = "VDPAU driver for the VAAPI library"; - platforms = stdenv.lib.platforms.linux; + platforms = platforms.linux; }; }