Merge pull request #169951 from iwanb/transcribeicon

This commit is contained in:
Artturi 2023-01-27 19:02:59 +02:00 committed by GitHub
commit 929f9a2a75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
@ -97,6 +108,7 @@ stdenv.mkDerivation rec {
homepage = "https://www.seventhstring.com/xscribe/";
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
license = licenses.unfree;
maintainers = with maintainers; [ iwanb ];
platforms = platforms.linux;
};
}