The stable version has several usability bugs (e.g. https://github.com/micheleg/dash-to-dock/issues/1629)
but patches do not apply cleanly to the zips from the extension portal.
Let’s switch back to building from source to make it easier to update the extension.
This reverts commit 2bb795bab2
,
adds an update script and updates to latest git revision.
main
parent
97276fe650
commit
967a4c22db
@ -0,0 +1,48 @@ |
||||
{ stdenv |
||||
, lib |
||||
, fetchFromGitHub |
||||
, glib |
||||
, gettext |
||||
, sassc |
||||
, unstableGitUpdater |
||||
}: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
pname = "gnome-shell-extension-dash-to-dock"; |
||||
version = "71+date=2022-01-24"; |
||||
|
||||
# Temporarily switched to commit hash because stable version is buggy. |
||||
src = fetchFromGitHub { |
||||
owner = "micheleg"; |
||||
repo = "dash-to-dock"; |
||||
rev = "53114b4e000482a753e8b42dfa10d6057c08d1c6"; |
||||
sha256 = "Gv78I/dxhc6FpjZWk10uHBfD24tHE4KdkpaAo8UZpwU="; |
||||
}; |
||||
|
||||
nativeBuildInputs = [ |
||||
glib |
||||
gettext |
||||
sassc |
||||
]; |
||||
|
||||
makeFlags = [ |
||||
"INSTALLBASE=${placeholder "out"}/share/gnome-shell/extensions" |
||||
]; |
||||
|
||||
passthru = { |
||||
extensionUuid = "dash-to-dock@micxgx.gmail.com"; |
||||
extensionPortalSlug = "dash-to-dock"; |
||||
|
||||
updateScript = unstableGitUpdater { |
||||
stableVersion = true; |
||||
tagPrefix = "extensions.gnome.org-v"; |
||||
}; |
||||
}; |
||||
|
||||
meta = with lib; { |
||||
description = "A dock for the Gnome Shell"; |
||||
homepage = "https://micheleg.github.io/dash-to-dock/"; |
||||
license = licenses.gpl2Plus; |
||||
maintainers = with maintainers; [ eperuffo jtojnar rhoriguchi ]; |
||||
}; |
||||
} |
Loading…
Reference in new issue