From 3f8d0419448614fcf375382e7375b382d22a4e98 Mon Sep 17 00:00:00 2001 From: Samuel Dionne-Riel Date: Mon, 31 May 2021 02:12:09 -0400 Subject: [PATCH] rox-filer: Use wrapGAppsHook Also use `pname` + `version` --- pkgs/desktops/rox/rox-filer/default.nix | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/pkgs/desktops/rox/rox-filer/default.nix b/pkgs/desktops/rox/rox-filer/default.nix index ed00f37c6878..032209c2f182 100644 --- a/pkgs/desktops/rox/rox-filer/default.nix +++ b/pkgs/desktops/rox/rox-filer/default.nix @@ -1,17 +1,27 @@ -{ lib, stdenv, fetchurl, pkg-config, libxml2, gtk, libSM, shared-mime-info }: +{ lib +, stdenv +, fetchurl +, pkg-config +, wrapGAppsHook +, libxml2 +, gtk +, libSM +, shared-mime-info +}: -let +stdenv.mkDerivation rec { + pname = "rox-filer"; version = "2.11"; - name = "rox-filer-${version}"; -in stdenv.mkDerivation { - inherit name; src = fetchurl { url = "mirror://sourceforge/rox/rox-filer-${version}.tar.bz2"; sha256 = "a929bd32ee18ef7a2ed48b971574574592c42e34ae09f36604bf663d7c101ba8"; }; - nativeBuildInputs = [ pkg-config ]; + nativeBuildInputs = [ + pkg-config + wrapGAppsHook + ]; buildInputs = [ libxml2 gtk shared-mime-info libSM ]; NIX_LDFLAGS = "-ldl -lm";