Merge pull request #169951 from iwanb/transcribeicon
This commit is contained in:
commit
929f9a2a75
|
@ -2,6 +2,8 @@
|
||||||
, fetchzip
|
, fetchzip
|
||||||
, lib
|
, lib
|
||||||
, wrapGAppsHook
|
, wrapGAppsHook
|
||||||
|
, xdg-utils
|
||||||
|
, which
|
||||||
, alsa-lib
|
, alsa-lib
|
||||||
, atk
|
, atk
|
||||||
, cairo
|
, cairo
|
||||||
|
@ -31,7 +33,11 @@ stdenv.mkDerivation rec {
|
||||||
}
|
}
|
||||||
else throw "Platform not supported";
|
else throw "Platform not supported";
|
||||||
|
|
||||||
nativeBuildInputs = [ wrapGAppsHook ];
|
nativeBuildInputs = [
|
||||||
|
which
|
||||||
|
xdg-utils
|
||||||
|
wrapGAppsHook
|
||||||
|
];
|
||||||
|
|
||||||
buildInputs = with gst_all_1; [
|
buildInputs = with gst_all_1; [
|
||||||
gst-plugins-base
|
gst-plugins-base
|
||||||
|
@ -65,8 +71,13 @@ stdenv.mkDerivation rec {
|
||||||
mkdir -p $out/bin $out/libexec $out/share/doc
|
mkdir -p $out/bin $out/libexec $out/share/doc
|
||||||
cp transcribe $out/libexec
|
cp transcribe $out/libexec
|
||||||
cp xschelp.htb readme_gtk.html $out/share/doc
|
cp xschelp.htb readme_gtk.html $out/share/doc
|
||||||
cp -r gtkicons $out/share/icons
|
|
||||||
ln -s $out/share/doc/xschelp.htb $out/libexec
|
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 \
|
patchelf \
|
||||||
--set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) \
|
--set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) \
|
||||||
$out/libexec/transcribe
|
$out/libexec/transcribe
|
||||||
|
@ -97,6 +108,7 @@ stdenv.mkDerivation rec {
|
||||||
homepage = "https://www.seventhstring.com/xscribe/";
|
homepage = "https://www.seventhstring.com/xscribe/";
|
||||||
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
||||||
license = licenses.unfree;
|
license = licenses.unfree;
|
||||||
|
maintainers = with maintainers; [ iwanb ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue