tridactyl-native: init at 1.14.9 (#61703)
parent
991d1aa425
commit
53b08beea6
@ -0,0 +1,44 @@ |
||||
{ stdenv |
||||
, fetchFromGitHub |
||||
, python3 |
||||
}: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
pname = "tridactyl-native"; |
||||
# this is actually the version of tridactyl itself; the native messenger will |
||||
# probably not change with every tridactyl version |
||||
version = "1.14.9"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "tridactyl"; |
||||
repo = "tridactyl"; |
||||
rev = version; |
||||
sha256 = "0d80c744qfv6jd03cmdp3p71xaj8lq8jzsa2m24jxv9q4ks2dcmj"; |
||||
}; |
||||
sourceRoot = "source/native"; |
||||
|
||||
nativeBuildInputs = [ |
||||
python3.pkgs.wrapPython |
||||
]; |
||||
|
||||
buildPhase = '' |
||||
sed -i -e "s|REPLACE_ME_WITH_SED|$out/share/tridactyl/native_main.py|" "tridactyl.json" |
||||
''; |
||||
|
||||
installPhase = '' |
||||
mkdir -p "$out/lib/mozilla/native-messaging-hosts" |
||||
cp tridactyl.json "$out/lib/mozilla/native-messaging-hosts/" |
||||
|
||||
mkdir -p "$out/share/tridactyl" |
||||
cp native_main.py "$out/share/tridactyl" |
||||
wrapPythonProgramsIn "$out/share/tridactyl" |
||||
''; |
||||
|
||||
meta = with stdenv.lib; { |
||||
description = "Tridactyl native messaging host application"; |
||||
homepage = https://github.com/tridactyl/tridactyl; |
||||
license = licenses.asl20; |
||||
platforms = platforms.all; |
||||
maintainers = with maintainers; [ timokau ]; |
||||
}; |
||||
} |
Loading…
Reference in new issue