gnome3.caribou: add updateScript
This commit is contained in:
parent
010f2df147
commit
2245555a3e
@ -3,14 +3,14 @@
|
||||
, wrapGAppsHook }:
|
||||
|
||||
let
|
||||
majorVersion = "0.4";
|
||||
pname = "caribou";
|
||||
version = "0.4.21";
|
||||
pythonEnv = python3Packages.python.withPackages ( ps: with ps; [ pygobject3 ] );
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
name = "caribou-${majorVersion}.21";
|
||||
in stdenv.mkDerivation rec {
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnome/sources/caribou/${majorVersion}/${name}.tar.xz";
|
||||
url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
|
||||
sha256 = "0mfychh1q3dx0b96pjz9a9y112bm9yqyim40yykzxx1hppsdjhww";
|
||||
};
|
||||
|
||||
@ -27,8 +27,18 @@ stdenv.mkDerivation rec {
|
||||
substituteInPlace libcaribou/Makefile.am --replace "--shared-library=libcaribou.so.0" "--shared-library=$out/lib/libcaribou.so.0"
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
updateScript = gnome3.updateScript {
|
||||
packageName = pname;
|
||||
attrPath = "gnome3.${pname}";
|
||||
};
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "An input assistive technology intended for switch and pointer users";
|
||||
homepage = https://wiki.gnome.org/Projects/Caribou;
|
||||
platforms = platforms.linux;
|
||||
license = licenses.lgpl21;
|
||||
maintainers = gnome3.maintainers;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user