Browse Source

treewide: use nix-update updateScript for packages I maintain

wip-nanopi-m4v2
worldofpeace 6 years ago
parent
commit
d12c11e30c
100 changed files with 235 additions and 479 deletions
  1. +8
    -0
      pkgs/applications/audio/lollypop/default.nix
  2. +2
    -1
      pkgs/applications/audio/vocal/default.nix
  3. +8
    -0
      pkgs/applications/display-managers/lightdm/default.nix
  4. +2
    -2
      pkgs/applications/editors/quilter/default.nix
  5. +2
    -1
      pkgs/applications/graphics/fondo/default.nix
  6. +2
    -1
      pkgs/applications/graphics/ideogram/default.nix
  7. +2
    -1
      pkgs/applications/misc/appeditor/default.nix
  8. +2
    -1
      pkgs/applications/misc/cipher/default.nix
  9. +2
    -1
      pkgs/applications/misc/formatter/default.nix
  10. +2
    -2
      pkgs/applications/misc/notejot/default.nix
  11. +2
    -1
      pkgs/applications/misc/olifant/default.nix
  12. +2
    -2
      pkgs/applications/misc/sequeler/default.nix
  13. +2
    -1
      pkgs/applications/misc/tootle/default.nix
  14. +8
    -0
      pkgs/applications/misc/ulauncher/default.nix
  15. +8
    -1
      pkgs/applications/networking/browsers/eolie/default.nix
  16. +2
    -1
      pkgs/applications/networking/browsers/ephemeral/default.nix
  17. +2
    -2
      pkgs/applications/networking/feedreaders/feedreader/default.nix
  18. +2
    -2
      pkgs/applications/networking/ftp/taxi/default.nix
  19. +7
    -0
      pkgs/applications/networking/instant-messengers/fractal/default.nix
  20. +2
    -1
      pkgs/applications/networking/p2p/torrential/default.nix
  21. +2
    -1
      pkgs/applications/networking/ping/default.nix
  22. +8
    -1
      pkgs/applications/networking/weather/meteo/default.nix
  23. +2
    -2
      pkgs/applications/office/aesop/default.nix
  24. +2
    -1
      pkgs/applications/office/agenda/default.nix
  25. +2
    -1
      pkgs/applications/office/envelope/default.nix
  26. +2
    -1
      pkgs/applications/office/khronos/default.nix
  27. +2
    -1
      pkgs/applications/office/notes-up/default.nix
  28. +2
    -1
      pkgs/applications/office/spice-up/default.nix
  29. +2
    -1
      pkgs/applications/office/timetable/default.nix
  30. +2
    -1
      pkgs/applications/system/monitor/default.nix
  31. +7
    -0
      pkgs/applications/video/celluloid/default.nix
  32. +8
    -0
      pkgs/applications/video/peek/default.nix
  33. +5
    -0
      pkgs/common-updater/nix-update.nix
  34. +2
    -2
      pkgs/data/themes/adwaita-qt/default.nix
  35. +8
    -0
      pkgs/desktops/gnome-3/extensions/mpris-indicator-button/default.nix
  36. +4
    -3
      pkgs/desktops/pantheon/apps/appcenter/default.nix
  37. +2
    -1
      pkgs/desktops/pantheon/apps/elementary-calculator/default.nix
  38. +2
    -1
      pkgs/desktops/pantheon/apps/elementary-calendar/default.nix
  39. +2
    -1
      pkgs/desktops/pantheon/apps/elementary-camera/default.nix
  40. +2
    -1
      pkgs/desktops/pantheon/apps/elementary-code/default.nix
  41. +2
    -1
      pkgs/desktops/pantheon/apps/elementary-feedback/default.nix
  42. +2
    -1
      pkgs/desktops/pantheon/apps/elementary-files/default.nix
  43. +2
    -1
      pkgs/desktops/pantheon/apps/elementary-music/default.nix
  44. +2
    -1
      pkgs/desktops/pantheon/apps/elementary-photos/default.nix
  45. +2
    -1
      pkgs/desktops/pantheon/apps/elementary-screenshot-tool/default.nix
  46. +2
    -1
      pkgs/desktops/pantheon/apps/elementary-terminal/default.nix
  47. +2
    -1
      pkgs/desktops/pantheon/apps/elementary-videos/default.nix
  48. +2
    -1
      pkgs/desktops/pantheon/apps/sideload/default.nix
  49. +2
    -1
      pkgs/desktops/pantheon/apps/switchboard-plugs/a11y/default.nix
  50. +2
    -1
      pkgs/desktops/pantheon/apps/switchboard-plugs/about/default.nix
  51. +2
    -1
      pkgs/desktops/pantheon/apps/switchboard-plugs/applications/default.nix
  52. +2
    -1
      pkgs/desktops/pantheon/apps/switchboard-plugs/bluetooth/default.nix
  53. +2
    -1
      pkgs/desktops/pantheon/apps/switchboard-plugs/datetime/default.nix
  54. +2
    -1
      pkgs/desktops/pantheon/apps/switchboard-plugs/display/default.nix
  55. +2
    -1
      pkgs/desktops/pantheon/apps/switchboard-plugs/keyboard/default.nix
  56. +2
    -1
      pkgs/desktops/pantheon/apps/switchboard-plugs/mouse-touchpad/default.nix
  57. +2
    -1
      pkgs/desktops/pantheon/apps/switchboard-plugs/network/default.nix
  58. +2
    -1
      pkgs/desktops/pantheon/apps/switchboard-plugs/notifications/default.nix
  59. +2
    -1
      pkgs/desktops/pantheon/apps/switchboard-plugs/onlineaccounts/default.nix
  60. +2
    -2
      pkgs/desktops/pantheon/apps/switchboard-plugs/pantheon-shell/default.nix
  61. +2
    -1
      pkgs/desktops/pantheon/apps/switchboard-plugs/power/default.nix
  62. +2
    -1
      pkgs/desktops/pantheon/apps/switchboard-plugs/printers/default.nix
  63. +2
    -1
      pkgs/desktops/pantheon/apps/switchboard-plugs/security-privacy/default.nix
  64. +2
    -1
      pkgs/desktops/pantheon/apps/switchboard-plugs/sharing/default.nix
  65. +2
    -1
      pkgs/desktops/pantheon/apps/switchboard-plugs/sound/default.nix
  66. +2
    -1
      pkgs/desktops/pantheon/apps/switchboard/default.nix
  67. +2
    -1
      pkgs/desktops/pantheon/artwork/elementary-gtk-theme/default.nix
  68. +2
    -1
      pkgs/desktops/pantheon/artwork/elementary-icon-theme/default.nix
  69. +2
    -1
      pkgs/desktops/pantheon/artwork/elementary-sound-theme/default.nix
  70. +2
    -1
      pkgs/desktops/pantheon/artwork/elementary-wallpapers/default.nix
  71. +0
    -4
      pkgs/desktops/pantheon/default.nix
  72. +2
    -1
      pkgs/desktops/pantheon/desktop/elementary-default-settings/default.nix
  73. +2
    -1
      pkgs/desktops/pantheon/desktop/elementary-greeter/default.nix
  74. +2
    -1
      pkgs/desktops/pantheon/desktop/elementary-onboarding/default.nix
  75. +2
    -1
      pkgs/desktops/pantheon/desktop/elementary-print-shim/default.nix
  76. +2
    -1
      pkgs/desktops/pantheon/desktop/elementary-session-settings/default.nix
  77. +2
    -1
      pkgs/desktops/pantheon/desktop/elementary-shortcut-overlay/default.nix
  78. +2
    -1
      pkgs/desktops/pantheon/desktop/gala/default.nix
  79. +2
    -1
      pkgs/desktops/pantheon/desktop/wingpanel-indicators/applications-menu/default.nix
  80. +2
    -1
      pkgs/desktops/pantheon/desktop/wingpanel-indicators/bluetooth/default.nix
  81. +2
    -1
      pkgs/desktops/pantheon/desktop/wingpanel-indicators/datetime/default.nix
  82. +2
    -1
      pkgs/desktops/pantheon/desktop/wingpanel-indicators/keyboard/default.nix
  83. +2
    -1
      pkgs/desktops/pantheon/desktop/wingpanel-indicators/network/default.nix
  84. +2
    -1
      pkgs/desktops/pantheon/desktop/wingpanel-indicators/nightlight/default.nix
  85. +2
    -1
      pkgs/desktops/pantheon/desktop/wingpanel-indicators/notifications/default.nix
  86. +2
    -1
      pkgs/desktops/pantheon/desktop/wingpanel-indicators/power/default.nix
  87. +2
    -1
      pkgs/desktops/pantheon/desktop/wingpanel-indicators/session/default.nix
  88. +2
    -1
      pkgs/desktops/pantheon/desktop/wingpanel-indicators/sound/default.nix
  89. +2
    -1
      pkgs/desktops/pantheon/desktop/wingpanel/default.nix
  90. +2
    -1
      pkgs/desktops/pantheon/granite/default.nix
  91. +0
    -1
      pkgs/desktops/pantheon/nixpkgs_github_update/.envrc
  92. +0
    -4
      pkgs/desktops/pantheon/nixpkgs_github_update/.formatter.exs
  93. +0
    -32
      pkgs/desktops/pantheon/nixpkgs_github_update/.gitignore
  94. +0
    -53
      pkgs/desktops/pantheon/nixpkgs_github_update/default.nix
  95. +0
    -71
      pkgs/desktops/pantheon/nixpkgs_github_update/lib/nixpkgs_github_update/cli.ex
  96. +0
    -42
      pkgs/desktops/pantheon/nixpkgs_github_update/lib/nixpkgs_github_update/github_latest_version.ex
  97. +0
    -85
      pkgs/desktops/pantheon/nixpkgs_github_update/lib/nixpkgs_github_update/nix.ex
  98. +0
    -28
      pkgs/desktops/pantheon/nixpkgs_github_update/mix.exs
  99. +0
    -19
      pkgs/desktops/pantheon/nixpkgs_github_update/shell.nix
  100. +0
    -49
      pkgs/desktops/pantheon/nixpkgs_github_update/test/nix_test.exs

+ 8
- 0
pkgs/applications/audio/lollypop/default.nix View File

@@ -1,5 +1,6 @@
{ lib
, fetchgit
, nix-update-script
, meson
, ninja
, pkgconfig
@@ -91,6 +92,13 @@ python3.pkgs.buildPythonApplication rec {
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';

passthru = {
updateScript = nix-update-script {
attrPath = pname;
};
};


meta = with lib; {
changelog = "https://gitlab.gnome.org/World/lollypop/tags/${version}";
description = "A modern music player for GNOME";


+ 2
- 1
pkgs/applications/audio/vocal/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, cmake
, ninja
, vala
@@ -61,7 +62,7 @@ stdenv.mkDerivation rec {
];

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = pname;
};
};


+ 8
- 0
pkgs/applications/display-managers/lightdm/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, substituteAll
, plymouth
, pam
@@ -127,6 +128,13 @@ stdenv.mkDerivation rec {
rm -rf $out/etc/apparmor.d $out/etc/init $out/etc/pam.d
'';

passthru = {
updateScript = nix-update-script {
attrPath = pname;
};
};


meta = {
homepage = "https://github.com/CanonicalLtd/lightdm";
description = "A cross-desktop display manager";


+ 2
- 2
pkgs/applications/editors/quilter/default.nix View File

@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, pkgconfig, meson, ninja, python3, vala
{ stdenv, fetchFromGitHub, nix-update-script, pkgconfig, meson, ninja, python3, vala
, gtk3, desktop-file-utils, gtksourceview, webkitgtk, gtkspell3, pantheon
, libgee, discount, wrapGAppsHook }:

@@ -40,7 +40,7 @@ stdenv.mkDerivation rec {
'';

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = pname;
};
};


+ 2
- 1
pkgs/applications/graphics/fondo/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, pantheon
, vala
, pkgconfig
@@ -57,7 +58,7 @@ stdenv.mkDerivation rec {
'';

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = pname;
};
};


+ 2
- 1
pkgs/applications/graphics/ideogram/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, fetchpatch
, vala
, pkgconfig
@@ -51,7 +52,7 @@ stdenv.mkDerivation rec {
'';

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = pname;
};
};


+ 2
- 1
pkgs/applications/misc/appeditor/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, vala
, meson
, ninja
@@ -51,7 +52,7 @@ stdenv.mkDerivation rec {
'';

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = pname;
};
};


+ 2
- 1
pkgs/applications/misc/cipher/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, meson
, ninja
, vala
@@ -48,7 +49,7 @@ stdenv.mkDerivation rec {
'';

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = pname;
};
};


+ 2
- 1
pkgs/applications/misc/formatter/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, meson
, ninja
, vala
@@ -62,7 +63,7 @@ stdenv.mkDerivation rec {
'';

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = pname;
};
};


+ 2
- 2
pkgs/applications/misc/notejot/default.nix View File

@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, vala, pkgconfig, meson, ninja, python3, pantheon
{ stdenv, fetchFromGitHub, nix-update-script, vala, pkgconfig, meson, ninja, python3, pantheon
, gtk3, gtksourceview, json-glib, libgee, wrapGAppsHook }:

stdenv.mkDerivation rec {
@@ -35,7 +35,7 @@ stdenv.mkDerivation rec {
'';

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = pname;
};
};


+ 2
- 1
pkgs/applications/misc/olifant/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, fetchpatch
, vala
, meson
@@ -54,7 +55,7 @@ stdenv.mkDerivation rec {
'';

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = pname;
};
};


+ 2
- 2
pkgs/applications/misc/sequeler/default.nix View File

@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub
{ stdenv, fetchFromGitHub, nix-update-script
, vala, meson, ninja, pkgconfig, pantheon, gettext, wrapGAppsHook, python3, desktop-file-utils
, gtk3, glib, libgee, libgda, gtksourceview, libxml2, libsecret, libssh2 }:

@@ -30,7 +30,7 @@ in stdenv.mkDerivation rec {
'';

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = pname;
};
};


+ 2
- 1
pkgs/applications/misc/tootle/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, fetchpatch
, vala
, meson
@@ -63,7 +64,7 @@ stdenv.mkDerivation rec {
'';

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = pname;
};
};


+ 8
- 0
pkgs/applications/misc/ulauncher/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchurl
, nix-update-script
, python3Packages
, gdk-pixbuf
, glib
@@ -103,6 +104,13 @@ python3Packages.buildPythonApplication rec {
gappsWrapperArgs+=(--prefix PATH : "${stdenv.lib.makeBinPath [ wmctrl ]}")
'';

passthru = {
updateScript = nix-update-script {
attrPath = pname;
};
};


meta = with stdenv.lib; {
description = "A fast application launcher for Linux, written in Python, using GTK";
homepage = "https://ulauncher.io/";


+ 8
- 1
pkgs/applications/networking/browsers/eolie/default.nix View File

@@ -1,4 +1,4 @@
{ stdenv, fetchgit, meson, ninja, pkgconfig
{ stdenv, fetchgit, meson, ninja, pkgconfig, nix-update-script
, python3, gtk3, libsecret, gst_all_1, webkitgtk
, glib-networking, gtkspell3, hunspell, desktop-file-utils
, gobject-introspection, wrapGAppsHook }:
@@ -57,6 +57,13 @@ python3.pkgs.buildPythonApplication rec {
patchPythonScript "$out/libexec/eolie-sp"
'';

passthru = {
updateScript = nix-update-script {
attrPath = pname;
};
};


meta = with stdenv.lib; {
description = "A new GNOME web browser";
homepage = "https://wiki.gnome.org/Apps/Eolie";


+ 2
- 1
pkgs/applications/networking/browsers/ephemeral/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, desktop-file-utils
, vala
, gettext
@@ -55,7 +56,7 @@ stdenv.mkDerivation rec {
'';

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = pname;
};
};


+ 2
- 2
pkgs/applications/networking/feedreaders/feedreader/default.nix View File

@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, meson, ninja, pkgconfig, vala, gettext, python3
{ stdenv, fetchFromGitHub, nix-update-script, meson, ninja, pkgconfig, vala, gettext, python3
, appstream-glib, desktop-file-utils, wrapGAppsHook, gnome-online-accounts
, gtk3, libgee, libpeas, librest, webkitgtk, gsettings-desktop-schemas, pantheon
, curl, glib, gnome3, gst_all_1, json-glib, libnotify, libsecret, sqlite, gumbo, libxml2
@@ -33,7 +33,7 @@ stdenv.mkDerivation rec {
'';

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = pname;
};
};


+ 2
- 2
pkgs/applications/networking/ftp/taxi/default.nix View File

@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, pantheon, pkgconfig, meson, ninja, python3, vala
{ stdenv, fetchFromGitHub, nix-update-script, pantheon, pkgconfig, meson, ninja, python3, vala
, gtk3, libgee, libsoup, libsecret, gobject-introspection, wrapGAppsHook }:

stdenv.mkDerivation rec {
@@ -36,7 +36,7 @@ stdenv.mkDerivation rec {
'';

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = pname;
};
};


+ 7
- 0
pkgs/applications/networking/instant-messengers/fractal/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitLab
, nix-update-script
, fetchpatch
, meson
, ninja
@@ -78,6 +79,12 @@ rustPlatform.buildRustPackage rec {
checkPhase = null;
installPhase = null;

passthru = {
updateScript = nix-update-script {
attrPath = pname;
};
};

meta = with stdenv.lib; {
description = "Matrix group messaging app";
homepage = "https://gitlab.gnome.org/GNOME/fractal";


+ 2
- 1
pkgs/applications/networking/p2p/torrential/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, cmake
, pkgconfig
, vala_0_40
@@ -51,7 +52,7 @@ stdenv.mkDerivation rec {
];

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = pname;
};
};


+ 2
- 1
pkgs/applications/networking/ping/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, meson
, ninja
, vala
@@ -52,7 +53,7 @@ stdenv.mkDerivation rec {
'';

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = pname;
};
};


+ 8
- 1
pkgs/applications/networking/weather/meteo/default.nix View File

@@ -1,5 +1,5 @@
{ stdenv, fetchFromGitLab, vala, python3, pkgconfig, meson, ninja, gtk3
, json-glib, libsoup, webkitgtk, geocode-glib
, json-glib, libsoup, webkitgtk, geocode-glib, nix-update-script
, libappindicator, desktop-file-utils, appstream, wrapGAppsHook }:

stdenv.mkDerivation rec {
@@ -38,6 +38,13 @@ stdenv.mkDerivation rec {
patchShebangs meson/post_install.py
'';

passthru = {
updateScript = nix-update-script {
attrPath = pname;
};
};


meta = with stdenv.lib; {
description = "Know the forecast of the next hours & days";
homepage = "https://gitlab.com/bitseater/meteo";


+ 2
- 2
pkgs/applications/office/aesop/default.nix View File

@@ -1,4 +1,4 @@
{ stdenv, vala, fetchFromGitHub, pantheon, pkgconfig, meson, ninja, python3, gtk3
{ stdenv, vala, fetchFromGitHub, nix-update-script, pantheon, pkgconfig, meson, ninja, python3, gtk3
, desktop-file-utils, json-glib, libsoup, libgee, poppler, wrapGAppsHook, fetchpatch }:

stdenv.mkDerivation rec {
@@ -38,7 +38,7 @@ stdenv.mkDerivation rec {
'';

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = pname;
};
};


+ 2
- 1
pkgs/applications/office/agenda/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, pantheon
, meson
, ninja
@@ -50,7 +51,7 @@ stdenv.mkDerivation rec {
doCheck = true;

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = pname;
};
};


+ 2
- 1
pkgs/applications/office/envelope/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, fetchpatch
, meson
, ninja
@@ -65,7 +66,7 @@ stdenv.mkDerivation rec {
'';

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = pname;
};
};


+ 2
- 1
pkgs/applications/office/khronos/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, meson
, ninja
, vala
@@ -49,7 +50,7 @@ stdenv.mkDerivation rec {
'';

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = pname;
};
};


+ 2
- 1
pkgs/applications/office/notes-up/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, pantheon
, pkgconfig
, vala_0_46
@@ -52,7 +53,7 @@ stdenv.mkDerivation rec {
cmakeFlags = stdenv.lib.optional (!withPantheon) "-Dnoele=yes";

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = pname;
};
};


+ 2
- 1
pkgs/applications/office/spice-up/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, fetchpatch
, cmake
, gdk-pixbuf
@@ -61,7 +62,7 @@ stdenv.mkDerivation rec {
];

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = pname;
};
};


+ 2
- 1
pkgs/applications/office/timetable/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, glib
, gtk3
, vala
@@ -48,7 +49,7 @@ stdenv.mkDerivation rec {
'';

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = pname;
};
};


+ 2
- 1
pkgs/applications/system/monitor/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, meson
, ninja
, vala
@@ -55,7 +56,7 @@ stdenv.mkDerivation rec {
'';

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = pname;
};
};


+ 7
- 0
pkgs/applications/video/celluloid/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, meson
, ninja
, python3
@@ -49,6 +50,12 @@ stdenv.mkDerivation rec {

doCheck = true;

passthru = {
updateScript = nix-update-script {
attrPath = pname;
};
};

meta = with stdenv.lib; {
description = "Simple GTK frontend for the mpv video player";
longDescription = ''


+ 8
- 0
pkgs/applications/video/peek/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, meson
, ninja
, gettext
@@ -68,6 +69,13 @@ stdenv.mkDerivation rec {
gappsWrapperArgs+=(--prefix PATH : ${stdenv.lib.makeBinPath [ which ffmpeg_3 gifski ]})
'';

passthru = {
updateScript = nix-update-script {
attrPath = pname;
};
};


meta = with stdenv.lib; {
homepage = "https://github.com/phw/peek";
description = "Simple animated GIF screen recorder with an easy to use interface";


+ 5
- 0
pkgs/common-updater/nix-update.nix View File

@@ -0,0 +1,5 @@
{ nix-update }:

{ attrPath }:

[ "${nix-update}/bin/nix-update" attrPath ]

+ 2
- 2
pkgs/data/themes/adwaita-qt/default.nix View File

@@ -1,4 +1,4 @@
{ mkDerivation, lib, fetchFromGitHub, cmake, ninja, qtbase, pantheon }:
{ mkDerivation, lib, fetchFromGitHub, nix-update-script, cmake, ninja, qtbase, pantheon }:

mkDerivation rec {
pname = "adwaita-qt";
@@ -27,7 +27,7 @@ mkDerivation rec {
'';

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = pname;
};
};


+ 8
- 0
pkgs/desktops/gnome-3/extensions/mpris-indicator-button/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, gnome3
}:

@@ -23,6 +24,13 @@ stdenv.mkDerivation rec {
runHook postInstall
'';

passthru = {
updateScript = nix-update-script {
attrPath = "gnomeExtensions.${pname}";
};
};


meta = with stdenv.lib; {
description = "A simple MPRIS indicator button for GNOME Shell";
license = licenses.gpl3;


+ 4
- 3
pkgs/desktops/pantheon/apps/appcenter/default.nix View File

@@ -1,4 +1,5 @@
{ stdenv
, nix-update-script
, appstream
, appstream-glib
, dbus
@@ -30,17 +31,17 @@

stdenv.mkDerivation rec {
pname = "appcenter";
version = "3.4.0";
version = "3.4.1";

src = fetchFromGitHub {
owner = "elementary";
repo = pname;
rev = version;
sha256 = "04q2gp9yyqsg4jd53rivcmikw52psxijrzfy2vxzjsx8fccd48ra";
sha256 = "1bwkjxl4k49hvy88llif82hdancda9692vjwkw4bxy2cbz8444zx";
};

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 2
- 1
pkgs/desktops/pantheon/apps/elementary-calculator/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, pantheon
, pkgconfig
, meson
@@ -30,7 +31,7 @@ stdenv.mkDerivation rec {
};

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 2
- 1
pkgs/desktops/pantheon/apps/elementary-calendar/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, pantheon
, pkgconfig
, meson
@@ -37,7 +38,7 @@ stdenv.mkDerivation rec {
};

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 2
- 1
pkgs/desktops/pantheon/apps/elementary-camera/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, pantheon
, pkgconfig
, meson
@@ -35,7 +36,7 @@ stdenv.mkDerivation rec {
};

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 2
- 1
pkgs/desktops/pantheon/apps/elementary-code/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, pantheon
, pkgconfig
, meson
@@ -39,7 +40,7 @@ stdenv.mkDerivation rec {
};

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 2
- 1
pkgs/desktops/pantheon/apps/elementary-feedback/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, pantheon
, pkgconfig
, meson
@@ -30,7 +31,7 @@ stdenv.mkDerivation rec {
};

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 2
- 1
pkgs/desktops/pantheon/apps/elementary-files/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, pantheon
, pkgconfig
, meson
@@ -44,7 +45,7 @@ stdenv.mkDerivation rec {
};

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 2
- 1
pkgs/desktops/pantheon/apps/elementary-music/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, pantheon
, pkgconfig
, meson
@@ -41,7 +42,7 @@ stdenv.mkDerivation rec {
};

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 2
- 1
pkgs/desktops/pantheon/apps/elementary-photos/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, pantheon
, meson
, ninja
@@ -45,7 +46,7 @@ stdenv.mkDerivation rec {
};

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 2
- 1
pkgs/desktops/pantheon/apps/elementary-screenshot-tool/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, pantheon
, pkgconfig
, meson
@@ -29,7 +30,7 @@ stdenv.mkDerivation rec {
};

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 2
- 1
pkgs/desktops/pantheon/apps/elementary-terminal/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, fetchpatch
, pantheon
, pkgconfig
@@ -34,7 +35,7 @@ stdenv.mkDerivation rec {
};

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 2
- 1
pkgs/desktops/pantheon/apps/elementary-videos/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, pantheon
, pkgconfig
, meson
@@ -31,7 +32,7 @@ stdenv.mkDerivation rec {
};

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 2
- 1
pkgs/desktops/pantheon/apps/sideload/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, desktop-file-utils
, nix-update-script
, elementary-gtk-theme
, elementary-icon-theme
, fetchFromGitHub
@@ -31,7 +32,7 @@ stdenv.mkDerivation rec {
};

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 2
- 1
pkgs/desktops/pantheon/apps/switchboard-plugs/a11y/default.nix View File

@@ -1,6 +1,7 @@
{ stdenv
, substituteAll
, fetchFromGitHub
, nix-update-script
, pantheon
, meson
, ninja
@@ -32,7 +33,7 @@ stdenv.mkDerivation rec {
];

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 2
- 1
pkgs/desktops/pantheon/apps/switchboard-plugs/about/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, pantheon
, substituteAll
, meson
@@ -26,7 +27,7 @@ stdenv.mkDerivation rec {
};

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 2
- 1
pkgs/desktops/pantheon/apps/switchboard-plugs/applications/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, pantheon
, meson
, ninja
@@ -23,7 +24,7 @@ stdenv.mkDerivation rec {
};

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 2
- 1
pkgs/desktops/pantheon/apps/switchboard-plugs/bluetooth/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, pantheon
, meson
, ninja
@@ -24,7 +25,7 @@ stdenv.mkDerivation rec {
};

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 2
- 1
pkgs/desktops/pantheon/apps/switchboard-plugs/datetime/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, pantheon
, meson
, ninja
@@ -26,7 +27,7 @@ stdenv.mkDerivation rec {
};

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 2
- 1
pkgs/desktops/pantheon/apps/switchboard-plugs/display/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, pantheon
, meson
, ninja
@@ -23,7 +24,7 @@ stdenv.mkDerivation rec {
};

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 2
- 1
pkgs/desktops/pantheon/apps/switchboard-plugs/keyboard/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, pantheon
, fetchpatch
, substituteAll
@@ -29,7 +30,7 @@ stdenv.mkDerivation rec {
};

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 2
- 1
pkgs/desktops/pantheon/apps/switchboard-plugs/mouse-touchpad/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, pantheon
, meson
, ninja
@@ -25,7 +26,7 @@ stdenv.mkDerivation rec {
};

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 2
- 1
pkgs/desktops/pantheon/apps/switchboard-plugs/network/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, pantheon
, meson
, ninja
@@ -27,7 +28,7 @@ stdenv.mkDerivation rec {
};

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 2
- 1
pkgs/desktops/pantheon/apps/switchboard-plugs/notifications/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, fetchpatch
, pantheon
, meson
@@ -25,7 +26,7 @@ stdenv.mkDerivation rec {
};

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 2
- 1
pkgs/desktops/pantheon/apps/switchboard-plugs/onlineaccounts/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, fetchpatch
, pantheon
, meson
@@ -30,7 +31,7 @@ stdenv.mkDerivation rec {
};

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 2
- 2
pkgs/desktops/pantheon/apps/switchboard-plugs/pantheon-shell/default.nix View File

@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, pantheon, meson, ninja, pkgconfig, vala, glib
{ stdenv, fetchFromGitHub, nix-update-script, pantheon, meson, ninja, pkgconfig, vala, glib
, libgee, granite, gexiv2, elementary-settings-daemon, gtk3, gnome-desktop
, gala, wingpanel, plank, switchboard, gettext, bamf, fetchpatch }:

@@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
};

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 2
- 1
pkgs/desktops/pantheon/apps/switchboard-plugs/power/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, pantheon
, substituteAll
, meson
@@ -29,7 +30,7 @@ stdenv.mkDerivation rec {
};

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 2
- 1
pkgs/desktops/pantheon/apps/switchboard-plugs/printers/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, fetchpatch
, pantheon
, meson
@@ -25,7 +26,7 @@ stdenv.mkDerivation rec {
};

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 2
- 1
pkgs/desktops/pantheon/apps/switchboard-plugs/security-privacy/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, pantheon
, meson
, python3
@@ -28,7 +29,7 @@ stdenv.mkDerivation rec {
};

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 2
- 1
pkgs/desktops/pantheon/apps/switchboard-plugs/sharing/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, fetchpatch
, pantheon
, meson
@@ -24,7 +25,7 @@ stdenv.mkDerivation rec {
};

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 2
- 1
pkgs/desktops/pantheon/apps/switchboard-plugs/sound/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, pantheon
, meson
, ninja
@@ -26,7 +27,7 @@ stdenv.mkDerivation rec {
};

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 2
- 1
pkgs/desktops/pantheon/apps/switchboard/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, pantheon
, pkgconfig
, meson
@@ -27,7 +28,7 @@ stdenv.mkDerivation rec {
};

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 2
- 1
pkgs/desktops/pantheon/artwork/elementary-gtk-theme/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, pantheon
, meson
, ninja
@@ -20,7 +21,7 @@ stdenv.mkDerivation rec {
};

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 2
- 1
pkgs/desktops/pantheon/artwork/elementary-icon-theme/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, pantheon
, meson
, python3
@@ -24,7 +25,7 @@ stdenv.mkDerivation rec {
};

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 2
- 1
pkgs/desktops/pantheon/artwork/elementary-sound-theme/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, pantheon
, meson
, ninja
@@ -26,7 +27,7 @@ stdenv.mkDerivation rec {
];

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 2
- 1
pkgs/desktops/pantheon/artwork/elementary-wallpapers/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, pantheon
, meson
, ninja
@@ -26,7 +27,7 @@ stdenv.mkDerivation rec {
];

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 0
- 4
pkgs/desktops/pantheon/default.nix View File

@@ -23,10 +23,6 @@ lib.makeScope pkgs.newScope (self: with self; {
wingpanel-indicator-session wingpanel-indicator-sound
];

nixpkgs-github-update = callPackage ./nixpkgs_github_update { };

updateScript = callPackage ./update.nix { };

maintainers = with pkgs.stdenv.lib.maintainers; [ worldofpeace ];

mutter = pkgs.gnome3.mutter334;


+ 2
- 1
pkgs/desktops/pantheon/desktop/elementary-default-settings/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, pantheon
, meson
, ninja
@@ -27,7 +28,7 @@ stdenv.mkDerivation rec {
};

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 2
- 1
pkgs/desktops/pantheon/desktop/elementary-greeter/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, linkFarm
, substituteAll
, elementary-greeter
@@ -40,7 +41,7 @@ stdenv.mkDerivation rec {
};

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};



+ 2
- 1
pkgs/desktops/pantheon/desktop/elementary-onboarding/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, pantheon
, fetchpatch
, pkgconfig
@@ -32,7 +33,7 @@ stdenv.mkDerivation rec {
};

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 2
- 1
pkgs/desktops/pantheon/desktop/elementary-print-shim/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, pantheon
, meson
, ninja
@@ -22,7 +23,7 @@ stdenv.mkDerivation rec {
};

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 2
- 1
pkgs/desktops/pantheon/desktop/elementary-session-settings/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, substituteAll
, desktop-file-utils
, pkg-config
@@ -120,7 +121,7 @@ stdenv.mkDerivation rec {
'';

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};



+ 2
- 1
pkgs/desktops/pantheon/desktop/elementary-shortcut-overlay/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, pantheon
, pkgconfig
, meson
@@ -29,7 +30,7 @@ stdenv.mkDerivation rec {
};

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 2
- 1
pkgs/desktops/pantheon/desktop/gala/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, fetchpatch
, pantheon
, pkgconfig
@@ -37,7 +38,7 @@ stdenv.mkDerivation rec {
};

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 2
- 1
pkgs/desktops/pantheon/desktop/wingpanel-indicators/applications-menu/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, pantheon
, substituteAll
, meson
@@ -39,7 +40,7 @@ stdenv.mkDerivation rec {
};

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 2
- 1
pkgs/desktops/pantheon/desktop/wingpanel-indicators/bluetooth/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, pantheon
, pkgconfig
, meson
@@ -27,7 +28,7 @@ stdenv.mkDerivation rec {
};

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 2
- 1
pkgs/desktops/pantheon/desktop/wingpanel-indicators/datetime/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, pantheon
, pkgconfig
, meson
@@ -29,7 +30,7 @@ stdenv.mkDerivation rec {
};

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 2
- 1
pkgs/desktops/pantheon/desktop/wingpanel-indicators/keyboard/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, pantheon
, pkgconfig
, meson
@@ -27,7 +28,7 @@ stdenv.mkDerivation rec {
};

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 2
- 1
pkgs/desktops/pantheon/desktop/wingpanel-indicators/network/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, pantheon
, pkgconfig
, meson
@@ -25,7 +26,7 @@ stdenv.mkDerivation rec {
};

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 2
- 1
pkgs/desktops/pantheon/desktop/wingpanel-indicators/nightlight/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, pantheon
, pkgconfig
, meson
@@ -24,7 +25,7 @@ stdenv.mkDerivation rec {
};

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 2
- 1
pkgs/desktops/pantheon/desktop/wingpanel-indicators/notifications/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, pantheon
, pkgconfig
, fetchpatch
@@ -34,7 +35,7 @@ stdenv.mkDerivation rec {
];

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 2
- 1
pkgs/desktops/pantheon/desktop/wingpanel-indicators/power/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, pantheon
, pkgconfig
, meson
@@ -27,7 +28,7 @@ stdenv.mkDerivation rec {
};

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 2
- 1
pkgs/desktops/pantheon/desktop/wingpanel-indicators/session/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, fetchpatch
, pantheon
, pkgconfig
@@ -38,7 +39,7 @@ stdenv.mkDerivation rec {
];

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 2
- 1
pkgs/desktops/pantheon/desktop/wingpanel-indicators/sound/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, pantheon
, pkgconfig
, meson
@@ -28,7 +29,7 @@ stdenv.mkDerivation rec {
};

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 2
- 1
pkgs/desktops/pantheon/desktop/wingpanel/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, pantheon
, wrapGAppsHook
, pkgconfig
@@ -30,7 +31,7 @@ stdenv.mkDerivation rec {
};

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 2
- 1
pkgs/desktops/pantheon/granite/default.nix View File

@@ -1,5 +1,6 @@
{ stdenv
, fetchFromGitHub
, nix-update-script
, python3
, meson
, ninja
@@ -29,7 +30,7 @@ stdenv.mkDerivation rec {
};

passthru = {
updateScript = pantheon.updateScript {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};


+ 0
- 1
pkgs/desktops/pantheon/nixpkgs_github_update/.envrc View File

@@ -1 +0,0 @@
use nix

+ 0
- 4
pkgs/desktops/pantheon/nixpkgs_github_update/.formatter.exs View File

@@ -1,4 +0,0 @@
# Used by "mix format"
[
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"]
]

+ 0
- 32
pkgs/desktops/pantheon/nixpkgs_github_update/.gitignore View File

@@ -1,32 +0,0 @@
# The directory Mix will write compiled artifacts to.
_build/

# If you run "mix test --cover", coverage assets end up here.
cover/

# The directory Mix downloads your dependencies sources to.
deps/

# Where third-party dependencies like ExDoc output generated docs.
doc/

# Ignore .fetch files in case you like to edit your project deps locally.
.fetch

# If the VM crashes, it generates a dump, let's ignore it too.
erl_crash.dump

# Also ignore archive artifacts (built via "mix archive.build").
*.ez

# Ignore package tarball (built via "mix hex.build").
nixpkgs_github_update-*.tar

# Ignore elixir_ls
.elixir_ls

# mix escript.build result
nixpkgs_github_update

# lockfile. only because this is nixpkgs.
mix.lock

+ 0
- 53
pkgs/desktops/pantheon/nixpkgs_github_update/default.nix View File

@@ -1,53 +0,0 @@
{ lib
, beamPackages
, makeWrapper
, common-updater-scripts
}:

let

poison_4 = beamPackages.buildMix {
name = "poison";
version = "4.0.1";

src = beamPackages.fetchHex {
pkg = "poison";
version = "4.0.1";
sha256 = "098gdz7xzfmnjzgnnv80nl4h3zl8l9czqqd132vlnfabxbz3d25s";
};
};


in

beamPackages.buildMix {
name = "nixpkgs-github-update";
version = "0.1.0";

src = lib.cleanSource ./.;

nativeBuildInputs = [
makeWrapper
];

beamDeps = with beamPackages; [ erlang poison_4 ];

buildPhase = ''
export HEX_OFFLINE=1
export HEX_HOME=`pwd`
export MIX_ENV=prod
export MIX_NO_DEPS=1

mix escript.build --no-deps-check
'';

installPhase = ''
mkdir -p $out/bin
cp nixpkgs_github_update $out/bin
'';

postFixup = ''
wrapProgram $out/bin/nixpkgs_github_update \
--prefix PATH : "${lib.makeBinPath [ common-updater-scripts ]}"
'';
}

+ 0
- 71
pkgs/desktops/pantheon/nixpkgs_github_update/lib/nixpkgs_github_update/cli.ex View File

@@ -1,71 +0,0 @@
defmodule NixpkgsGitHubUpdate.CLI do
@moduledoc """
Run updates on Nix Expressions that use fetchFromGitHub.

Arguments the script accepts:
--attribute <attribute_path>

Example usage:
```
./nixpkgs_github_update --attribute "notes-up"
```
"""
alias NixpkgsGitHubUpdate.{Nix, GitHubLatestVersion}

def help do
IO.puts("""
Run updates on Nix Expressions that use fetchFromGitHub.

Arguments the script accepts:
--attribute <attribute_path>

Example usage:
./nixpkgs_github_update --attribute "notes-up"
""")
end

def main([]) do
help()
end

def main(args) do
opts = parse_args(args)

attribute = opts[:attribute]

case Nix.attribute_exists?(attribute) do
true -> update(attribute)
_ -> exit("Requested attribute doesn't exist.")
end
end

def parse_args(args) do
{options, _, _} =
args
|> OptionParser.parse(strict: [attribute: :string])

options
end

def update(attribute) do
version =
Nix.get_owner_repo(attribute)
|> GitHubLatestVersion.fetch()
|> decode_response()
|> construct_version()

Nix.update_source_version(attribute, version)
end

def decode_response({:ok, response}), do: response

def decode_response({:error, error}) do
IO.puts("Error getting latest release from GitHub: #{error["message"]}")
System.halt(2)
end

def construct_version(response) do
Map.get(response, "tag_name")
|> String.trim_leading("v")
end
end

+ 0
- 42
pkgs/desktops/pantheon/nixpkgs_github_update/lib/nixpkgs_github_update/github_latest_version.ex View File

@@ -1,42 +0,0 @@
defmodule NixpkgsGitHubUpdate.GitHubLatestVersion do
@user_agent 'httpc'

def fetch({owner, repo}) do
endpoint = releases_endpoint(owner, repo)
headers = construct_headers()

:httpc.request(:get, {endpoint, headers}, [], [])
|> handle_response
end

def releases_endpoint(owner, repo) do
'https://api.github.com/repos/#{owner}/#{repo}/releases/latest'
end

def construct_headers do
headers = %{'User-Agent' => @user_agent}

put_token(headers, get_token())
|> Map.to_list
end

defp get_token do
System.get_env("OAUTH_TOKEN")
end

defp put_token(headers, token) when token != nil do
Map.put_new(headers, 'Authorization', 'token #{String.to_charlist(token)}')
end

defp put_token(headers, _), do: headers

def handle_response({_, {{_httpv, status_code, _}, _headers, response}}) do
{
status_code |> check_for_error(),
response |> Poison.Parser.parse!(%{})
}
end

defp check_for_error(200), do: :ok
defp check_for_error(_), do: :error
end

+ 0
- 85
pkgs/desktops/pantheon/nixpkgs_github_update/lib/nixpkgs_github_update/nix.ex View File

@@ -1,85 +0,0 @@
defmodule NixpkgsGitHubUpdate.Nix do
def executable do
nix = System.find_executable("nix")

if nix == nil do
raise RuntimeError, message: "missing executable for 'nix'"
end

nix
end

def eval!(attribute) do
System.cmd(
executable(),
[
"eval",
"--json",
attribute
],
stderr_to_stdout: true
)
|> handle_eval
end

defp handle_eval({eval_result, 0}) do
case eval_result do
"" -> eval_result
_ -> Poison.Parser.parse!(eval_result, %{})
end
end

defp handle_eval({eval_result, _}) do
raise RuntimeError, message: "Error running nix eval: #{eval_result}"
end

def attribute_exists?(attribute) do
attr_exist_expression = """
with import <nixpkgs> {};

let
attrSet = pkgs.lib.attrByPath (pkgs.lib.splitString "." "#{attribute}") null pkgs;
in
if attrSet == null then false
else true
"""

eval!("(#{attr_exist_expression})")
end

def update_source_version(attribute, version) do
System.cmd("update-source-version", [
attribute,
version
])
end

def get_url_attr(attribute) do
case attribute_exists?("#{attribute}.src.fetchSubmodules") do
true -> "url"
false -> "urls"
end
end

def get_owner_repo(attribute) do
url_attr = get_url_attr(attribute)

eval!("nixpkgs.#{attribute}.src.#{url_attr}")
|> case do
# It's fetchFromGitHub if we got a list
[url | _] ->
URI.parse(url).path
|> String.split("/archive", trim: true)
|> List.first()
|> String.split("/", trim: true)

# It's fetchgit if we got a plain string
url ->
URI.parse(url).path
|> String.split(".git", trim: true)
|> List.first()
|> String.split("/", trim: true)
end
|> List.to_tuple()
end
end

+ 0
- 28
pkgs/desktops/pantheon/nixpkgs_github_update/mix.exs View File

@@ -1,28 +0,0 @@
defmodule NixpkgsGitHubUpdate.MixProject do
use Mix.Project

def project do
[
app: :nixpkgs_github_update,
version: "0.1.0",
elixir: "~> 1.9",
escript: [main_module: NixpkgsGitHubUpdate.CLI],
start_permanent: Mix.env() == :prod,
deps: deps()
]
end

# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger, :inets, :ssl]
]
end

# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:poison, "~> 4.0.1"}
]
end
end

+ 0
- 19
pkgs/desktops/pantheon/nixpkgs_github_update/shell.nix View File

@@ -1,19 +0,0 @@
with import <nixpkgs> {};

let
inherit (lib) optional;
in

mkShell rec {
name = "nixpkgs-github-update-shell";

buildInputs = [
elixir
erlang
common-updater-scripts
]
++ optional stdenv.isLinux libnotify # For ExUnit Notifier on Linux.
++ optional stdenv.isLinux inotify-tools # For file_system on Linux.
;

}

+ 0
- 49
pkgs/desktops/pantheon/nixpkgs_github_update/test/nix_test.exs View File

@@ -1,49 +0,0 @@
defmodule NixTest do
@fake_package "asanotehhhuh"
@fetchgit_package "polybar"
@fetchgithub_package "notes-up"

use ExUnit.Case

import NixpkgsGitHubUpdate.Nix

def check_for_nix(_context) do
try do
executable()
rescue
RuntimeError ->
IO.puts("You need Nix installed to run these tests.")
System.halt(127)
end

:ok
end

setup_all :check_for_nix

describe "evaluation tests" do
test "evaluation handling" do
exists_attr = "nixpkgs.#{@fetchgithub_package}"

assert is_binary(eval!(exists_attr)) == true
catch_error(eval!(@fake_package) == 1)
end

# This should always be true or false
test "package exists?" do
assert attribute_exists?(@fetchgithub_package) == true
assert attribute_exists?(@fake_package) == false
end
end

test "owner repo" do
assert get_url_attr(@fetchgit_package) == "url"
assert get_url_attr(@fetchgithub_package) == "urls"

assert get_owner_repo(@fetchgit_package) ==
{@fetchgit_package, @fetchgit_package}

assert get_owner_repo(@fetchgithub_package) ==
{"Philip-Scott", String.capitalize(@fetchgithub_package)}
end
end

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save