mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
transcribe: install icon, desktop and mime types
This commit is contained in:
parent
acf9b5a348
commit
b57e7944b8
@ -2,6 +2,8 @@
|
||||
, fetchzip
|
||||
, lib
|
||||
, wrapGAppsHook
|
||||
, xdg-utils
|
||||
, which
|
||||
, alsa-lib
|
||||
, atk
|
||||
, cairo
|
||||
@ -31,7 +33,11 @@ stdenv.mkDerivation rec {
|
||||
}
|
||||
else throw "Platform not supported";
|
||||
|
||||
nativeBuildInputs = [ wrapGAppsHook ];
|
||||
nativeBuildInputs = [
|
||||
which
|
||||
xdg-utils
|
||||
wrapGAppsHook
|
||||
];
|
||||
|
||||
buildInputs = with gst_all_1; [
|
||||
gst-plugins-base
|
||||
@ -65,8 +71,13 @@ stdenv.mkDerivation rec {
|
||||
mkdir -p $out/bin $out/libexec $out/share/doc
|
||||
cp transcribe $out/libexec
|
||||
cp xschelp.htb readme_gtk.html $out/share/doc
|
||||
cp -r gtkicons $out/share/icons
|
||||
ln -s $out/share/doc/xschelp.htb $out/libexec
|
||||
# The script normally installs to the home dir
|
||||
sed -i -E 's!BIN_DST=.*!BIN_DST=$out!' install-linux.sh
|
||||
sed -i -e 's!Exec=''${BIN_DST}/transcribe/transcribe!Exec=transcribe!' install-linux.sh
|
||||
sed -i -e 's!''${BIN_DST}/transcribe!''${BIN_DST}/libexec!' install-linux.sh
|
||||
rm -f xschelp.htb readme_gtk.html *.so
|
||||
XDG_DATA_HOME=$out/share bash install-linux.sh -i
|
||||
patchelf \
|
||||
--set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) \
|
||||
$out/libexec/transcribe
|
||||
@ -96,6 +107,7 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
homepage = "https://www.seventhstring.com/xscribe/";
|
||||
license = licenses.unfree;
|
||||
maintainers = with maintainers; [ iwanb ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user