From 5a17b0759e20c66f2d3176cd5df5b93bac357cb4 Mon Sep 17 00:00:00 2001 From: James Kay Date: Thu, 29 Oct 2020 12:07:56 +0000 Subject: [PATCH 01/34] entt: init at 3.5.2 Co-authored-by: Sandro --- pkgs/development/libraries/entt/default.nix | 21 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 23 insertions(+) create mode 100644 pkgs/development/libraries/entt/default.nix diff --git a/pkgs/development/libraries/entt/default.nix b/pkgs/development/libraries/entt/default.nix new file mode 100644 index 00000000000..35e12eb00c7 --- /dev/null +++ b/pkgs/development/libraries/entt/default.nix @@ -0,0 +1,21 @@ +{ stdenv, fetchFromGitHub, cmake }: +stdenv.mkDerivation rec { + pname = "entt"; + version = "3.5.2"; + + src = fetchFromGitHub { + owner = "skypjack"; + repo = "entt"; + rev = "v${version}"; + sha256 = "1p09p1wn8cbj17z83iyyy2498wy1gzyi2mmqi5i2cxglslbm6hy0"; + }; + + nativeBuildInputs = [ cmake ]; + + meta = with stdenv.lib; { + homepage = "https://github.com/skypjack/entt"; + description = "A header-only, tiny and easy to use library for game programming and much more written in modern C++"; + maintainers = with maintainers; [ twey ]; + license = licenses.mit; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b737d90d7ee..14a1633ac5c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12465,6 +12465,8 @@ in enet = callPackage ../development/libraries/enet { }; + entt = callPackage ../development/libraries/entt { }; + epoxy = callPackage ../development/libraries/epoxy {}; libesmtp = callPackage ../development/libraries/libesmtp { }; From ceb215e62558d6fdb6f70bef982e49b57e1d427d Mon Sep 17 00:00:00 2001 From: Arnar Gauti Ingason Date: Wed, 2 Dec 2020 22:23:41 +0100 Subject: [PATCH 02/34] tmuxPlugins.jump: fix ruby dependency --- pkgs/misc/tmux-plugins/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/misc/tmux-plugins/default.nix b/pkgs/misc/tmux-plugins/default.nix index 59f649f939c..752966767a1 100644 --- a/pkgs/misc/tmux-plugins/default.nix +++ b/pkgs/misc/tmux-plugins/default.nix @@ -208,6 +208,10 @@ in rec { rev = "416f613d3eaadbe1f6f9eda77c49430527ebaffb"; sha256 = "1xbzdyhsgaq2in0f8f491gwjmx6cxpkf2c35d2dk0kg4jfs505sz"; }; + postInstall = '' + sed -i -e 's|ruby|${pkgs.ruby}/bin/ruby|g' $target/scripts/tmux-jump.sh + ''; + dependencies = [ pkgs.ruby ]; meta = with stdenv.lib; { homepage = "https://github.com/schasse/tmux-jump"; From d18e00e97349e0e94673c3df81dc891f7a8e5fd0 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Fri, 18 Dec 2020 20:39:20 +0100 Subject: [PATCH 03/34] electrum: 4.0.7 -> 4.0.9 --- pkgs/applications/misc/electrum/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/misc/electrum/default.nix b/pkgs/applications/misc/electrum/default.nix index 3322fbee712..ac963c890dc 100644 --- a/pkgs/applications/misc/electrum/default.nix +++ b/pkgs/applications/misc/electrum/default.nix @@ -19,7 +19,7 @@ }: let - version = "4.0.7"; + version = "4.0.9"; libsecp256k1_name = if stdenv.isLinux then "libsecp256k1.so.0" @@ -35,7 +35,7 @@ let owner = "spesmilo"; repo = "electrum"; rev = version; - sha256 = "06vcbj9p96d8v4xjlygzr74lqllb9adn8k0racajzq61ijb0imi2"; + sha256 = "0cmdyfabllw4wnpqpdxp3l6hjnm0cvkwxn0z8ph4x54sf4zq9iz3"; extraPostFetch = '' mv $out ./all @@ -50,7 +50,7 @@ python3.pkgs.buildPythonApplication { src = fetchurl { url = "https://download.electrum.org/${version}/Electrum-${version}.tar.gz"; - sha256 = "0k5xf97ga3ixd02g1y6v84hbxd8yhvpj5iz2rhxs8wfnkfwibzh4"; + sha256 = "1fvjiagi78f32nxgr2rx8jas8hxfvpp1c8fpfcalvykmlhdc2gva"; }; postUnpack = '' From 4074d4ad98fb41093c492e5e57492ef65caf1d13 Mon Sep 17 00:00:00 2001 From: Thomas Tuegel Date: Fri, 13 Nov 2020 14:09:57 -0600 Subject: [PATCH 04/34] yq: fix path to jq yq requires jq at runtime, so that the package is broken unless the path to jq is patched in. --- .../development/python-modules/yq/default.nix | 9 ++++++- .../python-modules/yq/jq-path.patch | 26 +++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 pkgs/development/python-modules/yq/jq-path.patch diff --git a/pkgs/development/python-modules/yq/default.nix b/pkgs/development/python-modules/yq/default.nix index b3e651fd2b0..dc586b4f908 100644 --- a/pkgs/development/python-modules/yq/default.nix +++ b/pkgs/development/python-modules/yq/default.nix @@ -1,6 +1,7 @@ { lib , buildPythonPackage , fetchPypi +, substituteAll , pkgs , argcomplete , pyyaml @@ -22,6 +23,13 @@ buildPythonPackage rec { sha256 = "1q4rky0a6n4izmq7slb91a54g8swry1xrbfqxwc8lkd3hhvlxxkl"; }; + patches = [ + (substituteAll { + src = ./jq-path.patch; + jq = "${lib.getBin pkgs.jq}/bin/jq"; + }) + ]; + postPatch = '' substituteInPlace test/test.py --replace "expect_exit_codes={0} if sys.stdin.isatty() else {2}" "expect_exit_codes={0}" ''; @@ -38,7 +46,6 @@ buildPythonPackage rec { pytest coverage flake8 - pkgs.jq toml ]; diff --git a/pkgs/development/python-modules/yq/jq-path.patch b/pkgs/development/python-modules/yq/jq-path.patch new file mode 100644 index 00000000000..784a28feaf1 --- /dev/null +++ b/pkgs/development/python-modules/yq/jq-path.patch @@ -0,0 +1,26 @@ +diff --git a/test/test.py b/test/test.py +index a81f41b..9e80f04 100755 +--- a/test/test.py ++++ b/test/test.py +@@ -112,7 +112,7 @@ class TestYq(unittest.TestCase): + tf2.seek(0) + self.assertEqual(self.run_yq("", ["-y", arg, tf.name, self.fd_path(tf2)]), '1\n...\n') + +- @unittest.skipIf(subprocess.check_output(["jq", "--version"]) < b"jq-1.6", "Test options introduced in jq 1.6") ++ @unittest.skipIf(subprocess.check_output(["@jq@", "--version"]) < b"jq-1.6", "Test options introduced in jq 1.6") + def test_jq16_arg_passthrough(self): + self.assertEqual(self.run_yq("{}", ["--indentless", "-y", ".a=$ARGS.positional", "--args", "a", "b"]), + "a:\n- a\n- b\n") +diff --git a/yq/__init__.py b/yq/__init__.py +index afeb42c..a0d7970 100755 +--- a/yq/__init__.py ++++ b/yq/__init__.py +@@ -146,7 +146,7 @@ def yq(input_streams=None, output_stream=None, input_format="yaml", output_forma + + try: + # Note: universal_newlines is just a way to induce subprocess to make stdin a text buffer and encode it for us +- jq = subprocess.Popen(["jq"] + list(jq_args), ++ jq = subprocess.Popen(["@jq@"] + list(jq_args), + stdin=subprocess.PIPE, + stdout=subprocess.PIPE if converting_output else None, + universal_newlines=True) From 84e1b7f96929c7e7fda42e64cbee129fb7f68513 Mon Sep 17 00:00:00 2001 From: IvarWithoutBones Date: Sat, 26 Dec 2020 21:20:57 +0100 Subject: [PATCH 05/34] Revert "xwallpaper: remove libseccomp dependency" --- pkgs/tools/X11/xwallpaper/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/X11/xwallpaper/default.nix b/pkgs/tools/X11/xwallpaper/default.nix index 759613553fe..aab4d1180e0 100644 --- a/pkgs/tools/X11/xwallpaper/default.nix +++ b/pkgs/tools/X11/xwallpaper/default.nix @@ -5,6 +5,7 @@ , pixman , xcbutil , xcbutilimage +, libseccomp , libjpeg , libpng , libXpm @@ -24,7 +25,7 @@ stdenv.mkDerivation rec { preConfigure = "./autogen.sh"; nativeBuildInputs = [ pkg-config autoreconfHook ]; - buildInputs = [ pixman xcbutilimage xcbutil libjpeg libpng libXpm ]; + buildInputs = [ pixman xcbutilimage xcbutil libseccomp libjpeg libpng libXpm ]; meta = with stdenv.lib; { homepage = "https://github.com/stoeckmann/xwallpaper"; From 52261c4c2754ce26098eef93dd9354d3b6b4ef88 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Sun, 27 Dec 2020 13:18:05 +0100 Subject: [PATCH 06/34] ell: fix cross compilation The current `fix-dbus-tests.patch` uses automake and pkgconfig to figure out the path of `dbus-daemon`. This fails when cross-compiling, as tests aren't run (and `checkInputs`) not available. Instead of doing this, we can simply teach the tests to pick up dbus-daemon from $PATH. This was also sent upstream in https://lists.01.org/hyperkitty/list/ell@lists.01.org/thread/SQEZAIS2LZXSXGTXOW3GTAM5ZPXRLTN4/. --- ...t-dbus-pick-up-dbus-daemon-from-PATH.patch | 84 +++++++++++++++++++ pkgs/os-specific/linux/ell/default.nix | 9 +- .../linux/ell/fix-dbus-tests.patch | 65 -------------- 3 files changed, 89 insertions(+), 69 deletions(-) create mode 100644 pkgs/os-specific/linux/ell/0001-unit-test-dbus-pick-up-dbus-daemon-from-PATH.patch delete mode 100644 pkgs/os-specific/linux/ell/fix-dbus-tests.patch diff --git a/pkgs/os-specific/linux/ell/0001-unit-test-dbus-pick-up-dbus-daemon-from-PATH.patch b/pkgs/os-specific/linux/ell/0001-unit-test-dbus-pick-up-dbus-daemon-from-PATH.patch new file mode 100644 index 00000000000..c2d844edecd --- /dev/null +++ b/pkgs/os-specific/linux/ell/0001-unit-test-dbus-pick-up-dbus-daemon-from-PATH.patch @@ -0,0 +1,84 @@ +From 55d499f4cd5667c04c21f7201d7f10484e187907 Mon Sep 17 00:00:00 2001 +From: Florian Klink +Date: Sun, 27 Dec 2020 13:03:12 +0100 +Subject: [PATCH] unit/test-dbus: pick up dbus-daemon from $PATH + +This allows running the unit tests in environments where `dbus-daemon` +isn't in /usr/bin, but in $PATH. + +Signed-off-by: Florian Klink +--- + unit/test-dbus-message-fds.c | 4 ++-- + unit/test-dbus-properties.c | 4 ++-- + unit/test-dbus.c | 4 ++-- + 3 files changed, 6 insertions(+), 6 deletions(-) + +diff --git a/unit/test-dbus-message-fds.c b/unit/test-dbus-message-fds.c +index 6f68bae..4b5662e 100644 +--- a/unit/test-dbus-message-fds.c ++++ b/unit/test-dbus-message-fds.c +@@ -51,7 +51,7 @@ static bool start_dbus_daemon(void) + char *prg_envp[1]; + pid_t pid; + +- prg_argv[0] = "/usr/bin/dbus-daemon"; ++ prg_argv[0] = "dbus-daemon"; + prg_argv[1] = "--nopidfile"; + prg_argv[2] = "--nofork"; + prg_argv[3] = "--config-file=" UNITDIR "dbus.conf"; +@@ -68,7 +68,7 @@ static bool start_dbus_daemon(void) + } + + if (pid == 0) { +- execve(prg_argv[0], prg_argv, prg_envp); ++ execvpe(prg_argv[0], prg_argv, prg_envp); + exit(EXIT_SUCCESS); + } + +diff --git a/unit/test-dbus-properties.c b/unit/test-dbus-properties.c +index b435062..049f0f4 100644 +--- a/unit/test-dbus-properties.c ++++ b/unit/test-dbus-properties.c +@@ -49,7 +49,7 @@ static bool start_dbus_daemon(void) + char *prg_envp[1]; + pid_t pid; + +- prg_argv[0] = "/usr/bin/dbus-daemon"; ++ prg_argv[0] = "dbus-daemon"; + prg_argv[1] = "--nopidfile"; + prg_argv[2] = "--nofork"; + prg_argv[3] = "--config-file=" UNITDIR "dbus.conf"; +@@ -66,7 +66,7 @@ static bool start_dbus_daemon(void) + } + + if (pid == 0) { +- execve(prg_argv[0], prg_argv, prg_envp); ++ execvpe(prg_argv[0], prg_argv, prg_envp); + exit(EXIT_SUCCESS); + } + +diff --git a/unit/test-dbus.c b/unit/test-dbus.c +index 67f0a7b..582847e 100644 +--- a/unit/test-dbus.c ++++ b/unit/test-dbus.c +@@ -45,7 +45,7 @@ static void start_dbus_daemon(void) + char *prg_envp[1]; + pid_t pid; + +- prg_argv[0] = "/usr/bin/dbus-daemon"; ++ prg_argv[0] = "dbus-daemon"; + prg_argv[1] = "--nopidfile"; + prg_argv[2] = "--nofork"; + prg_argv[3] = "--config-file=" UNITDIR "dbus.conf"; +@@ -62,7 +62,7 @@ static void start_dbus_daemon(void) + } + + if (pid == 0) { +- execve(prg_argv[0], prg_argv, prg_envp); ++ execvpe(prg_argv[0], prg_argv, prg_envp); + exit(EXIT_SUCCESS); + } + +-- +2.29.2 + diff --git a/pkgs/os-specific/linux/ell/default.nix b/pkgs/os-specific/linux/ell/default.nix index 21f98889ca5..c6aed21cd8e 100644 --- a/pkgs/os-specific/linux/ell/default.nix +++ b/pkgs/os-specific/linux/ell/default.nix @@ -12,13 +12,14 @@ stdenv.mkDerivation rec { outputs = [ "out" "dev" ]; src = fetchgit { - url = "https://git.kernel.org/pub/scm/libs/${pname}/${pname}.git"; - rev = version; - sha256 = "16z7xwlrpx1bsr2y1rgxxxixzwc84cwn2g557iqxhwsxfzy6q3dk"; + url = "https://git.kernel.org/pub/scm/libs/${pname}/${pname}.git"; + rev = version; + sha256 = "16z7xwlrpx1bsr2y1rgxxxixzwc84cwn2g557iqxhwsxfzy6q3dk"; }; patches = [ - ./fix-dbus-tests.patch + # Sent upstream in https://lists.01.org/hyperkitty/list/ell@lists.01.org/thread/SQEZAIS2LZXSXGTXOW3GTAM5ZPXRLTN4/ + ./0001-unit-test-dbus-pick-up-dbus-daemon-from-PATH.patch ]; nativeBuildInputs = [ diff --git a/pkgs/os-specific/linux/ell/fix-dbus-tests.patch b/pkgs/os-specific/linux/ell/fix-dbus-tests.patch deleted file mode 100644 index b494ba8b43c..00000000000 --- a/pkgs/os-specific/linux/ell/fix-dbus-tests.patch +++ /dev/null @@ -1,65 +0,0 @@ ---- a/Makefile.am -+++ b/Makefile.am -@@ -140,6 +140,7 @@ - ell_libell_private_la_SOURCES = $(ell_libell_la_SOURCES) - - AM_CFLAGS = -fvisibility=hidden -DUNITDIR=\""$(top_srcdir)/unit/"\" \ -+ -DDBUS_DAEMON=\""$(DBUS_DAEMONDIR)/dbus-daemon"\" \ - -DCERTDIR=\""$(top_builddir)/unit/"\" - - pkgconfigdir = $(libdir)/pkgconfig ---- a/configure.ac -+++ b/configure.ac -@@ -14,6 +14,8 @@ - - AC_PREFIX_DEFAULT(/usr/local) - -+PKG_PROG_PKG_CONFIG -+ - COMPILER_FLAGS - - AC_LANG_C -@@ -131,6 +133,10 @@ - AC_CHECK_PROG(have_xxd, [xxd], [yes], [no]) - fi - -+PKG_CHECK_MODULES(DBUS, dbus-1, dummy=yes, -+ AC_MSG_ERROR(D-Bus is required for running tests)) -+PKG_CHECK_VAR(DBUS_DAEMONDIR, dbus-1, daemondir) -+ - AM_CONDITIONAL(DBUS_TESTS, test "${little_endian}" = "yes") - AM_CONDITIONAL(CERT_TESTS, test "${have_openssl}" = "yes") - ---- a/unit/test-dbus-message-fds.c -+++ b/unit/test-dbus-message-fds.c -@@ -51,7 +51,7 @@ - char *prg_envp[1]; - pid_t pid; - -- prg_argv[0] = "/usr/bin/dbus-daemon"; -+ prg_argv[0] = DBUS_DAEMON; - prg_argv[1] = "--nopidfile"; - prg_argv[2] = "--nofork"; - prg_argv[3] = "--config-file=" UNITDIR "dbus.conf"; ---- a/unit/test-dbus-properties.c -+++ b/unit/test-dbus-properties.c -@@ -48,7 +48,7 @@ - char *prg_envp[1]; - pid_t pid; - -- prg_argv[0] = "/usr/bin/dbus-daemon"; -+ prg_argv[0] = DBUS_DAEMON; - prg_argv[1] = "--nopidfile"; - prg_argv[2] = "--nofork"; - prg_argv[3] = "--config-file=" UNITDIR "dbus.conf"; ---- a/unit/test-dbus.c -+++ b/unit/test-dbus.c -@@ -45,7 +45,7 @@ - char *prg_envp[1]; - pid_t pid; - -- prg_argv[0] = "/usr/bin/dbus-daemon"; -+ prg_argv[0] = DBUS_DAEMON; - prg_argv[1] = "--nopidfile"; - prg_argv[2] = "--nofork"; - prg_argv[3] = "--config-file=" UNITDIR "dbus.conf"; From d24918b70e5aaa41aaa55b393cd1341377acfb00 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Sun, 27 Dec 2020 13:45:46 +0100 Subject: [PATCH 07/34] iwd: fix cross compilation This derivation uses wrapPython to wrap some "test scripts" that are shipped in the "test" output. As these test scripts require gobject-introspection, which doesn't cross-compile at all, let's only patch and ship them when not cross-compiling. --- pkgs/os-specific/linux/iwd/default.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pkgs/os-specific/linux/iwd/default.nix b/pkgs/os-specific/linux/iwd/default.nix index 64ac3342acf..0cbd7ff3a3a 100644 --- a/pkgs/os-specific/linux/iwd/default.nix +++ b/pkgs/os-specific/linux/iwd/default.nix @@ -21,7 +21,8 @@ stdenv.mkDerivation rec { sha256 = "0gzpdgfwzlqj2n3amf2zhi2hlpa412878yphgx79y6b5gn1y1lm2"; }; - outputs = [ "out" "man" "test" ]; + outputs = [ "out" "man" ] + ++ stdenv.lib.optional (stdenv.hostPlatform == stdenv.buildPlatform) "test"; nativeBuildInputs = [ autoreconfHook @@ -38,7 +39,9 @@ stdenv.mkDerivation rec { checkInputs = [ openssl ]; - pythonPath = [ + # wrapPython wraps the scripts in $test. They pull in gobject-introspection, + # which doesn't cross-compile. + pythonPath = stdenv.lib.optionals (stdenv.hostPlatform == stdenv.buildPlatform) [ python3Packages.dbus-python python3Packages.pygobject3 ]; @@ -61,11 +64,12 @@ stdenv.mkDerivation rec { doCheck = true; postInstall = '' - mkdir -p $test/bin - cp -a test/* $test/bin/ mkdir -p $out/share cp -a doc $out/share/ cp -a README AUTHORS TODO $out/share/doc/ + '' + stdenv.lib.optionalString (stdenv.hostPlatform == stdenv.buildPlatform) '' + mkdir -p $test/bin + cp -a test/* $test/bin/ ''; preFixup = '' From fe6879bb7849a2bad76e27fd6aec2aa10cd5d27b Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 27 Dec 2020 14:00:18 +0100 Subject: [PATCH 08/34] proxify: init at 0.0.3 --- pkgs/tools/networking/proxify/default.nix | 31 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/tools/networking/proxify/default.nix diff --git a/pkgs/tools/networking/proxify/default.nix b/pkgs/tools/networking/proxify/default.nix new file mode 100644 index 00000000000..4a75b3ca2f1 --- /dev/null +++ b/pkgs/tools/networking/proxify/default.nix @@ -0,0 +1,31 @@ +{ buildGoModule +, fetchFromGitHub +, stdenv +}: + +buildGoModule rec { + pname = "proxify"; + version = "0.0.3"; + + src = fetchFromGitHub { + owner = "projectdiscovery"; + repo = "proxify"; + rev = "v${version}"; + sha256 = "15j2q9zrs8bdf72jgldkai3xbi4irk69wyjzv48r74rdgf2k49gn"; + }; + + vendorSha256 = "1x78n88ri8kph827k03x1q06zpbbbp7793xsvc376ljda5n6bqig"; + + meta = with stdenv.lib; { + description = "Proxy tool for HTTP/HTTPS traffic capture"; + longDescription = '' + This tool supports multiple operations such as request/response dump, filtering + and manipulation via DSL language, upstream HTTP/Socks5 proxy. Additionally a + replay utility allows to import the dumped traffic (request/responses with correct + domain name) into other tools by simply setting the upstream proxy to proxify. + ''; + homepage = "https://github.com/projectdiscovery/proxify"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 81139998f00..38433422feb 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6739,6 +6739,8 @@ in proxychains = callPackage ../tools/networking/proxychains { }; + proxify = callPackage ../tools/networking/proxify { }; + proxytunnel = callPackage ../tools/misc/proxytunnel { openssl = openssl_1_0_2; }; From 067ce14cd4820a7f813e609c65d5bb2b6c6a07df Mon Sep 17 00:00:00 2001 From: freezeboy Date: Sun, 27 Dec 2020 14:42:42 +0100 Subject: [PATCH 09/34] barman: 2.11 -> 2.12 --- pkgs/tools/misc/barman/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/misc/barman/default.nix b/pkgs/tools/misc/barman/default.nix index 2105ad0ae01..da79110f9a8 100644 --- a/pkgs/tools/misc/barman/default.nix +++ b/pkgs/tools/misc/barman/default.nix @@ -4,12 +4,12 @@ buildPythonApplication rec { pname = "barman"; - version = "2.11"; + version = "2.12"; outputs = [ "out" "man" ]; src = fetchurl { url = "mirror://sourceforge/pgbarman/${version}/barman-${version}.tar.gz"; - sha256 = "0w5lh4aavab9ynfy2mq09ga6j4vss4k0vlc3g6f5a9i4175g9pmr"; + sha256 = "Ts8I6tlP2GRp90OIIKXy+cRWWvUO3Sm86zq2dtVP5YE="; }; propagatedBuildInputs = [ dateutil argh psycopg2 boto3 argcomplete ]; From b31fada847774723c9edd3775bdb79e11b5a55f8 Mon Sep 17 00:00:00 2001 From: devhell Date: Sat, 26 Dec 2020 16:28:02 +0000 Subject: [PATCH 10/34] canto-daemon: 0.9.7 -> 0.9.8 --- .../feedreaders/canto-daemon/default.nix | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/pkgs/applications/networking/feedreaders/canto-daemon/default.nix b/pkgs/applications/networking/feedreaders/canto-daemon/default.nix index b8279f22de4..2992f28c58a 100644 --- a/pkgs/applications/networking/feedreaders/canto-daemon/default.nix +++ b/pkgs/applications/networking/feedreaders/canto-daemon/default.nix @@ -1,19 +1,23 @@ { stdenv, fetchFromGitHub, python3Packages, }: python3Packages.buildPythonApplication rec { - version = "0.9.7"; + version = "0.9.8"; pname = "canto-daemon"; src = fetchFromGitHub { owner = "themoken"; repo = "canto-next"; rev = "v${version}"; - sha256 = "1si53r8cd4avfc56r315zyrghkppnjd6n125z1agfv59i7hdmk3n"; + sha256 = "0fmsdn28z09bvivdkqcla5bnalky7k744iir25z70bv4pz1jcvnk"; }; propagatedBuildInputs = with python3Packages; [ feedparser ]; - meta = { + doCheck = false; + + pythonImportsCheck = [ "canto_next" ]; + + meta = with stdenv.lib; { description = "Daemon for the canto Atom/RSS feed reader"; longDescription = '' Canto is an Atom/RSS feed reader for the console that is meant to be @@ -24,8 +28,8 @@ python3Packages.buildPythonApplication rec { and extensibility using the excellent Python programming language. ''; homepage = "https://codezen.org/canto-ng/"; - license = stdenv.lib.licenses.gpl2; - platforms = stdenv.lib.platforms.linux; - maintainers = [ stdenv.lib.maintainers.devhell ]; + license = licenses.gpl2; + platforms = platforms.linux; + maintainers = with maintainers;[ devhell ]; }; } From 0ff8bafae69f2285466a36108c569e6abe6d3927 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 27 Dec 2020 13:15:40 +0100 Subject: [PATCH 11/34] lazygit: 0.23.7 -> 0.24.2 --- pkgs/development/tools/lazygit/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/lazygit/default.nix b/pkgs/development/tools/lazygit/default.nix index b04a42d57b6..e0fda6a4c06 100644 --- a/pkgs/development/tools/lazygit/default.nix +++ b/pkgs/development/tools/lazygit/default.nix @@ -2,13 +2,13 @@ buildGoModule rec { pname = "lazygit"; - version = "0.23.7"; + version = "0.24.2"; src = fetchFromGitHub { owner = "jesseduffield"; repo = pname; rev = "v${version}"; - sha256 = "05s0rj785dm9dqr30ak5hi26qy0z2w71zljyln5is4frckxkcvng"; + sha256 = "0hy13l1v2kcsn99dswlq1hl0ly18cal387zhnzjfqv51qng2q5kq"; }; vendorSha256 = null; From 548511929f840ba09f2f8714920c14a45ddcfa4f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 27 Dec 2020 13:19:08 +0100 Subject: [PATCH 12/34] lazygit: add changelog to meta-attributes --- pkgs/development/tools/lazygit/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/tools/lazygit/default.nix b/pkgs/development/tools/lazygit/default.nix index e0fda6a4c06..1ede21609b4 100644 --- a/pkgs/development/tools/lazygit/default.nix +++ b/pkgs/development/tools/lazygit/default.nix @@ -19,6 +19,7 @@ buildGoModule rec { meta = with stdenv.lib; { description = "Simple terminal UI for git commands"; homepage = "https://github.com/jesseduffield/lazygit"; + changelog = "https://github.com/jesseduffield/lazygit/releases/tag/v${version}"; license = licenses.mit; maintainers = with maintainers; [ fpletz equirosa Br1ght0ne ]; }; From 57ba6e762650243653631fcea43eaac816fbec7a Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 27 Dec 2020 15:54:00 +0100 Subject: [PATCH 13/34] gospider: init at 1.1.4 --- pkgs/tools/security/gospider/default.nix | 33 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/tools/security/gospider/default.nix diff --git a/pkgs/tools/security/gospider/default.nix b/pkgs/tools/security/gospider/default.nix new file mode 100644 index 00000000000..7211c65d536 --- /dev/null +++ b/pkgs/tools/security/gospider/default.nix @@ -0,0 +1,33 @@ +{ buildGoModule +, fetchFromGitHub +, stdenv +}: + +buildGoModule rec { + pname = "gospider"; + version = "1.1.4"; + + src = fetchFromGitHub { + owner = "jaeles-project"; + repo = pname; + rev = "${version}"; + sha256 = "03gl8y2047iwa6bhmayyds3li21wy3sw1x4hpp9zgqgi95039q86"; + }; + + vendorSha256 = "0dc4ddi26i38c5rvy9zbal27a7qvn17h64w1yhbig4iyb79b18ym"; + + # tests require internet access and API keys + doCheck = false; + + meta = with stdenv.lib; { + description = "Fast web spider written in Go"; + longDescription = '' + GoSpider is a fast web crawler that parses sitemap.xml and robots.txt file. + It can generate and verify link from JavaScript files, extract URLs from + various sources and can detect subdomains from the response source. + ''; + homepage = "https://github.com/jaeles-project/gospider"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 81139998f00..b19141f73a6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1305,6 +1305,8 @@ in gopass = callPackage ../tools/security/gopass { }; + gospider = callPackage ../tools/security/gospider { }; + browserpass = callPackage ../tools/security/browserpass { }; passff-host = callPackage ../tools/security/passff-host { }; From d29ab49bb941659b86113749fa61c18269dbc966 Mon Sep 17 00:00:00 2001 From: Arnout Engelen Date: Sun, 27 Dec 2020 12:16:27 +0100 Subject: [PATCH 14/34] lua: add 5.4.2 --- .../interpreters/lua-5/default.nix | 13 ++++ .../interpreters/lua-5/liblua.so.patch | 60 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 +- 3 files changed, 74 insertions(+), 1 deletion(-) create mode 100644 pkgs/development/interpreters/lua-5/liblua.so.patch diff --git a/pkgs/development/interpreters/lua-5/default.nix b/pkgs/development/interpreters/lua-5/default.nix index 7e79ff8f117..5c094893982 100644 --- a/pkgs/development/interpreters/lua-5/default.nix +++ b/pkgs/development/interpreters/lua-5/default.nix @@ -14,6 +14,19 @@ let }; in rec { + lua5_4 = callPackage ./interpreter.nix { + sourceVersion = { major = "5"; minor = "4"; patch = "2"; }; + hash = "0ksj5zpj74n0jkamy3di1p6l10v4gjnd2zjnb453qc6px6bhsmqi"; + patches = [ + # build lua as a shared library as well, MIT-licensed from + # https://github.com/archlinux/svntogit-packages/tree/packages/lua/trunk + ./liblua.so.patch + ]; + }; + + lua5_4_compat = lua5_4.override({ + compat = true; + }); lua5_3 = callPackage ./interpreter.nix { sourceVersion = { major = "5"; minor = "3"; patch = "5"; }; diff --git a/pkgs/development/interpreters/lua-5/liblua.so.patch b/pkgs/development/interpreters/lua-5/liblua.so.patch new file mode 100644 index 00000000000..197832116c1 --- /dev/null +++ b/pkgs/development/interpreters/lua-5/liblua.so.patch @@ -0,0 +1,60 @@ +diff --git a/Makefile b/Makefile +index 416f444..eeaff03 100644 +--- a/Makefile ++++ b/Makefile +@@ -52,7 +52,7 @@ R= $V.0 + all: $(PLAT) + + $(PLATS) help test clean: +- @cd src && $(MAKE) $@ ++ @cd src && $(MAKE) $@ V=$(V) R=$(R) + + install: dummy + cd src && $(MKDIR) $(INSTALL_BIN) $(INSTALL_INC) $(INSTALL_LIB) $(INSTALL_MAN) $(INSTALL_LMOD) $(INSTALL_CMOD) +diff --git a/src/Makefile b/src/Makefile +index 514593d..372a6dc 100644 +--- a/src/Makefile ++++ b/src/Makefile +@@ -33,6 +33,7 @@ CMCFLAGS= -Os + PLATS= guess aix bsd c89 freebsd generic linux linux-readline macosx mingw posix solaris + + LUA_A= liblua.a ++LUA_SO= liblua.so + CORE_O= lapi.o lcode.o lctype.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o lundump.o lvm.o lzio.o + LIB_O= lauxlib.o lbaselib.o lcorolib.o ldblib.o liolib.o lmathlib.o loadlib.o loslib.o lstrlib.o ltablib.o lutf8lib.o linit.o + BASE_O= $(CORE_O) $(LIB_O) $(MYOBJS) +@@ -44,7 +45,7 @@ LUAC_T= luac + LUAC_O= luac.o + + ALL_O= $(BASE_O) $(LUA_O) $(LUAC_O) +-ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) ++ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) $(LUA_SO) + ALL_A= $(LUA_A) + + # Targets start here. +@@ -60,6 +61,12 @@ $(LUA_A): $(BASE_O) + $(AR) $@ $(BASE_O) + $(RANLIB) $@ + ++$(LUA_SO): $(CORE_O) $(LIB_O) ++ $(CC) -shared -ldl -Wl,-soname,$(LUA_SO).$(V) -o $@.$(R) $? -lm $(MYLDFLAGS) ++ ln -sf $(LUA_SO).$(R) $(LUA_SO).$(V) ++ ln -sf $(LUA_SO).$(R) $(LUA_SO) ++ ++ + $(LUA_T): $(LUA_O) $(LUA_A) + $(CC) -o $@ $(LDFLAGS) $(LUA_O) $(LUA_A) $(LIBS) + +diff --git a/src/luaconf.h b/src/luaconf.h +index bdf927e..7e15198 100644 +--- a/src/luaconf.h ++++ b/src/luaconf.h +@@ -227,7 +227,7 @@ + + #else /* }{ */ + +-#define LUA_ROOT "/usr/local/" ++#define LUA_ROOT "/usr/" + #define LUA_LDIR LUA_ROOT "share/lua/" LUA_VDIR "/" + #define LUA_CDIR LUA_ROOT "lib/lua/" LUA_VDIR "/" + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 33d8bd029bc..4a5eaa8dd8c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10544,7 +10544,7 @@ in ### LUA interpreters luaInterpreters = callPackage ./../development/interpreters/lua-5 {}; - inherit (luaInterpreters) lua5_1 lua5_2 lua5_2_compat lua5_3 lua5_3_compat luajit_2_1 luajit_2_0; + inherit (luaInterpreters) lua5_1 lua5_2 lua5_2_compat lua5_3 lua5_3_compat lua5_4 lua5_4_compat luajit_2_1 luajit_2_0; lua5 = lua5_2_compat; lua = lua5; From 494b84211a65080d42cc15284c552413fbbf5ba7 Mon Sep 17 00:00:00 2001 From: freezeboy Date: Sun, 27 Dec 2020 16:10:07 +0100 Subject: [PATCH 15/34] python3Packages.pydantic: 1.5.1 -> 1.7.3 --- .../python-modules/pydantic/default.nix | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/pydantic/default.nix b/pkgs/development/python-modules/pydantic/default.nix index 371bfba2f0f..9bf4bede1fa 100644 --- a/pkgs/development/python-modules/pydantic/default.nix +++ b/pkgs/development/python-modules/pydantic/default.nix @@ -1,7 +1,6 @@ { lib , buildPythonPackage , fetchFromGitHub -, fetchpatch , ujson , email_validator , typing-extensions @@ -9,28 +8,21 @@ , isPy3k , pytest , pytestcov +, pytest-mock }: buildPythonPackage rec { pname = "pydantic"; - version = "1.5.1"; + version = "1.7.3"; disabled = !isPy3k; src = fetchFromGitHub { owner = "samuelcolvin"; repo = pname; rev = "v${version}"; - sha256 = "0fwrx7p6d5vskg9ibganahiz9y9299idvdmzhjw62jy84gn1vrb4"; + sha256 = "xihEDmly0vprmA+VdeCoGXg9PjWRPmBWAwk/9f2DLts="; }; - # fix tests, remove on next version bump - patches = [ - (fetchpatch { - url = "https://github.com/samuelcolvin/pydantic/commit/a5b0e741e585040a0ab8b0be94dd9dc2dd3afcc7.patch"; - sha256 = "0v91ac3dw23rm73370s2ns84vi0xqbfzpvj84zb7xdiicx8fhmf1"; - }) - ]; - propagatedBuildInputs = [ ujson email_validator @@ -40,6 +32,7 @@ buildPythonPackage rec { checkInputs = [ pytest pytestcov + pytest-mock ]; checkPhase = '' From bf629416f0d437b7b0b9ece2d5219301fc3ebb28 Mon Sep 17 00:00:00 2001 From: freezeboy Date: Sun, 27 Dec 2020 14:50:45 +0100 Subject: [PATCH 16/34] banner: 1.3.4 -> 1.3.5 --- pkgs/games/banner/default.nix | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/pkgs/games/banner/default.nix b/pkgs/games/banner/default.nix index 6da8e1bf9bf..e0f9ca41c6d 100644 --- a/pkgs/games/banner/default.nix +++ b/pkgs/games/banner/default.nix @@ -1,17 +1,20 @@ -{ stdenv, fetchurl }: +{ stdenv, fetchFromGitHub }: stdenv.mkDerivation rec { - name = "banner-1.3.4"; + pname = "banner"; + version = "1.3.5"; - src = fetchurl { - url = "http://software.cedar-solutions.com/ftp/software/${name}.tar.gz"; - sha256 = "04q5ribr0r9s8waky3nk356l0qdhfxw15ipz7lsfgv1fxq3qk6bz"; + src = fetchFromGitHub { + owner = "pronovic"; + repo = "banner"; + rev = "BANNER_V${version}"; + sha256 = "ISSnGzrFSzSj/+KxgeFtaw4H+4Ea5x5S5C8xjcjKWqQ="; }; meta = with stdenv.lib; { homepage = "http://software.cedar-solutions.com/utilities.html"; description = "Print large banners to ASCII terminals"; - license = licenses.gpl2; + license = licenses.gpl2Only; longDescription = '' An implementation of the traditional Unix-program used to display From 44dae8d0c8d096ee0cde77115700a41f6e3a40bf Mon Sep 17 00:00:00 2001 From: Matthew Bauer Date: Thu, 10 Sep 2020 23:19:44 -0500 Subject: [PATCH 17/34] linux_rpi: 4.19.118 -> 5.4.51 Update to the new default branch for the Raspberry Pi vendor kernel. --- pkgs/os-specific/linux/kernel/linux-rpi.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pkgs/os-specific/linux/kernel/linux-rpi.nix b/pkgs/os-specific/linux/kernel/linux-rpi.nix index a3d2bfd4836..f96ab279779 100644 --- a/pkgs/os-specific/linux/kernel/linux-rpi.nix +++ b/pkgs/os-specific/linux/kernel/linux-rpi.nix @@ -1,8 +1,8 @@ { stdenv, lib, buildPackages, fetchFromGitHub, perl, buildLinux, rpiVersion, ... } @ args: let - modDirVersion = "4.19.118"; - tag = "1.20200601"; + modDirVersion = "5.4.51"; + tag = "1.20200819"; in lib.overrideDerivation (buildLinux (args // { version = "${modDirVersion}-${tag}"; @@ -12,7 +12,7 @@ lib.overrideDerivation (buildLinux (args // { owner = "raspberrypi"; repo = "linux"; rev = "raspberrypi-kernel_${tag}-1"; - sha256 = "11jzsmnd1qry2ir9vmsv0nfdzjpgkn5yab5ylxcz406plc073anp"; + sha256 = "0n23q5mm2jyi42m0a45mx0add12pcc5jmfkd858s3v2d5g3bb1f0"; }; defconfig = { @@ -22,6 +22,11 @@ lib.overrideDerivation (buildLinux (args // { "4" = "bcm2711_defconfig"; }.${toString rpiVersion}; + extraConfig = '' + # ../drivers/pci/controller/pcie-altera.c:679:8: error: too few arguments to function 'devm_of_pci_get_host_bridge_resources' + PCIE_ALTERA n + ''; + features = { efiBootStub = false; } // (args.features or {}); From b414387e015550d33424fa410a6bfac5e810453d Mon Sep 17 00:00:00 2001 From: freezeboy Date: Sun, 27 Dec 2020 16:34:29 +0100 Subject: [PATCH 18/34] beep: 1.3 -> 1.4.9 --- pkgs/misc/beep/default.nix | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/pkgs/misc/beep/default.nix b/pkgs/misc/beep/default.nix index 40a8849ba3f..bb62271a310 100644 --- a/pkgs/misc/beep/default.nix +++ b/pkgs/misc/beep/default.nix @@ -1,25 +1,25 @@ -{ stdenv, fetchurl }: +{ stdenv, fetchFromGitHub }: # this package is working only as root # in order to work as a non privileged user you would need to suid the bin -stdenv.mkDerivation { - name = "beep-1.3"; - src = fetchurl { - url = "http://www.johnath.com/beep/beep-1.3.tar.gz"; - sha256 = "0bgch6jq5cahakk3kbr9549iysf2dik09afixxy5brbxk1xfzb2r"; +stdenv.mkDerivation rec { + pname = "beep"; + version = "1.4.9"; + + src = fetchFromGitHub { + owner = "spkr-beep"; + repo = "beep"; + rev = "v${version}"; + sha256 = "JLaoiINHpIFWSqsRl8wJ/NeBu7SCcPuT/BzY8szEu0o="; }; - makeFlags = [ "INSTALL_DIR=\${out}/bin/" "MAN_DIR=\${out}/man/man1/" ]; + makeFlags = [ "DESTDIR=\${out}" "prefix="]; - preInstall = '' - mkdir -p $out/bin - mkdir -p $out/man/man1 - ''; - meta = { + meta = with stdenv.lib; { description = "The advanced PC speaker beeper"; - homepage = "http://www.johnath.com/beep/"; - license = stdenv.lib.licenses.gpl2; - platforms = stdenv.lib.platforms.linux; + homepage = "https://github.com/spkr-beep/beep"; + license = licenses.gpl2Only; + platforms = platforms.linux; }; } From 6f7478718045d06b616a687673c98280508dcec0 Mon Sep 17 00:00:00 2001 From: Drew Risinger Date: Thu, 10 Dec 2020 08:36:14 -0500 Subject: [PATCH 19/34] linux_rpi: 5.4.51 -> 5.4.79 --- pkgs/os-specific/linux/kernel/linux-rpi.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/os-specific/linux/kernel/linux-rpi.nix b/pkgs/os-specific/linux/kernel/linux-rpi.nix index f96ab279779..176c2180f35 100644 --- a/pkgs/os-specific/linux/kernel/linux-rpi.nix +++ b/pkgs/os-specific/linux/kernel/linux-rpi.nix @@ -1,8 +1,9 @@ { stdenv, lib, buildPackages, fetchFromGitHub, perl, buildLinux, rpiVersion, ... } @ args: let - modDirVersion = "5.4.51"; - tag = "1.20200819"; + # NOTE: raspberrypifw & raspberryPiWirelessFirmware should be updated with this + modDirVersion = "5.4.79"; + tag = "1.20201201"; in lib.overrideDerivation (buildLinux (args // { version = "${modDirVersion}-${tag}"; @@ -12,7 +13,7 @@ lib.overrideDerivation (buildLinux (args // { owner = "raspberrypi"; repo = "linux"; rev = "raspberrypi-kernel_${tag}-1"; - sha256 = "0n23q5mm2jyi42m0a45mx0add12pcc5jmfkd858s3v2d5g3bb1f0"; + sha256 = "093p5kh5f27djkhbcw371w079lhhihvg3s4by3wzsd40di4fcgn9"; }; defconfig = { From a128c9c7eca15b4e5d455f4291c3ca91586682a4 Mon Sep 17 00:00:00 2001 From: Drew Risinger Date: Mon, 7 Dec 2020 23:38:01 -0500 Subject: [PATCH 20/34] raspberrypiWirelessFirmware: 2019-08-16 -> 2020-12-01 --- .../firmware/raspberrypi-wireless/default.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pkgs/os-specific/linux/firmware/raspberrypi-wireless/default.nix b/pkgs/os-specific/linux/firmware/raspberrypi-wireless/default.nix index 23338684764..1a432eb768c 100644 --- a/pkgs/os-specific/linux/firmware/raspberrypi-wireless/default.nix +++ b/pkgs/os-specific/linux/firmware/raspberrypi-wireless/default.nix @@ -2,22 +2,22 @@ stdenv.mkDerivation { pname = "raspberrypi-wireless-firmware"; - version = "2019-08-16"; + version = "2020-12-01"; srcs = [ (fetchFromGitHub { name = "bluez-firmware"; owner = "RPi-Distro"; repo = "bluez-firmware"; - rev = "96eefffcccc725425fd83be5e0704a5c32b79e54"; - sha256 = "05h57gcxhb2c84h99cyxxx4mzi6kd5fm8pjqkz3nq5vs3nv8cqhr"; + rev = "1e4ee0c05bae10002124b56c0e44bb9ac6581ddc"; + sha256 = "10n6ibr3ra71f4hlvbpy8csjlgrapawxrr6jmijn470vkcqcpq27"; }) (fetchFromGitHub { name = "firmware-nonfree"; owner = "RPi-Distro"; repo = "firmware-nonfree"; - rev = "130cb86fa30cafbd575d38865fa546350d4c5f9c"; - sha256 = "0jmhgbpldzz8n8lncpzwfl5ym8zgss05y952rfpwcf9v5c7vgabx"; + rev = "b66ab26cebff689d0d3257f56912b9bb03c20567"; + sha256 = "0cffgsp0w7vv7ylpymdddx0bl9dx3pl7snlh30p4rr9srmn8869f"; }) ]; @@ -41,10 +41,10 @@ stdenv.mkDerivation { outputHashMode = "recursive"; outputHashAlgo = "sha256"; - outputHash = "1r4alf1fbj6vkkf54d0anm47ymb6gn2ykl4a2hhd34b0hnf1dnhn"; + outputHash = "17k9y499kjc4zv7ivnsfrgfibwj0ldr3sqdgia4dackbr70jfg2h"; meta = with stdenv.lib; { - description = "Firmware for builtin Wifi/Bluetooth devices in the Raspberry Pi 3 and Zero W"; + description = "Firmware for builtin Wifi/Bluetooth devices in the Raspberry Pi 3+ and Zero W"; homepage = "https://github.com/RPi-Distro/firmware-nonfree"; license = licenses.unfreeRedistributableFirmware; platforms = platforms.linux; From 860cb184ec73a1d66c7aef64fb83356a1f0b9df3 Mon Sep 17 00:00:00 2001 From: Drew Risinger Date: Sun, 13 Dec 2020 22:57:15 -0500 Subject: [PATCH 21/34] raspberrypifw: 20201022 -> 20201201 --- pkgs/os-specific/linux/firmware/raspberrypi/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/firmware/raspberrypi/default.nix b/pkgs/os-specific/linux/firmware/raspberrypi/default.nix index 70bcaa15d96..c33e779c71b 100644 --- a/pkgs/os-specific/linux/firmware/raspberrypi/default.nix +++ b/pkgs/os-specific/linux/firmware/raspberrypi/default.nix @@ -1,14 +1,15 @@ { stdenv, fetchFromGitHub }: stdenv.mkDerivation rec { + # NOTE: this should be updated with linux_rpi pname = "raspberrypi-firmware"; - version = "1.20201022"; + version = "1.20201201"; src = fetchFromGitHub { owner = "raspberrypi"; repo = "firmware"; rev = version; - sha256 = "0j5m50cmmr11m3h8kk89j1pqkdqr7mzdzg04ayiqvfhvy32qqlg8"; + sha256 = "09yha3k72yqx29rwnv2j2zm73lzc4jgmcbmcc6yrl1i07x84lx3n"; }; installPhase = '' From 924d4615876f098a0f3c94b45c24a3aeb856748f Mon Sep 17 00:00:00 2001 From: Drew Risinger Date: Sat, 26 Dec 2020 10:51:10 -0500 Subject: [PATCH 22/34] raspberrypifw: use stdenvNoCC This only copies unfree redistributables, don't need a compiler for that. --- pkgs/os-specific/linux/firmware/raspberrypi/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/os-specific/linux/firmware/raspberrypi/default.nix b/pkgs/os-specific/linux/firmware/raspberrypi/default.nix index c33e779c71b..b5fa3909c3b 100644 --- a/pkgs/os-specific/linux/firmware/raspberrypi/default.nix +++ b/pkgs/os-specific/linux/firmware/raspberrypi/default.nix @@ -1,6 +1,6 @@ -{ stdenv, fetchFromGitHub }: +{ stdenvNoCC, fetchFromGitHub }: -stdenv.mkDerivation rec { +stdenvNoCC.mkDerivation rec { # NOTE: this should be updated with linux_rpi pname = "raspberrypi-firmware"; version = "1.20201201"; @@ -17,9 +17,11 @@ stdenv.mkDerivation rec { cp -R boot/* $out/share/raspberrypi/boot ''; + dontConfigure = true; + dontBuild = true; dontFixup = true; - meta = with stdenv.lib; { + meta = with stdenvNoCC.lib; { description = "Firmware for the Raspberry Pi board"; homepage = "https://github.com/raspberrypi/firmware"; license = licenses.unfreeRedistributableFirmware; # See https://github.com/raspberrypi/firmware/blob/master/boot/LICENCE.broadcom From 979a1e109fd4c978bc8b30c1bc7bb12a85df0a0f Mon Sep 17 00:00:00 2001 From: Drew Risinger Date: Thu, 24 Dec 2020 14:53:04 -0500 Subject: [PATCH 23/34] raspberrypi-tools: remove in favor of libraspberrypi These packages were duplicated, and often weren't being updated in sync. The only difference between them was the lack of pkg-config in libraspberrypi, which is easily fixable. --- .../linux/firmware/raspberrypi/tools.nix | 37 ------------------- pkgs/top-level/aliases.nix | 1 + pkgs/top-level/all-packages.nix | 2 - 3 files changed, 1 insertion(+), 39 deletions(-) delete mode 100644 pkgs/os-specific/linux/firmware/raspberrypi/tools.nix diff --git a/pkgs/os-specific/linux/firmware/raspberrypi/tools.nix b/pkgs/os-specific/linux/firmware/raspberrypi/tools.nix deleted file mode 100644 index 79d6edcf94e..00000000000 --- a/pkgs/os-specific/linux/firmware/raspberrypi/tools.nix +++ /dev/null @@ -1,37 +0,0 @@ -{ stdenv, fetchFromGitHub, fetchpatch, cmake, pkgconfig }: - -stdenv.mkDerivation { - pname = "raspberrypi-tools"; - version = "2020-05-28"; - - src = fetchFromGitHub { - owner = "raspberrypi"; - repo = "userland"; - rev = "f97b1af1b3e653f9da2c1a3643479bfd469e3b74"; - sha256 = "1r7n05rv96hqjq0rn0qzchmfqs0j7vh3p8jalgh66s6l0vms5mwy"; - }; - - nativeBuildInputs = [ cmake pkgconfig ]; - - patches = [ - (fetchpatch { - # https://github.com/raspberrypi/userland/pull/670 - url = "https://github.com/raspberrypi/userland/pull/670/commits/37cb44f314ab1209fe2a0a2449ef78893b1e5f62.patch"; - sha256 = "1fbrbkpc4cc010ji8z4ll63g17n6jl67kdy62m74bhlxn72gg9rw"; - }) - ]; - - preConfigure = '' - cmakeFlagsArray+=("-DVMCS_INSTALL_PREFIX=$out") - '' + stdenv.lib.optionalString stdenv.isAarch64 '' - cmakeFlagsArray+=("-DARM64=1") - ''; - - meta = with stdenv.lib; { - description = "Userland tools for the Raspberry Pi board"; - homepage = "https://github.com/raspberrypi/userland"; - license = licenses.bsd3; - platforms = [ "x86_64-linux" "armv6l-linux" "armv7l-linux" "aarch64-linux" ]; - maintainers = with maintainers; [ dezgeg tavyc ]; - }; -} diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index ff17f73f924..797f8e9984d 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -500,6 +500,7 @@ mapAliases ({ qtcurve = libsForQt5.qtcurve; # added 2020-11-07 qtpfsgui = throw "qtpfsgui is now luminanceHDR"; # added 2019-06-26 quaternion-git = throw "quaternion-git has been removed in favor of the stable version 'quaternion'"; # added 2020-04-09 + raspberrypi-tools = throw "raspberrypi-tools has been removed in favor of identical 'libraspberrypi'"; # added 2020-12-24 rdf4store = throw "rdf4store has been removed from nixpkgs."; # added 2019-12-21 rdiff_backup = rdiff-backup; # added 2014-11-23 rdmd = dtools; # added 2017-08-19 diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d0817904c93..30b2d601c55 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -19164,8 +19164,6 @@ in raspberrypi-eeprom = callPackage ../os-specific/linux/raspberrypi-eeprom {}; - raspberrypi-tools = callPackage ../os-specific/linux/firmware/raspberrypi/tools.nix {}; - regionset = callPackage ../os-specific/linux/regionset { }; rfkill_udev = callPackage ../os-specific/linux/rfkill/udev.nix { }; From 65172da27ef14621c3f95273b2e8d767c30cc27c Mon Sep 17 00:00:00 2001 From: Drew Risinger Date: Thu, 10 Dec 2020 08:56:28 -0500 Subject: [PATCH 24/34] libraspberrypi: 2020-05-28 -> 2020-11-30 --- .../libraries/libraspberrypi/default.nix | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/pkgs/development/libraries/libraspberrypi/default.nix b/pkgs/development/libraries/libraspberrypi/default.nix index bbe0b614550..930869ca19c 100644 --- a/pkgs/development/libraries/libraspberrypi/default.nix +++ b/pkgs/development/libraries/libraspberrypi/default.nix @@ -1,20 +1,22 @@ { stdenv, cmake, fetchFromGitHub }: stdenv.mkDerivation rec { - name = "libraspberrypi"; - version = "2020-05-28"; + pname = "libraspberrypi"; + version = "unstable-2020-11-30"; + src = fetchFromGitHub { owner = "raspberrypi"; repo = "userland"; - rev = "f97b1af1b3e653f9da2c1a3643479bfd469e3b74"; - sha256 = "1r7n05rv96hqjq0rn0qzchmfqs0j7vh3p8jalgh66s6l0vms5mwy"; + rev = "093b30bbc2fd083d68cc3ee07e6e555c6e592d11"; + sha256 = "0n2psqyxlsic9cc5s8h65g0blblw3xws4czhpbbgjm58px3822d7"; }; - cmakeFlags = if (stdenv.targetPlatform.system == "aarch64-linux") - then "-DARM64=ON" - else "-DARM64=OFF"; - preConfigure = ''cmakeFlags="$cmakeFlags -DVMCS_INSTALL_PREFIX=$out"''; nativeBuildInputs = [ cmake ]; + cmakeFlags = [ + (if (stdenv.targetPlatform.system == "aarch64-linux") then "-DARM64=ON" else "-DARM64=OFF") + "-DVMCS_INSTALL_PREFIX=$out" + ]; + meta = with stdenv.lib; { description = "Userland libraries for interfacing with Raspberry Pi hardware"; homepage = "https://github.com/raspberrypi/userland"; From 3f64a4e432f43c25a346fe5a8b80641f1fff0141 Mon Sep 17 00:00:00 2001 From: Drew Risinger Date: Thu, 24 Dec 2020 14:58:47 -0500 Subject: [PATCH 25/34] libraspberrypi: merge with raspberrypi-tools --- .../libraries/libraspberrypi/default.nix | 23 +++++++++++++++---- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/pkgs/development/libraries/libraspberrypi/default.nix b/pkgs/development/libraries/libraspberrypi/default.nix index 930869ca19c..bca46f012f8 100644 --- a/pkgs/development/libraries/libraspberrypi/default.nix +++ b/pkgs/development/libraries/libraspberrypi/default.nix @@ -1,4 +1,9 @@ -{ stdenv, cmake, fetchFromGitHub }: +{ stdenv +, fetchFromGitHub +, fetchpatch +, cmake +, pkg-config +}: stdenv.mkDerivation rec { pname = "libraspberrypi"; @@ -11,17 +16,25 @@ stdenv.mkDerivation rec { sha256 = "0n2psqyxlsic9cc5s8h65g0blblw3xws4czhpbbgjm58px3822d7"; }; - nativeBuildInputs = [ cmake ]; + patches = [ + (fetchpatch { + # https://github.com/raspberrypi/userland/pull/670 + url = "https://github.com/raspberrypi/userland/pull/670/commits/37cb44f314ab1209fe2a0a2449ef78893b1e5f62.patch"; + sha256 = "1fbrbkpc4cc010ji8z4ll63g17n6jl67kdy62m74bhlxn72gg9rw"; + }) + ]; + + nativeBuildInputs = [ cmake pkg-config ]; cmakeFlags = [ (if (stdenv.targetPlatform.system == "aarch64-linux") then "-DARM64=ON" else "-DARM64=OFF") "-DVMCS_INSTALL_PREFIX=$out" ]; meta = with stdenv.lib; { - description = "Userland libraries for interfacing with Raspberry Pi hardware"; + description = "Userland tools & libraries for interfacing with Raspberry Pi hardware"; homepage = "https://github.com/raspberrypi/userland"; license = licenses.bsd3; - platforms = [ "armv6l-linux" "armv7l-linux" "aarch64-linux" ]; - maintainers = with maintainers; [ tkerber ]; + platforms = [ "armv6l-linux" "armv7l-linux" "aarch64-linux" "x86_64-linux" ]; + maintainers = with maintainers; [ dezgeg tavyc tkerber ]; }; } From e89369fae6fd9a08058026f264357ad2f0c8c827 Mon Sep 17 00:00:00 2001 From: Drew Risinger Date: Thu, 24 Dec 2020 14:59:14 -0500 Subject: [PATCH 26/34] libraspberrypi: fix cross-compile conventions --- pkgs/development/libraries/libraspberrypi/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/libraspberrypi/default.nix b/pkgs/development/libraries/libraspberrypi/default.nix index bca46f012f8..57a8a0e191a 100644 --- a/pkgs/development/libraries/libraspberrypi/default.nix +++ b/pkgs/development/libraries/libraspberrypi/default.nix @@ -26,7 +26,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ cmake pkg-config ]; cmakeFlags = [ - (if (stdenv.targetPlatform.system == "aarch64-linux") then "-DARM64=ON" else "-DARM64=OFF") + (if (stdenv.hostPlatform.isAarch64) then "-DARM64=ON" else "-DARM64=OFF") "-DVMCS_INSTALL_PREFIX=$out" ]; From 8f0ace27b10ee9059ff0049cb6995058e04ddab5 Mon Sep 17 00:00:00 2001 From: Drew Risinger Date: Thu, 24 Dec 2020 21:15:53 -0500 Subject: [PATCH 27/34] rpiboot: unstable-2020-05-11 -> unstable-2020-10-20 --- pkgs/development/misc/rpiboot/unstable.nix | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/pkgs/development/misc/rpiboot/unstable.nix b/pkgs/development/misc/rpiboot/unstable.nix index a8f7e4795e7..2df6314aa2f 100644 --- a/pkgs/development/misc/rpiboot/unstable.nix +++ b/pkgs/development/misc/rpiboot/unstable.nix @@ -1,16 +1,14 @@ { stdenv, fetchFromGitHub, libusb1 }: -let - version = "2020-05-11"; - name = "rpiboot-unstable-${version}"; -in stdenv.mkDerivation { - inherit name; +stdenv.mkDerivation { + pname = "rpiboot"; + version = "unstable-2020-10-20"; src = fetchFromGitHub { owner = "raspberrypi"; repo = "usbboot"; - rev = "c650cd747c1d0597487dcf319bf95b5ba775d78b"; - sha256 = "17kapny79dh05vfmrniqdvz6xhpwnqnw0511ycfx4qcjh4krxh8n"; + rev = "d3760e119385a179765f43a50a8e051a44127c25"; + sha256 = "0vygzh2h27xplqp1x4isj6kgrgmvmvc1mr3ghmsi98kzp91w772r"; }; nativeBuildInputs = [ libusb1 ]; @@ -26,11 +24,11 @@ in stdenv.mkDerivation { cp -r msd $out/share/rpiboot ''; - meta = { + meta = with stdenv.lib; { homepage = "https://github.com/raspberrypi/usbboot"; description = "Utility to boot a Raspberry Pi CM/CM3/Zero over USB"; - maintainers = [ stdenv.lib.maintainers.cartr ]; - license = stdenv.lib.licenses.asl20; - platforms = stdenv.lib.platforms.unix; + license = licenses.asl20; + maintainers = with maintainers; [ cartr ]; + platforms = [ "aarch64-linux" "armv7l-linux" "armv6l-linux" ]; }; } From 2e83f19be24ba580ee72d56c2a2eb693a1bbd2ec Mon Sep 17 00:00:00 2001 From: Drew Risinger Date: Sat, 26 Dec 2020 09:55:24 -0500 Subject: [PATCH 28/34] rpi-eeprom: raspberrypi-tools -> libraspberrypi --- pkgs/os-specific/linux/raspberrypi-eeprom/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/os-specific/linux/raspberrypi-eeprom/default.nix b/pkgs/os-specific/linux/raspberrypi-eeprom/default.nix index ff9c8f4ce8b..cd9d282860d 100644 --- a/pkgs/os-specific/linux/raspberrypi-eeprom/default.nix +++ b/pkgs/os-specific/linux/raspberrypi-eeprom/default.nix @@ -1,5 +1,5 @@ { stdenvNoCC, lib, fetchFromGitHub, makeWrapper -, python3, binutils-unwrapped, findutils, kmod, pciutils, raspberrypi-tools +, python3, binutils-unwrapped, findutils, kmod, pciutils, libraspberrypi }: stdenvNoCC.mkDerivation { pname = "raspberrypi-eeprom"; @@ -35,7 +35,7 @@ stdenvNoCC.mkDerivation { patchShebangs $out/bin wrapProgram $out/bin/rpi-eeprom-update \ --set FIRMWARE_ROOT $out/share/rpi-eeprom \ - ${lib.optionalString stdenvNoCC.isAarch64 "--set VCMAILBOX ${raspberrypi-tools}/bin/vcmailbox"} \ + ${lib.optionalString stdenvNoCC.isAarch64 "--set VCMAILBOX ${libraspberrypi}/bin/vcmailbox"} \ --prefix PATH : "${lib.makeBinPath ([ binutils-unwrapped findutils @@ -43,7 +43,7 @@ stdenvNoCC.mkDerivation { pciutils (placeholder "out") ] ++ lib.optionals stdenvNoCC.isAarch64 [ - raspberrypi-tools + libraspberrypi ])}" ''; From 4fe8a8b633150f8fd231af02aa161be56a46b72b Mon Sep 17 00:00:00 2001 From: Drew Risinger Date: Sat, 26 Dec 2020 09:55:52 -0500 Subject: [PATCH 29/34] rpi-eeprom: unstable-2020-10-05 -> 2020-12-11 --- pkgs/os-specific/linux/raspberrypi-eeprom/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/os-specific/linux/raspberrypi-eeprom/default.nix b/pkgs/os-specific/linux/raspberrypi-eeprom/default.nix index cd9d282860d..ee5ead73bc1 100644 --- a/pkgs/os-specific/linux/raspberrypi-eeprom/default.nix +++ b/pkgs/os-specific/linux/raspberrypi-eeprom/default.nix @@ -3,13 +3,13 @@ }: stdenvNoCC.mkDerivation { pname = "raspberrypi-eeprom"; - version = "unstable-2020-10-05"; + version = "2020-12-11"; src = fetchFromGitHub { owner = "raspberrypi"; repo = "rpi-eeprom"; - rev = "718820bcebd21d4a619fa262d9b9cf3acbf110f8"; - sha256 = "1277jsiyv34dqpandva8kxy1s0y5ql344pl9gk84avzp1mqjnv4g"; + rev = "54a9796abbee59067bff9da6b90c1014178f2c21"; + sha256 = "0yp7bn444n6yisp4hiblrm00rrvrf213amzb4sh96mlb5nhxspqk"; }; buildInputs = [ python3 ]; From 5deb8afdd1652141a3d6af5aa38cde8bf4238e63 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Sun, 27 Dec 2020 16:54:46 +0100 Subject: [PATCH 30/34] rpiboot-unstable: enable build on x86_64-linux This tool can run perfectly fine on a x86_64-linux workstation - it's primarily meant to boot Raspberry Pi CM/CM3/Zero devices, not to run on them. --- pkgs/development/misc/rpiboot/unstable.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/misc/rpiboot/unstable.nix b/pkgs/development/misc/rpiboot/unstable.nix index 2df6314aa2f..f12f5a845f1 100644 --- a/pkgs/development/misc/rpiboot/unstable.nix +++ b/pkgs/development/misc/rpiboot/unstable.nix @@ -29,6 +29,6 @@ stdenv.mkDerivation { description = "Utility to boot a Raspberry Pi CM/CM3/Zero over USB"; license = licenses.asl20; maintainers = with maintainers; [ cartr ]; - platforms = [ "aarch64-linux" "armv7l-linux" "armv6l-linux" ]; + platforms = [ "aarch64-linux" "armv7l-linux" "armv6l-linux" "x86_64-linux" ]; }; } From 3c89e637e8fe5ea3d386fbd9025431c43e5aaa27 Mon Sep 17 00:00:00 2001 From: freezeboy Date: Sun, 27 Dec 2020 16:49:53 +0100 Subject: [PATCH 31/34] bcal: 1.9 -> 2.2 --- pkgs/applications/science/math/bcal/default.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/science/math/bcal/default.nix b/pkgs/applications/science/math/bcal/default.nix index 18b6e051b3f..5df2d20549c 100644 --- a/pkgs/applications/science/math/bcal/default.nix +++ b/pkgs/applications/science/math/bcal/default.nix @@ -1,16 +1,16 @@ -{ stdenv, fetchFromGitHub, python3Packages, readline }: +{ stdenv, fetchFromGitHub, python3Packages, readline, bc }: with stdenv.lib; stdenv.mkDerivation rec { pname = "bcal"; - version = "1.9"; + version = "2.2"; src = fetchFromGitHub { owner = "jarun"; repo = "bcal"; rev = "v${version}"; - sha256 = "0h6qi5rvzl6c6fsfdpdb3l4jcgip03l18i0b1x08z1y89i56y8mm"; + sha256 = "4vR5rcbNkoEdSRNoMH9qMHP3iWFxejkVfXNiYfwbo/A="; }; nativeBuildInputs = [ python3Packages.pytest ]; @@ -18,6 +18,7 @@ stdenv.mkDerivation rec { buildInputs = [ readline ]; doCheck = true; + checkInputs = [ bc ]; checkPhase = '' python3 -m pytest test.py ''; @@ -27,7 +28,7 @@ stdenv.mkDerivation rec { meta = { description = "Storage conversion and expression calculator"; homepage = "https://github.com/jarun/bcal"; - license = licenses.gpl3; + license = licenses.gpl3Only; platforms = [ "aarch64-linux" "x86_64-darwin" "x86_64-linux" ]; maintainers = with maintainers; [ jfrankenau ]; }; From ccffd3af9db4403a6f5d4cf348dc40ade3492edf Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 27 Dec 2020 18:02:28 +0100 Subject: [PATCH 32/34] gau: init at 1.1.0 --- pkgs/tools/security/gau/default.nix | 29 +++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/tools/security/gau/default.nix diff --git a/pkgs/tools/security/gau/default.nix b/pkgs/tools/security/gau/default.nix new file mode 100644 index 00000000000..cfbae951526 --- /dev/null +++ b/pkgs/tools/security/gau/default.nix @@ -0,0 +1,29 @@ +{ buildGoModule +, fetchFromGitHub +, stdenv +}: + +buildGoModule rec { + pname = "gau"; + version = "1.1.0"; + + src = fetchFromGitHub { + owner = "lc"; + repo = pname; + rev = "v${version}"; + sha256 = "1srbql603vvlxc6p1ibw0982icdq9kcr1iamxlr8bmgldbm8215w"; + }; + + vendorSha256 = "17ag2wvaxv2dyx3yx3fvlf36ww4a44660pn4gvpbrwacsan9as5s"; + + meta = with stdenv.lib; { + description = "Tool to fetch known URLs"; + longDescription = '' + getallurls (gau) fetches known URLs from various sources for any + given domain. + ''; + homepage = "https://github.com/lc/gau"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 81139998f00..2fe8a3c276f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4147,6 +4147,8 @@ in garmintools = callPackage ../development/libraries/garmintools {}; + gau = callPackage ../tools/security/gau { }; + gauge = callPackage ../development/tools/gauge { }; gawk = callPackage ../tools/text/gawk { From e33b84db0ce0aef165a7532957bcc57ae0d7acfd Mon Sep 17 00:00:00 2001 From: freezeboy Date: Sun, 27 Dec 2020 18:40:08 +0100 Subject: [PATCH 33/34] clac: 0.0.0.20170503 -> 0.3.3 --- pkgs/tools/misc/clac/default.nix | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/pkgs/tools/misc/clac/default.nix b/pkgs/tools/misc/clac/default.nix index 8aea37ebddf..8d6e464e9bb 100644 --- a/pkgs/tools/misc/clac/default.nix +++ b/pkgs/tools/misc/clac/default.nix @@ -1,13 +1,14 @@ { stdenv, fetchFromGitHub }: + stdenv.mkDerivation rec { pname = "clac"; - version = "0.0.0.20170503"; + version = "0.3.3"; src = fetchFromGitHub { owner = "soveran"; repo = "clac"; - rev = "e92bd5cbab0d694cef945e3478820c9505e06f04"; - sha256 = "0j8p1npgq32s377c9lw959h5i2csq4yb27cvg7av17bji46816bv"; + rev = version; + sha256 = "rsag8MWl/udwXC0Gj864fAuQ6ts1gzrN2N/zelazqjE="; }; makeFlags = [ "PREFIX=$(out)" ]; @@ -17,12 +18,12 @@ stdenv.mkDerivation rec { cp README* LICENSE "$out/share/doc/${pname}" ''; - meta = { + meta = with stdenv.lib; { inherit version; description = "Interactive stack-based calculator"; - license = stdenv.lib.licenses.bsd2; - maintainers = [stdenv.lib.maintainers.raskin]; - platforms = stdenv.lib.platforms.unix; homepage = "https://github.com/soveran/clac"; + license = licenses.bsd2; + maintainers = with maintainers; [ raskin ]; + platforms = platforms.unix; }; } From b8f2c6fe4216f5342cf2df9e686819bfee3cd20b Mon Sep 17 00:00:00 2001 From: Christoph Neidahl Date: Sun, 27 Dec 2020 19:07:57 +0100 Subject: [PATCH 34/34] palemoon: 28.16.0 -> 28.17.0 (#107329) --- .../networking/browsers/palemoon/default.nix | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/pkgs/applications/networking/browsers/palemoon/default.nix b/pkgs/applications/networking/browsers/palemoon/default.nix index 5d299f3349e..56acb453a80 100644 --- a/pkgs/applications/networking/browsers/palemoon/default.nix +++ b/pkgs/applications/networking/browsers/palemoon/default.nix @@ -1,6 +1,6 @@ { stdenv, lib, fetchFromGitHub, writeScript, desktop-file-utils -, pkgconfig, autoconf213, alsaLib, bzip2, cairo -, dbus, dbus-glib, ffmpeg_3, file, fontconfig, freetype +, pkg-config, autoconf213, alsaLib, bzip2, cairo +, dbus, dbus-glib, ffmpeg, file, fontconfig, freetype , gnome2, gnum4, gtk2, hunspell, libevent, libjpeg , libnotify, libstartup_notification, wrapGAppsHook , libGLU, libGL, perl, python2, libpulseaudio @@ -11,19 +11,19 @@ let - libPath = lib.makeLibraryPath [ ffmpeg_3 libpulseaudio ]; + libPath = lib.makeLibraryPath [ ffmpeg libpulseaudio ]; gtkVersion = if withGTK3 then "3" else "2"; in stdenv.mkDerivation rec { pname = "palemoon"; - version = "28.16.0"; + version = "28.17.0"; src = fetchFromGitHub { githubBase = "repo.palemoon.org"; owner = "MoonchildProductions"; repo = "Pale-Moon"; rev = "${version}_Release"; - sha256 = "1svwbiar7c38c8xfw249mwnvayqq5868nkks7cbv9nyf2m9yap56"; + sha256 = "0478xn5skpls91hkraykc308hppdc8vj9xbgvlm5wkv0y4dp7h5x"; fetchSubmodules = true; }; @@ -43,11 +43,11 @@ in stdenv.mkDerivation rec { ''; nativeBuildInputs = [ - desktop-file-utils file gnum4 perl pkgconfig python2 wget which wrapGAppsHook + desktop-file-utils file gnum4 perl pkg-config python2 wget which wrapGAppsHook ]; buildInputs = [ - alsaLib bzip2 cairo dbus dbus-glib ffmpeg_3 fontconfig freetype + alsaLib bzip2 cairo dbus dbus-glib ffmpeg fontconfig freetype gnome2.GConf gtk2 hunspell libevent libjpeg libnotify libstartup_notification libGLU libGL libpulseaudio unzip yasm zip zlib @@ -61,7 +61,7 @@ in stdenv.mkDerivation rec { enableParallelBuilding = true; configurePhase = '' - export MOZCONFIG=$(pwd)/mozconfig + export MOZCONFIG=$PWD/mozconfig export MOZ_NOSPAM=1 # Keep this similar to the official .mozconfig file, @@ -114,18 +114,18 @@ in stdenv.mkDerivation rec { ' ''; - buildPhase = "$src/mach build"; + buildPhase = "./mach build"; installPhase = '' - $src/mach install + ./mach install desktop-file-install --dir=$out/share/applications \ - $src/palemoon/branding/official/palemoon.desktop + ./palemoon/branding/official/palemoon.desktop for iconname in default{16,22,24,32,48,256} mozicon128; do n=''${iconname//[^0-9]/} size=$n"x"$n - install -Dm644 $src/palemoon/branding/official/$iconname.png $out/share/icons/hicolor/$size/apps/palemoon.png + install -Dm644 ./palemoon/branding/official/$iconname.png $out/share/icons/hicolor/$size/apps/palemoon.png done '';