nextcloud-client: fix icon name in desktop file

The desktop file bundled with nextcloud calls the icon `nextcloud`, but the
icons are named `Nextcloud` and so desktop environments won't find it.
This commit is contained in:
Ruben Maher 2018-01-13 20:25:35 +10:30
parent cf6c05fda7
commit 3e952780eb

View file

@ -36,7 +36,10 @@ stdenv.mkDerivation rec {
"-DINOTIFY_INCLUDE_DIR=${inotify-tools}/include"
];
postInstall = stdenv.lib.optionalString (withGnomeKeyring) ''
postInstall = ''
sed -i 's/\(Icon.*\)=nextcloud/\1=Nextcloud/g' \
$out/share/applications/nextcloud.desktop
'' + stdenv.lib.optionalString (withGnomeKeyring) ''
wrapProgram "$out/bin/nextcloud" \
--prefix LD_LIBRARY_PATH : ${stdenv.lib.makeLibraryPath [ libgnome_keyring ]}
'';