diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2022-08-15 06:01:11 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-15 06:01:11 +0000 |
commit | 9c7cf16ec71c3c2cf5b3613a5f2f09a830ce9e57 (patch) | |
tree | 40677fa959e76865a1102fb658f3267eac44f35f | |
parent | 775bb14b914742f47e8ba288a6ade4e29db22c98 (diff) | |
parent | 29136a94b92f2c0959abcb099d40cc87869b8a1f (diff) | |
download | nixpkgs-9c7cf16ec71c3c2cf5b3613a5f2f09a830ce9e57.tar nixpkgs-9c7cf16ec71c3c2cf5b3613a5f2f09a830ce9e57.tar.gz nixpkgs-9c7cf16ec71c3c2cf5b3613a5f2f09a830ce9e57.tar.bz2 nixpkgs-9c7cf16ec71c3c2cf5b3613a5f2f09a830ce9e57.tar.lz nixpkgs-9c7cf16ec71c3c2cf5b3613a5f2f09a830ce9e57.tar.xz nixpkgs-9c7cf16ec71c3c2cf5b3613a5f2f09a830ce9e57.tar.zst nixpkgs-9c7cf16ec71c3c2cf5b3613a5f2f09a830ce9e57.zip |
Merge master into staging-next
62 files changed, 735 insertions, 733 deletions
diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index d7802b61112..479f3252396 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -6789,6 +6789,12 @@ githubId = 2029444; name = "James Kent"; }; + kephasp = { + email = "pierre@nothos.net"; + github = "kephas"; + githubId = 762421; + name = "Pierre Thierry"; + }; ketzacoatl = { email = "ketzacoatl@protonmail.com"; github = "ketzacoatl"; diff --git a/maintainers/scripts/rebuild-amount.sh b/maintainers/scripts/rebuild-amount.sh index bedd352db5f..32810f6b98c 100755 --- a/maintainers/scripts/rebuild-amount.sh +++ b/maintainers/scripts/rebuild-amount.sh @@ -35,7 +35,7 @@ toRemove=() cleanup() { rm -rf "${toRemove[@]}" } -trap cleanup EXIT SIGINT SIGQUIT ERR +trap cleanup EXIT MKTEMP='mktemp --tmpdir nix-rebuild-amount-XXXXXXXX' diff --git a/nixos/modules/services/backup/borgbackup.nix b/nixos/modules/services/backup/borgbackup.nix index 3abd33f5ae6..f02e15f2b98 100644 --- a/nixos/modules/services/backup/borgbackup.nix +++ b/nixos/modules/services/backup/borgbackup.nix @@ -23,12 +23,10 @@ let on_exit() { exitStatus=$? - # Reset the EXIT handler, or else we're called again on 'exit' below - trap - EXIT ${cfg.postHook} exit $exitStatus } - trap 'on_exit' INT TERM QUIT EXIT + trap on_exit EXIT archiveName="${if cfg.archiveBaseName == null then "" else cfg.archiveBaseName + "-"}$(date ${cfg.dateFormat})" archiveSuffix="${optionalString cfg.appendFailedSuffix ".failed"}" diff --git a/nixos/modules/services/web-apps/keycloak.nix b/nixos/modules/services/web-apps/keycloak.nix index c1091bc09a0..b878cb74b52 100644 --- a/nixos/modules/services/web-apps/keycloak.nix +++ b/nixos/modules/services/web-apps/keycloak.nix @@ -562,7 +562,7 @@ in shopt -s inherit_errexit create_role="$(mktemp)" - trap 'rm -f "$create_role"' ERR EXIT + trap 'rm -f "$create_role"' EXIT db_password="$(<"$CREDENTIALS_DIRECTORY/db_password")" echo "CREATE ROLE keycloak WITH LOGIN PASSWORD '$db_password' CREATEDB" > "$create_role" diff --git a/pkgs/applications/editors/nano/default.nix b/pkgs/applications/editors/nano/default.nix index 20b18814cb7..5d4d84e6fe9 100644 --- a/pkgs/applications/editors/nano/default.nix +++ b/pkgs/applications/editors/nano/default.nix @@ -16,11 +16,11 @@ let in stdenv.mkDerivation rec { pname = "nano"; - version = "6.3"; + version = "6.4"; src = fetchurl { url = "mirror://gnu/nano/${pname}-${version}.tar.xz"; - sha256 = "61MtpJhWcnMLUA9oXbqriFpGbQj7v3QVgyuVgF5vhoc="; + sha256 = "QZmujKeKd5beVt4aQbgh3EeRLAMH6YFrVswxffNGYcA="; }; nativeBuildInputs = [ texinfo ] ++ optional enableNls gettext; diff --git a/pkgs/applications/editors/vim/plugins/aliases.nix b/pkgs/applications/editors/vim/plugins/aliases.nix index 955590cafe3..d7db61d4283 100644 --- a/pkgs/applications/editors/vim/plugins/aliases.nix +++ b/pkgs/applications/editors/vim/plugins/aliases.nix @@ -130,6 +130,7 @@ mapAliases (with prev; { unite = unite-vim; UltiSnips = ultisnips; vim-addon-vim2nix = vim2nix; + vim-sourcetrail = throw "vim-sourcetrail has been removed: abandoned by upstream"; # Added 2022-08-14 vimproc = vimproc-vim; vimshell = vimshell-vim; vinegar = vim-vinegar; diff --git a/pkgs/applications/editors/vim/plugins/generated.nix b/pkgs/applications/editors/vim/plugins/generated.nix index 38f9e8c1051..a6f5c1ba8ee 100644 --- a/pkgs/applications/editors/vim/plugins/generated.nix +++ b/pkgs/applications/editors/vim/plugins/generated.nix @@ -11540,18 +11540,6 @@ final: prev: meta.homepage = "https://github.com/christoomey/vim-sort-motion/"; }; - vim-sourcetrail = buildVimPluginFrom2Nix { - pname = "vim-sourcetrail"; - version = "2021-02-16"; - src = fetchFromGitHub { - owner = "CoatiSoftware"; - repo = "vim-sourcetrail"; - rev = "c9c621a7ab81c52a661457ccf33a64fd7c56fd9d"; - sha256 = "192f69yz1hh2k0b2kcvfvv1jirjcvnbxvjkagmlkkqcg8w32nmlg"; - }; - meta.homepage = "https://github.com/CoatiSoftware/vim-sourcetrail/"; - }; - vim-speeddating = buildVimPluginFrom2Nix { pname = "vim-speeddating"; version = "2021-04-29"; diff --git a/pkgs/applications/editors/vim/plugins/vim-plugin-names b/pkgs/applications/editors/vim/plugins/vim-plugin-names index cb7a8c114da..2dd0297e293 100644 --- a/pkgs/applications/editors/vim/plugins/vim-plugin-names +++ b/pkgs/applications/editors/vim/plugins/vim-plugin-names @@ -969,7 +969,6 @@ https://github.com/honza/vim-snippets/,, https://github.com/jhradilek/vim-snippets/,,vim-docbk-snippets https://github.com/tomlion/vim-solidity/,, https://github.com/christoomey/vim-sort-motion/,, -https://github.com/CoatiSoftware/vim-sourcetrail/,, https://github.com/tpope/vim-speeddating/,, https://github.com/kbenzie/vim-spirv/,, https://github.com/mhinz/vim-startify/,, diff --git a/pkgs/applications/editors/vscode/extensions/_maintainers/update-bin-srcs-lib.sh b/pkgs/applications/editors/vscode/extensions/_maintainers/update-bin-srcs-lib.sh index e3d1e5fb139..4b0ca54da36 100755 --- a/pkgs/applications/editors/vscode/extensions/_maintainers/update-bin-srcs-lib.sh +++ b/pkgs/applications/editors/vscode/extensions/_maintainers/update-bin-srcs-lib.sh @@ -37,14 +37,12 @@ prefetchExtensionUnpacked() { 1>&2 echo "zipStorePath='$zipStorePath'" function rm_tmpdir() { - 1>&2 printf "rm -rf -- %q\n" "$tmpDir" - rm -rf -- "$tmpDir" - unset tmpDir - trap - INT TERM HUP EXIT + 1>&2 printf "rm -rf %q\n" "$tmpDir" + rm -rf "$tmpDir" } function make_trapped_tmpdir() { tmpDir=$(mktemp -d) - trap rm_tmpdir INT TERM HUP EXIT + trap rm_tmpdir EXIT } 1>&2 echo diff --git a/pkgs/applications/editors/vscode/extensions/cpptools/update_helper.sh b/pkgs/applications/editors/vscode/extensions/cpptools/update_helper.sh index 00ef7755324..d7bd307c92a 100755 --- a/pkgs/applications/editors/vscode/extensions/cpptools/update_helper.sh +++ b/pkgs/applications/editors/vscode/extensions/cpptools/update_helper.sh @@ -44,14 +44,11 @@ extStoreName="${extPublisher}-${extName}" function rm_tmpdir() { - #echo "Removing \`tmpDir='$tmpDir'\`" - rm -rf -- "$tmpDir" - unset tmpDir - trap - INT TERM HUP EXIT + rm -rf "$tmpDir" } function make_trapped_tmpdir() { tmpDir=$(mktemp -d) - trap rm_tmpdir INT TERM HUP EXIT + trap rm_tmpdir EXIT } echo diff --git a/pkgs/applications/misc/opentrack/default.nix b/pkgs/applications/misc/opentrack/default.nix index 009633f3273..34c6b3f712b 100644 --- a/pkgs/applications/misc/opentrack/default.nix +++ b/pkgs/applications/misc/opentrack/default.nix @@ -1,58 +1,79 @@ -{ mkDerivation, lib, callPackage, fetchzip, fetchFromGitHub, cmake, pkg-config -, ninja, copyDesktopItems, qtbase, qttools, opencv4, procps, eigen, libXdmcp -, libevdev, makeDesktopItem, fetchurl }: +{ + mkDerivation, + lib, + callPackage, + fetchzip, + fetchFromGitHub, + cmake, + pkg-config, + ninja, + copyDesktopItems, + qtbase, + qttools, + opencv4, + procps, + eigen, + libXdmcp, + libevdev, + makeDesktopItem, + fetchurl, +}: let + version = "2022.3.0"; -let - version = "2.3.13"; - - aruco = callPackage ./aruco.nix { }; + aruco = callPackage ./aruco.nix {}; # license.txt inside the zip file is MIT xplaneSdk = fetchzip { url = "https://developer.x-plane.com/wp-content/plugins/code-sample-generation/sample_templates/XPSDK303.zip"; sha256 = "11wqjsr996c5qhiv2djsd55gc373a9qcq30dvc6rhzm0fys42zba"; }; +in + mkDerivation { + pname = "opentrack"; + inherit version; -in mkDerivation { - pname = "opentrack"; - inherit version; + src = fetchFromGitHub { + owner = "opentrack"; + repo = "opentrack"; + rev = "opentrack-${version}"; + sha256 = "sha256-8gpNORTJclYUYp57Vw/0YO3XC9Idurt0a79fhqx0+mo="; + }; - src = fetchFromGitHub { - owner = "opentrack"; - repo = "opentrack"; - rev = "opentrack-${version}"; - sha256 = "1s986lmm5l1pwbwvd1pfiq84n32s1q1dav7a0cbga4d1vcf0v1ay"; - }; + nativeBuildInputs = [cmake pkg-config ninja copyDesktopItems]; + buildInputs = [qtbase qttools opencv4 procps eigen libXdmcp libevdev aruco]; - nativeBuildInputs = [ cmake pkg-config ninja copyDesktopItems ]; - buildInputs = [ qtbase qttools opencv4 procps eigen libXdmcp libevdev aruco ]; - - NIX_CFLAGS_COMPILE = "-Wall -Wextra -Wpedantic -ffast-math -march=native -O3"; - - cmakeFlags = [ - "-DCMAKE_BUILD_TYPE=RELEASE" - "-DSDK_ARUCO_LIBPATH=${aruco}/lib/libaruco.a" - "-DSDK_XPLANE=${xplaneSdk}" - ]; - - desktopItems = [ - (makeDesktopItem rec { - name = "opentrack"; - exec = "opentrack"; - icon = fetchurl { - url = "https://github.com/opentrack/opentrack/raw/opentrack-${version}/gui/images/opentrack.png"; - sha256 = "0d114zk78f7nnrk89mz4gqn7yk3k71riikdn29w6sx99h57f6kgn"; - }; - desktopName = name; - genericName = "Head tracking software"; - categories = [ "Utility" ]; - }) - ]; - - meta = with lib; { - homepage = "https://github.com/opentrack/opentrack"; - description = "Head tracking software for MS Windows, Linux, and Apple OSX"; - license = licenses.isc; - maintainers = with maintainers; [ zaninime ]; - }; -} + NIX_CFLAGS_COMPILE = "-Wall -Wextra -Wpedantic -ffast-math -march=native -O3"; + dontWrapQtApps = true; + + cmakeFlags = [ + "-DCMAKE_BUILD_TYPE=RELEASE" + "-DSDK_ARUCO_LIBPATH=${aruco}/lib/libaruco.a" + "-DSDK_XPLANE=${xplaneSdk}" + ]; + + postInstall = '' + wrapQtApp $out/bin/opentrack + ''; + + desktopItems = [ + (makeDesktopItem rec { + name = "opentrack"; + exec = "opentrack"; + icon = fetchurl { + url = "https://github.com/opentrack/opentrack/raw/opentrack-${version}/gui/images/opentrack.png"; + sha256 = "0d114zk78f7nnrk89mz4gqn7yk3k71riikdn29w6sx99h57f6kgn"; + }; + desktopName = name; + genericName = "Head tracking software"; + categories = ["Utility"]; + }) + ]; + + meta = with lib; { + homepage = "https://github.com/opentrack/opentrack"; + description = "Head tracking software for MS Windows, Linux, and Apple OSX"; + changelog = "https://github.com/opentrack/opentrack/releases/tag/${version}"; + license = licenses.isc; + maintainers = with maintainers; [zaninime]; + }; + } diff --git a/pkgs/applications/misc/swaynotificationcenter/default.nix b/pkgs/applications/misc/swaynotificationcenter/default.nix index 5139fec338c..42e6dba3da4 100644 --- a/pkgs/applications/misc/swaynotificationcenter/default.nix +++ b/pkgs/applications/misc/swaynotificationcenter/default.nix @@ -21,13 +21,13 @@ stdenv.mkDerivation rec { pname = "SwayNotificationCenter"; - version = "0.6.1"; + version = "0.6.3"; src = fetchFromGitHub { owner = "ErikReider"; repo = "SwayNotificationCenter"; rev = "v${version}"; - hash = "sha256-+vMlhBCLxvqfPRO2U9015srhY/2sd1DoV27kzNDjsqs="; + hash = "sha256-79Kda2Mi2r38f0J12bRm9wbHiZCy9+ojPDxwlFG8EYw="; }; nativeBuildInputs = [ gobject-introspection meson ninja pkg-config scdoc vala wrapGAppsHook ]; diff --git a/pkgs/applications/misc/ticker/default.nix b/pkgs/applications/misc/ticker/default.nix index 2ffa499f74a..a5e46b6e34c 100644 --- a/pkgs/applications/misc/ticker/default.nix +++ b/pkgs/applications/misc/ticker/default.nix @@ -5,13 +5,13 @@ buildGoModule rec { pname = "ticker"; - version = "4.5.2"; + version = "4.5.3"; src = fetchFromGitHub { owner = "achannarasappa"; repo = pname; rev = "v${version}"; - sha256 = "sha256-9Gy7G/uRFUBfXlUa6nIle1WIS5Yf9DJMM57hE0oEyLI="; + sha256 = "sha256-qrPBQuHwfwFI4PQXDikfo8hm64Sdg4czeeKWyD5HqNk="; }; vendorSha256 = "sha256-6bosJ2AlbLZ551tCNPmvNyyReFJG+iS3SYUFti2/CAw="; diff --git a/pkgs/applications/misc/zola/default.nix b/pkgs/applications/misc/zola/default.nix index 833b2e4c152..9e28dbaa0b2 100644 --- a/pkgs/applications/misc/zola/default.nix +++ b/pkgs/applications/misc/zola/default.nix @@ -15,16 +15,16 @@ rustPlatform.buildRustPackage rec { pname = "zola"; - version = "0.16.0"; + version = "0.16.1"; src = fetchFromGitHub { owner = "getzola"; repo = "zola"; rev = "v${version}"; - sha256 = "sha256-FrCpHavlHf4/g96G7cY0Rymxqi73XUCIAYp4cm//2Ic="; + sha256 = "sha256-VkR7fM2WeI1itGq5kl54CVLnNW+NxIodkVKeGv8HoaU="; }; - cargoSha256 = "sha256-c6SbQasgpOyqVninAo104oYo1CXpiECZvsB1gxrD7wM="; + cargoSha256 = "sha256-74QVFjDlT3ewx4sCK4/r5In0muqboBFEpMFBv2L5YaM="; nativeBuildInputs = [ cmake diff --git a/pkgs/applications/networking/instant-messengers/cinny-desktop/default.nix b/pkgs/applications/networking/instant-messengers/cinny-desktop/default.nix index c6d135a0289..0da3d38e675 100644 --- a/pkgs/applications/networking/instant-messengers/cinny-desktop/default.nix +++ b/pkgs/applications/networking/instant-messengers/cinny-desktop/default.nix @@ -11,11 +11,11 @@ stdenv.mkDerivation rec { name = "cinny-desktop"; - version = "2.1.1"; + version = "2.1.2"; src = fetchurl { url = "https://github.com/cinnyapp/cinny-desktop/releases/download/v${version}/Cinny_desktop-x86_64.deb"; - sha256 = "sha256-4jd+N3a+u+c+XLwgr8BvvdkVLzo+xTBKFdjiQeu7NJU="; + sha256 = "sha256-JLu6xAnUaeRTM/yj2Qsc7pXTRXCnvxx8NL2fDXyAUg0="; }; nativeBuildInputs = [ diff --git a/pkgs/applications/networking/instant-messengers/fluffychat/default.nix b/pkgs/applications/networking/instant-messengers/fluffychat/default.nix index 565c44f72e9..d50e7118cc1 100644 --- a/pkgs/applications/networking/instant-messengers/fluffychat/default.nix +++ b/pkgs/applications/networking/instant-messengers/fluffychat/default.nix @@ -10,7 +10,7 @@ flutter.mkFlutterApp rec { pname = "fluffychat"; version = "1.2.0"; - vendorHash = "sha256-j5opwEFifa+DMG7Uziv4SWEPVokD6OSq8mSIr0AdDL0="; + vendorHash = "sha256-co+bnsVIyg42JpM9FimfGEjrd6A99GlBeow1Dgv7NBI="; src = fetchFromGitLab { owner = "famedly"; diff --git a/pkgs/applications/networking/instant-messengers/pidgin/default.nix b/pkgs/applications/networking/instant-messengers/pidgin/default.nix index 01e13848546..84f8f327cad 100644 --- a/pkgs/applications/networking/instant-messengers/pidgin/default.nix +++ b/pkgs/applications/networking/instant-messengers/pidgin/default.nix @@ -9,11 +9,11 @@ let unwrapped = stdenv.mkDerivation rec { pname = "pidgin"; - version = "2.14.8"; + version = "2.14.10"; src = fetchurl { url = "mirror://sourceforge/pidgin/pidgin-${version}.tar.bz2"; - sha256 = "1jjc15pfyw3012q5ffv7q4r88wv07ndqh0wakyxa2k0w4708b01z"; + sha256 = "sha256-RUsbkovGvLsYM1OvMPv95VlfIkWjQjoaRubJei3yKBA="; }; nativeBuildInputs = [ makeWrapper ]; diff --git a/pkgs/applications/networking/mailreaders/mutt/default.nix b/pkgs/applications/networking/mailreaders/mutt/default.nix index 4d7f62bde9a..cc3bba9528e 100644 --- a/pkgs/applications/networking/mailreaders/mutt/default.nix +++ b/pkgs/applications/networking/mailreaders/mutt/default.nix @@ -19,12 +19,12 @@ stdenv.mkDerivation rec { pname = "mutt"; - version = "2.2.6"; + version = "2.2.7"; outputs = [ "out" "doc" "info" ]; src = fetchurl { url = "http://ftp.mutt.org/pub/mutt/${pname}-${version}.tar.gz"; - sha256 = "/6LZNRfPxgb+Adr/xfEuQgYqHBNNO5r3hITrxUMIiNM="; + sha256 = "6xOFj1i7Np9He/ZS2Q6baq3dDWEKy+o0VQSeXvrTbfE="; }; patches = lib.optional smimeSupport (fetchpatch { diff --git a/pkgs/applications/networking/p2p/deluge/default.nix b/pkgs/applications/networking/p2p/deluge/default.nix index c5966ae13f4..b5bb12da0ec 100644 --- a/pkgs/applications/networking/p2p/deluge/default.nix +++ b/pkgs/applications/networking/p2p/deluge/default.nix @@ -1,9 +1,8 @@ { lib , fetchurl -, fetchpatch , intltool , libtorrent-rasterbar -, pythonPackages +, python3Packages , gtk3 , glib , gobject-introspection @@ -11,62 +10,95 @@ , wrapGAppsHook }: -pythonPackages.buildPythonPackage rec { - pname = "deluge"; - version = "2.0.5"; +let + inherit (lib) optionals; - src = fetchurl { - url = "http://download.deluge-torrent.org/source/2.0/${pname}-${version}.tar.xz"; - sha256 = "sha256-xL0Eq/0hG2Uhi+A/PEbSb0QCSITeEOAYWfuFb91vJdg="; - }; + pypkgs = python3Packages; - propagatedBuildInputs = with pythonPackages; [ - twisted - Mako - chardet - pyxdg - pyopenssl - service-identity - libtorrent-rasterbar.dev - libtorrent-rasterbar.python - setuptools - setproctitle - pillow - rencode - six - zope_interface - dbus-python - pygobject3 - pycairo - gtk3 - gobject-introspection - librsvg - ]; + generic = { pname, withGUI }: + pypkgs.buildPythonPackage rec { + inherit pname; + version = "2.1.1"; - nativeBuildInputs = [ gobject-introspection intltool wrapGAppsHook glib ]; + src = fetchurl { + url = "http://download.deluge-torrent.org/source/${lib.versions.majorMinor version}/deluge-${version}.tar.xz"; + hash = "sha256-do3TGYAuQkN6s3lOvnW0lxQuCO1bD7JQO61izvRC3/c="; + }; - checkInputs = with pythonPackages; [ - pytestCheckHook - pytest-twisted - pytest-cov - mock - mccabe - pylint - ]; + propagatedBuildInputs = with pypkgs; [ + twisted + Mako + chardet + pyxdg + pyopenssl + service-identity + libtorrent-rasterbar.dev + libtorrent-rasterbar.python + setuptools + setproctitle + pillow + rencode + six + zope_interface + dbus-python + pycairo + librsvg + ] ++ optionals withGUI [ + gtk3 + gobject-introspection + pygobject3 + ]; - doCheck = false; # until pytest-twisted is packaged + nativeBuildInputs = [ + intltool + glib + ] ++ optionals withGUI [ + gobject-introspection + wrapGAppsHook + ]; - postInstall = '' - mkdir -p $out/share - cp -R deluge/ui/data/{icons,pixmaps} $out/share/ - install -Dm444 -t $out/share/applications deluge/ui/data/share/applications/deluge.desktop - ''; + checkInputs = with pypkgs; [ + pytestCheckHook + pytest-twisted + pytest-cov + mock + mccabe + pylint + ]; - meta = with lib; { - homepage = "https://deluge-torrent.org"; - description = "Torrent client"; - license = licenses.gpl3Plus; - maintainers = with maintainers; [ domenkozar ebzzry ]; - platforms = platforms.all; - }; + doCheck = false; # tests are not working at all + + postInstall = '' + install -Dm444 -t $out/lib/systemd/system packaging/systemd/*.service + '' + (if withGUI + then '' + mkdir -p $out/share + cp -R deluge/ui/data/{icons,pixmaps} $out/share/ + install -Dm444 -t $out/share/applications deluge/ui/data/share/applications/deluge.desktop + '' else '' + rm -r $out/bin/deluge-gtk + rm -r $out/lib/${python3Packages.python.libPrefix}/site-packages/deluge/ui/gtk3 + rm -r $out/share/{icons,man/man1/deluge-gtk*,pixmaps} + ''); + + postFixup = '' + for f in $out/lib/systemd/system/*; do + substituteInPlace $f --replace /usr/bin $out/bin + done + ''; + + meta = with lib; { + description = "Torrent client"; + homepage = "https://deluge-torrent.org"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ domenkozar ebzzry ]; + platforms = platforms.all; + }; + }; + +in +rec { + deluge-gtk = generic { pname = "deluge-gtk"; withGUI = true; }; + deluged = generic { pname = "deluged"; withGUI = false; }; + deluge = deluge-gtk; } diff --git a/pkgs/build-support/build-bazel-package/default.nix b/pkgs/build-support/build-bazel-package/default.nix index 74486e2e100..f379334786b 100644 --- a/pkgs/build-support/build-bazel-package/default.nix +++ b/pkgs/build-support/build-bazel-package/default.nix @@ -58,7 +58,7 @@ in stdenv.mkDerivation (fBuildAttrs // { name = "${name}-deps.tar.gz"; inherit bazelFlags bazelBuildFlags bazelFetchFlags bazelTarget; - impureEnvVars = lib.fetchers.proxyImpureEnvVars; + impureEnvVars = lib.fetchers.proxyImpureEnvVars ++ fFetchAttrs.impureEnvVars or []; nativeBuildInputs = fFetchAttrs.nativeBuildInputs or [] ++ [ bazel ]; diff --git a/pkgs/build-support/fetchcvs/nix-prefetch-cvs b/pkgs/build-support/fetchcvs/nix-prefetch-cvs index f9ed8ffa066..b6a169f8b53 100755 --- a/pkgs/build-support/fetchcvs/nix-prefetch-cvs +++ b/pkgs/build-support/fetchcvs/nix-prefetch-cvs @@ -21,13 +21,11 @@ fi mkTempDir() { tmpPath="$(mktemp -d "${TMPDIR:-/tmp}/nix-prefetch-cvs-XXXXXXXX")" - trap removeTempDir EXIT SIGINT SIGQUIT + trap removeTempDir EXIT } removeTempDir() { - if test -n "$tmpPath"; then - rm -rf "$tmpPath" || true - fi + rm -rf "$tmpPath" } diff --git a/pkgs/build-support/rust/default-crate-overrides.nix b/pkgs/build-support/rust/default-crate-overrides.nix index 9f88e8a067b..f6383af44e8 100644 --- a/pkgs/build-support/rust/default-crate-overrides.nix +++ b/pkgs/build-support/rust/default-crate-overrides.nix @@ -27,6 +27,7 @@ , freetype , rdkafka , udev +, libevdev , ... }: @@ -65,6 +66,12 @@ in buildInputs = [ dbus ]; }; + evdev-sys = attrs: { + LIBGIT2_SYS_USE_PKG_CONFIG = true; + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ libevdev ]; + }; + expat-sys = attrs: { nativeBuildInputs = [ cmake ]; }; diff --git a/pkgs/data/fonts/fira-go/default.nix b/pkgs/data/fonts/fira-go/default.nix new file mode 100644 index 00000000000..2d5952523a6 --- /dev/null +++ b/pkgs/data/fonts/fira-go/default.nix @@ -0,0 +1,34 @@ +{ lib, fetchzip }: + +let + pname = "fira-go"; + version = "1.001"; + user = "bBoxType"; + repo = "FiraGo"; + rev = "9882ba0851f88ab904dc237f250db1d45641f45d"; +in +fetchzip { + name = "${pname}-${version}"; + + url = "https://github.com/${user}/${repo}/archive/${rev}.zip"; + + postFetch = '' + mkdir -p $out/share/fonts/opentype + mv $out/Fonts/FiraGO_OTF_1001/{Roman,Italic}/*.otf \ + $out/share/fonts/opentype + rm -r $out/{Fonts,'Technical Report PDF',OFL.txt,README.md,*.pdf} + ''; + + sha256 = "sha256-MDGRba1eao/yVzSuncJ/nvCG8cpdrI4roVPI1G9qCbU="; + + meta = with lib; { + homepage = "https://bboxtype.com/typefaces/FiraGO"; + description = '' + Font with the same glyph set as Fira Sans 4.3 and additionally + supports Arabic, Devenagari, Georgian, Hebrew and Thai + ''; + license = licenses.ofl; + maintainers = [ maintainers.loicreynier ]; + platforms = platforms.all; + }; +} diff --git a/pkgs/development/compilers/flutter/default.nix b/pkgs/development/compilers/flutter/default.nix index acff9dd030e..4529d2adc1a 100644 --- a/pkgs/development/compilers/flutter/default.nix +++ b/pkgs/development/compilers/flutter/default.nix @@ -4,24 +4,25 @@ let getPatches = dir: let files = builtins.attrNames (builtins.readDir dir); in map (f: dir + ("/" + f)) files; - version = "2.10.1"; + version = "3.0.4"; channel = "stable"; filename = "flutter_linux_${version}-${channel}.tar.xz"; # Decouples flutter derivation from dart derivation, # use specific dart version to not need to bump dart derivation when bumping flutter. - dartVersion = "2.16.2"; + dartVersion = "2.17.5"; dartSourceBase = "https://storage.googleapis.com/dart-archive/channels"; dartForFlutter = dart.override { version = dartVersion; sources = { "${dartVersion}-x86_64-linux" = fetchurl { url = "${dartSourceBase}/stable/release/${dartVersion}/sdk/dartsdk-linux-x64-release.zip"; - sha256 = "sha256-egrYd7B4XhkBiHPIFE2zopxKtQ58GqlogAKA/UeiXnI="; + sha256 = "sha256-AFJGeiPsjUZSO+DykmOIFETg2jIohg62tp3ghZrKJFk="; }; }; }; -in { +in +{ inherit mkFlutter; stable = mkFlutter rec { inherit version; @@ -29,7 +30,7 @@ in { pname = "flutter"; src = fetchurl { url = "https://storage.googleapis.com/flutter_infra_release/releases/${channel}/linux/${filename}"; - sha256 = "sha256-rSfwcglDV2rvJl10j7FByAWmghd2FYxrlkgYnvRO54Y="; + sha256 = "sha256-vh3QjLGFBN321DUET9XhYqSkILjEj+ZqAALu/mxY+go="; }; patches = getPatches ./patches; }; diff --git a/pkgs/development/compilers/flutter/flutter.nix b/pkgs/development/compilers/flutter/flutter.nix index 43538ede339..28a78c3e306 100644 --- a/pkgs/development/compilers/flutter/flutter.nix +++ b/pkgs/development/compilers/flutter/flutter.nix @@ -61,7 +61,7 @@ let # path is relative otherwise it's replaced by /build/flutter pushd "$FLUTTER_TOOLS_DIR" - ${dart}/bin/pub get --offline + ${dart}/bin/dart pub get --offline popd local revision="$(cd "$FLUTTER_ROOT"; git rev-parse HEAD)" diff --git a/pkgs/development/compilers/flutter/patches/git-dir.patch b/pkgs/development/compilers/flutter/patches/git-dir.patch new file mode 100644 index 00000000000..0c736f945ea --- /dev/null +++ b/pkgs/development/compilers/flutter/patches/git-dir.patch @@ -0,0 +1,102 @@ +diff --git a/dev/bots/prepare_package.dart b/dev/bots/prepare_package.dart +index 468a91a954..5def6897ce 100644 +--- a/dev/bots/prepare_package.dart ++++ b/dev/bots/prepare_package.dart +@@ -525,7 +525,7 @@ class ArchiveCreator { + + Future<String> _runGit(List<String> args, {Directory? workingDirectory}) { + return _processRunner.runProcess( +- <String>['git', ...args], ++ <String>['git', '--git-dir', '.git', ...args], + workingDirectory: workingDirectory ?? flutterRoot, + ); + } +diff --git a/packages/flutter_tools/lib/src/commands/downgrade.dart b/packages/flutter_tools/lib/src/commands/downgrade.dart +index bb0eb428a9..4a2a48bb5e 100644 +--- a/packages/flutter_tools/lib/src/commands/downgrade.dart ++++ b/packages/flutter_tools/lib/src/commands/downgrade.dart +@@ -118,7 +118,7 @@ class DowngradeCommand extends FlutterCommand { + // Detect unknown versions. + final ProcessUtils processUtils = _processUtils!; + final RunResult parseResult = await processUtils.run(<String>[ +- 'git', 'describe', '--tags', lastFlutterVersion, ++ 'git', '--git-dir', '.git', 'describe', '--tags', lastFlutterVersion, + ], workingDirectory: workingDirectory); + if (parseResult.exitCode != 0) { + throwToolExit('Failed to parse version for downgrade:\n${parseResult.stderr}'); +@@ -191,7 +191,7 @@ class DowngradeCommand extends FlutterCommand { + continue; + } + final RunResult parseResult = await _processUtils!.run(<String>[ +- 'git', 'describe', '--tags', sha, ++ 'git', '--git-dir', '.git', 'describe', '--tags', sha, + ], workingDirectory: workingDirectory); + if (parseResult.exitCode == 0) { + buffer.writeln('Channel "${getNameForChannel(channel)}" was previously on: ${parseResult.stdout}.'); +diff --git a/packages/flutter_tools/lib/src/version.dart b/packages/flutter_tools/lib/src/version.dart +index f2068a6ca2..99b161689e 100644 +--- a/packages/flutter_tools/lib/src/version.dart ++++ b/packages/flutter_tools/lib/src/version.dart +@@ -106,7 +106,7 @@ class FlutterVersion { + String? channel = _channel; + if (channel == null) { + final String gitChannel = _runGit( +- 'git rev-parse --abbrev-ref --symbolic @{u}', ++ 'git --git-dir .git rev-parse --abbrev-ref --symbolic @{u}', + globals.processUtils, + _workingDirectory, + ); +@@ -114,7 +114,7 @@ class FlutterVersion { + if (slash != -1) { + final String remote = gitChannel.substring(0, slash); + _repositoryUrl = _runGit( +- 'git ls-remote --get-url $remote', ++ 'git --git-dir .git ls-remote --get-url $remote', + globals.processUtils, + _workingDirectory, + ); +@@ -326,7 +326,7 @@ class FlutterVersion { + /// the branch name will be returned as `'[user-branch]'`. + String getBranchName({ bool redactUnknownBranches = false }) { + _branch ??= () { +- final String branch = _runGit('git rev-parse --abbrev-ref HEAD', globals.processUtils); ++ final String branch = _runGit('git --git-dir .git rev-parse --abbrev-ref HEAD', globals.processUtils); + return branch == 'HEAD' ? channel : branch; + }(); + if (redactUnknownBranches || _branch!.isEmpty) { +@@ -359,7 +359,7 @@ class FlutterVersion { + /// wrapper that does that. + @visibleForTesting + static List<String> gitLog(List<String> args) { +- return <String>['git', '-c', 'log.showSignature=false', 'log'] + args; ++ return <String>['git', '-c', 'log.showSignature=false', '--git-dir', '.git', 'log'] + args; + } + + /// Gets the release date of the latest available Flutter version. +@@ -730,7 +730,7 @@ class GitTagVersion { + + static GitTagVersion determine(ProcessUtils processUtils, {String? workingDirectory, bool fetchTags = false, String gitRef = 'HEAD'}) { + if (fetchTags) { +- final String channel = _runGit('git rev-parse --abbrev-ref HEAD', processUtils, workingDirectory); ++ final String channel = _runGit('git --git-dir .git rev-parse --abbrev-ref HEAD', processUtils, workingDirectory); + if (channel == 'dev' || channel == 'beta' || channel == 'stable') { + globals.printTrace('Skipping request to fetchTags - on well known channel $channel.'); + } else { +@@ -739,7 +739,7 @@ class GitTagVersion { + } + // find all tags attached to the given [gitRef] + final List<String> tags = _runGit( +- 'git tag --points-at $gitRef', processUtils, workingDirectory).trim().split('\n'); ++ 'git --git-dir .git tag --points-at $gitRef', processUtils, workingDirectory).trim().split('\n'); + + // Check first for a stable tag + final RegExp stableTagPattern = RegExp(r'^\d+\.\d+\.\d+$'); +@@ -760,7 +760,7 @@ class GitTagVersion { + // recent tag and number of commits past. + return parse( + _runGit( +- 'git describe --match *.*.* --long --tags $gitRef', ++ 'git --git-dir .git describe --match *.*.* --long --tags $gitRef', + processUtils, + workingDirectory, + ) diff --git a/pkgs/development/compilers/flutter/patches/move-cache.patch b/pkgs/development/compilers/flutter/patches/move-cache.patch index a81d2def242..5cb7c71e9bd 100644 --- a/pkgs/development/compilers/flutter/patches/move-cache.patch +++ b/pkgs/development/compilers/flutter/patches/move-cache.patch @@ -70,3 +70,133 @@ index defc86cc20..7fdf14d112 100644 } } +diff --git a/packages/flutter_tools/lib/src/artifacts.dart b/packages/flutter_tools/lib/src/artifacts.dart +index 2aac9686e8..32c4b98b88 100644 +--- a/packages/flutter_tools/lib/src/artifacts.dart ++++ b/packages/flutter_tools/lib/src/artifacts.dart +@@ -346,10 +346,10 @@ class CachedArtifacts implements Artifacts { + ) { + switch (artifact) { + case HostArtifact.engineDartSdkPath: +- final String path = _dartSdkPath(_cache); ++ final String path = _dartSdkPath(_fileSystem); + return _fileSystem.directory(path); + case HostArtifact.engineDartBinary: +- final String path = _fileSystem.path.join(_dartSdkPath(_cache), 'bin', _hostArtifactToFileName(artifact, _platform.isWindows)); ++ final String path = _fileSystem.path.join(_dartSdkPath(_fileSystem), 'bin', _hostArtifactToFileName(artifact, _platform.isWindows)); + return _fileSystem.file(path); + case HostArtifact.flutterWebSdk: + final String path = _getFlutterWebSdkPath(); +@@ -398,7 +398,7 @@ class CachedArtifacts implements Artifacts { + case HostArtifact.dart2jsSnapshot: + case HostArtifact.dartdevcSnapshot: + case HostArtifact.kernelWorkerSnapshot: +- final String path = _fileSystem.path.join(_dartSdkPath(_cache), 'bin', 'snapshots', _hostArtifactToFileName(artifact, _platform.isWindows)); ++ final String path = _fileSystem.path.join(_dartSdkPath(_fileSystem), 'bin', 'snapshots', _hostArtifactToFileName(artifact, _platform.isWindows)); + return _fileSystem.file(path); + case HostArtifact.iosDeploy: + final String artifactFileName = _hostArtifactToFileName(artifact, _platform.isWindows); +@@ -461,11 +461,13 @@ class CachedArtifacts implements Artifacts { + String _getAndroidArtifactPath(Artifact artifact, TargetPlatform platform, BuildMode mode) { + final String engineDir = _getEngineArtifactsPath(platform, mode)!; + switch (artifact) { ++ case Artifact.frontendServerSnapshotForEngineDartSdk: ++ assert(mode != BuildMode.debug, 'Artifact $artifact only available in non-debug mode.'); ++ return _fileSystem.path.join(engineDir, _artifactToFileName(artifact)); + case Artifact.genSnapshot: + assert(mode != BuildMode.debug, 'Artifact $artifact only available in non-debug mode.'); + final String hostPlatform = getNameForHostPlatform(getCurrentHostPlatform()); + return _fileSystem.path.join(engineDir, hostPlatform, _artifactToFileName(artifact)); +- case Artifact.frontendServerSnapshotForEngineDartSdk: + case Artifact.constFinder: + case Artifact.flutterFramework: + case Artifact.flutterMacOSFramework: +@@ -497,13 +499,13 @@ class CachedArtifacts implements Artifacts { + switch (artifact) { + case Artifact.genSnapshot: + case Artifact.flutterXcframework: ++ case Artifact.frontendServerSnapshotForEngineDartSdk: + final String artifactFileName = _artifactToFileName(artifact)!; + final String engineDir = _getEngineArtifactsPath(platform, mode)!; + return _fileSystem.path.join(engineDir, artifactFileName); + case Artifact.flutterFramework: + final String engineDir = _getEngineArtifactsPath(platform, mode)!; + return _getIosEngineArtifactPath(engineDir, environmentType, _fileSystem); +- case Artifact.frontendServerSnapshotForEngineDartSdk: + case Artifact.constFinder: + case Artifact.flutterMacOSFramework: + case Artifact.flutterMacOSPodspec: +@@ -594,14 +596,10 @@ class CachedArtifacts implements Artifacts { + // For script snapshots any gen_snapshot binary will do. Returning gen_snapshot for + // android_arm in profile mode because it is available on all supported host platforms. + return _getAndroidArtifactPath(artifact, TargetPlatform.android_arm, BuildMode.profile); +- case Artifact.frontendServerSnapshotForEngineDartSdk: +- return _fileSystem.path.join( +- _dartSdkPath(_cache), 'bin', 'snapshots', +- _artifactToFileName(artifact), +- ); + case Artifact.flutterTester: + case Artifact.vmSnapshotData: + case Artifact.isolateSnapshotData: ++ case Artifact.frontendServerSnapshotForEngineDartSdk: + case Artifact.icuData: + final String engineArtifactsPath = _cache.getArtifactDirectory('engine').path; + final String platformDirName = _enginePlatformDirectoryName(platform); +@@ -797,7 +795,7 @@ class CachedLocalEngineArtifacts implements LocalEngineArtifacts { + final String path = _fileSystem.path.join(_hostEngineOutPath, 'dart-sdk', 'bin', 'snapshots', _hostArtifactToFileName(artifact, _platform.isWindows)); + return _fileSystem.file(path); + case HostArtifact.dartdevcSnapshot: +- final String path = _fileSystem.path.join(_dartSdkPath(_cache), 'bin', 'snapshots', _hostArtifactToFileName(artifact, _platform.isWindows)); ++ final String path = _fileSystem.path.join(_dartSdkPath(_fileSystem), 'bin', 'snapshots', _hostArtifactToFileName(artifact, _platform.isWindows)); + return _fileSystem.file(path); + case HostArtifact.kernelWorkerSnapshot: + final String path = _fileSystem.path.join(_hostEngineOutPath, 'dart-sdk', 'bin', 'snapshots', _hostArtifactToFileName(artifact, _platform.isWindows)); +@@ -922,9 +920,7 @@ class CachedLocalEngineArtifacts implements LocalEngineArtifacts { + case Artifact.windowsUwpCppClientWrapper: + return _fileSystem.path.join(_hostEngineOutPath, artifactFileName); + case Artifact.frontendServerSnapshotForEngineDartSdk: +- return _fileSystem.path.join( +- _hostEngineOutPath, 'dart-sdk', 'bin', 'snapshots', artifactFileName, +- ); ++ return _fileSystem.path.join(_hostEngineOutPath, 'gen', artifactFileName); + case Artifact.uwptool: + return _fileSystem.path.join(_hostEngineOutPath, artifactFileName); + } +@@ -1034,8 +1030,8 @@ class OverrideArtifacts implements Artifacts { + } + + /// Locate the Dart SDK. +-String _dartSdkPath(Cache cache) { +- return cache.getRoot().childDirectory('dart-sdk').path; ++String _dartSdkPath(FileSystem fileSystem) { ++ return fileSystem.path.join(Cache.flutterRoot!, 'bin', 'cache', 'dart-sdk'); + } + + class _TestArtifacts implements Artifacts { +diff --git a/packages/flutter_tools/test/general.shard/artifacts_test.dart b/packages/flutter_tools/test/general.shard/artifacts_test.dart +index d906511a15..adfdd4bb42 100644 +--- a/packages/flutter_tools/test/general.shard/artifacts_test.dart ++++ b/packages/flutter_tools/test/general.shard/artifacts_test.dart +@@ -153,10 +153,6 @@ void main() { + artifacts.getArtifactPath(Artifact.windowsUwpDesktopPath, platform: TargetPlatform.windows_uwp_x64, mode: BuildMode.release), + fileSystem.path.join('root', 'bin', 'cache', 'artifacts', 'engine', 'windows-uwp-x64-release'), + ); +- expect( +- artifacts.getArtifactPath(Artifact.frontendServerSnapshotForEngineDartSdk), +- fileSystem.path.join('root', 'bin', 'cache', 'dart-sdk', 'bin', 'snapshots', 'frontend_server.dart.snapshot') +- ); + }); + + testWithoutContext('precompiled web artifact paths are correct', () { +@@ -322,11 +318,6 @@ void main() { + artifacts.getHostArtifact(HostArtifact.engineDartSdkPath).path, + fileSystem.path.join('/out', 'host_debug_unopt', 'dart-sdk'), + ); +- expect( +- artifacts.getArtifactPath(Artifact.frontendServerSnapshotForEngineDartSdk), +- fileSystem.path.join('/out', 'host_debug_unopt', 'dart-sdk', 'bin', +- 'snapshots', 'frontend_server.dart.snapshot') +- ); + }); + + testWithoutContext('getEngineType', () { diff --git a/pkgs/development/dhall-modules/dhall-cloudformation.nix b/pkgs/development/dhall-modules/dhall-cloudformation.nix new file mode 100644 index 00000000000..e99fbc3b317 --- /dev/null +++ b/pkgs/development/dhall-modules/dhall-cloudformation.nix @@ -0,0 +1,14 @@ +{ buildDhallGitHubPackage, Prelude }: + +let + version = "0.9.64"; + +in buildDhallGitHubPackage { + name = "cloudformation"; + owner = "jcouyang"; + repo = "dhall-aws-cloudformation"; + rev = version; + sha256 = "sha256-EDbMKHORYQOKoSrbErkUnsadDiYfK1ULbFhz3D5AcXc="; + file = "package.dhall"; + dependencies = [ Prelude ]; +} diff --git a/pkgs/development/libraries/yajl/default.nix b/pkgs/development/libraries/yajl/default.nix index 645329f83cd..022284b0b13 100644 --- a/pkgs/development/libraries/yajl/default.nix +++ b/pkgs/development/libraries/yajl/default.nix @@ -7,7 +7,7 @@ stdenv.mkDerivation rec { src = fetchFromGitHub { owner = "lloyd"; repo = "yajl"; - rev = version; + rev = "refs/tags/${version}"; sha256 = "00yj06drb6izcxfxfqlhimlrb089kka0w0x8k27pyzyiq7qzcvml"; }; diff --git a/pkgs/development/python-modules/django-statici18n/default.nix b/pkgs/development/python-modules/django-statici18n/default.nix index db7d36c8993..8fcfa070d2d 100644 --- a/pkgs/development/python-modules/django-statici18n/default.nix +++ b/pkgs/development/python-modules/django-statici18n/default.nix @@ -1,19 +1,39 @@ -{ lib, buildPythonPackage, fetchPypi, django, django-appconf }: +{ lib +, buildPythonPackage +, fetchFromGitHub +, django +, django-appconf +, pytest-django +, pytestCheckHook +}: buildPythonPackage rec { pname = "django-statici18n"; - version = "2.2.0"; + version = "2.3.1"; + format = "setuptools"; - src = fetchPypi { - inherit pname version; - sha256 = "dbcdac190d93e0b4eabcab8875c8eb68795eceb442f926843ec5cbe1432fe628"; + src = fetchFromGitHub { + owner = "zyegfryed"; + repo = pname; + rev = "refs/tags/v${version}"; + hash = "sha256-2fFJJNdF0jspS7djDL8sToPTetzNR6pfNp5ohCNa30I="; }; - propagatedBuildInputs = [ django django-appconf ]; + propagatedBuildInputs = [ + django + django-appconf + ]; - # pypi package does not contains test harness - # source tarball requires setting up a config - doCheck = false; + pythonImportsCheck = [ + "statici18n" + ]; + + DJANGO_SETTINGS_MODULE = "tests.test_project.project.settings"; + + checkInputs = [ + pytest-django + pytestCheckHook + ]; meta = with lib; { description = "Helper for generating Javascript catalog to static files"; diff --git a/pkgs/development/tools/jsonnet-bundler/default.nix b/pkgs/development/tools/jsonnet-bundler/default.nix index 813c936cba3..e627c985050 100644 --- a/pkgs/development/tools/jsonnet-bundler/default.nix +++ b/pkgs/development/tools/jsonnet-bundler/default.nix @@ -2,19 +2,17 @@ buildGoModule rec { pname = "jsonnet-bundler"; - version = "0.4.0"; + version = "0.5.1"; src = fetchFromGitHub { owner = "jsonnet-bundler"; repo = "jsonnet-bundler"; rev = "v${version}"; - sha256 = "0pk6nf8r0wy7lnsnzyjd3vgq4b2kb3zl0xxn01ahpaqgmwpzajlk"; + sha256 = "sha256-vjb5wEiJw48s7FUarpA94ZauFC7iEgRDAkRTwRIZ8pA="; }; vendorSha256 = null; - subPackages = [ "cmd/jb" ]; - ldflags = [ "-s" "-w" "-X main.Version=${version}" ]; meta = with lib; { diff --git a/pkgs/development/tools/karate/default.nix b/pkgs/development/tools/karate/default.nix new file mode 100644 index 00000000000..2dd40967401 --- /dev/null +++ b/pkgs/development/tools/karate/default.nix @@ -0,0 +1,37 @@ +{ lib, stdenvNoCC, fetchurl, jre, makeWrapper }: + +stdenvNoCC.mkDerivation rec { + pname = "karate"; + version = "1.2.0"; + + src = fetchurl { + url = "https://github.com/karatelabs/karate/releases/download/v${version}/karate-${version}.jar"; + sha256 = "69b9ba1cd9563cbad802471e7250dd46828df7ad176706577389dfe6e604e5ec"; + }; + dontUnpack = true; + + nativeBuildInputs = [ makeWrapper ]; + + installPhase = '' + runHook preInstall + makeWrapper ${jre}/bin/java $out/bin/karate --add-flags "-jar $src" + runHook postInstall + ''; + + meta = with lib; { + description = "API Test Automation Made Simple"; + longDescription = '' + Karate is the only open-source tool to combine API + test-automation, mocks, performance-testing and even UI + automation into a single, unified framework. The BDD syntax + popularized by Cucumber is language-neutral, and easy for even + non-programmers. Assertions and HTML reports are built-in, and + you can run tests in parallel for speed. + ''; + homepage = "https://github.com/karatelabs/karate"; + changelog = "https://github.com/karatelabs/karate/releases/tag/v${version}"; + license = licenses.mit; + maintainers = [ maintainers.kephasp ]; + platforms = jre.meta.platforms; + }; +} diff --git a/pkgs/development/tools/oq/default.nix b/pkgs/development/tools/oq/default.nix index d8fcbdf424b..fbbfd861a52 100644 --- a/pkgs/development/tools/oq/default.nix +++ b/pkgs/development/tools/oq/default.nix @@ -8,13 +8,13 @@ crystal.buildCrystalPackage rec { pname = "oq"; - version = "1.3.2"; + version = "1.3.3"; src = fetchFromGitHub { owner = "Blacksmoke16"; repo = pname; rev = "v${version}"; - sha256 = "sha256-iGKyP3NrAnR3ISOBq+YR/vwarlnIY4u4ZwdqSBnBC7U="; + sha256 = "sha256-1IdOyfoGAsZ5bOEJoj9Ol3sxsiq18hfniqW1ATBEGc8="; }; nativeBuildInputs = [ makeWrapper ]; diff --git a/pkgs/development/tools/pgloader/default.nix b/pkgs/development/tools/pgloader/default.nix index 94bdb69c156..339009a50eb 100644 --- a/pkgs/development/tools/pgloader/default.nix +++ b/pkgs/development/tools/pgloader/default.nix @@ -1,11 +1,11 @@ { lib, stdenv, fetchurl, makeWrapper, sbcl_2_2_6, sqlite, freetds, libzip, curl, git, cacert, openssl }: stdenv.mkDerivation rec { pname = "pgloader"; - version = "3.6.6"; + version = "3.6.7"; src = fetchurl { - url = "https://github.com/dimitri/pgloader/releases/download/v3.6.6/pgloader-bundle-3.6.6.tgz"; - sha256 = "sha256-GDdWXY/O2xMsaIhaQIk+w8WQt9qevO8cDlgLGfNTVE0="; + url = "https://github.com/dimitri/pgloader/releases/download/v3.6.7/pgloader-bundle-3.6.7.tgz"; + sha256 = "sha256-JfF2el0vJjDAyB2l3H4dLgEIgnmXlrCUVYKDpj2jM1Y="; }; nativeBuildInputs = [ git makeWrapper ]; diff --git a/pkgs/development/tools/sourcetrail/default.nix b/pkgs/development/tools/sourcetrail/default.nix deleted file mode 100644 index 6ba4eecac48..00000000000 --- a/pkgs/development/tools/sourcetrail/default.nix +++ /dev/null @@ -1,275 +0,0 @@ -{ lib, stdenv, fetchFromGitHub, callPackage, writeScript, fetchpatch, cmake -, wrapQtAppsHook, qt5, boost, llvmPackages, gcc, jdk, maven, pythonPackages -, coreutils, which, desktop-file-utils, shared-mime-info, imagemagick, libicns -}: - -let - # TODO: remove when version incompatibility issue with python3Packages.jedi is - # resolved - parso = pythonPackages.callPackage ./parso.nix { }; - jedi = pythonPackages.callPackage ./jedi.nix { inherit parso; }; - - pythonIndexer = - pythonPackages.callPackage ./python.nix { inherit jedi parso; }; - javaIndexer = callPackage ./java.nix { }; - - appPrefixDir = if stdenv.isDarwin then - "$out/Applications/Sourcetrail.app/Contents" - else - "$out/opt/sourcetrail"; - appBinDir = - if stdenv.isDarwin then "${appPrefixDir}/MacOS" else "${appPrefixDir}/bin"; - appResourceDir = if stdenv.isDarwin then - "${appPrefixDir}/Resources" - else - "${appPrefixDir}/share"; - - # Upstream script: - # https://github.com/CoatiSoftware/Sourcetrail/blob/master/script/update_java_indexer.sh - installJavaIndexer = writeScript "update_java_indexer.sh" '' - #!${stdenv.shell} - - cd "$(dirname "$0")/.." - dst="${appResourceDir}/data/java/lib" - - mkdir -p "$dst" - cp "${javaIndexer}/target/java-indexer-1.0.jar" "$dst/java-indexer.jar" - cp -r java_indexer/lib/*.jar "$dst" - ''; - - # Upstream script: - # https://github.com/CoatiSoftware/Sourcetrail/blob/master/script/download_python_indexer.sh - installPythonIndexer = writeScript "download_python_indexer.sh" '' - #!${stdenv.shell} - - mkdir -p ${appResourceDir}/data - ln -s "${pythonIndexer}/bin" "${appResourceDir}/data/python" - ''; -in stdenv.mkDerivation rec { - pname = "sourcetrail"; - # NOTE: skip 2020.4.35 https://github.com/CoatiSoftware/Sourcetrail/pull/1136 - version = "2020.2.43"; - - src = fetchFromGitHub { - owner = "CoatiSoftware"; - repo = "Sourcetrail"; - rev = version; - sha256 = "0jp9y86xzkcxikc1cn4f6gqgg6zdssck08677ldagw25p1zadvzw"; - }; - - patches = let - url = commit: - "https://github.com/CoatiSoftware/Sourcetrail/commit/${commit}.patch"; - in [ - ./disable-updates.patch - ./disable-failing-tests.patch # FIXME: 5 test cases failing due to sandbox - # TODO: remove on next release - (fetchpatch { - name = "fix-filecopy.patch"; - url = url "d079d1787c9e5cadcf41a003666dc0746cc1cda0"; - sha256 = "0mixy2a4s16kv2q89k7y4dv21wnv2zd86i4gdwn3xz977y8hf92b"; - }) - (fetchpatch { - name = "fix-broken-test.patch"; - url = url "85329174bac8a301733100dc4540258f977e2c5a"; - sha256 = "17l4417sbmkrgr6v3fbazlmkzl9774zrpjv2n9zwfrz52y30f7b9"; - }) - ]; - - nativeBuildInputs = [ - cmake - jdk - wrapQtAppsHook - desktop-file-utils - imagemagick - javaIndexer # the resulting jar file is copied by our install script - ] ++ lib.optional (stdenv.isDarwin) libicns - ++ lib.optionals doCheck testBinPath; - buildInputs = [ boost pythonIndexer shared-mime-info ] - ++ (with qt5; [ qtbase qtsvg ]) ++ (with llvmPackages; [ libclang llvm ]); - binPath = [ gcc jdk.jre maven which ]; - testBinPath = binPath ++ [ coreutils ]; - - cmakeFlags = [ - "-DBoost_USE_STATIC_LIBS=OFF" - "-DBUILD_CXX_LANGUAGE_PACKAGE=ON" - "-DBUILD_JAVA_LANGUAGE_PACKAGE=ON" - "-DBUILD_PYTHON_LANGUAGE_PACKAGE=ON" - ] ++ lib.optional stdenv.isLinux - "-DCMAKE_PREFIX_PATH=${llvmPackages.clang-unwrapped}" - ++ lib.optional stdenv.isDarwin - "-DClang_DIR=${llvmPackages.clang-unwrapped}"; - - postPatch = let - major = lib.versions.major version; - minor = lib.versions.minor version; - patch = lib.versions.patch version; - in '' - # Upstream script obtains it's version from git: - # https://github.com/CoatiSoftware/Sourcetrail/blob/master/cmake/version.cmake - cat > cmake/version.cmake <<EOF - set(GIT_BRANCH "") - set(GIT_COMMIT_HASH "") - set(GIT_VERSION_NUMBER "") - set(VERSION_YEAR "${major}") - set(VERSION_MINOR "${minor}") - set(VERSION_COMMIT "${patch}") - set(BUILD_TYPE "Release") - set(VERSION_STRING "${major}.${minor}.${patch}") - EOF - - # Sourcetrail attempts to copy clang headers from the LLVM store path - substituteInPlace CMakeLists.txt \ - --replace "\''${LLVM_BINARY_DIR}" '${lib.getLib llvmPackages.clang-unwrapped}' - - patchShebangs script - ln -sf ${installJavaIndexer} script/update_java_indexer.sh - ln -sf ${installPythonIndexer} script/download_python_indexer.sh - ''; - - # Directory layout for Linux: - # - # Sourcetrail doesn't use the usual cmake install() commands and instead uses - # its own bash script for packaging. Since we're not able to reuse the script, - # we'll have to roll our own in nixpkgs. - # - # Sourcetrail currently assumes one of the following two layouts for the - # placement of its files: - # - # AppImage Layout Traditional Layout - # ├── bin/ ├── sourcetrail* - # │ └── sourcetrail* └── data/ - # └── share/ - # └── data/ sourcetrail: application executable - # data: contains assets exlusive to Sourcetrail - # - # The AppImage layout is the one currently used by the upstream project for - # packaging its Linux port. We can't use this layout as-is for nixpkgs, - # because Sourcetrail treating $out/share/data as its own might lead to - # conflicts with other packages when linked into a Nix profile. - # - # On the other hand, the traditional layout isn't used by the upstream project - # anymore so there's a risk that it might become unusable at any time in the - # future. Since it's hard to detect these problems at build time, it's not a - # good idea to use this layout for packaging in nixpkgs. - # - # Considering the problems with the above layouts, we go with the third - # option, a slight variation of the AppImage layout: - # - # nixpkgs - # ├── bin/ - # │ └── sourcetrail@ (symlink to opt/sourcetrail/bin/sourcetrail) - # └── opt/sourcetrail/ - # ├── bin/ - # │ └── sourcetrail* - # └── share/ - # └── data/ - # - # Upstream install script: - # https://github.com/CoatiSoftware/Sourcetrail/blob/master/setup/Linux/createPackages.sh - installPhase = '' - runHook preInstall - - mkdir -p ${appResourceDir} - cp -R ../bin/app/data ${appResourceDir} - cp -R ../bin/app/user/projects ${appResourceDir}/data/fallback - rm -r ${appResourceDir}/data/install ${appResourceDir}/data/*_template.xml - - mkdir -p "${appBinDir}" - cp app/Sourcetrail ${appBinDir}/sourcetrail - cp app/sourcetrail_indexer ${appBinDir}/sourcetrail_indexer - wrapQtApp ${appBinDir}/sourcetrail \ - --prefix PATH : ${lib.makeBinPath binPath} - - mkdir -p $out/bin - '' + lib.optionalString (stdenv.isLinux) '' - ln -sf ${appBinDir}/sourcetrail $out/bin/sourcetrail - - desktop-file-install --dir=$out/share/applications \ - --set-key Exec --set-value ${appBinDir}/sourcetrail \ - ../setup/Linux/data/sourcetrail.desktop - - mkdir -p $out/share/mime/packages - cp ../setup/Linux/data/sourcetrail-mime.xml $out/share/mime/packages/ - - for size in 48 64 128 256 512; do - mkdir -p $out/share/icons/hicolor/''${size}x''${size}/apps/ - convert ${appResourceDir}/data/gui/icon/logo_1024_1024.png \ - -resize ''${size}x''${size} \ - $out/share/icons/hicolor/''${size}x''${size}/apps/sourcetrail.png - done - '' + lib.optionalString (stdenv.isDarwin) '' - # change case (some people *might* choose a case sensitive Nix store) - mv ${appBinDir}/sourcetrail{,.tmp} - mv ${appBinDir}/{sourcetrail.tmp,Sourcetrail} - mv ${appBinDir}/sourcetrail_indexer ${appResourceDir}/Sourcetrail_indexer - - ln -sf ${appBinDir}/Sourcetrail $out/bin/sourcetrail - - cp app/bundle_info.plist ${appPrefixDir}/Info.plist - - mkdir -p ${appResourceDir}/icon.iconset - for size in 16 32 128 256 512; do - convert ${appResourceDir}/data/gui/icon/logo_1024_1024.png \ - -resize ''${size}x''${size} \ - ${appResourceDir}/icon.iconset/icon_''${size}x''${size}.png - convert ${appResourceDir}/data/gui/icon/logo_1024_1024.png \ - -resize $(( 2 * size ))x$(( 2 * size )) \ - ${appResourceDir}/icon.iconset/icon_''${size}x''${size}@2x.png - done - png2icns ${appResourceDir}/icon.icns \ - ${appResourceDir}/icon.iconset/icon_{16x16,32x32,128x128,256x256,512x512,512x512@2x}.png - - mkdir -p ${appResourceDir}/project.iconset - for size in 16 32 64 128 256 512; do - convert ${appResourceDir}/data/gui/icon/project_256_256.png \ - -resize ''${size}x''${size} \ - ${appResourceDir}/project.iconset/icon_''${size}x''${size}.png - convert ${appResourceDir}/data/gui/icon/project_256_256.png \ - -resize $(( 2 * size ))x$(( 2 * size )) \ - ${appResourceDir}/project.iconset/icon_''${size}x''${size}@2x.png - done - png2icns ${appResourceDir}/project.icns \ - ${appResourceDir}/project.iconset/icon_{16x16,32x32,128x128,256x256,512x512,512x512@2x}.png - '' + '' - runHook postInstall - ''; - - checkPhase = '' - runHook preCheck - - rm -rf ../bin/app/data/{python,java/lib} - ln -s $out/opt/sourcetrail/share/data/python ../bin/app/data/python - ln -s $out/opt/sourcetrail/share/data/java/lib ../bin/app/data/java/lib - - pushd test - # shorten PATH to prevent build failures - wrapQtApp ./Sourcetrail_test \ - --set PATH "" \ - --prefix PATH : ${lib.makeBinPath testBinPath} \ - --set MAVEN_OPTS "-Dmaven.repo.local=$TMPDIR/m2repo" - ./Sourcetrail_test - popd - - rm ../bin/app/data/{python,java/lib} - - runHook postCheck - ''; - - # This has to be done manually in the installPhase because the actual binary - # lives in $out/opt/sourcetrail/bin, which isn't covered by wrapQtAppsHook - dontWrapQtApps = true; - - # FIXME: Some test cases are disabled in the patch phase. - # FIXME: Tests are disabled on some platforms because of faulty detection - # logic for libjvm.so. Should work with manual configuration. - doCheck = !stdenv.isDarwin && stdenv.isx86_64; - - meta = with lib; { - homepage = "https://www.sourcetrail.com"; - description = "A cross-platform source explorer for C/C++ and Java"; - platforms = platforms.all; - license = licenses.gpl3Plus; - maintainers = with maintainers; [ midchildan ]; - }; -} diff --git a/pkgs/development/tools/sourcetrail/disable-failing-tests.patch b/pkgs/development/tools/sourcetrail/disable-failing-tests.patch deleted file mode 100644 index 7903642ef58..00000000000 --- a/pkgs/development/tools/sourcetrail/disable-failing-tests.patch +++ /dev/null @@ -1,48 +0,0 @@ -diff --git a/src/test/SourceGroupTestSuite.cpp b/src/test/SourceGroupTestSuite.cpp -index b5c5562a..d56b83bb 100644 ---- a/src/test/SourceGroupTestSuite.cpp -+++ b/src/test/SourceGroupTestSuite.cpp -@@ -522,6 +522,7 @@ TEST_CASE("sourcegroup java gradle generates expected output") - - TEST_CASE("sourcegroup java maven generates expected output") - { -+ return; - std::vector<FilePath> mavenPaths = utility::getMavenExecutablePathDetector()->getPaths(); - - REQUIRE(!mavenPaths.empty()); -diff --git a/src/test/UtilityMavenTestSuite.cpp b/src/test/UtilityMavenTestSuite.cpp -index f48fe2b6..363ef64a 100644 ---- a/src/test/UtilityMavenTestSuite.cpp -+++ b/src/test/UtilityMavenTestSuite.cpp -@@ -17,6 +17,7 @@ TEST_CASE("maven path detector is working") - - TEST_CASE("maven wrapper detects source directories of simple projects") - { -+ return; - std::shared_ptr<PathDetector> mavenPathDetector = utility::getMavenExecutablePathDetector(); - REQUIRE(!mavenPathDetector->getPaths().empty()); - -@@ -41,6 +42,7 @@ TEST_CASE("maven wrapper detects source directories of simple projects") - - TEST_CASE("maven wrapper detects source and test directories of simple projects") - { -+ return; - std::shared_ptr<PathDetector> mavenPathDetector = utility::getMavenExecutablePathDetector(); - REQUIRE(!mavenPathDetector->getPaths().empty()); - -@@ -65,6 +67,7 @@ TEST_CASE("maven wrapper detects source and test directories of simple projects" - - TEST_CASE("maven wrapper detects source directories of nested modules") - { -+ return; - std::shared_ptr<PathDetector> mavenPathDetector = utility::getMavenExecutablePathDetector(); - REQUIRE(!mavenPathDetector->getPaths().empty()); - -@@ -101,6 +104,7 @@ TEST_CASE("maven wrapper detects source directories of nested modules") - - TEST_CASE("maven wrapper detects source and test directories of nested modules") - { -+ return; - std::shared_ptr<PathDetector> mavenPathDetector = utility::getMavenExecutablePathDetector(); - REQUIRE(!mavenPathDetector->getPaths().empty()); - diff --git a/pkgs/development/tools/sourcetrail/disable-updates.patch b/pkgs/development/tools/sourcetrail/disable-updates.patch deleted file mode 100644 index 112af857c59..00000000000 --- a/pkgs/development/tools/sourcetrail/disable-updates.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/src/lib/settings/ApplicationSettings.cpp b/src/lib/settings/ApplicationSettings.cpp -index 1be13ccd..db6098e1 100644 ---- a/src/lib/settings/ApplicationSettings.cpp -+++ b/src/lib/settings/ApplicationSettings.cpp -@@ -593,7 +593,7 @@ void ApplicationSettings::setUserToken(std::string token) - - bool ApplicationSettings::getAutomaticUpdateCheck() const - { -- return getValue<bool>("user/update_check/automatic", true); -+ return false; - } - - void ApplicationSettings::setAutomaticUpdateCheck(bool automaticUpdates) diff --git a/pkgs/development/tools/sourcetrail/java.nix b/pkgs/development/tools/sourcetrail/java.nix deleted file mode 100644 index 7e5bd75f84a..00000000000 --- a/pkgs/development/tools/sourcetrail/java.nix +++ /dev/null @@ -1,28 +0,0 @@ -{ lib, pkgs, javaPackages }: - -let - javaIndexer = javaPackages.mavenbuild { - name = "sourcetrail-java-indexer-${pkgs.sourcetrail.version}"; - src = pkgs.sourcetrail.src; - m2Path = "com/sourcetrail/java-indexer"; - - # This doesn't include all required dependencies. We still rely on binary - # copies of maven packages included in the source repo for building. - mavenDeps = with javaPackages; [ - mavenCompiler_3_2 - plexusCompilerApi_2_4 - plexusCompilerJavac_2_4 - plexusCompilerManager_2_4 - ]; - - meta = { - description = "Java indexer for Sourcetrail"; - sourceProvenance = with lib.sourceTypes; [ binaryBytecode ]; - }; - }; -in -javaIndexer.overrideAttrs (drv: { - postUnpack = '' - export sourceRoot=''${sourceRoot}/java_indexer - ''; -}) diff --git a/pkgs/development/tools/sourcetrail/jedi.nix b/pkgs/development/tools/sourcetrail/jedi.nix deleted file mode 100644 index 93650c9027a..00000000000 --- a/pkgs/development/tools/sourcetrail/jedi.nix +++ /dev/null @@ -1,36 +0,0 @@ -# Taken from a past commit of nixpkgs - -{ lib, buildPythonPackage, fetchPypi, pytest, glibcLocales, tox, pytest-cov, parso }: - -buildPythonPackage rec { - pname = "jedi"; - - # TODO: Remove this package when version incompatibility issue with - # python3Packages.jedi is resolved. - # - # Upstream requirements: - # https://github.com/CoatiSoftware/SourcetrailPythonIndexer#requirements - version = "0.17.2"; - - src = fetchPypi { - inherit pname version; - sha256 = "86ed7d9b750603e4ba582ea8edc678657fb4007894a12bcf6f4bb97892f31d20"; - }; - - checkInputs = [ pytest glibcLocales tox pytest-cov ]; - - propagatedBuildInputs = [ parso ]; - - checkPhase = '' - LC_ALL="en_US.UTF-8" py.test test - ''; - - # tox required for tests: https://github.com/davidhalter/jedi/issues/808 - doCheck = false; - - meta = with lib; { - homepage = "https://github.com/davidhalter/jedi"; - description = "An autocompletion tool for Python that can be used for text editors"; - license = licenses.lgpl3Plus; - }; -} diff --git a/pkgs/development/tools/sourcetrail/parso.nix b/pkgs/development/tools/sourcetrail/parso.nix deleted file mode 100644 index bd5d5b86ac5..00000000000 --- a/pkgs/development/tools/sourcetrail/parso.nix +++ /dev/null @@ -1,29 +0,0 @@ -# Taken from a past commit of nixpkgs - -{ lib -, buildPythonPackage -, fetchPypi -, pytest -}: - -buildPythonPackage rec { - pname = "parso"; - - # TODO: Remove along with ./jedi.nix when version compatiblity issue is - # resolved. - version = "0.7.0"; - - src = fetchPypi { - inherit pname version; - sha256 = "908e9fae2144a076d72ae4e25539143d40b8e3eafbaeae03c1bfe226f4cdf12c"; - }; - - checkInputs = [ pytest ]; - - meta = { - description = "A Python Parser"; - homepage = "https://github.com/davidhalter/parso"; - license = lib.licenses.mit; - }; - -} diff --git a/pkgs/development/tools/sourcetrail/python.nix b/pkgs/development/tools/sourcetrail/python.nix deleted file mode 100644 index f9ea9646320..00000000000 --- a/pkgs/development/tools/sourcetrail/python.nix +++ /dev/null @@ -1,72 +0,0 @@ -{ stdenv, lib, fetchFromGitHub, wrapPython, python, jedi, parso, cmake, swig }: - -stdenv.mkDerivation rec { - pname = "SourcetrailPythonIndexer"; - version = "v1_db25_p5"; - - src = fetchFromGitHub { - owner = "CoatiSoftware"; - repo = pname; - rev = version; - sha256 = "01jaigxigq6dvfwq018gn9qw7i6p4jm0y71lqzschfv9vwf6ga45"; - fetchSubmodules = true; - }; - - nativeBuildInputs = [ wrapPython cmake swig ]; - buildInputs = [ python ]; - pythonPath = [ jedi parso ]; - - dontUseCmakeConfigure = true; - cmakeFlags = [ - "-DBUILD_BINDINGS_PYTHON=1" - "-DPYTHON_VERSION=${lib.versions.majorMinor python.version}" - ]; - - buildPhase = '' - pushd SourcetrailDB - cmake -Bbuild $cmakeFlags . - pushd build - make -j $NIX_BUILD_CORES - popd - popd - '' + lib.optionalString stdenv.isDarwin '' - pushd SourcetrailDB/build/bindings_python - cp _sourcetraildb.dylib _sourcetraildb.so - popd - ''; - - checkPhase = '' - buildPythonPath "$pythonPath" - - # FIXME: some tests are failing - # PYTHONPATH="$program_PYTHONPATH:SourcetrailDB/build/bindings_python" \ - # ${python}/bin/python test.py - PYTHONPATH="$program_PYTHONPATH:SourcetrailDB/build/bindings_python" \ - ${python}/bin/python test_shallow.py - ''; - - installPhase = '' - shopt -s extglob - mkdir -p $out/{bin,libexec} - - cp !(run).py $out/libexec # copy *.py excluding run.py (needs extglob) - cat <(echo '#!/usr/bin/env python') run.py > $out/libexec/run.py - chmod +x $out/libexec/run.py - ln -s $out/libexec/run.py $out/bin/SourcetrailPythonIndexer - - pushd SourcetrailDB/build/bindings_python - cp sourcetraildb.py $out/libexec - cp _sourcetraildb.so $out/libexec/_sourcetraildb.so - popd - - wrapPythonProgramsIn "$out/libexec" "$pythonPath" - ''; - - doCheck = true; - - meta = with lib; { - description = "Python indexer for Sourcetrail"; - homepage = "https://github.com/CoatiSoftware/SourcetrailPythonIndexer"; - license = licenses.gpl3; - }; -} diff --git a/pkgs/development/tools/upbound/default.nix b/pkgs/development/tools/upbound/default.nix new file mode 100644 index 00000000000..e1ff9841353 --- /dev/null +++ b/pkgs/development/tools/upbound/default.nix @@ -0,0 +1,32 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "upbound"; + version = "0.12.2"; + + src = fetchFromGitHub { + owner = pname; + repo = "up"; + rev = "v${version}"; + sha256 = "sha256-tbYUxqDtMIlHJ+bIE9PDDhPTSQKaZYObuRFSyRkh8+Y="; + }; + + vendorSha256 = "sha256-EeGNH/ka9Mt0vVtZfizXdTqf1f3H1aM5GITUyp+2FxM="; + + subPackages = [ "cmd/docker-credential-up" "cmd/up" ]; + + ldflags = [ + "-s" + "-w" + "-X github.com/upbound/up/internal/version.version=v${version}" + ]; + + meta = with lib; { + description = + "CLI for interacting with Upbound Cloud, Upbound Enterprise, and Universal Crossplane (UXP)"; + homepage = "https://upbound.io"; + license = licenses.asl20; + maintainers = with maintainers; [ lucperkins ]; + mainProgram = "up"; + }; +} diff --git a/pkgs/misc/jitsi-meet-prosody/default.nix b/pkgs/misc/jitsi-meet-prosody/default.nix index 66f2cdac3cc..ceafad682ec 100644 --- a/pkgs/misc/jitsi-meet-prosody/default.nix +++ b/pkgs/misc/jitsi-meet-prosody/default.nix @@ -2,10 +2,10 @@ stdenv.mkDerivation rec { pname = "jitsi-meet-prosody"; - version = "1.0.6260"; + version = "1.0.6447"; src = fetchurl { url = "https://download.jitsi.org/stable/${pname}_${version}-1_all.deb"; - sha256 = "ZUfyEYAU4YEYXBoM+tEZ6SAhqlNcsmxnKw8WEv0gy7M="; + sha256 = "wmZV0jynaaZPLazdYhaKl9l5zPjgn12omoMfwEMqxSA="; }; dontBuild = true; diff --git a/pkgs/os-specific/linux/firmware/firmware-updater/default.nix b/pkgs/os-specific/linux/firmware/firmware-updater/default.nix index 02b549dd9ea..fb9d3a9a36c 100644 --- a/pkgs/os-specific/linux/firmware/firmware-updater/default.nix +++ b/pkgs/os-specific/linux/firmware/firmware-updater/default.nix @@ -7,7 +7,7 @@ flutter.mkFlutterApp { pname = "firmware-updater"; version = "unstable"; - vendorHash = "sha256-L8am4vTx4KlMHUdIhrUsCxGc27vkolawS/9DyFCPOJQ="; + vendorHash = "sha256-3wVA9BLCnMijC0gOmskz+Hv7NQIGu/jhBDbWjmoq1Tc="; src = fetchFromGitHub { owner = "canonical"; diff --git a/pkgs/os-specific/linux/restool/default.nix b/pkgs/os-specific/linux/restool/default.nix index 83c7c93ffcd..add68522e7f 100644 --- a/pkgs/os-specific/linux/restool/default.nix +++ b/pkgs/os-specific/linux/restool/default.nix @@ -1,20 +1,23 @@ -{ stdenv, lib, fetchgit, bash, coreutils, dtc, file, gawk, gnugrep, gnused }: +{ stdenv, lib, fetchgit, bash, coreutils, dtc, file, gawk, gnugrep, gnused, pandoc, which }: stdenv.mkDerivation rec { pname = "restool"; - version = "20.12"; + version = "2.4"; src = fetchgit { url = "https://source.codeaurora.org/external/qoriq/qoriq-components/restool"; - rev = "LSDK-${version}"; - sha256 = "137xvvms3n4wwb5v2sv70vsib52s3s314306qa0mqpgxf9fb19zl"; + rev = "abd2f5b7181db9d03db9e6ccda0194923b73e9a2"; + sha256 = "sha256-ryTDyqSy39e8Omf7l8lK4mLWr8jccDhMVPldkVGSQVo="; }; - nativeBuildInputs = [ file ]; - buildInputs = [ bash coreutils dtc gawk gnugrep gnused ]; + nativeBuildInputs = [ file pandoc ]; + buildInputs = [ bash coreutils dtc gawk gnugrep gnused which ]; + enableParallelBuilding = true; makeFlags = [ - "prefix=$(out)" + "prefix=" + "bindir_completion=/share/bash-completion/completions" + "DESTDIR=$(out)" "VERSION=${version}" ]; diff --git a/pkgs/servers/dns/bind/default.nix b/pkgs/servers/dns/bind/default.nix index c5fab10b245..b8838b2bfcb 100644 --- a/pkgs/servers/dns/bind/default.nix +++ b/pkgs/servers/dns/bind/default.nix @@ -8,11 +8,11 @@ stdenv.mkDerivation rec { pname = "bind"; - version = "9.18.4"; + version = "9.18.5"; src = fetchurl { url = "https://downloads.isc.org/isc/bind9/${version}/${pname}-${version}.tar.xz"; - sha256 = "sha256-8neuUBWaAMMA65JqnF1RlTA4qTa9gkLWkT37bqxCdh0="; + sha256 = "sha256-DO4HjXTwvcTsN0Q1Amsl3niS8mVAoYsioC73KKEdyuc="; }; outputs = [ "out" "lib" "dev" "man" "dnsutils" "host" ]; diff --git a/pkgs/servers/jicofo/default.nix b/pkgs/servers/jicofo/default.nix index 916e72c90a3..2b30b6f63a0 100644 --- a/pkgs/servers/jicofo/default.nix +++ b/pkgs/servers/jicofo/default.nix @@ -2,10 +2,10 @@ let pname = "jicofo"; - version = "1.0-900"; + version = "1.0-911"; src = fetchurl { url = "https://download.jitsi.org/stable/${pname}_${version}-1_all.deb"; - sha256 = "tAuWhu1DdasOuLIz9/Ox1n1XcFWm5qnTVr6FpdKpwbE="; + sha256 = "YB66NYmonbVgKpzv2pyQv7r0hYKDeBAngxrE4yWPp0o="; }; in stdenv.mkDerivation { diff --git a/pkgs/servers/jitsi-videobridge/default.nix b/pkgs/servers/jitsi-videobridge/default.nix index 39629639ad8..53db8b7303a 100644 --- a/pkgs/servers/jitsi-videobridge/default.nix +++ b/pkgs/servers/jitsi-videobridge/default.nix @@ -2,10 +2,10 @@ let pname = "jitsi-videobridge2"; - version = "2.2-9-g8cded16e"; + version = "2.2-22-g42bc1b99"; src = fetchurl { url = "https://download.jitsi.org/stable/${pname}_${version}-1_all.deb"; - sha256 = "L9h+qYV/W2wPzycfDGC4AXpTl7wlulyt2KryA+Tb/YU="; + sha256 = "ZiIeD5NXHMurcoyVnD8RCGuOKRiUDU1AMH57A0s4tAs="; }; in stdenv.mkDerivation { diff --git a/pkgs/servers/jitsi-videobridge/update.sh b/pkgs/servers/jitsi-videobridge/update.sh index bee9c4aa6de..8646e657312 100755 --- a/pkgs/servers/jitsi-videobridge/update.sh +++ b/pkgs/servers/jitsi-videobridge/update.sh @@ -6,7 +6,7 @@ set -eu -o pipefail version="$(curl https://download.jitsi.org/stable/ | \ pup 'a[href] text{}' | \ awk -F'[_-]' '/jitsi-videobridge2/ {printf $3"-"$4"-"$5"\n"}' | \ - sort -u | \ + sort -Vu | \ tail -n 1)" update-source-version jitsi-videobridge "$version" diff --git a/pkgs/servers/web-apps/jitsi-meet/default.nix b/pkgs/servers/web-apps/jitsi-meet/default.nix index 579ffb1a677..962fb979cfc 100644 --- a/pkgs/servers/web-apps/jitsi-meet/default.nix +++ b/pkgs/servers/web-apps/jitsi-meet/default.nix @@ -2,11 +2,11 @@ stdenv.mkDerivation rec { pname = "jitsi-meet"; - version = "1.0.6260"; + version = "1.0.6447"; src = fetchurl { url = "https://download.jitsi.org/jitsi-meet/src/jitsi-meet-${version}.tar.bz2"; - sha256 = "Y1ELKdFdbnq20yUt4XoXmstJm8uI8EBGIFOvFWf+5Uw="; + sha256 = "5JEPKifti7qKx0lGk4qPJJlCX4QxMhBGJqTFYktoie8="; }; dontBuild = true; diff --git a/pkgs/shells/oil/default.nix b/pkgs/shells/oil/default.nix index 57b5d085c34..8702e83cae9 100644 --- a/pkgs/shells/oil/default.nix +++ b/pkgs/shells/oil/default.nix @@ -2,11 +2,11 @@ stdenv.mkDerivation rec { pname = "oil"; - version = "0.12.0"; + version = "0.12.3"; src = fetchurl { url = "https://www.oilshell.org/download/oil-${version}.tar.xz"; - hash = "sha256-1zwGfM17SWWIvQ19cSbIfiLRaq+Ee1r94GPJWJEPoP8="; + hash = "sha256-M8gklc9crdVkQk9vzxO4tG809O0uHOPvvq1l1tzoPt8="; }; postPatch = '' diff --git a/pkgs/shells/zsh/oh-my-zsh/default.nix b/pkgs/shells/zsh/oh-my-zsh/default.nix index 36f2b04eabc..9ce36876e57 100644 --- a/pkgs/shells/zsh/oh-my-zsh/default.nix +++ b/pkgs/shells/zsh/oh-my-zsh/default.nix @@ -5,15 +5,15 @@ , git, nix, nixfmt, jq, coreutils, gnused, curl, cacert, bash }: stdenv.mkDerivation rec { - version = "2022-07-26"; + version = "2022-08-10"; pname = "oh-my-zsh"; - rev = "bb6c14cdfd0b7d543d0d9c2e5f0c0a9409a82084"; + rev = "835a0a5d17765243cabee782acb5905a9aab33c3"; src = fetchFromGitHub { inherit rev; owner = "ohmyzsh"; repo = "ohmyzsh"; - sha256 = "jlQKnF5vZp7ARVXtV/WEnTIV0m5FwqTj83igDyMyTTQ="; + sha256 = "dPFoa5dgU5+A3wRJQShD42AkZ0n3mm3+6j4tzc7mucQ="; }; strictDeps = true; diff --git a/pkgs/tools/X11/caffeine-ng/default.nix b/pkgs/tools/X11/caffeine-ng/default.nix index 619bd55b6f4..5aab492c75e 100644 --- a/pkgs/tools/X11/caffeine-ng/default.nix +++ b/pkgs/tools/X11/caffeine-ng/default.nix @@ -45,7 +45,6 @@ in buildPythonApplication rec { buildInputs = [ libappindicator-gtk3 libnotify - gobject-introspection gtk3 ]; @@ -60,6 +59,8 @@ in buildPythonApplication rec { ]; doCheck = false; # There are no tests. + dontWrapGApps = true; + strictDeps = false; postInstall = '' cp -r share $out/ @@ -69,10 +70,13 @@ in buildPythonApplication rec { ln -s $out/${python3.sitePackages}/etc $out/etc glib-compile-schemas --strict $out/share/glib-2.0/schemas + ''; + preFixup = '' gappsWrapperArgs+=( --prefix PATH : ${lib.makeBinPath [ procps xautolock xscreensaver xfce.xfconf xset ]} ) + makeWrapperArgs+=("''${gappsWrapperArgs[@]}") ''; meta = with lib; { diff --git a/pkgs/tools/misc/autorandr/0001-don-t-use-sys.executable.patch b/pkgs/tools/misc/autorandr/0001-don-t-use-sys.executable.patch new file mode 100644 index 00000000000..81879a8f834 --- /dev/null +++ b/pkgs/tools/misc/autorandr/0001-don-t-use-sys.executable.patch @@ -0,0 +1,33 @@ +From fdcc2f01441ec25104456022e6f8d3120709cede Mon Sep 17 00:00:00 2001 +From: Romanos Skiadas <rom.skiad@gmail.com> +Date: Tue, 28 Jun 2022 06:16:10 +0300 +Subject: [PATCH] don't use sys.executable + +This is required for forking self in a nixpkgs environment, +where arandr might be wrapped. In that case, the actual arandr command +will be a bash script, not python. +There is no real reason to keep this around, nixpkgs properly sets the +interpreter in the shebang anyway. +--- + autorandr.py | 5 +---- + 1 file changed, 1 insertion(+), 4 deletions(-) + +diff --git autorandr.py autorandr.py +index 35c15f6..1e84a2f 100755 +--- a/autorandr.py ++++ b/autorandr.py +@@ -1192,10 +1192,7 @@ def dispatch_call_to_sessions(argv): + os.chdir(pwent.pw_dir) + os.environ.clear() + os.environ.update(process_environ) +- if sys.executable != "" and sys.executable != None: +- os.execl(sys.executable, sys.executable, autorandr_binary, *argv[1:]) +- else: +- os.execl(autorandr_binary, autorandr_binary, *argv[1:]) ++ os.execl(autorandr_binary, autorandr_binary, *argv[1:]) + sys.exit(1) + os.waitpid(child_pid, 0) + +-- +2.36.1 + diff --git a/pkgs/tools/misc/autorandr/default.nix b/pkgs/tools/misc/autorandr/default.nix index bf54d6a445e..7a9a30756ff 100644 --- a/pkgs/tools/misc/autorandr/default.nix +++ b/pkgs/tools/misc/autorandr/default.nix @@ -1,25 +1,26 @@ -{ lib, stdenv +{ lib +, python3 , python3Packages , fetchFromGitHub , systemd , xrandr , installShellFiles }: -stdenv.mkDerivation rec { +python3.pkgs.buildPythonApplication rec { pname = "autorandr"; version = "1.12.1"; - buildInputs = [ python3Packages.python ]; - nativeBuildInputs = [ installShellFiles ]; + propagatedBuildInputs = [ python3Packages.packaging ]; - # no wrapper, as autorandr --batch does os.environ.clear() buildPhase = '' substituteInPlace autorandr.py \ --replace 'os.popen("xrandr' 'os.popen("${xrandr}/bin/xrandr' \ --replace '["xrandr"]' '["${xrandr}/bin/xrandr"]' ''; + patches = [ ./0001-don-t-use-sys.executable.patch ]; + outputs = [ "out" "man" ]; installPhase = '' diff --git a/pkgs/tools/misc/pipectl/default.nix b/pkgs/tools/misc/pipectl/default.nix index f65941e784b..9ce250bef78 100644 --- a/pkgs/tools/misc/pipectl/default.nix +++ b/pkgs/tools/misc/pipectl/default.nix @@ -2,20 +2,25 @@ , lib , fetchFromGitHub , cmake +, scdoc }: stdenv.mkDerivation rec { pname = "pipectl"; - version = "0.3.0"; + version = "0.4.1"; src = fetchFromGitHub { owner = "Ferdi265"; repo = pname; rev = "v${version}"; - hash = "sha256-+o5hIDtDAh4r+AKCUhueQ3GBYf2sZtMATGX73Qg+tbo="; + hash = "sha256-dWRem9VHzMwVo+ahUagZB2r4Ag8PyBef5X41vVpZcAc="; }; - nativeBuildInputs = [ cmake ]; + nativeBuildInputs = [ cmake scdoc ]; + + cmakeFlags = [ + "-DINSTALL_DOCUMENTATION=ON" + ]; meta = with lib; { homepage = "https://github.com/Ferdi265/pipectl"; diff --git a/pkgs/tools/misc/starship/default.nix b/pkgs/tools/misc/starship/default.nix index 4f3603d6e6f..7875f01f1f0 100644 --- a/pkgs/tools/misc/starship/default.nix +++ b/pkgs/tools/misc/starship/default.nix @@ -5,6 +5,8 @@ , installShellFiles , libiconv , libgit2 +, cmake +, fetchpatch , pkg-config , nixosTests , Security @@ -14,16 +16,17 @@ rustPlatform.buildRustPackage rec { pname = "starship"; - version = "1.9.1"; + version = "1.10.0"; src = fetchFromGitHub { owner = "starship"; repo = pname; rev = "v${version}"; - sha256 = "sha256-IujaGyAGYlBb4efaRb13rsPSD2gWAg5UgG10iMp9iQE="; + sha256 = "sha256-mumlnY9KGKdS3x4U84J4I8m5uMJI7SZR52aT6DPi/MM="; }; - nativeBuildInputs = [ installShellFiles pkg-config ]; + nativeBuildInputs = [ installShellFiles cmake ] + ++ lib.optionals stdenv.isLinux [ pkg-config ]; buildInputs = [ libgit2 ] ++ lib.optionals stdenv.isDarwin [ libiconv Security Foundation Cocoa ]; @@ -32,13 +35,21 @@ rustPlatform.buildRustPackage rec { buildFeatures = if stdenv.isDarwin then [ "battery" ] else [ "default" ]; postInstall = '' - for shell in bash fish zsh; do - STARSHIP_CACHE=$TMPDIR $out/bin/starship completions $shell > starship.$shell - installShellCompletion starship.$shell - done + installShellCompletion --cmd starship \ + --bash <($out/bin/starship completions bash) \ + --fish <($out/bin/starship completions fish) \ + --zsh <($out/bin/starship completions zsh) ''; - cargoSha256 = "sha256-HrSMNNrldwb6LMMuxdQ84iY+/o5L2qwe+Vz3ekQt1YQ="; + cargoPatches = [ + # Bump chrono dependency to fix panic when no timezone + (fetchpatch { + url = "https://github.com/starship/starship/commit/e652e8643310c3b41ce19ad05b8168abc29bb683.patch"; + sha256 = "sha256-iGYLJuptPMc45E7o+GXjIx7y2PxuO1mGM7xSopDBve0="; + }) + ]; + + cargoSha256 = "sha256-w7UCExSkgEY52D98SSe2EkuiwtjM6t0/uTiafrtEBaU="; preCheck = '' HOME=$TMPDIR diff --git a/pkgs/tools/security/binbloom/default.nix b/pkgs/tools/security/binbloom/default.nix new file mode 100644 index 00000000000..0805e7b988d --- /dev/null +++ b/pkgs/tools/security/binbloom/default.nix @@ -0,0 +1,27 @@ +{ lib +, stdenv +, fetchFromGitHub +, autoreconfHook +}: + +stdenv.mkDerivation rec { + pname = "binbloom"; + version = "2.0"; + + src = fetchFromGitHub { + owner = "quarkslab"; + repo = pname; + rev = "v${version}"; + hash = "sha256-UiKiDey/pHtJDr4UYqt+T/TneKig5tT8YU2u98Ttjmo="; + }; + + nativeBuildInputs = [ autoreconfHook ]; + + meta = with lib; { + description = "Raw binary firmware analysis software"; + homepage = "https://github.com/quarkslab/binbloom"; + license = licenses.asl20; + maintainers = with maintainers; [ erdnaxe ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/tools/system/acpica-tools/default.nix b/pkgs/tools/system/acpica-tools/default.nix index b34302bde58..bf42608411a 100644 --- a/pkgs/tools/system/acpica-tools/default.nix +++ b/pkgs/tools/system/acpica-tools/default.nix @@ -32,7 +32,8 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; # We can handle stripping ourselves. - INSTALLFLAGS = "-m 555"; + # Unless we are on Darwin. Upstream makefiles degrade coreutils install to cp if _APPLE is detected. + INSTALLFLAGS = lib.optionals (!stdenv.isDarwin) "-m 555"; installFlags = [ "PREFIX=${placeholder "out"}" ]; @@ -41,6 +42,6 @@ stdenv.mkDerivation rec { description = "ACPICA Tools"; license = with licenses; [ iasl gpl2Only bsd3 ]; maintainers = with maintainers; [ tadfisher ]; - platforms = platforms.linux; + platforms = platforms.linux ++ platforms.darwin; }; } diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 2866d8251e1..985448fe5af 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -1329,6 +1329,8 @@ mapAliases ({ source-han-serif-simplified-chinese = source-han-serif; source-han-serif-traditional-chinese = source-han-serif; + sourcetrail = throw "sourcetrail has been removed: abandoned by upstream"; # Added 2022-08-14 + spaceOrbit = throw "'spaceOrbit' has been renamed to/replaced by 'space-orbit'"; # Converted to throw 2022-02-22 spectral = neochat; # Added 2020-12-27 speech_tools = throw "'speech_tools' has been renamed to/replaced by 'speech-tools'"; # Converted to throw 2022-02-22 diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 45bc44618c0..0a6b3584d34 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -282,6 +282,8 @@ with pkgs; beyond-identity = callPackage ../tools/security/beyond-identity {}; + binbloom = callPackage ../tools/security/binbloom {}; + bingo = callPackage ../development/tools/bingo {}; binserve = callPackage ../servers/binserve { @@ -5454,11 +5456,14 @@ with pkgs; ddrutility = callPackage ../tools/system/ddrutility { }; - deluge-2_x = callPackage ../applications/networking/p2p/deluge { - pythonPackages = python3Packages; + inherit (callPackages ../applications/networking/p2p/deluge { libtorrent-rasterbar = libtorrent-rasterbar-1_2_x.override { python = python3; }; - }; - deluge = deluge-2_x; + }) + deluge-gtk + deluged + deluge; + + deluge-2_x = deluge; desktop-file-utils = callPackage ../tools/misc/desktop-file-utils { }; @@ -11637,6 +11642,8 @@ with pkgs; up = callPackage ../tools/misc/up { }; + upbound = callPackage ../development/tools/upbound { }; + upterm = callPackage ../tools/misc/upterm { }; upx = callPackage ../tools/compression/upx { }; @@ -16267,6 +16274,8 @@ with pkgs; kamid = callPackage ../servers/ftp/kamid { }; + karate = callPackage ../development/tools/karate { }; + kati = callPackage ../development/tools/build-managers/kati { }; kcat = callPackage ../development/tools/kcat { }; @@ -25034,6 +25043,8 @@ with pkgs; fira-code = callPackage ../data/fonts/fira-code { }; fira-code-symbols = callPackage ../data/fonts/fira-code/symbols.nix { }; + fira-go = callPackage ../data/fonts/fira-go { }; + fira-mono = callPackage ../data/fonts/fira-mono { }; flat-remix-icon-theme = callPackage ../data/icons/flat-remix-icon-theme { @@ -30598,16 +30609,6 @@ with pkgs; spotify = callPackage ../applications/audio/spotify/wrapper.nix { }; - sourcetrail = let - llvmPackages = llvmPackages_10; - in libsForQt5.callPackage ../development/tools/sourcetrail { - stdenv = if stdenv.cc.isClang then llvmPackages.stdenv else stdenv; - jdk = jdk8; - pythonPackages = python3Packages; - inherit llvmPackages; - boost = boost16x; # Filesystem tests in the checkPhase fail with Boost 1.77 - }; - spotifywm = callPackage ../applications/audio/spotifywm { }; psst = callPackage ../applications/audio/psst { }; diff --git a/pkgs/top-level/dhall-packages.nix b/pkgs/top-level/dhall-packages.nix index 646f2b7e9d3..f43be56c59b 100644 --- a/pkgs/top-level/dhall-packages.nix +++ b/pkgs/top-level/dhall-packages.nix @@ -35,6 +35,8 @@ let lib = import ../development/dhall-modules/lib.nix { inherit lib; }; + dhall-cloudformation = callPackage ../development/dhall-modules/dhall-cloudformation.nix { }; + dhall-grafana = callPackage ../development/dhall-modules/dhall-grafana.nix { }; |