termite: use wrapGAppsHook

This commit is contained in:
Joerg Thalheim 2017-09-24 14:47:14 +01:00
parent 42dcf914d1
commit 4d4c32504a

View File

@ -1,8 +1,8 @@
{ stdenv, fetchgit, pkgconfig, vte, gtk3, ncurses, makeWrapper, symlinkJoin { stdenv, fetchgit, pkgconfig, vte, gtk3, ncurses, makeWrapper, wrapGAppsHook, symlinkJoin
, configFile ? null , configFile ? null
}: }:
let let
version = "12"; version = "12";
termite = stdenv.mkDerivation { termite = stdenv.mkDerivation {
name = "termite-${version}"; name = "termite-${version}";
@ -17,9 +17,9 @@ let
makeFlags = [ "VERSION=v${version}" "PREFIX=" "DESTDIR=$(out)" ]; makeFlags = [ "VERSION=v${version}" "PREFIX=" "DESTDIR=$(out)" ];
buildInputs = [ pkgconfig vte gtk3 ncurses ]; buildInputs = [ vte gtk3 ncurses ];
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ wrapGAppsHook pkgconfig ];
outputs = [ "out" "terminfo" ]; outputs = [ "out" "terminfo" ];
@ -29,9 +29,6 @@ let
mkdir -p $out/nix-support mkdir -p $out/nix-support
echo "$terminfo" >> $out/nix-support/propagated-user-env-packages echo "$terminfo" >> $out/nix-support/propagated-user-env-packages
wrapProgram $out/bin/termite \
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {