treewide: use nix-update updateScript for packages I maintain

This commit is contained in:
worldofpeace 2020-07-29 12:33:39 -04:00
parent 9b97ee7b64
commit d12c11e30c
114 changed files with 272 additions and 494 deletions

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";

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;
};
};

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";

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;
};
};

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;
};
};

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;
};
};

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;
};
};

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;
};
};

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;
};
};

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;
};
};

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;
};
};

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;
};
};

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;
};
};

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/";

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";

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;
};
};

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;
};
};

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;
};
};

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";

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;
};
};

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;
};
};

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";

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;
};
};

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;
};
};

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;
};
};

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;
};
};

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;
};
};

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;
};
};

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;
};
};

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;
};
};

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 = ''

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";

View file

@ -0,0 +1,5 @@
{ nix-update }:
{ attrPath }:
[ "${nix-update}/bin/nix-update" attrPath ]

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;
};
};

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;

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}";
};
};

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}";
};
};

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}";
};
};

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}";
};
};

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}";
};
};

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}";
};
};

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}";
};
};

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}";
};
};

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}";
};
};

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}";
};
};

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}";
};
};

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}";
};
};

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}";
};
};

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}";
};
};

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}";
};
};

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}";
};
};

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}";
};
};

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}";
};
};

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}";
};
};

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}";
};
};

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}";
};
};

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}";
};
};

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}";
};
};

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}";
};
};

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}";
};
};

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}";
};
};

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}";
};
};

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}";
};
};

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}";
};
};

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}";
};
};

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}";
};
};

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}";
};
};

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}";
};
};

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}";
};
};

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}";
};
};

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;

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}";
};
};

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}";
};

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}";
};
};

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}";
};
};

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}";
};

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}";
};
};

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}";
};
};

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}";
};
};

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}";
};
};

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}";
};
};

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}";
};
};

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}";
};
};

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}";
};
};

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}";
};
};

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}";
};
};

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}";
};
};

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}";
};
};

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}";
};
};

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}";
};
};

View file

@ -1 +0,0 @@
use nix

View file

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

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

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 ]}"
'';
}

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

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

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

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

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.
;
}

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 have changed in this diff Show more