From 075b528a6d43318c793f55ad351c03b4ce68b919 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Tue, 6 Mar 2018 18:14:37 +0100 Subject: doc: add GNOME Closes: #16285 --- doc/languages-frameworks/gnome.xml | 198 +++++++++++++++++++++++++++++++++++++ doc/languages-frameworks/index.xml | 1 + doc/stdenv.xml | 8 +- 3 files changed, 202 insertions(+), 5 deletions(-) create mode 100644 doc/languages-frameworks/gnome.xml (limited to 'doc') diff --git a/doc/languages-frameworks/gnome.xml b/doc/languages-frameworks/gnome.xml new file mode 100644 index 0000000000000..2bead65ecf120 --- /dev/null +++ b/doc/languages-frameworks/gnome.xml @@ -0,0 +1,198 @@ +
+ GNOME + +
+ Packaging GNOME applications + + + Programs in the GNOME universe are written in various languages but they all use GObject-based libraries like GLib, GTK or GStreamer. These libraries are often modular, relying on looking into certain directories to find their modules. However, due to Nix’s specific file system organization, this will fail without our intervention. Fortunately, the libraries usually allow overriding the directories through environment variables, either natively or thanks to a patch in nixpkgs. Wrapping the executables to ensure correct paths are available to the application constitutes a significant part of packaging a modern desktop application. In this section, we will describe various modules needed by such applications, environment variables needed to make the modules load, and finally a script that will do the work for us. + + +
+ Settings + + + GSettings API is often used for storing settings. GSettings schemas are required, to know the type and other metadata of the stored values. GLib looks for glib-2.0/schemas/gschemas.compiled files inside the directories of XDG_DATA_DIRS. + + + + On Linux, GSettings API is implemented using dconf backend. You will need to add dconf GIO module to GIO_EXTRA_MODULES variable, otherwise the memory backend will be used and the saved settings will not be persistent. + + + + Last you will need the dconf database D-Bus service itself. You can enable it using . + + + + Some applications will also require gsettings-desktop-schemas for things like reading proxy configuration or user interface customization. This dependency is often not mentioned by upstream, you should grep for org.gnome.desktop and org.gnome.system to see if the schemas are needed. + +
+ +
+ Icons + + + When an application uses icons, an icon theme should be available in XDG_DATA_DIRS. The package for the default, icon-less hicolor-icon-theme contains a setup hook that will pick up icon themes from buildInputs and pass it to our wrapper. Unfortunately, relying on that would mean every user has to download the theme included in the package expression no matter their preference. For that reason, we leave the installation of icon theme on the user. If you use one of the desktop environments, you probably already have an icon theme installed. + +
+ +
+ GTK Themes + + + Previously, a GTK theme needed to be in XDG_DATA_DIRS. This is no longer necessary for most programs since GTK incorporated Adwaita theme. Some programs (for example, those designed for elementary HIG) might require a special theme like pantheon.elementary-gtk-theme. + +
+ +
+ GObject introspection typelibs + + + GObject introspection allows applications to use C libraries in other languages easily. It does this through typelib files searched in GI_TYPELIB_PATH. + +
+ +
+ Various plug-ins + + + If your application uses GStreamer or Grilo, you should set GST_PLUGIN_SYSTEM_PATH_1_0 and GRL_PLUGIN_PATH, respectively. + +
+
+ +
+ Onto <package>wrapGAppsHook</package> + + + Given the requirements above, the package expression would become messy quickly: + +preFixup = '' + for f in $(find $out/bin/ $out/libexec/ -type f -executable); do + wrapProgram "$f" \ + --prefix GIO_EXTRA_MODULES : "${getLib gnome3.dconf}/lib/gio/modules" \ + --prefix XDG_DATA_DIRS : "$out/share" \ + --prefix XDG_DATA_DIRS : "$out/share/gsettings-schemas/${name}" \ + --prefix XDG_DATA_DIRS : "${gsettings-desktop-schemas}/share/gsettings-schemas/${gsettings-desktop-schemas.name}" \ + --prefix XDG_DATA_DIRS : "${hicolor-icon-theme}/share" \ + --prefix GI_TYPELIB_PATH : "${lib.makeSearchPath "lib/girepository-1.0" [ pango json-glib ]}" + done +''; + + Fortunately, there is wrapGAppsHook, that does the wrapping for us. In particular, it works in conjunction with other setup hooks that will populate the variable: + + + + wrapGAppsHook itself will add the package’s share directory to XDG_DATA_DIRS. + + + + + glib setup hook will populate GSETTINGS_SCHEMAS_PATH and then wrapGAppsHook will prepend it to XDG_DATA_DIRS. + + + + + gnome3.dconf.lib is a dependency of wrapGAppsHook, which then also adds it to the GIO_EXTRA_MODULES variable. + + + + + hicolor-icon-theme’s setup hook will add icon themes to XDG_ICON_DIRS which is prepended to XDG_DATA_DIRS by wrapGAppsHook. + + + + + gobject-introspection setup hook populates GI_TYPELIB_PATH variable with lib/girepository-1.0 directories of dependencies, which is then added to wrapper by wrapGAppsHook. It also adds share directories of dependencies to XDG_DATA_DIRS, which is intended to promote GIR files but it also pollutes the closures of packages using wrapGAppsHook. + + + + The setup hook currently does not work in expressions with strictDeps enabled, like Python packages. In those cases, you will need to disable it with strictDeps = false;. + + + + + + Setup hooks of gst_all_1.gstreamer and gnome3.grilo will populate the GST_PLUGIN_SYSTEM_PATH_1_0 and GRL_PLUGIN_PATH variables, respectively, which will then be added to the wrapper by wrapGAppsHook. + + + + + + + You can also pass additional arguments to makeWrapper using gappsWrapperArgs in preFixup hook: + +preFixup = '' + gappsWrapperArgs+=( + # Thumbnailers + --prefix XDG_DATA_DIRS : "${gdk-pixbuf}/share" + --prefix XDG_DATA_DIRS : "${librsvg}/share" + --prefix XDG_DATA_DIRS : "${shared-mime-info}/share" + ) +''; + + +
+ +
+ Updating GNOME packages + + + Most GNOME package offer updateScript, it is therefore possible to update to latest source tarball by running nix-shell maintainers/scripts/update.nix --argstr package gnome3.nautilus or even en masse with nix-shell maintainers/scripts/update.nix --argstr path gnome3. Read the package’s NEWS file to see what changed. + +
+ +
+ Frequently encountered issues + + + + + GLib-GIO-ERROR **: 06:04:50.903: No GSettings schemas are installed on the system + + + + There are no schemas avalable in XDG_DATA_DIRS. Temporarily add a random package containing schemas like gsettings-desktop-schemas to buildInputs. glib and wrapGAppsHook setup hooks will take care of making the schemas available to application and you will see the actual missing schemas with the next error. Or you can try looking through the source code for the actual schemas used. + + + + + + GLib-GIO-ERROR **: 06:04:50.903: Settings schema ‘org.gnome.foo’ is not installed + + + + Package is missing some GSettings schemas. You can find out the package containing the schema with nix-locate org.gnome.foo.gschema.xml and let the hooks handle the wrapping as above. + + + + + + I am packaging a project that cannot be wrapped, like a library or GNOME Shell extension. + + + + You can rely on applications depending on the library set the necessary environment variables but that it often easy to miss. Instead we recommend to patch the paths in the source code whenever possible. Here are some examples: + + + + Replacing a GI_TYPELIB_PATH in GNOME Shell extension – we are using substituteAll to include the path to a typelib into a patch. + + + + + Hard-coding GSettings schema path in Vala plug-in (dynamically loaded library) – here, substituteAll cannot be used since the schema comes from the same package preventing us from pass its path to the function, probably due to a Nix bug. + + + + + Hard-coding GSettings schema path in C library – nothing special other than using Coccinelle patch to generate the patch itself. + + + + + + + +
+
diff --git a/doc/languages-frameworks/index.xml b/doc/languages-frameworks/index.xml index cd4e95cfae69a..5836294b7748f 100644 --- a/doc/languages-frameworks/index.xml +++ b/doc/languages-frameworks/index.xml @@ -14,6 +14,7 @@ + diff --git a/doc/stdenv.xml b/doc/stdenv.xml index fe5929656565d..d25656838f8e1 100644 --- a/doc/stdenv.xml +++ b/doc/stdenv.xml @@ -699,7 +699,7 @@ passthru = { - + passthru.updateScript @@ -2629,13 +2629,11 @@ addEnvHooks "$hostOffset" myBashFunction - GStreamer + GNOME platform - Adds the GStreamer plugins subdirectory of each build input to the - GST_PLUGIN_SYSTEM_PATH_1_0 or - GST_PLUGIN_SYSTEM_PATH environment variable. + Hooks related to GNOME platform and related libraries like GLib, GTK and GStreamer are described in . -- cgit 1.4.1 From 69e0d954624103d24de0b3f3ebb279ed0a799dd5 Mon Sep 17 00:00:00 2001 From: worldofpeace Date: Thu, 5 Sep 2019 21:30:06 -0400 Subject: doc/gnome: explain double wrapped binaries --- doc/languages-frameworks/gnome.xml | 52 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) (limited to 'doc') diff --git a/doc/languages-frameworks/gnome.xml b/doc/languages-frameworks/gnome.xml index 2bead65ecf120..399e7c396a8a7 100644 --- a/doc/languages-frameworks/gnome.xml +++ b/doc/languages-frameworks/gnome.xml @@ -166,6 +166,58 @@ preFixup = '' + + + When using wrapGAppsHook with special derivers you can end up with double wrapped binaries. + + + + This is because derivers like python.pkgs.buildPythonApplication or qt5.mkDerivation have setup-hooks automatically added that produce wrappers with makeWrapper. The simplest way to workaround that is to disable the wrapGAppsHook automatic wrapping with dontWrapGApps = true; and pass the arguments it intended to pass to makeWrapper to another. + + + In the case of a Python application it could look like: + +python3.pkgs.buildPythonApplication { + pname = "gnome-music"; + version = "3.32.2"; + + nativeBuildInputs = [ + wrapGAppsHook + gobject-introspection + ... + ]; + + dontWrapGApps = true; + + # Arguments to be passed to `makeWrapper`, only used by buildPython* + makeWrapperArgs = [ + "\${gappsWrapperArgs[@]}" + ]; +} + + And for a QT app like: + +mkDerivation { + pname = "calibre"; + version = "3.47.0"; + + nativeBuildInputs = [ + wrapGAppsHook + qmake + ... + ]; + + dontWrapGApps = true; + + # Arguments to be passed to `makeWrapper`, only used by qt5’s mkDerivation + qtWrapperArgs [ + "\${gappsWrapperArgs[@]}" + ]; +} + + + + I am packaging a project that cannot be wrapped, like a library or GNOME Shell extension. -- cgit 1.4.1 From 463377597b6b6182288e0bf6ec0a45c7507cb85f Mon Sep 17 00:00:00 2001 From: worldofpeace Date: Thu, 5 Sep 2019 22:31:48 -0400 Subject: doc/gnome: explain glib passthru functions Examples are updated to commits that use them as well. --- doc/languages-frameworks/gnome.xml | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) (limited to 'doc') diff --git a/doc/languages-frameworks/gnome.xml b/doc/languages-frameworks/gnome.xml index 399e7c396a8a7..9e0f21a6c74fc 100644 --- a/doc/languages-frameworks/gnome.xml +++ b/doc/languages-frameworks/gnome.xml @@ -228,16 +228,29 @@ mkDerivation { - Replacing a GI_TYPELIB_PATH in GNOME Shell extension – we are using substituteAll to include the path to a typelib into a patch. + Replacing a GI_TYPELIB_PATH in GNOME Shell extension – we are using substituteAll to include the path to a typelib into a patch. - + - Hard-coding GSettings schema path in Vala plug-in (dynamically loaded library) – here, substituteAll cannot be used since the schema comes from the same package preventing us from pass its path to the function, probably due to a Nix bug. + The following examples are hardcoding GSettings schema paths. To get the schema paths we use the functions + + + + glib.getSchemaPath Takes a nix package attribute as an argument. + + + + + glib.makeSchemaPath Takes a package output like $out and a derivation name. You should use this if the schemas you need to hardcode are in the same derivation. + + + - - - + + Hard-coding GSettings schema path in Vala plug-in (dynamically loaded library) – here, substituteAll cannot be used since the schema comes from the same package preventing us from pass its path to the function, probably due to a Nix bug. + + Hard-coding GSettings schema path in C library – nothing special other than using Coccinelle patch to generate the patch itself. -- cgit 1.4.1 From 3c1563f49da173948f5150619233a97277a267e0 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Tue, 10 Sep 2019 07:11:53 +0200 Subject: wrapGAppsHook: add wrapGApp helper --- doc/languages-frameworks/gnome.xml | 10 ++++++++++ pkgs/build-support/setup-hooks/wrap-gapps-hook.sh | 10 ++++++++-- 2 files changed, 18 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/languages-frameworks/gnome.xml b/doc/languages-frameworks/gnome.xml index 9e0f21a6c74fc..e9310d7c1ae07 100644 --- a/doc/languages-frameworks/gnome.xml +++ b/doc/languages-frameworks/gnome.xml @@ -258,6 +258,16 @@ mkDerivation { + + + I need to wrap a binary outside bin and libexec directories. + + + + You can manually trigger the wrapping with wrapGApp in preFixup phase. It takes a path to a program as a first argument; the remaining arguments are passed directly to wrapProgram function. + + + diff --git a/pkgs/build-support/setup-hooks/wrap-gapps-hook.sh b/pkgs/build-support/setup-hooks/wrap-gapps-hook.sh index 906b1db9d10ee..26a1107b85f34 100644 --- a/pkgs/build-support/setup-hooks/wrap-gapps-hook.sh +++ b/pkgs/build-support/setup-hooks/wrap-gapps-hook.sh @@ -8,6 +8,12 @@ find_gio_modules() { addEnvHooks "$targetOffset" find_gio_modules +wrapGApp() { + local program="$1" + shift 1 + wrapProgram "$program" "${gappsWrapperArgs[@]}" "$@" +} + # Note: $gappsWrapperArgs still gets defined even if $dontWrapGApps is set. wrapGAppsHook() { # guard against running multiple times (e.g. due to propagation) @@ -52,7 +58,7 @@ wrapGAppsHook() { find "${targetDir}" -type f -executable -print0 \ | while IFS= read -r -d '' file; do echo "Wrapping program '${file}'" - wrapProgram "${file}" "${gappsWrapperArgs[@]}" + wrapGApp "${file}" done fi done @@ -71,7 +77,7 @@ wrapGAppsHook() { fi done echo "Wrapping link: '$linkPath'" - wrapProgram "${linkPath}" "${gappsWrapperArgs[@]}" + wrapGApp "${linkPath}" done fi fi -- cgit 1.4.1 From 9d152886ab7276d1c229133c15be170486f78cdd Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Tue, 10 Sep 2019 07:47:11 +0200 Subject: nixos/doc/gnome: fix example --- doc/languages-frameworks/gnome.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/languages-frameworks/gnome.xml b/doc/languages-frameworks/gnome.xml index e9310d7c1ae07..8b3151d5bf949 100644 --- a/doc/languages-frameworks/gnome.xml +++ b/doc/languages-frameworks/gnome.xml @@ -210,7 +210,7 @@ mkDerivation { dontWrapGApps = true; # Arguments to be passed to `makeWrapper`, only used by qt5’s mkDerivation - qtWrapperArgs [ + qtWrapperArgs = [ "\${gappsWrapperArgs[@]}" ]; } -- cgit 1.4.1 From 5f46805ec696ac9dee1da4ecb36f4966c7fc17de Mon Sep 17 00:00:00 2001 From: Alexandre Esteves Date: Sat, 14 Sep 2019 01:01:17 +0100 Subject: Fix typo --- doc/stdenv.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/stdenv.xml b/doc/stdenv.xml index 16003fb4acfbe..f8c2aff978547 100644 --- a/doc/stdenv.xml +++ b/doc/stdenv.xml @@ -2411,7 +2411,7 @@ addEnvHooks "$hostOffset" myBashFunction The Bintools Wrapper was only just recently split off from CC Wrapper, so the division of labor is still being worked out. For example, it - shouldn't care about about the C standard library, but just take a + shouldn't care about the C standard library, but just take a derivation with the dynamic loader (which happens to be the glibc on linux). Dependency finding however is a task both wrappers will continue to need to share, and probably the most important to understand. It is -- cgit 1.4.1 From e5e6b514f5d4ec28a29e8a8489cb5c55101b4654 Mon Sep 17 00:00:00 2001 From: obadz Date: Sat, 14 Sep 2019 11:11:30 +0100 Subject: citrix-receiver: decomission in favor of citrix-workspace. Already documented in #64645 --- doc/package-specific-user-notes.xml | 6 +- nixos/doc/manual/release-notes/rl-1909.xml | 6 + .../networking/remote/citrix-receiver/default.nix | 215 --------------------- .../networking/remote/citrix-receiver/wrapper.nix | 19 -- pkgs/top-level/all-packages.nix | 27 +-- 5 files changed, 15 insertions(+), 258 deletions(-) delete mode 100644 pkgs/applications/networking/remote/citrix-receiver/default.nix delete mode 100644 pkgs/applications/networking/remote/citrix-receiver/wrapper.nix (limited to 'doc') diff --git a/doc/package-specific-user-notes.xml b/doc/package-specific-user-notes.xml index a176f4d139598..ef23b022c887a 100644 --- a/doc/package-specific-user-notes.xml +++ b/doc/package-specific-user-notes.xml @@ -416,7 +416,7 @@ overrides = self: super: rec { Please note that the citrix_receiver package has been deprecated since its development was discontinued by upstream - and will be replaced by the citrix workspace app. + and has been replaced by the citrix workspace app. Citrix Receiver and @@ -458,7 +458,7 @@ overrides = self: super: rec { Custom certificates - The Citrix Receiver and Citrix Workspace App + The Citrix Workspace App in nixpkgs trust several certificates from the Mozilla database by default. However several companies using Citrix @@ -472,7 +472,7 @@ overrides = self: super: rec { { config.allowUnfree = true; }; let extraCerts = [ ./custom-cert-1.pem ./custom-cert-2.pem /* ... */ ]; in -citrix_workspace.override { # the same applies for `citrix_receiver` if used. +citrix_workspace.override { inherit extraCerts; }]]> diff --git a/nixos/doc/manual/release-notes/rl-1909.xml b/nixos/doc/manual/release-notes/rl-1909.xml index f9cea242c153c..58ab7207f5338 100644 --- a/nixos/doc/manual/release-notes/rl-1909.xml +++ b/nixos/doc/manual/release-notes/rl-1909.xml @@ -478,6 +478,12 @@ Prometheus 2 is now configured with services.prometheus. + + + Citrix Receiver (citrix_receiver) has been dropped in favor of Citrix Workspace + (citrix_workspace). + + diff --git a/pkgs/applications/networking/remote/citrix-receiver/default.nix b/pkgs/applications/networking/remote/citrix-receiver/default.nix deleted file mode 100644 index 8d21f64765dc6..0000000000000 --- a/pkgs/applications/networking/remote/citrix-receiver/default.nix +++ /dev/null @@ -1,215 +0,0 @@ -{ stdenv -, lib -, fetchurl -, requireFile -, makeWrapper -, libredirect -, busybox -, file -, makeDesktopItem -, tzdata -, cacert -, glib -, gtk2 -, atk -, gdk-pixbuf -, cairo -, pango -, gnome3 -, xorg -, libpng12 -, freetype -, fontconfig -, gtk_engines -, alsaLib -, libidn -, zlib -, version ? "13.10.0" -}: - -let - # In 56e1bdc7f9c (libidn: 1.34 -> 1.35), libidn.so.11 became libidn.so.12. - # Citrix looks for the former so we build version 1.34 to please the binary - libidn_134 = libidn.overrideDerivation (_: rec { - name = "libidn-1.34"; - src = fetchurl { - url = "mirror://gnu/libidn/${name}.tar.gz"; - sha256 = "0g3fzypp0xjcgr90c5cyj57apx1cmy0c6y9lvw2qdcigbyby469p"; - }; - }); - - versionInfo = let - supportedVersions = { - "13.10.0" = { - major = "13"; - minor = "10"; - patch = "0"; - x64hash = "7025688C7891374CDA11C92FC0BA2FA8151AEB4C4D31589AD18747FAE943F6EA"; - x86hash = "2DCA3C8EDED11C5D824D579BC3A6B7D531EAEDDCBFB16E91B5702C72CAE9DEE4"; - x64suffix = "20"; - x86suffix = "20"; - homepage = https://www.citrix.com/downloads/citrix-receiver/linux/receiver-for-linux-latest.html; - }; - }; - - # break an evaluation for old Citrix versions rather than exiting with - # an "attribute name not found" error to avoid confusion. - deprecatedVersions = let - versions = [ "13.8.0" "13.9.0" "13.9.1" ]; - in - lib.listToAttrs - (lib.forEach versions - (v: lib.nameValuePair v (throw "Unsupported citrix_receiver version: ${v}"))); - in - deprecatedVersions // supportedVersions; - - citrixReceiverForVersion = { major, minor, patch, x86hash, x64hash, x86suffix, x64suffix, homepage }: - stdenv.mkDerivation rec { - pname = "citrix-receiver"; - version = "${major}.${minor}.${patch}"; - inherit homepage; - - prefixWithBitness = if stdenv.is64bit then "linuxx64" else "linuxx86"; - - src = requireFile rec { - name = if stdenv.is64bit then "${prefixWithBitness}-${version}.${x64suffix}.tar.gz" else "${prefixWithBitness}-${version}.${x86suffix}.tar.gz"; - sha256 = if stdenv.is64bit then x64hash else x86hash; - message = '' - In order to use Citrix Receiver, you need to comply with the Citrix EULA and download - the ${if stdenv.is64bit then "64-bit" else "32-bit"} binaries, .tar.gz from: - - ${homepage} - - (if you do not find version ${version} there, try at - https://www.citrix.com/downloads/citrix-receiver/legacy-receiver-for-linux/ - or at https://www.citrix.com/downloads/citrix-receiver/ under "Earlier Versions of Receiver for Linux") - - Once you have downloaded the file, please use the following command and re-run the - installation: - - nix-prefetch-url file://\$PWD/${name} - ''; - }; - - dontBuild = true; - - sourceRoot = "."; - - buildInputs = [ - makeWrapper - busybox - file - gtk2 - gdk-pixbuf - ]; - - libPath = stdenv.lib.makeLibraryPath [ - glib - gtk2 - atk - gdk-pixbuf - cairo - pango - gnome3.dconf - xorg.libX11 - xorg.libXext - xorg.libXrender - xorg.libXinerama - xorg.libXfixes - libpng12 - libidn_134 - zlib - gtk_engines - freetype - fontconfig - alsaLib - stdenv.cc.cc # Fixes: Can not load [..]/opt/citrix-icaclient/lib/ctxh264_fb.so:(null) - ]; - - desktopItem = makeDesktopItem { - name = "wfica"; - desktopName = "Citrix Receiver"; - genericName = "Citrix Receiver"; - exec = "wfica"; - icon = "wfica"; - comment = "Connect to remote Citrix server"; - categories = "GTK;GNOME;X-GNOME-NetworkSettings;Network;"; - mimeType = "application/x-ica"; - }; - - installPhase = '' - runHook preInstall - - export ICAInstDir="$out/opt/citrix-icaclient" - - sed -i \ - -e 's,^main_install_menu$,install_ICA_client,g' \ - -e 's,^integrate_ICA_client(),alias integrate_ICA_client=true\nintegrate_ICA_client_old(),g' \ - -e 's,^ANSWER=""$,ANSWER="$INSTALLER_YES",' \ - -e 's,/bin/true,true,g' \ - ./${prefixWithBitness}/hinst - - # Run the installer... - bash ./${prefixWithBitness}/hinst CDROM "`pwd`" - - echo "Deleting broken links..." - for link in `find $ICAInstDir -type l ` - do - [ -f "$link" ] || rm -v "$link" - done - - echo "Expanding certificates..." - # As explained in https://wiki.archlinux.org/index.php/Citrix#Security_Certificates - pushd "$ICAInstDir/keystore/cacerts" - awk 'BEGIN {c=0;} /BEGIN CERT/{c++} { print > "cert." c ".pem"}' < ${cacert}/etc/ssl/certs/ca-bundle.crt - popd - - echo "Patching executables..." - find $ICAInstDir -type f -exec file {} \; | - grep 'ELF.*executable' | - cut -f 1 -d : | - grep -vi '\(.dll\|.so\)$' | # added as a workaround to https://github.com/NixOS/nixpkgs/issues/41729 - while read f - do - echo "Patching ELF intrepreter and rpath for $f" - chmod u+w "$f" - patchelf \ - --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \ - --set-rpath "$ICAInstDir:$libPath" "$f" - done - - echo "Wrapping wfica..." - mkdir "$out/bin" - - makeWrapper "$ICAInstDir/wfica" "$out/bin/wfica" \ - --add-flags "-icaroot $ICAInstDir" \ - --set ICAROOT "$ICAInstDir" \ - --set GTK_PATH "${gtk2.out}/lib/gtk-2.0:${gnome3.gnome-themes-extra}/lib/gtk-2.0" \ - --set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE" \ - --set LD_PRELOAD "${libredirect}/lib/libredirect.so" \ - --set LD_LIBRARY_PATH "$libPath" \ - --set NIX_REDIRECTS "/usr/share/zoneinfo=${tzdata}/share/zoneinfo:/etc/zoneinfo=${tzdata}/share/zoneinfo:/etc/timezone=$ICAInstDir/timezone" - - echo "We arbitrarily set the timezone to UTC. No known consequences at this point." - echo UTC > "$ICAInstDir/timezone" - - echo "Installing desktop item..." - mkdir -p $out/share/applications - cp ${desktopItem}/share/applications/* $out/share/applications - - # We introduce a dependency on the source file so that it need not be redownloaded everytime - echo $src >> "$out/share/nix_dependencies.pin" - - runHook postInstall - ''; - - meta = with stdenv.lib; { - license = stdenv.lib.licenses.unfree; - inherit homepage; - description = "Citrix Receiver"; - maintainers = with maintainers; [ obadz a1russell ma27 ]; - platforms = platforms.linux; - }; - }; - -in citrixReceiverForVersion (lib.getAttr version versionInfo) diff --git a/pkgs/applications/networking/remote/citrix-receiver/wrapper.nix b/pkgs/applications/networking/remote/citrix-receiver/wrapper.nix deleted file mode 100644 index 63587030b38e5..0000000000000 --- a/pkgs/applications/networking/remote/citrix-receiver/wrapper.nix +++ /dev/null @@ -1,19 +0,0 @@ -{ citrix_receiver, extraCerts ? [], symlinkJoin }: - -let - - mkCertCopy = certPath: - "cp ${certPath} $out/opt/citrix-icaclient/keystore/cacerts/"; - -in - -if builtins.length extraCerts == 0 then citrix_receiver else symlinkJoin { - name = "citrix-with-extra-certs-${citrix_receiver.version}"; - paths = [ citrix_receiver ]; - - postBuild = '' - ${builtins.concatStringsSep "\n" (map mkCertCopy extraCerts)} - - sed -i -E "s,-icaroot (.+citrix-icaclient),-icaroot $out/opt/citrix-icaclient," $out/bin/wfica - ''; -} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 77510a4d65d6f..1ce8eede20275 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2220,27 +2220,12 @@ in circleci-cli = callPackage ../development/tools/misc/circleci-cli { }; - citrix_receiver_unwrapped = callPackage ../applications/networking/remote/citrix-receiver { }; - citrix_receiver_unwrapped_13_10_0 = citrix_receiver_unwrapped.override { version = "13.10.0"; }; - citrix_receiver_unwrapped_13_9_1 = citrix_receiver_unwrapped.override { version = "13.9.1"; }; - citrix_receiver_unwrapped_13_9_0 = citrix_receiver_unwrapped.override { version = "13.9.0"; }; - citrix_receiver_unwrapped_13_8_0 = citrix_receiver_unwrapped.override { version = "13.8.0"; }; - - citrix_receiver = callPackage ../applications/networking/remote/citrix-receiver/wrapper.nix { - citrix_receiver = citrix_receiver_unwrapped; - }; - citrix_receiver_13_10_0 = callPackage ../applications/networking/remote/citrix-receiver/wrapper.nix { - citrix_receiver = citrix_receiver_unwrapped_13_10_0; - }; - citrix_receiver_13_9_1 = callPackage ../applications/networking/remote/citrix-receiver/wrapper.nix { - citrix_receiver = citrix_receiver_unwrapped_13_9_1; - }; - citrix_receiver_13_9_0 = callPackage ../applications/networking/remote/citrix-receiver/wrapper.nix { - citrix_receiver = citrix_receiver_unwrapped_13_9_0; - }; - citrix_receiver_13_8_0 = callPackage ../applications/networking/remote/citrix-receiver/wrapper.nix { - citrix_receiver = citrix_receiver_unwrapped_13_8_0; - }; + # Cleanup before 20.03: + citrix_receiver = throw "citrix_receiver has been discontinued by Citrix (https://docs.citrix.com/en-us/citrix-workspace-app.html). Please use citrix_workspace."; + citrix_receiver_13_10_0 = citrix_receiver; + citrix_receiver_13_9_1 = citrix_receiver; + citrix_receiver_13_9_0 = citrix_receiver; + citrix_receiver_13_8_0 = citrix_receiver; citrix_workspace_unwrapped = callPackage ../applications/networking/remote/citrix-workspace { }; citrix_workspace_unwrapped_19_8_0 = citrix_workspace_unwrapped.override { version = "19.8.0"; }; -- cgit 1.4.1 From cd518845e2ca008f5a00b38ffa0f1c99f154f6cc Mon Sep 17 00:00:00 2001 From: worldofpeace Date: Mon, 5 Aug 2019 21:53:07 -0400 Subject: doc/stdenv: document meson variables --- doc/cross-compilation.xml | 40 ++++---- doc/functions/dockertools.xml | 34 +++---- doc/functions/ocitools.xml | 12 +-- doc/languages-frameworks/gnome.xml | 185 ++++++++++++++++++++++++++++++------ doc/languages-frameworks/perl.xml | 12 +-- doc/languages-frameworks/qt.xml | 154 +++++++++++++++--------------- doc/meta.xml | 10 +- doc/package-notes.xml | 66 ++++++------- doc/package-specific-user-notes.xml | 88 ++++++++--------- doc/quick-start.xml | 8 +- doc/stdenv.xml | 126 ++++++++++++++++++------ 11 files changed, 456 insertions(+), 279 deletions(-) (limited to 'doc') diff --git a/doc/cross-compilation.xml b/doc/cross-compilation.xml index b7844da195d7f..d212706e1713b 100644 --- a/doc/cross-compilation.xml +++ b/doc/cross-compilation.xml @@ -485,10 +485,10 @@ nix-build <nixpkgs> --arg crossSystem '{ config = "<arch>-<os> are specified as lists of derivations given to mkDerivation, as - documented in . In short, - each list of dependencies for "host → target" of "foo → bar" is called - depsFooBar, with exceptions for backwards - compatibility that depsBuildHost is instead called + documented in . In short, each + list of dependencies for "host → target" of "foo → bar" is called + depsFooBar, with exceptions for backwards compatibility + that depsBuildHost is instead called nativeBuildInputs and depsHostTarget is instead called buildInputs. Nixpkgs is now structured so that each depsFooBar is automatically taken from @@ -507,9 +507,8 @@ nix-build <nixpkgs> --arg crossSystem '{ config = "<arch>-<os> buildPackages, pkgs, and targetPackages. Those are now redefined as aliases to pkgsBuildHost, pkgsHostTarget, and - pkgsTargetTarget. It is acceptable, even - recommended, to use them for libraries to show that the host platform is - irrelevant. + pkgsTargetTarget. It is acceptable, even recommended, to + use them for libraries to show that the host platform is irrelevant. @@ -581,14 +580,15 @@ nix-build <nixpkgs> --arg crossSystem '{ config = "<arch>-<os> pkgsHostTarget refers to the current one, and pkgsTargetTarget refers to the next one. When there is no previous or next stage, they instead refer to the current stage. Note - how all the invariants regarding the mapping between dependency and depending - packages' build host and target platforms are preserved. + how all the invariants regarding the mapping between dependency and + depending packages' build host and target platforms are preserved. pkgsBuildTarget and pkgsHostHost are more complex in that the stage fitting the requirements isn't always a fixed chain of "prevs" and "nexts" away (modulo the "saturating" - self-references at the ends). We just special case each instead. All the primary - edges are implemented is in pkgs/stdenv/booter.nix, - and secondarily aliases in pkgs/top-level/stage.nix. + self-references at the ends). We just special case each instead. All the + primary edges are implemented is in + pkgs/stdenv/booter.nix, and secondarily aliases in + pkgs/top-level/stage.nix. @@ -645,19 +645,19 @@ nix-build <nixpkgs> --arg crossSystem '{ config = "<arch>-<os> "infinite recursions" / cycles. When only package sets that don't mention target are used, the package set forms a directed acyclic graph. This means that all cycles that exist are confined to one stage. This means - they are a lot smaller, and easier to follow in the code or a backtrace. It - also means they are present in native and cross builds alike, and so more - likely to be caught by CI and other users. + they are a lot smaller, and easier to follow in the code or a backtrace. + It also means they are present in native and cross builds alike, and so + more likely to be caught by CI and other users. Thirdly, it is because everything target-mentioning only exists to accommodate compilers with lousy build systems that insist on the compiler itself and standard library being built together. Of course that is bad - because bigger derivations means longer rebuilds. It is also problematic because - it tends to make the standard libraries less like other libraries than - they could be, complicating code and build systems alike. Because of the - other problems, and because of these innate disadvantages, compilers ought - to be packaged another way where possible. + because bigger derivations means longer rebuilds. It is also problematic + because it tends to make the standard libraries less like other libraries + than they could be, complicating code and build systems alike. Because of + the other problems, and because of these innate disadvantages, compilers + ought to be packaged another way where possible. diff --git a/doc/functions/dockertools.xml b/doc/functions/dockertools.xml index a284182bb047c..6b293a2e77879 100644 --- a/doc/functions/dockertools.xml +++ b/doc/functions/dockertools.xml @@ -325,10 +325,9 @@ hello latest de2bf4786de6 About a minute ago 25.2MB - Shell commands to run while building the final layer, without access - to most of the layer contents. Changes to this layer are "on top" - of all the other layers, so can create additional directories - and files. + Shell commands to run while building the final layer, without access to + most of the layer contents. Changes to this layer are "on top" of all the + other layers, so can create additional directories and files. @@ -493,28 +492,23 @@ pullImage { - nix-prefetch-docker command can be used to get required - image parameters: - + nix-prefetch-docker command can be used to get required + image parameters: $ nix run nixpkgs.nix-prefetch-docker -c nix-prefetch-docker --image-name mysql --image-tag 5 - - Since a given imageName may transparently refer to a - manifest list of images which support multiple architectures and/or - operating systems, you can supply the and - arguments to specify exactly which image you want. - By default it will match the OS and architecture of the host the command is - run on. - + Since a given imageName may transparently refer to a + manifest list of images which support multiple architectures and/or + operating systems, you can supply the and + arguments to specify exactly which image you want. + By default it will match the OS and architecture of the host the command is + run on. $ nix-prefetch-docker --image-name mysql --image-tag 5 --arch x86_64 --os linux - - Desired image name and tag can be set using - and - arguments: - + Desired image name and tag can be set using + and + arguments: $ nix-prefetch-docker --image-name mysql --image-tag 5 --final-image-name eu.gcr.io/my-project/mysql --final-image-tag prod diff --git a/doc/functions/ocitools.xml b/doc/functions/ocitools.xml index 163bee2382e6f..56de0c22ec610 100644 --- a/doc/functions/ocitools.xml +++ b/doc/functions/ocitools.xml @@ -51,10 +51,10 @@ buildContainer { - args specifies a set of arguments to run inside the container. - This is the only required argument for buildContainer. - All referenced packages inside the derivation will be made available - inside the container + args specifies a set of arguments to run inside the + container. This is the only required argument for + buildContainer. All referenced packages inside the + derivation will be made available inside the container @@ -66,8 +66,8 @@ buildContainer { - readonly makes the container's rootfs read-only if it is set to true. - The default value is false false. + readonly makes the container's rootfs read-only if it + is set to true. The default value is false false. diff --git a/doc/languages-frameworks/gnome.xml b/doc/languages-frameworks/gnome.xml index 9e0f21a6c74fc..42b4ae04322ff 100644 --- a/doc/languages-frameworks/gnome.xml +++ b/doc/languages-frameworks/gnome.xml @@ -5,26 +5,53 @@ Packaging GNOME applications - Programs in the GNOME universe are written in various languages but they all use GObject-based libraries like GLib, GTK or GStreamer. These libraries are often modular, relying on looking into certain directories to find their modules. However, due to Nix’s specific file system organization, this will fail without our intervention. Fortunately, the libraries usually allow overriding the directories through environment variables, either natively or thanks to a patch in nixpkgs. Wrapping the executables to ensure correct paths are available to the application constitutes a significant part of packaging a modern desktop application. In this section, we will describe various modules needed by such applications, environment variables needed to make the modules load, and finally a script that will do the work for us. + Programs in the GNOME universe are written in various languages but they all + use GObject-based libraries like GLib, GTK or GStreamer. These libraries are + often modular, relying on looking into certain directories to find their + modules. However, due to Nix’s specific file system organization, this + will fail without our intervention. Fortunately, the libraries usually allow + overriding the directories through environment variables, either natively or + thanks to a patch in nixpkgs. + Wrapping the executables to + ensure correct paths are available to the application constitutes a + significant part of packaging a modern desktop application. In this section, + we will describe various modules needed by such applications, environment + variables needed to make the modules load, and finally a script that will do + the work for us.
Settings - GSettings API is often used for storing settings. GSettings schemas are required, to know the type and other metadata of the stored values. GLib looks for glib-2.0/schemas/gschemas.compiled files inside the directories of XDG_DATA_DIRS. + GSettings + API is often used for storing settings. GSettings schemas are required, to + know the type and other metadata of the stored values. GLib looks for + glib-2.0/schemas/gschemas.compiled files inside the + directories of XDG_DATA_DIRS. - On Linux, GSettings API is implemented using dconf backend. You will need to add dconf GIO module to GIO_EXTRA_MODULES variable, otherwise the memory backend will be used and the saved settings will not be persistent. + On Linux, GSettings API is implemented using + dconf + backend. You will need to add dconf GIO module to + GIO_EXTRA_MODULES variable, otherwise the + memory backend will be used and the saved settings will + not be persistent. - Last you will need the dconf database D-Bus service itself. You can enable it using . + Last you will need the dconf database D-Bus service itself. You can enable + it using . - Some applications will also require gsettings-desktop-schemas for things like reading proxy configuration or user interface customization. This dependency is often not mentioned by upstream, you should grep for org.gnome.desktop and org.gnome.system to see if the schemas are needed. + Some applications will also require + gsettings-desktop-schemas for things like reading proxy + configuration or user interface customization. This dependency is often not + mentioned by upstream, you should grep for + org.gnome.desktop and + org.gnome.system to see if the schemas are needed.
@@ -32,7 +59,16 @@ Icons - When an application uses icons, an icon theme should be available in XDG_DATA_DIRS. The package for the default, icon-less hicolor-icon-theme contains a setup hook that will pick up icon themes from buildInputs and pass it to our wrapper. Unfortunately, relying on that would mean every user has to download the theme included in the package expression no matter their preference. For that reason, we leave the installation of icon theme on the user. If you use one of the desktop environments, you probably already have an icon theme installed. + When an application uses icons, an icon theme should be available in + XDG_DATA_DIRS. The package for the default, icon-less + hicolor-icon-theme + contains a setup + hook that will pick up icon themes from + buildInputs and pass it to our wrapper. Unfortunately, + relying on that would mean every user has to download the theme included in + the package expression no matter their preference. For that reason, we + leave the installation of icon theme on the user. If you use one of the + desktop environments, you probably already have an icon theme installed. @@ -40,7 +76,12 @@ GTK Themes - Previously, a GTK theme needed to be in XDG_DATA_DIRS. This is no longer necessary for most programs since GTK incorporated Adwaita theme. Some programs (for example, those designed for elementary HIG) might require a special theme like pantheon.elementary-gtk-theme. + Previously, a GTK theme needed to be in XDG_DATA_DIRS. This + is no longer necessary for most programs since GTK incorporated Adwaita + theme. Some programs (for example, those designed for + elementary + HIG) might require a special theme like + pantheon.elementary-gtk-theme. @@ -48,7 +89,10 @@ GObject introspection typelibs - GObject introspection allows applications to use C libraries in other languages easily. It does this through typelib files searched in GI_TYPELIB_PATH. + GObject + introspection allows applications to use C libraries in other + languages easily. It does this through typelib files + searched in GI_TYPELIB_PATH. @@ -56,7 +100,11 @@ Various plug-ins - If your application uses GStreamer or Grilo, you should set GST_PLUGIN_SYSTEM_PATH_1_0 and GRL_PLUGIN_PATH, respectively. + If your application uses + GStreamer or + Grilo, you + should set GST_PLUGIN_SYSTEM_PATH_1_0 and + GRL_PLUGIN_PATH, respectively. @@ -65,7 +113,8 @@ Onto <package>wrapGAppsHook</package> - Given the requirements above, the package expression would become messy quickly: + Given the requirements above, the package expression would become messy + quickly: preFixup = '' for f in $(find $out/bin/ $out/libexec/ -type f -executable); do @@ -79,48 +128,76 @@ preFixup = '' done ''; - Fortunately, there is wrapGAppsHook, that does the wrapping for us. In particular, it works in conjunction with other setup hooks that will populate the variable: + Fortunately, there is wrapGAppsHook, that does the + wrapping for us. In particular, it works in conjunction with other setup + hooks that will populate the variable: - wrapGAppsHook itself will add the package’s share directory to XDG_DATA_DIRS. + wrapGAppsHook itself will add the package’s + share directory to XDG_DATA_DIRS. - glib setup hook will populate GSETTINGS_SCHEMAS_PATH and then wrapGAppsHook will prepend it to XDG_DATA_DIRS. + glib setup hook will populate + GSETTINGS_SCHEMAS_PATH and then + wrapGAppsHook will prepend it to + XDG_DATA_DIRS. - gnome3.dconf.lib is a dependency of wrapGAppsHook, which then also adds it to the GIO_EXTRA_MODULES variable. + gnome3.dconf.lib is a dependency of + wrapGAppsHook, which then also adds it to the + GIO_EXTRA_MODULES variable. - hicolor-icon-theme’s setup hook will add icon themes to XDG_ICON_DIRS which is prepended to XDG_DATA_DIRS by wrapGAppsHook. + hicolor-icon-theme’s setup hook will add icon themes + to XDG_ICON_DIRS which is prepended to + XDG_DATA_DIRS by wrapGAppsHook. - gobject-introspection setup hook populates GI_TYPELIB_PATH variable with lib/girepository-1.0 directories of dependencies, which is then added to wrapper by wrapGAppsHook. It also adds share directories of dependencies to XDG_DATA_DIRS, which is intended to promote GIR files but it also pollutes the closures of packages using wrapGAppsHook. + gobject-introspection setup hook populates + GI_TYPELIB_PATH variable with + lib/girepository-1.0 directories of dependencies, + which is then added to wrapper by wrapGAppsHook. It + also adds share directories of dependencies to + XDG_DATA_DIRS, which is intended to promote GIR files but + it also + pollutes + the closures of packages using wrapGAppsHook. - The setup hook currently does not work in expressions with strictDeps enabled, like Python packages. In those cases, you will need to disable it with strictDeps = false;. + The setup hook + currently + does not work in expressions with strictDeps enabled, + like Python packages. In those cases, you will need to disable it with + strictDeps = false;. - Setup hooks of gst_all_1.gstreamer and gnome3.grilo will populate the GST_PLUGIN_SYSTEM_PATH_1_0 and GRL_PLUGIN_PATH variables, respectively, which will then be added to the wrapper by wrapGAppsHook. + Setup hooks of gst_all_1.gstreamer and + gnome3.grilo will populate the + GST_PLUGIN_SYSTEM_PATH_1_0 and + GRL_PLUGIN_PATH variables, respectively, which will then + be added to the wrapper by wrapGAppsHook. - You can also pass additional arguments to makeWrapper using gappsWrapperArgs in preFixup hook: + You can also pass additional arguments to makeWrapper + using gappsWrapperArgs in preFixup + hook: preFixup = '' gappsWrapperArgs+=( @@ -138,7 +215,13 @@ preFixup = '' Updating GNOME packages - Most GNOME package offer updateScript, it is therefore possible to update to latest source tarball by running nix-shell maintainers/scripts/update.nix --argstr package gnome3.nautilus or even en masse with nix-shell maintainers/scripts/update.nix --argstr path gnome3. Read the package’s NEWS file to see what changed. + Most GNOME package offer + updateScript, + it is therefore possible to update to latest source tarball by running + nix-shell maintainers/scripts/update.nix --argstr package + gnome3.nautilus or even en masse with nix-shell + maintainers/scripts/update.nix --argstr path gnome3. Read the + package’s NEWS file to see what changed. @@ -152,7 +235,17 @@ preFixup = '' - There are no schemas avalable in XDG_DATA_DIRS. Temporarily add a random package containing schemas like gsettings-desktop-schemas to buildInputs. glib and wrapGAppsHook setup hooks will take care of making the schemas available to application and you will see the actual missing schemas with the next error. Or you can try looking through the source code for the actual schemas used. + There are no schemas avalable in XDG_DATA_DIRS. + Temporarily add a random package containing schemas like + gsettings-desktop-schemas to + buildInputs. + glib and + wrapGAppsHook + setup hooks will take care of making the schemas available to application + and you will see the actual missing schemas with the + next + error. Or you can try looking through the source code for the + actual schemas used. @@ -162,7 +255,11 @@ preFixup = '' - Package is missing some GSettings schemas. You can find out the package containing the schema with nix-locate org.gnome.foo.gschema.xml and let the hooks handle the wrapping as above. + Package is missing some GSettings schemas. You can find out the package + containing the schema with nix-locate + org.gnome.foo.gschema.xml and let + the hooks handle the wrapping as + above. @@ -172,7 +269,14 @@ preFixup = '' - This is because derivers like python.pkgs.buildPythonApplication or qt5.mkDerivation have setup-hooks automatically added that produce wrappers with makeWrapper. The simplest way to workaround that is to disable the wrapGAppsHook automatic wrapping with dontWrapGApps = true; and pass the arguments it intended to pass to makeWrapper to another. + This is because derivers like + python.pkgs.buildPythonApplication or + qt5.mkDerivation have setup-hooks automatically + added that produce wrappers with makeWrapper. The + simplest way to workaround that is to disable the + wrapGAppsHook automatic wrapping with + dontWrapGApps = true; and pass the arguments it intended to + pass to makeWrapper to another. In the case of a Python application it could look like: @@ -224,34 +328,55 @@ mkDerivation { - You can rely on applications depending on the library set the necessary environment variables but that it often easy to miss. Instead we recommend to patch the paths in the source code whenever possible. Here are some examples: + You can rely on applications depending on the library set the necessary + environment variables but that it often easy to miss. Instead we + recommend to patch the paths in the source code whenever possible. Here + are some examples: - Replacing a GI_TYPELIB_PATH in GNOME Shell extension – we are using substituteAll to include the path to a typelib into a patch. + Replacing + a GI_TYPELIB_PATH in GNOME Shell extension – + we are using substituteAll to include the path to + a typelib into a patch. - The following examples are hardcoding GSettings schema paths. To get the schema paths we use the functions + The following examples are hardcoding GSettings schema paths. To get + the schema paths we use the functions - glib.getSchemaPath Takes a nix package attribute as an argument. + glib.getSchemaPath Takes a nix package + attribute as an argument. - glib.makeSchemaPath Takes a package output like $out and a derivation name. You should use this if the schemas you need to hardcode are in the same derivation. + glib.makeSchemaPath Takes a package output + like $out and a derivation name. You should use + this if the schemas you need to hardcode are in the same + derivation. - Hard-coding GSettings schema path in Vala plug-in (dynamically loaded library) – here, substituteAll cannot be used since the schema comes from the same package preventing us from pass its path to the function, probably due to a Nix bug. + Hard-coding + GSettings schema path in Vala plug-in (dynamically loaded + library) – here, substituteAll cannot be + used since the schema comes from the same package preventing us from + pass its path to the function, probably due to a + Nix + bug. - Hard-coding GSettings schema path in C library – nothing special other than using Coccinelle patch to generate the patch itself. + Hard-coding + GSettings schema path in C library – nothing special other + than using + Coccinelle + patch to generate the patch itself. diff --git a/doc/languages-frameworks/perl.xml b/doc/languages-frameworks/perl.xml index 065212a0e1807..d5911cf67fd7b 100644 --- a/doc/languages-frameworks/perl.xml +++ b/doc/languages-frameworks/perl.xml @@ -141,8 +141,8 @@ ClassC3Componentised = buildPerlPackage rec { On Darwin, if a script has too many -Idir flags in its first line - (its “shebang line”), it will not run. This can be worked around by calling - the shortenPerlShebang function from the + (its “shebang line”), it will not run. This can be worked around by + calling the shortenPerlShebang function from the postInstall phase: { stdenv, buildPerlPackage, fetchurl, shortenPerlShebang }: @@ -162,10 +162,10 @@ ImageExifTool = buildPerlPackage { ''; }; - This will remove the -I flags from the shebang line, - rewrite them in the use lib form, and put them on the next - line instead. This function can be given any number of Perl scripts as - arguments; it will modify them in-place. + This will remove the -I flags from the shebang line, + rewrite them in the use lib form, and put them on the next + line instead. This function can be given any number of Perl scripts as + arguments; it will modify them in-place.
diff --git a/doc/languages-frameworks/qt.xml b/doc/languages-frameworks/qt.xml index 3332ce8c06e42..d6f3314ab08db 100644 --- a/doc/languages-frameworks/qt.xml +++ b/doc/languages-frameworks/qt.xml @@ -4,16 +4,16 @@ Qt - This section describes the differences between Nix expressions for Qt - libraries and applications and Nix expressions for other C++ software. Some - knowledge of the latter is assumed. There are primarily two problems which - the Qt infrastructure is designed to address: ensuring consistent versioning - of all dependencies and finding dependencies at runtime. + This section describes the differences between Nix expressions for Qt + libraries and applications and Nix expressions for other C++ software. Some + knowledge of the latter is assumed. There are primarily two problems which + the Qt infrastructure is designed to address: ensuring consistent versioning + of all dependencies and finding dependencies at runtime. - Nix expression for a Qt package (<filename>default.nix</filename>) - + Nix expression for a Qt package (<filename>default.nix</filename>) + { mkDerivation, lib, qtbase }: mkDerivation { @@ -26,53 +26,51 @@ mkDerivation { - - - Import mkDerivation and Qt (such as - qtbase modules directly. Do not - import Qt package sets; the Qt versions of dependencies may not be - coherent, causing build and runtime failures. - - - - - Use mkDerivation instead of - stdenv.mkDerivation. mkDerivation - is a wrapper around stdenv.mkDerivation which - applies some Qt-specific settings. - This deriver accepts the same arguments as - stdenv.mkDerivation; refer to - for details. - - - To use another deriver instead of - stdenv.mkDerivation, use - mkDerivationWith: + + + Import mkDerivation and Qt (such as + qtbase modules directly. Do not + import Qt package sets; the Qt versions of dependencies may not be + coherent, causing build and runtime failures. + + + + + Use mkDerivation instead of + stdenv.mkDerivation. mkDerivation is + a wrapper around stdenv.mkDerivation which applies some + Qt-specific settings. This deriver accepts the same arguments as + stdenv.mkDerivation; refer to + for details. + + + To use another deriver instead of stdenv.mkDerivation, + use mkDerivationWith: mkDerivationWith myDeriver { # ... } - If you cannot use mkDerivationWith, please refer to - . - - - - - mkDerivation accepts the same arguments as - stdenv.mkDerivation, such as - buildInputs. - - + If you cannot use mkDerivationWith, please refer to + . + + + + + mkDerivation accepts the same arguments as + stdenv.mkDerivation, such as + buildInputs. + + - Locating runtime dependencies - - Qt applications need to be wrapped to find runtime dependencies. If you - cannot use mkDerivation or - mkDerivationWith above, include - wrapQtAppsHook in nativeBuildInputs: + Locating runtime dependencies + + Qt applications need to be wrapped to find runtime dependencies. If you + cannot use mkDerivation or + mkDerivationWith above, include + wrapQtAppsHook in nativeBuildInputs: stdenv.mkDerivation { # ... @@ -80,13 +78,13 @@ stdenv.mkDerivation { nativeBuildInputs = [ wrapQtAppsHook ]; } - + - Entries added to qtWrapperArgs are used to modify the - wrappers created by wrapQtAppsHook. The entries are - passed as arguments to . + Entries added to qtWrapperArgs are used to modify the + wrappers created by wrapQtAppsHook. The entries are passed + as arguments to . mkDerivation { # ... @@ -97,8 +95,8 @@ mkDerivation { - Set dontWrapQtApps to stop applications from being - wrapped automatically. It is required to wrap applications manually with + Set dontWrapQtApps to stop applications from being wrapped + automatically. It is required to wrap applications manually with wrapQtApp, using the syntax of : @@ -115,16 +113,17 @@ mkDerivation { - wrapQtAppsHook ignores files that are non-ELF executables. - This means that scripts won't be automatically wrapped so you'll need to manually - wrap them as previously mentioned. An example of when you'd always need to do this - is with Python applications that use PyQT. + wrapQtAppsHook ignores files that are non-ELF + executables. This means that scripts won't be automatically wrapped so + you'll need to manually wrap them as previously mentioned. An example of + when you'd always need to do this is with Python applications that use PyQT. - Libraries are built with every available version of Qt. Use the meta.broken - attribute to disable the package for unsupported Qt versions: + Libraries are built with every available version of Qt. Use the + meta.broken attribute to disable the package for + unsupported Qt versions: mkDerivation { # ... @@ -136,13 +135,13 @@ mkDerivation { - Adding a library to Nixpkgs - - Add a Qt library to all-packages.nix by adding it to the - collection inside mkLibsForQt5. This ensures that the - library is built with every available version of Qt as needed. - - Adding a Qt library to <filename>all-packages.nix</filename> + Adding a library to Nixpkgs + + Add a Qt library to all-packages.nix by adding it to + the collection inside mkLibsForQt5. This ensures that the + library is built with every available version of Qt as needed. + + Adding a Qt library to <filename>all-packages.nix</filename> { # ... @@ -156,19 +155,19 @@ mkDerivation { # ... } - - + + - Adding an application to Nixpkgs - - Add a Qt application to all-packages.nix using - libsForQt5.callPackage instead of the usual - callPackage. The former ensures that all dependencies - are built with the same version of Qt. - - Adding a Qt application to <filename>all-packages.nix</filename> + Adding an application to Nixpkgs + + Add a Qt application to all-packages.nix using + libsForQt5.callPackage instead of the usual + callPackage. The former ensures that all dependencies are + built with the same version of Qt. + + Adding a Qt application to <filename>all-packages.nix</filename> { # ... @@ -178,8 +177,7 @@ mkDerivation { # ... } - - + + -
diff --git a/doc/meta.xml b/doc/meta.xml index 58c390a68b84d..49db73ab79e61 100644 --- a/doc/meta.xml +++ b/doc/meta.xml @@ -156,9 +156,9 @@ hello-2.3 A program that produces a familiar, friendly greeting - A link or a list of links to the location of Changelog for a package. - A link may use expansion to refer to the correct changelog version. - Example: + A link or a list of links to the location of Changelog for a package. A + link may use expansion to refer to the correct changelog version. + Example: "https://git.savannah.gnu.org/cgit/hello.git/plain/NEWS?h=v${version}" @@ -273,8 +273,8 @@ meta.platforms = stdenv.lib.platforms.linux; This attribute is special in that it is not actually under the meta attribute set but rather under the passthru attribute set. This is due to how - meta attributes work, and the fact that they - are supposed to contain only metadata, not derivations. + meta attributes work, and the fact that they are + supposed to contain only metadata, not derivations.
diff --git a/doc/package-notes.xml b/doc/package-notes.xml index d2c660e22a9b0..ef3c2a7c848a5 100644 --- a/doc/package-notes.xml +++ b/doc/package-notes.xml @@ -311,7 +311,8 @@ packageOverrides = pkgs: { Elm - To start a development environment do nix-shell -p elmPackages.elm elmPackages.elm-format + To start a development environment do nix-shell -p elmPackages.elm + elmPackages.elm-format @@ -506,10 +507,11 @@ stdenv.mkDerivation { The IBus engine is based on hunspell to support completion in many languages. By default the dictionaries - de-de, en-us, fr-moderne - es-es, it-it, - sv-se and sv-fi are in use. To add - another dictionary, the package can be overridden like this: + de-de, en-us, + fr-moderne es-es, + it-it, sv-se and + sv-fi are in use. To add another dictionary, the package + can be overridden like this: ibus-engines.typing-booster.override { langs = [ "de-at" "en-gb" ]; } @@ -543,47 +545,45 @@ stdenv.mkDerivation { Nginx - Nginx is a - reverse proxy and lightweight webserver. + Nginx is a reverse proxy and + lightweight webserver.
ETags on static files served from the Nix store - HTTP has a couple different mechanisms for caching to prevent - clients from having to download the same content repeatedly - if a resource has not changed since the last time it was requested. - When nginx is used as a server for static files, it implements - the caching mechanism based on the - Last-Modified - response header automatically; unfortunately, it works by using - filesystem timestamps to determine the value of the - Last-Modified header. This doesn't give the - desired behavior when the file is in the Nix store, because all - file timestamps are set to 0 (for reasons related to build - reproducibility). + HTTP has a couple different mechanisms for caching to prevent clients from + having to download the same content repeatedly if a resource has not + changed since the last time it was requested. When nginx is used as a + server for static files, it implements the caching mechanism based on the + Last-Modified + response header automatically; unfortunately, it works by using filesystem + timestamps to determine the value of the Last-Modified + header. This doesn't give the desired behavior when the file is in the Nix + store, because all file timestamps are set to 0 (for reasons related to + build reproducibility). - Fortunately, HTTP supports an alternative (and more effective) - caching mechanism: the + Fortunately, HTTP supports an alternative (and more effective) caching + mechanism: the ETag - response header. The value of the ETag header - specifies some identifier for the particular content that the - server is sending (e.g. a hash). When a client makes a second - request for the same resource, it sends that value back in an - If-None-Match header. If the ETag value is - unchanged, then the server does not need to resend the content. + response header. The value of the ETag header specifies + some identifier for the particular content that the server is sending (e.g. + a hash). When a client makes a second request for the same resource, it + sends that value back in an If-None-Match header. If the + ETag value is unchanged, then the server does not need to resend the + content. - As of NixOS 19.09, the nginx package in Nixpkgs is patched such - that when nginx serves a file out of /nix/store, - the hash in the store path is used as the ETag - header in the HTTP response, thus providing proper caching functionality. - This happens automatically; you do not need to do modify any - configuration to get this behavior. + As of NixOS 19.09, the nginx package in Nixpkgs is patched such that when + nginx serves a file out of /nix/store, the hash in the + store path is used as the ETag header in the HTTP + response, thus providing proper caching functionality. This happens + automatically; you do not need to do modify any configuration to get this + behavior.
diff --git a/doc/package-specific-user-notes.xml b/doc/package-specific-user-notes.xml index ef23b022c887a..09af69bb15d84 100644 --- a/doc/package-specific-user-notes.xml +++ b/doc/package-specific-user-notes.xml @@ -1,14 +1,10 @@ Package-specific usage notes - These chapters includes some notes - that apply to specific packages and should - answer some of the frequently asked questions - related to Nixpkgs use. - - Some useful information related to package use - can be found in package-specific development notes. - + These chapters includes some notes that apply to specific packages and should + answer some of the frequently asked questions related to Nixpkgs use. Some + useful information related to package use can be found in + package-specific development notes.
OpenGL @@ -47,7 +43,6 @@ locales of the package.
-
Emacs @@ -204,46 +199,43 @@ overrides = self: super: rec {
-
DLib - DLib is a modern, C++-based toolkit which - provides several machine learning algorithms. + DLib is a modern, C++-based + toolkit which provides several machine learning algorithms.
Compiling without AVX support - Especially older CPUs don't support - AVX - (Advanced Vector Extensions) instructions that are used by DLib to - optimize their algorithms. + Especially older CPUs don't support + AVX + (Advanced Vector Extensions) instructions that are used by + DLib to optimize their algorithms. - On the affected hardware errors like Illegal instruction will occur. - In those cases AVX support needs to be disabled: + On the affected hardware errors like Illegal instruction + will occur. In those cases AVX support needs to be disabled: self: super: { dlib = super.dlib.override { avxSupport = false; }; }
-
Unfree software All users of Nixpkgs are free software users, and many users (and developers) of Nixpkgs want to limit and tightly control their exposure to - unfree software. At the same time, many users need (or want) - to run some specific - pieces of proprietary software. Nixpkgs includes some expressions for unfree - software packages. By default unfree software cannot be installed and - doesn’t show up in searches. To allow installing unfree software in a + unfree software. At the same time, many users need (or want) to run some + specific pieces of proprietary software. Nixpkgs includes some expressions + for unfree software packages. By default unfree software cannot be installed + and doesn’t show up in searches. To allow installing unfree software in a single Nix invocation one can export NIXPKGS_ALLOW_UNFREE=1. For a persistent solution, users can set allowUnfree in the Nixpkgs configuration. @@ -256,7 +248,6 @@ overrides = self: super: rec { true for unfree packages that should be allowed.
-
Steam @@ -407,21 +398,24 @@ overrides = self: super: rec {
-
Citrix Receiver & Citrix Workspace App - Please note that the citrix_receiver package has been deprecated since its - development was discontinued by upstream - and has been replaced by the citrix workspace app. + Please note that the citrix_receiver package has been + deprecated since its development was + discontinued + by upstream and has been replaced by + the + citrix workspace app. - Citrix Receiver and - Citrix Workspace App - are a remote desktop viewers which provide access to + Citrix + Receiver and + Citrix + Workspace App are a remote desktop viewers which provide access to XenDesktop installations. @@ -432,24 +426,24 @@ overrides = self: super: rec { The tarball archive needs to be downloaded manually as the license agreements of the vendor for - Citrix Receiver - or Citrix Workspace - need to be accepted first. - Then run nix-prefetch-url file://$PWD/linuxx64-$version.tar.gz. - With the archive available - in the store the package can be built and installed with Nix. + Citrix + Receiver or + Citrix + Workspace need to be accepted first. Then run + nix-prefetch-url file://$PWD/linuxx64-$version.tar.gz. + With the archive available in the store the package can be built and + installed with Nix. Caution with <command>nix-shell</command> installs - It's recommended to install Citrix Receiver - and/or Citrix Workspace using - nix-env -i or globally to - ensure that the .desktop files are installed properly - into $XDG_CONFIG_DIRS. Otherwise it won't be possible to - open .ica files automatically from the browser to start - a Citrix connection. + It's recommended to install Citrix Receiver and/or + Citrix Workspace using nix-env -i or + globally to ensure that the .desktop files are + installed properly into $XDG_CONFIG_DIRS. Otherwise it + won't be possible to open .ica files automatically from + the browser to start a Citrix connection.
@@ -458,8 +452,8 @@ overrides = self: super: rec { Custom certificates - The Citrix Workspace App - in nixpkgs trust several certificates + The Citrix Workspace App in nixpkgs + trust several certificates from the Mozilla database by default. However several companies using Citrix might require their own corporate certificate. On distros with imperative diff --git a/doc/quick-start.xml b/doc/quick-start.xml index 292d66864a4c1..39e3e7396bd57 100644 --- a/doc/quick-start.xml +++ b/doc/quick-start.xml @@ -210,9 +210,11 @@
- Optionally commit the new package and open a pull request to nixpkgs, or - use to + nixpkgs, or use + the Patches category on Discourse for sending a patch without a GitHub account. diff --git a/doc/stdenv.xml b/doc/stdenv.xml index f8c2aff978547..a4bc2809be05c 100644 --- a/doc/stdenv.xml +++ b/doc/stdenv.xml @@ -736,8 +736,8 @@ passthru.updateScript = [ ../../update.sh pname "--requested-release=unstable" ] commit or any other commands that cannot handle that. - For information about how to run the updates, execute - nix-shell maintainers/scripts/update.nix. + For information about how to run the updates, execute nix-shell + maintainers/scripts/update.nix. @@ -764,7 +764,8 @@ passthru.updateScript = [ ../../update.sh pname "--requested-release=unstable" ] to add some commands to a phase, e.g. by defining postInstall or preFixup, as skipping some of the default actions may have unexpected consequences. The default - script for each phase is defined in the file pkgs/stdenv/generic/setup.sh. + script for each phase is defined in the file + pkgs/stdenv/generic/setup.sh.
@@ -786,7 +787,8 @@ passthru.updateScript = [ ../../update.sh pname "--requested-release=unstable" ] set, the default value is used, which is $prePhases unpackPhase patchPhase $preConfigurePhases configurePhase $preBuildPhases buildPhase checkPhase $preInstallPhases installPhase - fixupPhase installCheckPhase $preDistPhases distPhase $postPhases. + fixupPhase installCheckPhase $preDistPhases distPhase + $postPhases. Usually, if you just want to add a few phases, it’s more convenient @@ -1605,7 +1607,7 @@ installTargets = "install-bin install-doc"; - Set to true to skip the fixup phase. + Set to true to skip the fixup phase. @@ -2411,12 +2413,12 @@ addEnvHooks "$hostOffset" myBashFunction The Bintools Wrapper was only just recently split off from CC Wrapper, so the division of labor is still being worked out. For example, it - shouldn't care about the C standard library, but just take a - derivation with the dynamic loader (which happens to be the glibc on - linux). Dependency finding however is a task both wrappers will continue - to need to share, and probably the most important to understand. It is - currently accomplished by collecting directories of host-platform - dependencies (i.e. buildInputs and + shouldn't care about the C standard library, but just take a derivation + with the dynamic loader (which happens to be the glibc on linux). + Dependency finding however is a task both wrappers will continue to need + to share, and probably the most important to understand. It is currently + accomplished by collecting directories of host-platform dependencies + (i.e. buildInputs and nativeBuildInputs) in environment variables. The Bintools Wrapper's setup hook causes any lib and lib64 subdirectories to be added to @@ -2633,7 +2635,8 @@ addEnvHooks "$hostOffset" myBashFunction - Hooks related to GNOME platform and related libraries like GLib, GTK and GStreamer are described in . + Hooks related to GNOME platform and related libraries like GLib, GTK and + GStreamer are described in . @@ -2688,12 +2691,12 @@ addEnvHooks "$hostOffset" myBashFunction At /var/lib/cntr the sandboxed filesystem is mounted. All commands and files of the system are still accessible within the shell. To execute commands from the sandbox use the cntr exec - subcommand. cntr is only supported - on Linux-based platforms. To use it first add cntr to - your environment.systemPackages on NixOS or - alternatively to the root user on non-NixOS systems. Then in the package - that is supposed to be inspected, add breakpointHook - to nativeBuildInputs. + subcommand. cntr is only supported on Linux-based + platforms. To use it first add cntr to your + environment.systemPackages on NixOS or alternatively + to the root user on non-NixOS systems. Then in the package that is + supposed to be inspected, add breakpointHook to + nativeBuildInputs. nativeBuildInputs = [ breakpointHook ]; @@ -2703,11 +2706,11 @@ nativeBuildInputs = [ breakpointHook ]; Caution with remote builds - This won't work with remote builds as the build environment is on - a different machine and can't be accessed by cntr. - Remote builds can be turned off by setting --option builders '' - for nix-build or --builders '' for - nix build. + This won't work with remote builds as the build environment is on a + different machine and can't be accessed by cntr. + Remote builds can be turned off by setting --option builders + '' for nix-build or --builders + '' for nix build. @@ -2806,17 +2809,78 @@ postInstall = '' - meson + Meson - Overrides the configure phase to run meson to generate Ninja files. You - can disable this behavior by setting configurePhase to a custom value, - or by setting dontUseMesonConfigure. To run these files, you should - accompany meson with ninja. mesonFlags controls only the flags passed to - meson. By default, parallel building is enabled as Meson supports + Overrides the configure phase to run meson to generate Ninja files. To + run these files, you should accompany Meson with ninja. By default, + enableParallelBuilding is enabled as Meson supports parallel building almost everywhere. + + Variables controlling Meson + + + mesonFlags + + + + Controls the flags passed to meson. + + + + + + mesonBuildType + + + + Which + --buildtype + to pass to Meson. We default to plain. + + + + + + mesonAutoFeatures + + + + What value to set + -Dauto_features= + to. We default to enabled. + + + + + + mesonWrapMode + + + + What value to set + -Dwrap_mode= + to. We default to nodownload as we disallow + network access. + + + + + + dontUseMesonConfigure + + + + Disables using Meson's configurePhase. + + + + @@ -2851,8 +2915,8 @@ postInstall = '' Overrides the configure, build, and install phases. This will run the "waf" script used by many projects. If wafPath (default ./waf) doesn’t - exist, it will copy the version of waf available in Nixpkgs. wafFlags can - be used to pass flags to the waf script. + exist, it will copy the version of waf available in Nixpkgs. wafFlags + can be used to pass flags to the waf script. -- cgit 1.4.1 From 83c2ad80ca8c6087b034155e2a767c4f72a6df3f Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Wed, 18 Sep 2019 22:12:54 +0200 Subject: doc: re-format --- doc/coding-conventions.xml | 306 ++------ doc/configuration.xml | 184 ++--- doc/contributing.xml | 15 +- doc/cross-compilation.xml | 390 ++-------- doc/functions.xml | 3 +- doc/functions/appimagetools.xml | 32 +- doc/functions/debug.xml | 11 +- doc/functions/dockertools.xml | 224 ++---- doc/functions/fetchers.xml | 78 +- doc/functions/fhs-environments.xml | 38 +- doc/functions/generators.xml | 25 +- doc/functions/library.xml | 3 +- doc/functions/library/asserts.xml | 13 +- doc/functions/library/attrsets.xml | 145 ++-- doc/functions/nix-gitignore.xml | 24 +- doc/functions/ocitools.xml | 26 +- doc/functions/overrides.xml | 95 +-- doc/functions/prefer-remote-fetch.xml | 8 +- doc/functions/shell.xml | 4 +- doc/functions/snaptools.xml | 31 +- doc/functions/trivial-builders.xml | 46 +- doc/languages-frameworks/beam.xml | 163 +---- doc/languages-frameworks/bower.xml | 71 +- doc/languages-frameworks/coq.xml | 20 +- doc/languages-frameworks/gnome.xml | 185 +---- doc/languages-frameworks/go.xml | 73 +- doc/languages-frameworks/index.xml | 7 +- doc/languages-frameworks/java.xml | 40 +- doc/languages-frameworks/lua.xml | 20 +- doc/languages-frameworks/ocaml.xml | 32 +- doc/languages-frameworks/perl.xml | 98 +-- doc/languages-frameworks/qt.xml | 60 +- doc/languages-frameworks/ruby.xml | 37 +- doc/languages-frameworks/texlive.xml | 27 +- doc/meta.xml | 164 +---- doc/multiple-output.xml | 158 +--- doc/overlays.xml | 93 +-- doc/package-notes.xml | 262 ++----- doc/package-specific-user-notes.xml | 175 +---- doc/platform-notes.xml | 34 +- doc/quick-start.xml | 144 +--- doc/release-notes.xml | 260 ++----- doc/reviewing-contributions.xml | 160 ++-- doc/stdenv.xml | 1299 ++++++--------------------------- doc/submitting-changes.xml | 171 +---- 45 files changed, 1105 insertions(+), 4349 deletions(-) (limited to 'doc') diff --git a/doc/coding-conventions.xml b/doc/coding-conventions.xml index 48356247a49e1..799f1479467a5 100644 --- a/doc/coding-conventions.xml +++ b/doc/coding-conventions.xml @@ -8,24 +8,17 @@ - Use 2 spaces of indentation per indentation level in Nix expressions, 4 - spaces in shell scripts. + Use 2 spaces of indentation per indentation level in Nix expressions, 4 spaces in shell scripts. - Do not use tab characters, i.e. configure your editor to use soft tabs. - For instance, use (setq-default indent-tabs-mode nil) - in Emacs. Everybody has different tab settings so it’s asking for - trouble. + Do not use tab characters, i.e. configure your editor to use soft tabs. For instance, use (setq-default indent-tabs-mode nil) in Emacs. Everybody has different tab settings so it’s asking for trouble. - Use lowerCamelCase for variable names, not - UpperCamelCase. Note, this rule does not apply to - package attribute names, which instead follow the rules in - . + Use lowerCamelCase for variable names, not UpperCamelCase. Note, this rule does not apply to package attribute names, which instead follow the rules in . @@ -52,8 +45,7 @@ foo { arg = ...; } - In attribute sets or lists that span multiple lines, the attribute names - or list elements should be aligned: + In attribute sets or lists that span multiple lines, the attribute names or list elements should be aligned: # A long list. list = [ @@ -97,8 +89,7 @@ attrs = { x = 1280; y = 1024; }; - Breaking in the middle of a function argument can give hard-to-read code, - like + Breaking in the middle of a function argument can give hard-to-read code, like someFunction { x = 1280; y = 1024; } otherArg @@ -123,8 +114,7 @@ in someFunction res otherArg yetAnotherArg - The bodies of functions, asserts, and withs are not indented to prevent a - lot of superfluous indentation levels, i.e. + The bodies of functions, asserts, and withs are not indented to prevent a lot of superfluous indentation levels, i.e. { arg1, arg2 }: assert system == "i686-linux"; @@ -156,8 +146,7 @@ stdenv.mkDerivation { ... - Functions should list their expected arguments as precisely as possible. - That is, write + Functions should list their expected arguments as precisely as possible. That is, write { stdenv, fetchurl, perl }: ... @@ -171,9 +160,7 @@ args: with args; ... - For functions that are truly generic in the number of arguments (such as - wrappers around mkDerivation) that have some required - arguments, you should write them using an @-pattern: + For functions that are truly generic in the number of arguments (such as wrappers around mkDerivation) that have some required arguments, you should write them using an @-pattern: { stdenv, doCoverageAnalysis ? false, ... } @ args: @@ -197,35 +184,20 @@ args.stdenv.mkDerivation (args // { Package naming - The key words must, must not, - required, shall, shall - not, should, should - not, recommended, may, - and optional in this section are to be interpreted as - described in RFC - 2119. Only emphasized words are to be - interpreted in this way. + The key words must, must not, required, shall, shall not, should, should not, recommended, may, and optional in this section are to be interpreted as described in RFC 2119. Only emphasized words are to be interpreted in this way. - In Nixpkgs, there are generally three different names associated with a - package: + In Nixpkgs, there are generally three different names associated with a package: - The name attribute of the derivation (excluding the - version part). This is what most users see, in particular when using - nix-env. + The name attribute of the derivation (excluding the version part). This is what most users see, in particular when using nix-env. - The variable name used for the instantiated package in - all-packages.nix, and when passing it as a - dependency to other functions. Typically this is called the - package attribute name. This is what Nix expression - authors see. It can also be used when installing using nix-env - -iA. + The variable name used for the instantiated package in all-packages.nix, and when passing it as a dependency to other functions. Typically this is called the package attribute name. This is what Nix expression authors see. It can also be used when installing using nix-env -iA. @@ -234,12 +206,7 @@ args.stdenv.mkDerivation (args // { - Most of the time, these are the same. For instance, the package - e2fsprogs has a name attribute - "e2fsprogs-version", is bound - to the variable name e2fsprogs in - all-packages.nix, and the Nix expression is in - pkgs/os-specific/linux/e2fsprogs/default.nix. + Most of the time, these are the same. For instance, the package e2fsprogs has a name attribute "e2fsprogs-version", is bound to the variable name e2fsprogs in all-packages.nix, and the Nix expression is in pkgs/os-specific/linux/e2fsprogs/default.nix. @@ -247,51 +214,32 @@ args.stdenv.mkDerivation (args // { - The name attribute should be - identical to the upstream package name. + The name attribute should be identical to the upstream package name. - The name attribute must not - contain uppercase letters — e.g., "mplayer-1.0rc2" - instead of "MPlayer-1.0rc2". + The name attribute must not contain uppercase letters — e.g., "mplayer-1.0rc2" instead of "MPlayer-1.0rc2". - The version part of the name attribute - must start with a digit (following a dash) — e.g., - "hello-0.3.1rc2". + The version part of the name attribute must start with a digit (following a dash) — e.g., "hello-0.3.1rc2". - If a package is not a release but a commit from a repository, then the - version part of the name must be the date of that - (fetched) commit. The date must be in - "YYYY-MM-DD" format. Also append - "unstable" to the name - e.g., - "pkgname-unstable-2014-09-23". + If a package is not a release but a commit from a repository, then the version part of the name must be the date of that (fetched) commit. The date must be in "YYYY-MM-DD" format. Also append "unstable" to the name - e.g., "pkgname-unstable-2014-09-23". - Dashes in the package name should be preserved in - new variable names, rather than converted to underscores or camel cased - — e.g., http-parser instead of - http_parser or httpParser. The - hyphenated style is preferred in all three package names. + Dashes in the package name should be preserved in new variable names, rather than converted to underscores or camel cased — e.g., http-parser instead of http_parser or httpParser. The hyphenated style is preferred in all three package names. - If there are multiple versions of a package, this - should be reflected in the variable names in - all-packages.nix, e.g. json-c-0-9 - and json-c-0-11. If there is an obvious “default” - version, make an attribute like json-c = json-c-0-9;. - See also + If there are multiple versions of a package, this should be reflected in the variable names in all-packages.nix, e.g. json-c-0-9 and json-c-0-11. If there is an obvious “default” version, make an attribute like json-c = json-c-0-9;. See also @@ -301,31 +249,18 @@ args.stdenv.mkDerivation (args // { File naming and organisation - Names of files and directories should be in lowercase, with dashes between - words — not in camel case. For instance, it should be - all-packages.nix, not - allPackages.nix or - AllPackages.nix. + Names of files and directories should be in lowercase, with dashes between words — not in camel case. For instance, it should be all-packages.nix, not allPackages.nix or AllPackages.nix.
Hierarchy - Each package should be stored in its own directory somewhere in the - pkgs/ tree, i.e. in - pkgs/category/subcategory/.../pkgname. - Below are some rules for picking the right category for a package. Many - packages fall under several categories; what matters is the - primary purpose of a package. For example, the - libxml2 package builds both a library and some tools; - but it’s a library foremost, so it goes under - pkgs/development/libraries. + Each package should be stored in its own directory somewhere in the pkgs/ tree, i.e. in pkgs/category/subcategory/.../pkgname. Below are some rules for picking the right category for a package. Many packages fall under several categories; what matters is the primary purpose of a package. For example, the libxml2 package builds both a library and some tools; but it’s a library foremost, so it goes under pkgs/development/libraries. - When in doubt, consider refactoring the pkgs/ tree, - e.g. creating new categories or splitting up an existing category. + When in doubt, consider refactoring the pkgs/ tree, e.g. creating new categories or splitting up an existing category. @@ -341,8 +276,7 @@ args.stdenv.mkDerivation (args // { - development/libraries (e.g. - libxml2) + development/libraries (e.g. libxml2) @@ -352,8 +286,7 @@ args.stdenv.mkDerivation (args // { - development/compilers (e.g. - gcc) + development/compilers (e.g. gcc) @@ -363,8 +296,7 @@ args.stdenv.mkDerivation (args // { - development/interpreters (e.g. - guile) + development/interpreters (e.g. guile) @@ -380,8 +312,7 @@ args.stdenv.mkDerivation (args // { - development/tools/parsing (e.g. - bison, flex) + development/tools/parsing (e.g. bison, flex) @@ -391,8 +322,7 @@ args.stdenv.mkDerivation (args // { - development/tools/build-managers (e.g. - gnumake) + development/tools/build-managers (e.g. gnumake) @@ -402,8 +332,7 @@ args.stdenv.mkDerivation (args // { - development/tools/misc (e.g. - binutils) + development/tools/misc (e.g. binutils) @@ -429,8 +358,7 @@ args.stdenv.mkDerivation (args // { - (A tool is a relatively small program, especially one intended to be - used non-interactively.) + (A tool is a relatively small program, especially one intended to be used non-interactively.) @@ -439,8 +367,7 @@ args.stdenv.mkDerivation (args // { - tools/networking (e.g. - wget) + tools/networking (e.g. wget) @@ -470,8 +397,7 @@ args.stdenv.mkDerivation (args // { - tools/archivers (e.g. zip, - tar) + tools/archivers (e.g. zip, tar) @@ -481,8 +407,7 @@ args.stdenv.mkDerivation (args // { - tools/compression (e.g. - gzip, bzip2) + tools/compression (e.g. gzip, bzip2) @@ -492,8 +417,7 @@ args.stdenv.mkDerivation (args // { - tools/security (e.g. nmap, - gnupg) + tools/security (e.g. nmap, gnupg) @@ -532,8 +456,7 @@ args.stdenv.mkDerivation (args // { - servers/http (e.g. - apache-httpd) + servers/http (e.g. apache-httpd) @@ -543,8 +466,7 @@ args.stdenv.mkDerivation (args // { - servers/x11 (e.g. xorg — - this includes the client libraries and programs) + servers/x11 (e.g. xorg — this includes the client libraries and programs) @@ -567,8 +489,7 @@ args.stdenv.mkDerivation (args // { - desktops (e.g. kde, - gnome, enlightenment) + desktops (e.g. kde, gnome, enlightenment) @@ -578,8 +499,7 @@ args.stdenv.mkDerivation (args // { - applications/window-managers (e.g. - awesome, stumpwm) + applications/window-managers (e.g. awesome, stumpwm) @@ -589,8 +509,7 @@ args.stdenv.mkDerivation (args // { - A (typically large) program with a distinct user interface, primarily - used interactively. + A (typically large) program with a distinct user interface, primarily used interactively. @@ -599,8 +518,7 @@ args.stdenv.mkDerivation (args // { - applications/version-management (e.g. - subversion) + applications/version-management (e.g. subversion) @@ -610,8 +528,7 @@ args.stdenv.mkDerivation (args // { - applications/video (e.g. - vlc) + applications/video (e.g. vlc) @@ -621,8 +538,7 @@ args.stdenv.mkDerivation (args // { - applications/graphics (e.g. - gimp) + applications/graphics (e.g. gimp) @@ -638,8 +554,7 @@ args.stdenv.mkDerivation (args // { - applications/networking/mailreaders (e.g. - thunderbird) + applications/networking/mailreaders (e.g. thunderbird) @@ -649,8 +564,7 @@ args.stdenv.mkDerivation (args // { - applications/networking/newsreaders (e.g. - pan) + applications/networking/newsreaders (e.g. pan) @@ -660,8 +574,7 @@ args.stdenv.mkDerivation (args // { - applications/networking/browsers (e.g. - firefox) + applications/networking/browsers (e.g. firefox) @@ -719,8 +632,7 @@ args.stdenv.mkDerivation (args // { - data/sgml+xml/schemas/xml-dtd (e.g. - docbook) + data/sgml+xml/schemas/xml-dtd (e.g. docbook) @@ -733,8 +645,7 @@ args.stdenv.mkDerivation (args // { (Okay, these are executable...) - data/sgml+xml/stylesheets/xslt (e.g. - docbook-xsl) + data/sgml+xml/stylesheets/xslt (e.g. docbook-xsl) @@ -771,36 +682,15 @@ args.stdenv.mkDerivation (args // { Versioning - Because every version of a package in Nixpkgs creates a potential - maintenance burden, old versions of a package should not be kept unless - there is a good reason to do so. For instance, Nixpkgs contains several - versions of GCC because other packages don’t build with the latest - version of GCC. Other examples are having both the latest stable and latest - pre-release version of a package, or to keep several major releases of an - application that differ significantly in functionality. + Because every version of a package in Nixpkgs creates a potential maintenance burden, old versions of a package should not be kept unless there is a good reason to do so. For instance, Nixpkgs contains several versions of GCC because other packages don’t build with the latest version of GCC. Other examples are having both the latest stable and latest pre-release version of a package, or to keep several major releases of an application that differ significantly in functionality. - If there is only one version of a package, its Nix expression should be - named e2fsprogs/default.nix. If there are multiple - versions, this should be reflected in the filename, e.g. - e2fsprogs/1.41.8.nix and - e2fsprogs/1.41.9.nix. The version in the filename - should leave out unnecessary detail. For instance, if we keep the latest - Firefox 2.0.x and 3.5.x versions in Nixpkgs, they should be named - firefox/2.0.nix and - firefox/3.5.nix, respectively (which, at a given - point, might contain versions 2.0.0.20 and - 3.5.4). If a version requires many auxiliary files, you - can use a subdirectory for each version, e.g. - firefox/2.0/default.nix and - firefox/3.5/default.nix. + If there is only one version of a package, its Nix expression should be named e2fsprogs/default.nix. If there are multiple versions, this should be reflected in the filename, e.g. e2fsprogs/1.41.8.nix and e2fsprogs/1.41.9.nix. The version in the filename should leave out unnecessary detail. For instance, if we keep the latest Firefox 2.0.x and 3.5.x versions in Nixpkgs, they should be named firefox/2.0.nix and firefox/3.5.nix, respectively (which, at a given point, might contain versions 2.0.0.20 and 3.5.4). If a version requires many auxiliary files, you can use a subdirectory for each version, e.g. firefox/2.0/default.nix and firefox/3.5/default.nix. - All versions of a package must be included in - all-packages.nix to make sure that they evaluate - correctly. + All versions of a package must be included in all-packages.nix to make sure that they evaluate correctly.
@@ -808,25 +698,15 @@ args.stdenv.mkDerivation (args // { Fetching Sources - There are multiple ways to fetch a package source in nixpkgs. The general - guideline is that you should package reproducible sources with a high degree - of availability. Right now there is only one fetcher which has mirroring - support and that is fetchurl. Note that you should also - prefer protocols which have a corresponding proxy environment variable. + There are multiple ways to fetch a package source in nixpkgs. The general guideline is that you should package reproducible sources with a high degree of availability. Right now there is only one fetcher which has mirroring support and that is fetchurl. Note that you should also prefer protocols which have a corresponding proxy environment variable. - You can find many source fetch helpers in - pkgs/build-support/fetch*. + You can find many source fetch helpers in pkgs/build-support/fetch*. - In the file pkgs/top-level/all-packages.nix you can find - fetch helpers, these have names on the form fetchFrom*. - The intention of these are to provide snapshot fetches but using the same - api as some of the version controlled fetchers from - pkgs/build-support/. As an example going from bad to - good: + In the file pkgs/top-level/all-packages.nix you can find fetch helpers, these have names on the form fetchFrom*. The intention of these are to provide snapshot fetches but using the same api as some of the version controlled fetchers from pkgs/build-support/. As an example going from bad to good: @@ -863,11 +743,7 @@ src = fetchFromGitHub { sha256 = "1i2yxndxb6yc9l6c99pypbd92lfq5aac4klq7y2v93c9qvx2cgpc"; }
- Find the value to put as sha256 by running - nix run -f '<nixpkgs>' nix-prefetch-github -c - nix-prefetch-github --rev 1f795f9f44607cc5bec70d1300150bfefcef2aae NixOS - nix or nix-prefetch-url --unpack - https://github.com/NixOS/nix/archive/1f795f9f44607cc5bec70d1300150bfefcef2aae.tar.gz. + Find the value to put as sha256 by running nix run -f '<nixpkgs>' nix-prefetch-github -c nix-prefetch-github --rev 1f795f9f44607cc5bec70d1300150bfefcef2aae NixOS nix or nix-prefetch-url --unpack https://github.com/NixOS/nix/archive/1f795f9f44607cc5bec70d1300150bfefcef2aae.tar.gz.
@@ -883,40 +759,23 @@ src = fetchFromGitHub { - Prefetch URL (with nix-prefetch-XXX - URL, where - XXX is one of url, - git, hg, cvs, - bzr, svn). Hash is printed to - stdout. + Prefetch URL (with nix-prefetch-XXX URL, where XXX is one of url, git, hg, cvs, bzr, svn). Hash is printed to stdout. - Prefetch by package source (with nix-prefetch-url - '<nixpkgs>' -A PACKAGE.src, - where PACKAGE is package attribute name). Hash - is printed to stdout. + Prefetch by package source (with nix-prefetch-url '<nixpkgs>' -A PACKAGE.src, where PACKAGE is package attribute name). Hash is printed to stdout. - This works well when you've upgraded existing package version and want to - find out new hash, but is useless if package can't be accessed by - attribute or package has multiple sources (.srcs, - architecture-dependent sources, etc). + This works well when you've upgraded existing package version and want to find out new hash, but is useless if package can't be accessed by attribute or package has multiple sources (.srcs, architecture-dependent sources, etc). - Upstream provided hash: use it when upstream provides - sha256 or sha512 (when upstream - provides md5, don't use it, compute - sha256 instead). + Upstream provided hash: use it when upstream provides sha256 or sha512 (when upstream provides md5, don't use it, compute sha256 instead). - A little nuance is that nix-prefetch-* tools produce - hash encoded with base32, but upstream usually provides - hexadecimal (base16) encoding. Fetchers understand both - formats. Nixpkgs does not standardize on any one format. + A little nuance is that nix-prefetch-* tools produce hash encoded with base32, but upstream usually provides hexadecimal (base16) encoding. Fetchers understand both formats. Nixpkgs does not standardize on any one format. You can convert between formats with nix-hash, for example: @@ -927,28 +786,18 @@ src = fetchFromGitHub { - Extracting hash from local source tarball can be done with - sha256sum. Use nix-prefetch-url - file:///path/to/tarball if you want base32 hash. + Extracting hash from local source tarball can be done with sha256sum. Use nix-prefetch-url file:///path/to/tarball if you want base32 hash. - Fake hash: set fake hash in package expression, perform build and extract - correct hash from error Nix prints. + Fake hash: set fake hash in package expression, perform build and extract correct hash from error Nix prints. - For package updates it is enough to change one symbol to make hash fake. - For new packages, you can use lib.fakeSha256, - lib.fakeSha512 or any other fake hash. + For package updates it is enough to change one symbol to make hash fake. For new packages, you can use lib.fakeSha256, lib.fakeSha512 or any other fake hash. - This is last resort method when reconstructing source URL is non-trivial - and nix-prefetch-url -A isn't applicable (for example, - - one of kodi dependencies). The easiest way then - would be replace hash with a fake one and rebuild. Nix build will fail and - error message will contain desired hash. + This is last resort method when reconstructing source URL is non-trivial and nix-prefetch-url -A isn't applicable (for example, one of kodi dependencies). The easiest way then would be replace hash with a fake one and rebuild. Nix build will fail and error message will contain desired hash. @@ -962,9 +811,7 @@ src = fetchFromGitHub { Obtaining hashes securely - Let's say Man-in-the-Middle (MITM) sits close to your network. Then instead - of fetching source you can fetch malware, and instead of source hash you - get hash of malware. Here are security considerations for this scenario: + Let's say Man-in-the-Middle (MITM) sits close to your network. Then instead of fetching source you can fetch malware, and instead of source hash you get hash of malware. Here are security considerations for this scenario: @@ -975,8 +822,7 @@ src = fetchFromGitHub { - hashes from upstream (in method 3) should be obtained via secure - protocol; + hashes from upstream (in method 3) should be obtained via secure protocol; @@ -986,12 +832,7 @@ src = fetchFromGitHub { - https:// URLs are not secure in method 5. When - obtaining hashes with fake hash method, TLS checks are disabled. So - refetch source hash from several different networks to exclude MITM - scenario. Alternatively, use fake hash method to make Nix error, but - instead of extracting hash from error, extract - https:// URL and prefetch it with method 1. + https:// URLs are not secure in method 5. When obtaining hashes with fake hash method, TLS checks are disabled. So refetch source hash from several different networks to exclude MITM scenario. Alternatively, use fake hash method to make Nix error, but instead of extracting hash from error, extract https:// URL and prefetch it with method 1. @@ -1001,8 +842,7 @@ src = fetchFromGitHub { Patches - Patches available online should be retrieved using - fetchpatch. + Patches available online should be retrieved using fetchpatch. @@ -1018,10 +858,7 @@ patches = [ - Otherwise, you can add a .patch file to the - nixpkgs repository. In the interest of keeping our - maintenance burden to a minimum, only patches that are unique to - nixpkgs should be added in this way. + Otherwise, you can add a .patch file to the nixpkgs repository. In the interest of keeping our maintenance burden to a minimum, only patches that are unique to nixpkgs should be added in this way. @@ -1031,8 +868,7 @@ patches = [ ./0001-changes.patch ]; - If you do need to do create this sort of patch file, one way to do so is - with git: + If you do need to do create this sort of patch file, one way to do so is with git: @@ -1043,8 +879,7 @@ patches = [ ./0001-changes.patch ]; - If a git repository is not already present, create one and stage all of - the source files. + If a git repository is not already present, create one and stage all of the source files. $ git init $ git add . @@ -1052,8 +887,7 @@ patches = [ ./0001-changes.patch ]; - Edit some files to make whatever changes need to be included in the - patch. + Edit some files to make whatever changes need to be included in the patch. diff --git a/doc/configuration.xml b/doc/configuration.xml index b497fa4e2722c..cb660452d8286 100644 --- a/doc/configuration.xml +++ b/doc/configuration.xml @@ -3,49 +3,38 @@ xml:id="chap-packageconfig"> Global configuration - Nix comes with certain defaults about what packages can and cannot be - installed, based on a package's metadata. By default, Nix will prevent - installation if any of the following criteria are true: + Nix comes with certain defaults about what packages can and cannot be installed, based on a package's metadata. By default, Nix will prevent installation if any of the following criteria are true: - The package is thought to be broken, and has had its - meta.broken set to true. + The package is thought to be broken, and has had its meta.broken set to true. - The package isn't intended to run on the given system, as none of its - meta.platforms match the given system. + The package isn't intended to run on the given system, as none of its meta.platforms match the given system. - The package's meta.license is set to a license which is - considered to be unfree. + The package's meta.license is set to a license which is considered to be unfree. - The package has known security vulnerabilities but has not or can not be - updated for some reason, and a list of issues has been entered in to the - package's meta.knownVulnerabilities. + The package has known security vulnerabilities but has not or can not be updated for some reason, and a list of issues has been entered in to the package's meta.knownVulnerabilities. - Note that all this is checked during evaluation already, and the check - includes any package that is evaluated. In particular, all build-time - dependencies are checked. nix-env -qa will (attempt to) - hide any packages that would be refused. + Note that all this is checked during evaluation already, and the check includes any package that is evaluated. In particular, all build-time dependencies are checked. nix-env -qa will (attempt to) hide any packages that would be refused. Each of these criteria can be altered in the nixpkgs configuration. - The nixpkgs configuration for a NixOS system is set in the - configuration.nix, as in the following example: + The nixpkgs configuration for a NixOS system is set in the configuration.nix, as in the following example: { nixpkgs.config = { @@ -53,13 +42,10 @@ }; } - However, this does not allow unfree software for individual users. Their - configurations are managed separately. + However, this does not allow unfree software for individual users. Their configurations are managed separately. - A user's of nixpkgs configuration is stored in a user-specific configuration - file located at ~/.config/nixpkgs/config.nix. For - example: + A user's of nixpkgs configuration is stored in a user-specific configuration file located at ~/.config/nixpkgs/config.nix. For example: { allowUnfree = true; @@ -67,31 +53,25 @@ - Note that we are not able to test or build unfree software on Hydra due to - policy. Most unfree licenses prohibit us from either executing or - distributing the software. + Note that we are not able to test or build unfree software on Hydra due to policy. Most unfree licenses prohibit us from either executing or distributing the software.
Installing broken packages - There are two ways to try compiling a package which has been marked as - broken. + There are two ways to try compiling a package which has been marked as broken. - For allowing the build of a broken package once, you can use an - environment variable for a single invocation of the nix tools: + For allowing the build of a broken package once, you can use an environment variable for a single invocation of the nix tools: $ export NIXPKGS_ALLOW_BROKEN=1 - For permanently allowing broken packages to be built, you may add - allowBroken = true; to your user's configuration file, - like this: + For permanently allowing broken packages to be built, you may add allowBroken = true; to your user's configuration file, like this: { allowBroken = true; @@ -105,23 +85,19 @@ Installing packages on unsupported systems - There are also two ways to try compiling a package which has been marked as - unsuported for the given system. + There are also two ways to try compiling a package which has been marked as unsuported for the given system. - For allowing the build of a broken package once, you can use an - environment variable for a single invocation of the nix tools: + For allowing the build of a broken package once, you can use an environment variable for a single invocation of the nix tools: $ export NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM=1 - For permanently allowing broken packages to be built, you may add - allowUnsupportedSystem = true; to your user's - configuration file, like this: + For permanently allowing broken packages to be built, you may add allowUnsupportedSystem = true; to your user's configuration file, like this: { allowUnsupportedSystem = true; @@ -132,42 +108,29 @@ - The difference between a package being unsupported on some system and being - broken is admittedly a bit fuzzy. If a program ought to - work on a certain platform, but doesn't, the platform should be included in - meta.platforms, but marked as broken with e.g. - meta.broken = !hostPlatform.isWindows. Of course, this - begs the question of what "ought" means exactly. That is left to the package - maintainer. + The difference between a package being unsupported on some system and being broken is admittedly a bit fuzzy. If a program ought to work on a certain platform, but doesn't, the platform should be included in meta.platforms, but marked as broken with e.g. meta.broken = !hostPlatform.isWindows. Of course, this begs the question of what "ought" means exactly. That is left to the package maintainer.
Installing unfree packages - There are several ways to tweak how Nix handles a package which has been - marked as unfree. + There are several ways to tweak how Nix handles a package which has been marked as unfree. - To temporarily allow all unfree packages, you can use an environment - variable for a single invocation of the nix tools: + To temporarily allow all unfree packages, you can use an environment variable for a single invocation of the nix tools: $ export NIXPKGS_ALLOW_UNFREE=1 - It is possible to permanently allow individual unfree packages, while - still blocking unfree packages by default using the - allowUnfreePredicate configuration option in the user - configuration file. + It is possible to permanently allow individual unfree packages, while still blocking unfree packages by default using the allowUnfreePredicate configuration option in the user configuration file. - This option is a function which accepts a package as a parameter, and - returns a boolean. The following example configuration accepts a package - and always returns false: + This option is a function which accepts a package as a parameter, and returns a boolean. The following example configuration accepts a package and always returns false: { allowUnfreePredicate = (pkg: false); @@ -175,8 +138,7 @@ - For a more useful example, try the following. This configuration only - allows unfree packages named flash player and visual studio code: + For a more useful example, try the following. This configuration only allows unfree packages named flash player and visual studio code: { allowUnfreePredicate = (pkg: builtins.elem @@ -190,14 +152,10 @@ - It is also possible to whitelist and blacklist licenses that are - specifically acceptable or not acceptable, using - whitelistedLicenses and - blacklistedLicenses, respectively. + It is also possible to whitelist and blacklist licenses that are specifically acceptable or not acceptable, using whitelistedLicenses and blacklistedLicenses, respectively. - The following example configuration whitelists the licenses - amd and wtfpl: + The following example configuration whitelists the licenses amd and wtfpl: { whitelistedLicenses = with stdenv.lib.licenses; [ amd wtfpl ]; @@ -205,8 +163,7 @@ - The following example configuration blacklists the gpl3 - and agpl3 licenses: + The following example configuration blacklists the gpl3 and agpl3 licenses: { blacklistedLicenses = with stdenv.lib.licenses; [ agpl3 gpl3 ]; @@ -217,37 +174,29 @@ - A complete list of licenses can be found in the file - lib/licenses.nix of the nixpkgs tree. + A complete list of licenses can be found in the file lib/licenses.nix of the nixpkgs tree.
Installing insecure packages - There are several ways to tweak how Nix handles a package which has been - marked as insecure. + There are several ways to tweak how Nix handles a package which has been marked as insecure. - To temporarily allow all insecure packages, you can use an environment - variable for a single invocation of the nix tools: + To temporarily allow all insecure packages, you can use an environment variable for a single invocation of the nix tools: $ export NIXPKGS_ALLOW_INSECURE=1 - It is possible to permanently allow individual insecure packages, while - still blocking other insecure packages by default using the - permittedInsecurePackages configuration option in the - user configuration file. + It is possible to permanently allow individual insecure packages, while still blocking other insecure packages by default using the permittedInsecurePackages configuration option in the user configuration file. - The following example configuration permits the installation of the - hypothetically insecure package hello, version - 1.2.3: + The following example configuration permits the installation of the hypothetically insecure package hello, version 1.2.3: { permittedInsecurePackages = [ @@ -259,18 +208,13 @@ - It is also possible to create a custom policy around which insecure - packages to allow and deny, by overriding the - allowInsecurePredicate configuration option. + It is also possible to create a custom policy around which insecure packages to allow and deny, by overriding the allowInsecurePredicate configuration option. - The allowInsecurePredicate option is a function which - accepts a package and returns a boolean, much like - allowUnfreePredicate. + The allowInsecurePredicate option is a function which accepts a package and returns a boolean, much like allowUnfreePredicate. - The following configuration example only allows insecure packages with - very short names: + The following configuration example only allows insecure packages with very short names: { allowInsecurePredicate = (pkg: (builtins.stringLength (builtins.parseDrvName pkg.name).name) <= 5); @@ -278,8 +222,7 @@ - Note that permittedInsecurePackages is only checked if - allowInsecurePredicate is not specified. + Note that permittedInsecurePackages is only checked if allowInsecurePredicate is not specified. @@ -289,10 +232,7 @@ Modify packages via <literal>packageOverrides</literal> - You can define a function called packageOverrides in your - local ~/.config/nixpkgs/config.nix to override Nix - packages. It must be a function that takes pkgs as an argument and returns a - modified set of packages. + You can define a function called packageOverrides in your local ~/.config/nixpkgs/config.nix to override Nix packages. It must be a function that takes pkgs as an argument and returns a modified set of packages. { packageOverrides = pkgs: rec { @@ -309,15 +249,7 @@ Build an environment - Using packageOverrides, it is possible to manage - packages declaratively. This means that we can list all of our desired - packages within a declarative Nix expression. For example, to have - aspell, bc, - ffmpeg, coreutils, - gdb, nixUnstable, - emscripten, jq, - nox, and silver-searcher, we could - use the following in ~/.config/nixpkgs/config.nix: + Using packageOverrides, it is possible to manage packages declaratively. This means that we can list all of our desired packages within a declarative Nix expression. For example, to have aspell, bc, ffmpeg, coreutils, gdb, nixUnstable, emscripten, jq, nox, and silver-searcher, we could use the following in ~/.config/nixpkgs/config.nix: @@ -343,13 +275,7 @@ - To install it into our environment, you can just run nix-env -iA - nixpkgs.myPackages. If you want to load the packages to be built - from a working copy of nixpkgs you just run - nix-env -f. -iA myPackages. To explore what's been - installed, just look through ~/.nix-profile/. You can - see that a lot of stuff has been installed. Some of this stuff is useful - some of it isn't. Let's tell Nixpkgs to only link the stuff that we want: + To install it into our environment, you can just run nix-env -iA nixpkgs.myPackages. If you want to load the packages to be built from a working copy of nixpkgs you just run nix-env -f. -iA myPackages. To explore what's been installed, just look through ~/.nix-profile/. You can see that a lot of stuff has been installed. Some of this stuff is useful some of it isn't. Let's tell Nixpkgs to only link the stuff that we want: @@ -376,12 +302,7 @@ - pathsToLink tells Nixpkgs to only link the paths listed - which gets rid of the extra stuff in the profile. /bin - and /share are good defaults for a user environment, - getting rid of the clutter. If you are running on Nix on MacOS, you may - want to add another path as well, /Applications, that - makes GUI apps available. + pathsToLink tells Nixpkgs to only link the paths listed which gets rid of the extra stuff in the profile. /bin and /share are good defaults for a user environment, getting rid of the clutter. If you are running on Nix on MacOS, you may want to add another path as well, /Applications, that makes GUI apps available.
@@ -389,13 +310,7 @@ Getting documentation - After building that new environment, look through - ~/.nix-profile to make sure everything is there that - we wanted. Discerning readers will note that some files are missing. Look - inside ~/.nix-profile/share/man/man1/ to verify this. - There are no man pages for any of the Nix tools! This is because some - packages like Nix have multiple outputs for things like documentation (see - section 4). Let's make Nix install those as well. + After building that new environment, look through ~/.nix-profile to make sure everything is there that we wanted. Discerning readers will note that some files are missing. Look inside ~/.nix-profile/share/man/man1/ to verify this. There are no man pages for any of the Nix tools! This is because some packages like Nix have multiple outputs for things like documentation (see section 4). Let's make Nix install those as well. @@ -422,9 +337,7 @@ - This provides us with some useful documentation for using our packages. - However, if we actually want those manpages to be detected by man, we need - to set up our environment. This can also be managed within Nix expressions. + This provides us with some useful documentation for using our packages. However, if we actually want those manpages to be detected by man, we need to set up our environment. This can also be managed within Nix expressions. @@ -460,9 +373,7 @@ - For this to work fully, you must also have this script sourced when you are - logged in. Try adding something like this to your - ~/.profile file: + For this to work fully, you must also have this script sourced when you are logged in. Try adding something like this to your ~/.profile file: @@ -477,8 +388,7 @@ fi - Now just run source $HOME/.profile and you can starting - loading man pages from your environent. + Now just run source $HOME/.profile and you can starting loading man pages from your environent. @@ -486,9 +396,7 @@ fi GNU info setup - Configuring GNU info is a little bit trickier than man pages. To work - correctly, info needs a database to be generated. This can be done with - some small modifications to our environment scripts. + Configuring GNU info is a little bit trickier than man pages. To work correctly, info needs a database to be generated. This can be done with some small modifications to our environment scripts. @@ -534,11 +442,7 @@ fi - postBuild tells Nixpkgs to run a command after building - the environment. In this case, install-info adds the - installed info pages to dir which is GNU info's default - root node. Note that texinfoInteractive is added to the - environment to give the install-info command. + postBuild tells Nixpkgs to run a command after building the environment. In this case, install-info adds the installed info pages to dir which is GNU info's default root node. Note that texinfoInteractive is added to the environment to give the install-info command. diff --git a/doc/contributing.xml b/doc/contributing.xml index 523c1c9c8f030..b0266043775fb 100644 --- a/doc/contributing.xml +++ b/doc/contributing.xml @@ -3,10 +3,8 @@ xml:id="chap-contributing"> Contributing to this documentation - The DocBook sources of the Nixpkgs manual are in the - doc - subdirectory of the Nixpkgs repository. + The DocBook sources of the Nixpkgs manual are in the doc subdirectory of the Nixpkgs repository. You can quickly check your edits with make: @@ -17,19 +15,16 @@ xlink:href="https://github.com/NixOS/nixpkgs/tree/master/doc">doc [nix-shell]$ make - If you experience problems, run make debug to help - understand the docbook errors. + If you experience problems, run make debug to help understand the docbook errors. - After making modifications to the manual, it's important to build it before - committing. You can do that as follows: + After making modifications to the manual, it's important to build it before committing. You can do that as follows: $ cd /path/to/nixpkgs/doc $ nix-shell [nix-shell]$ make clean [nix-shell]$ nix-build . - If the build succeeds, the manual will be in - ./result/share/doc/nixpkgs/manual.html. + If the build succeeds, the manual will be in ./result/share/doc/nixpkgs/manual.html. diff --git a/doc/cross-compilation.xml b/doc/cross-compilation.xml index d212706e1713b..f496fa3f8967f 100644 --- a/doc/cross-compilation.xml +++ b/doc/cross-compilation.xml @@ -6,25 +6,11 @@ Introduction - "Cross-compilation" means compiling a program on one machine for another - type of machine. For example, a typical use of cross-compilation is to - compile programs for embedded devices. These devices often don't have the - computing power and memory to compile their own programs. One might think - that cross-compilation is a fairly niche concern. However, there are - significant advantages to rigorously distinguishing between build-time and - run-time environments! Significant, because the benefits apply even when one - is developing and deploying on the same machine. Nixpkgs is increasingly - adopting the opinion that packages should be written with cross-compilation - in mind, and nixpkgs should evaluate in a similar way (by minimizing - cross-compilation-specific special cases) whether or not one is - cross-compiling. + "Cross-compilation" means compiling a program on one machine for another type of machine. For example, a typical use of cross-compilation is to compile programs for embedded devices. These devices often don't have the computing power and memory to compile their own programs. One might think that cross-compilation is a fairly niche concern. However, there are significant advantages to rigorously distinguishing between build-time and run-time environments! Significant, because the benefits apply even when one is developing and deploying on the same machine. Nixpkgs is increasingly adopting the opinion that packages should be written with cross-compilation in mind, and nixpkgs should evaluate in a similar way (by minimizing cross-compilation-specific special cases) whether or not one is cross-compiling. - This chapter will be organized in three parts. First, it will describe the - basics of how to package software in a way that supports cross-compilation. - Second, it will describe how to use Nixpkgs when cross-compiling. Third, it - will describe the internal infrastructure supporting cross-compilation. + This chapter will be organized in three parts. First, it will describe the basics of how to package software in a way that supports cross-compilation. Second, it will describe how to use Nixpkgs when cross-compiling. Third, it will describe the internal infrastructure supporting cross-compilation. @@ -35,24 +21,12 @@ Platform parameters - Nixpkgs follows the - conventions - of GNU autoconf. We distinguish between 3 types of platforms when - building a derivation: build, - host, and target. In - summary, build is the platform on which a package - is being built, host is the platform on which it - will run. The third attribute, target, is relevant - only for certain specific compilers and build tools. + Nixpkgs follows the conventions of GNU autoconf. We distinguish between 3 types of platforms when building a derivation: build, host, and target. In summary, build is the platform on which a package is being built, host is the platform on which it will run. The third attribute, target, is relevant only for certain specific compilers and build tools. - In Nixpkgs, these three platforms are defined as attribute sets under the - names buildPlatform, hostPlatform, - and targetPlatform. They are always defined as - attributes in the standard environment. That means one can access them - like: + In Nixpkgs, these three platforms are defined as attribute sets under the names buildPlatform, hostPlatform, and targetPlatform. They are always defined as attributes in the standard environment. That means one can access them like: { stdenv, fooDep, barDep, .. }: ...stdenv.buildPlatform... . @@ -64,9 +38,7 @@ - The "build platform" is the platform on which a package is built. Once - someone has a built package, or pre-built binary package, the build - platform should not matter and can be ignored. + The "build platform" is the platform on which a package is built. Once someone has a built package, or pre-built binary package, the build platform should not matter and can be ignored. @@ -76,9 +48,7 @@ - The "host platform" is the platform on which a package will be run. This - is the simplest platform to understand, but also the one with the worst - name. + The "host platform" is the platform on which a package will be run. This is the simplest platform to understand, but also the one with the worst name. @@ -88,44 +58,23 @@ - The "target platform" attribute is, unlike the other two attributes, not - actually fundamental to the process of building software. Instead, it is - only relevant for compatibility with building certain specific compilers - and build tools. It can be safely ignored for all other packages. + The "target platform" attribute is, unlike the other two attributes, not actually fundamental to the process of building software. Instead, it is only relevant for compatibility with building certain specific compilers and build tools. It can be safely ignored for all other packages. - The build process of certain compilers is written in such a way that the - compiler resulting from a single build can itself only produce binaries - for a single platform. The task of specifying this single "target - platform" is thus pushed to build time of the compiler. The root cause - of this is that the compiler (which will be run on the host) and the - standard library/runtime (which will be run on the target) are built by - a single build process. + The build process of certain compilers is written in such a way that the compiler resulting from a single build can itself only produce binaries for a single platform. The task of specifying this single "target platform" is thus pushed to build time of the compiler. The root cause of this is that the compiler (which will be run on the host) and the standard library/runtime (which will be run on the target) are built by a single build process. - There is no fundamental need to think about a single target ahead of - time like this. If the tool supports modular or pluggable backends, both - the need to specify the target at build time and the constraint of - having only a single target disappear. An example of such a tool is - LLVM. + There is no fundamental need to think about a single target ahead of time like this. If the tool supports modular or pluggable backends, both the need to specify the target at build time and the constraint of having only a single target disappear. An example of such a tool is LLVM. - Although the existence of a "target platfom" is arguably a historical - mistake, it is a common one: examples of tools that suffer from it are - GCC, Binutils, GHC and Autoconf. Nixpkgs tries to avoid sharing in the - mistake where possible. Still, because the concept of a target platform - is so ingrained, it is best to support it as is. + Although the existence of a "target platfom" is arguably a historical mistake, it is a common one: examples of tools that suffer from it are GCC, Binutils, GHC and Autoconf. Nixpkgs tries to avoid sharing in the mistake where possible. Still, because the concept of a target platform is so ingrained, it is best to support it as is. - The exact schema these fields follow is a bit ill-defined due to a long and - convoluted evolution, but this is slowly being cleaned up. You can see - examples of ones used in practice in - lib.systems.examples; note how they are not all very - consistent. For now, here are few fields can count on them containing: + The exact schema these fields follow is a bit ill-defined due to a long and convoluted evolution, but this is slowly being cleaned up. You can see examples of ones used in practice in lib.systems.examples; note how they are not all very consistent. For now, here are few fields can count on them containing: @@ -135,13 +84,7 @@ - This is a two-component shorthand for the platform. Examples of this - would be "x86_64-darwin" and "i686-linux"; see - lib.systems.doubles for more. The first component - corresponds to the CPU architecture of the platform and the second to - the operating system of the platform ([cpu]-[os]). - This format has built-in support in Nix, such as the - builtins.currentSystem impure string. + This is a two-component shorthand for the platform. Examples of this would be "x86_64-darwin" and "i686-linux"; see lib.systems.doubles for more. The first component corresponds to the CPU architecture of the platform and the second to the operating system of the platform ([cpu]-[os]). This format has built-in support in Nix, such as the builtins.currentSystem impure string. @@ -151,15 +94,7 @@ - This is a 3- or 4- component shorthand for the platform. Examples of - this would be x86_64-unknown-linux-gnu and - aarch64-apple-darwin14. This is a standard format - called the "LLVM target triple", as they are pioneered by LLVM. In the - 4-part form, this corresponds to - [cpu]-[vendor]-[os]-[abi]. This format is strictly - more informative than the "Nix host double", as the previous format - could analogously be termed. This needs a better name than - config! + This is a 3- or 4- component shorthand for the platform. Examples of this would be x86_64-unknown-linux-gnu and aarch64-apple-darwin14. This is a standard format called the "LLVM target triple", as they are pioneered by LLVM. In the 4-part form, this corresponds to [cpu]-[vendor]-[os]-[abi]. This format is strictly more informative than the "Nix host double", as the previous format could analogously be termed. This needs a better name than config! @@ -169,10 +104,7 @@ - This is a Nix representation of a parsed LLVM target triple with - white-listed components. This can be specified directly, or actually - parsed from the config. See - lib.systems.parse for the exact representation. + This is a Nix representation of a parsed LLVM target triple with white-listed components. This can be specified directly, or actually parsed from the config. See lib.systems.parse for the exact representation. @@ -182,10 +114,7 @@ - This is a string identifying the standard C library used. Valid - identifiers include "glibc" for GNU libc, "libSystem" for Darwin's - Libsystem, and "uclibc" for µClibc. It should probably be refactored to - use the module system, like parse. + This is a string identifying the standard C library used. Valid identifiers include "glibc" for GNU libc, "libSystem" for Darwin's Libsystem, and "uclibc" for µClibc. It should probably be refactored to use the module system, like parse. @@ -195,10 +124,7 @@ - These predicates are defined in lib.systems.inspect, - and slapped onto every platform. They are superior to the ones in - stdenv as they force the user to be explicit about - which platform they are inspecting. Please use these instead of those. + These predicates are defined in lib.systems.inspect, and slapped onto every platform. They are superior to the ones in stdenv as they force the user to be explicit about which platform they are inspecting. Please use these instead of those. @@ -208,11 +134,7 @@ - This is, quite frankly, a dumping ground of ad-hoc settings (it's an - attribute set). See lib.systems.platforms for - examples—there's hopefully one in there that will work verbatim for - each platform that is working. Please help us triage these flags and - give them better homes! + This is, quite frankly, a dumping ground of ad-hoc settings (it's an attribute set). See lib.systems.platforms for examples—there's hopefully one in there that will work verbatim for each platform that is working. Please help us triage these flags and give them better homes! @@ -224,62 +146,33 @@ - This is a rather philosophical description that isn't very - Nixpkgs-specific. For an overview of all the relevant attributes given to - mkDerivation, see - . For a description of how - everything is implemented, see - . + This is a rather philosophical description that isn't very Nixpkgs-specific. For an overview of all the relevant attributes given to mkDerivation, see . For a description of how everything is implemented, see . - In this section we explore the relationship between both runtime and - build-time dependencies and the 3 Autoconf platforms. + In this section we explore the relationship between both runtime and build-time dependencies and the 3 Autoconf platforms. - A run time dependency between two packages requires that their host - platforms match. This is directly implied by the meaning of "host platform" - and "runtime dependency": The package dependency exists while both packages - are running on a single host platform. + A run time dependency between two packages requires that their host platforms match. This is directly implied by the meaning of "host platform" and "runtime dependency": The package dependency exists while both packages are running on a single host platform. - A build time dependency, however, has a shift in platforms between the - depending package and the depended-on package. "build time dependency" - means that to build the depending package we need to be able to run the - depended-on's package. The depending package's build platform is therefore - equal to the depended-on package's host platform. + A build time dependency, however, has a shift in platforms between the depending package and the depended-on package. "build time dependency" means that to build the depending package we need to be able to run the depended-on's package. The depending package's build platform is therefore equal to the depended-on package's host platform. - If both the dependency and depending packages aren't compilers or other - machine-code-producing tools, we're done. And indeed - buildInputs and nativeBuildInputs - have covered these simpler build-time and run-time (respectively) changes - for many years. But if the dependency does produce machine code, we might - need to worry about its target platform too. In principle, that target - platform might be any of the depending package's build, host, or target - platforms, but we prohibit dependencies from a "later" platform to an - earlier platform to limit confusion because we've never seen a legitimate - use for them. + If both the dependency and depending packages aren't compilers or other machine-code-producing tools, we're done. And indeed buildInputs and nativeBuildInputs have covered these simpler build-time and run-time (respectively) changes for many years. But if the dependency does produce machine code, we might need to worry about its target platform too. In principle, that target platform might be any of the depending package's build, host, or target platforms, but we prohibit dependencies from a "later" platform to an earlier platform to limit confusion because we've never seen a legitimate use for them. - Finally, if the depending package is a compiler or other - machine-code-producing tool, it might need dependencies that run at "emit - time". This is for compilers that (regrettably) insist on being built - together with their source langauges' standard libraries. Assuming build != - host != target, a run-time dependency of the standard library cannot be run - at the compiler's build time or run time, but only at the run time of code - emitted by the compiler. + Finally, if the depending package is a compiler or other machine-code-producing tool, it might need dependencies that run at "emit time". This is for compilers that (regrettably) insist on being built together with their source langauges' standard libraries. Assuming build != host != target, a run-time dependency of the standard library cannot be run at the compiler's build time or run time, but only at the run time of code emitted by the compiler. - Putting this all together, that means we have dependencies in the form - "host → target", in at most the following six combinations: + Putting this all together, that means we have dependencies in the form "host → target", in at most the following six combinations: @@ -318,16 +211,7 @@ - Some examples will make this table clearer. Suppose there's some package - that is being built with a (build, host, target) - platform triple of (foo, bar, baz). If it has a - build-time library dependency, that would be a "host → build" dependency - with a triple of (foo, foo, *) (the target platform is - irrelevant). If it needs a compiler to be built, that would be a "build → - host" dependency with a triple of (foo, foo, *) (the - target platform is irrelevant). That compiler, would be built with another - compiler, also "build → host" dependency, with a triple of (foo, - foo, foo). + Some examples will make this table clearer. Suppose there's some package that is being built with a (build, host, target) platform triple of (foo, bar, baz). If it has a build-time library dependency, that would be a "host → build" dependency with a triple of (foo, foo, *) (the target platform is irrelevant). If it needs a compiler to be built, that would be a "build → host" dependency with a triple of (foo, foo, *) (the target platform is irrelevant). That compiler, would be built with another compiler, also "build → host" dependency, with a triple of (foo, foo, foo). @@ -335,20 +219,14 @@ Cross packaging cookbook - Some frequently encountered problems when packaging for cross-compilation - should be answered here. Ideally, the information above is exhaustive, so - this section cannot provide any new information, but it is ludicrous and - cruel to expect everyone to spend effort working through the interaction of - many features just to figure out the same answer to the same common - problem. Feel free to add to this list! + Some frequently encountered problems when packaging for cross-compilation should be answered here. Ideally, the information above is exhaustive, so this section cannot provide any new information, but it is ludicrous and cruel to expect everyone to spend effort working through the interaction of many features just to figure out the same answer to the same common problem. Feel free to add to this list! - What if my package's build system needs to build a C program to be run - under the build environment? + What if my package's build system needs to build a C program to be run under the build environment? @@ -366,11 +244,7 @@ - Many packages assume that an unprefixed ar is - available, but Nix doesn't provide one. It only provides a prefixed one, - just as it only does for all the other binutils programs. It may be - necessary to patch the package to fix the build system to use a prefixed - `ar`. + Many packages assume that an unprefixed ar is available, but Nix doesn't provide one. It only provides a prefixed one, just as it only does for all the other binutils programs. It may be necessary to patch the package to fix the build system to use a prefixed `ar`. @@ -395,82 +269,32 @@ Cross-building packages - Nixpkgs can be instantiated with localSystem alone, in - which case there is no cross-compiling and everything is built by and for - that system, or also with crossSystem, in which case - packages run on the latter, but all building happens on the former. Both - parameters take the same schema as the 3 (build, host, and target) platforms - defined in the previous section. As mentioned above, - lib.systems.examples has some platforms which are used as - arguments for these parameters in practice. You can use them - programmatically, or on the command line: + Nixpkgs can be instantiated with localSystem alone, in which case there is no cross-compiling and everything is built by and for that system, or also with crossSystem, in which case packages run on the latter, but all building happens on the former. Both parameters take the same schema as the 3 (build, host, and target) platforms defined in the previous section. As mentioned above, lib.systems.examples has some platforms which are used as arguments for these parameters in practice. You can use them programmatically, or on the command line: nix-build <nixpkgs> --arg crossSystem '(import <nixpkgs/lib>).systems.examples.fooBarBaz' -A whatever - Eventually we would like to make these platform examples an unnecessary - convenience so that + Eventually we would like to make these platform examples an unnecessary convenience so that nix-build <nixpkgs> --arg crossSystem '{ config = "<arch>-<os>-<vendor>-<abi>"; }' -A whatever - works in the vast majority of cases. The problem today is dependencies on - other sorts of configuration which aren't given proper defaults. We rely on - the examples to crudely to set those configuration parameters in some - vaguely sane manner on the users behalf. Issue - #34274 - tracks this inconvenience along with its root cause in crufty configuration - options. + works in the vast majority of cases. The problem today is dependencies on other sorts of configuration which aren't given proper defaults. We rely on the examples to crudely to set those configuration parameters in some vaguely sane manner on the users behalf. Issue #34274 tracks this inconvenience along with its root cause in crufty configuration options. - While one is free to pass both parameters in full, there's a lot of logic to - fill in missing fields. As discussed in the previous section, only one of - system, config, and - parsed is needed to infer the other two. Additionally, - libc will be inferred from parse. - Finally, localSystem.system is also - impurely inferred based on the platform evaluation - occurs. This means it is often not necessary to pass - localSystem at all, as in the command-line example in the - previous paragraph. + While one is free to pass both parameters in full, there's a lot of logic to fill in missing fields. As discussed in the previous section, only one of system, config, and parsed is needed to infer the other two. Additionally, libc will be inferred from parse. Finally, localSystem.system is also impurely inferred based on the platform evaluation occurs. This means it is often not necessary to pass localSystem at all, as in the command-line example in the previous paragraph. - Many sources (manual, wiki, etc) probably mention passing - system, platform, along with the - optional crossSystem to nixpkgs: import - <nixpkgs> { system = ..; platform = ..; crossSystem = ..; - }. Passing those two instead of localSystem is - still supported for compatibility, but is discouraged. Indeed, much of the - inference we do for these parameters is motivated by compatibility as much - as convenience. + Many sources (manual, wiki, etc) probably mention passing system, platform, along with the optional crossSystem to nixpkgs: import <nixpkgs> { system = ..; platform = ..; crossSystem = ..; }. Passing those two instead of localSystem is still supported for compatibility, but is discouraged. Indeed, much of the inference we do for these parameters is motivated by compatibility as much as convenience. - One would think that localSystem and - crossSystem overlap horribly with the three - *Platforms (buildPlatform, - hostPlatform, and targetPlatform; see - stage.nix or the manual). Actually, those identifiers are - purposefully not used here to draw a subtle but important distinction: While - the granularity of having 3 platforms is necessary to properly *build* - packages, it is overkill for specifying the user's *intent* when making a - build plan or package set. A simple "build vs deploy" dichotomy is adequate: - the sliding window principle described in the previous section shows how to - interpolate between the these two "end points" to get the 3 platform triple - for each bootstrapping stage. That means for any package a given package - set, even those not bound on the top level but only reachable via - dependencies or buildPackages, the three platforms will - be defined as one of localSystem or - crossSystem, with the former replacing the latter as one - traverses build-time dependencies. A last simple difference is that - crossSystem should be null when one doesn't want to - cross-compile, while the *Platforms are always non-null. - localSystem is always non-null. + One would think that localSystem and crossSystem overlap horribly with the three *Platforms (buildPlatform, hostPlatform, and targetPlatform; see stage.nix or the manual). Actually, those identifiers are purposefully not used here to draw a subtle but important distinction: While the granularity of having 3 platforms is necessary to properly *build* packages, it is overkill for specifying the user's *intent* when making a build plan or package set. A simple "build vs deploy" dichotomy is adequate: the sliding window principle described in the previous section shows how to interpolate between the these two "end points" to get the 3 platform triple for each bootstrapping stage. That means for any package a given package set, even those not bound on the top level but only reachable via dependencies or buildPackages, the three platforms will be defined as one of localSystem or crossSystem, with the former replacing the latter as one traverses build-time dependencies. A last simple difference is that crossSystem should be null when one doesn't want to cross-compile, while the *Platforms are always non-null. localSystem is always non-null. @@ -481,61 +305,20 @@ nix-build <nixpkgs> --arg crossSystem '{ config = "<arch>-<os> Implementation of dependencies - The categorizes of dependencies developed in - are specified as - lists of derivations given to mkDerivation, as - documented in . In short, each - list of dependencies for "host → target" of "foo → bar" is called - depsFooBar, with exceptions for backwards compatibility - that depsBuildHost is instead called - nativeBuildInputs and depsHostTarget - is instead called buildInputs. Nixpkgs is now structured - so that each depsFooBar is automatically taken from - pkgsFooBar. (These pkgsFooBars are - quite new, so there is no special case for - nativeBuildInputs and buildInputs.) - For example, pkgsBuildHost.gcc should be used at - build-time, while pkgsHostTarget.gcc should be used at - run-time. + The categorizes of dependencies developed in are specified as lists of derivations given to mkDerivation, as documented in . In short, each list of dependencies for "host → target" of "foo → bar" is called depsFooBar, with exceptions for backwards compatibility that depsBuildHost is instead called nativeBuildInputs and depsHostTarget is instead called buildInputs. Nixpkgs is now structured so that each depsFooBar is automatically taken from pkgsFooBar. (These pkgsFooBars are quite new, so there is no special case for nativeBuildInputs and buildInputs.) For example, pkgsBuildHost.gcc should be used at build-time, while pkgsHostTarget.gcc should be used at run-time. - Now, for most of Nixpkgs's history, there were no - pkgsFooBar attributes, and most packages have not been - refactored to use it explicitly. Prior to those, there were just - buildPackages, pkgs, and - targetPackages. Those are now redefined as aliases to - pkgsBuildHost, pkgsHostTarget, and - pkgsTargetTarget. It is acceptable, even recommended, to - use them for libraries to show that the host platform is irrelevant. + Now, for most of Nixpkgs's history, there were no pkgsFooBar attributes, and most packages have not been refactored to use it explicitly. Prior to those, there were just buildPackages, pkgs, and targetPackages. Those are now redefined as aliases to pkgsBuildHost, pkgsHostTarget, and pkgsTargetTarget. It is acceptable, even recommended, to use them for libraries to show that the host platform is irrelevant. - But before that, there was just pkgs, even though both - buildInputs and nativeBuildInputs - existed. [Cross barely worked, and those were implemented with some hacks - on mkDerivation to override dependencies.] What this - means is the vast majority of packages do not use any explicit package set - to populate their dependencies, just using whatever - callPackage gives them even if they do correctly sort - their dependencies into the multiple lists described above. And indeed, - asking that users both sort their dependencies, and - take them from the right attribute set, is both too onerous and redundant, - so the recommended approach (for now) is to continue just categorizing by - list and not using an explicit package set. + But before that, there was just pkgs, even though both buildInputs and nativeBuildInputs existed. [Cross barely worked, and those were implemented with some hacks on mkDerivation to override dependencies.] What this means is the vast majority of packages do not use any explicit package set to populate their dependencies, just using whatever callPackage gives them even if they do correctly sort their dependencies into the multiple lists described above. And indeed, asking that users both sort their dependencies, and take them from the right attribute set, is both too onerous and redundant, so the recommended approach (for now) is to continue just categorizing by list and not using an explicit package set. - To make this work, we "splice" together the six - pkgsFooBar package sets and have - callPackage actually take its arguments from that. This - is currently implemented in pkgs/top-level/splice.nix. - mkDerivation then, for each dependency attribute, pulls - the right derivation out from the splice. This splicing can be skipped when - not cross-compiling as the package sets are the same, but still is a bit - slow for cross-compiling. We'd like to do something better, but haven't - come up with anything yet. + To make this work, we "splice" together the six pkgsFooBar package sets and have callPackage actually take its arguments from that. This is currently implemented in pkgs/top-level/splice.nix. mkDerivation then, for each dependency attribute, pulls the right derivation out from the splice. This splicing can be skipped when not cross-compiling as the package sets are the same, but still is a bit slow for cross-compiling. We'd like to do something better, but haven't come up with anything yet. @@ -543,21 +326,11 @@ nix-build <nixpkgs> --arg crossSystem '{ config = "<arch>-<os> Bootstrapping - Each of the package sets described above come from a single bootstrapping - stage. While pkgs/top-level/default.nix, coordinates - the composition of stages at a high level, - pkgs/top-level/stage.nix "ties the knot" (creates the - fixed point) of each stage. The package sets are defined per-stage however, - so they can be thought of as edges between stages (the nodes) in a graph. - Compositions like pkgsBuildTarget.targetPackages can be - thought of as paths to this graph. + Each of the package sets described above come from a single bootstrapping stage. While pkgs/top-level/default.nix, coordinates the composition of stages at a high level, pkgs/top-level/stage.nix "ties the knot" (creates the fixed point) of each stage. The package sets are defined per-stage however, so they can be thought of as edges between stages (the nodes) in a graph. Compositions like pkgsBuildTarget.targetPackages can be thought of as paths to this graph. - While there are many package sets, and thus many edges, the stages can also - be arranged in a linear chain. In other words, many of the edges are - redundant as far as connectivity is concerned. This hinges on the type of - bootstrapping we do. Currently for cross it is: + While there are many package sets, and thus many edges, the stages can also be arranged in a linear chain. In other words, many of the edges are redundant as far as connectivity is concerned. This hinges on the type of bootstrapping we do. Currently for cross it is: @@ -575,102 +348,45 @@ nix-build <nixpkgs> --arg crossSystem '{ config = "<arch>-<os> - In each stage, pkgsBuildHost refers the the previous - stage, pkgsBuildBuild refers to the one before that, and - pkgsHostTarget refers to the current one, and - pkgsTargetTarget refers to the next one. When there is - no previous or next stage, they instead refer to the current stage. Note - how all the invariants regarding the mapping between dependency and - depending packages' build host and target platforms are preserved. - pkgsBuildTarget and pkgsHostHost are - more complex in that the stage fitting the requirements isn't always a - fixed chain of "prevs" and "nexts" away (modulo the "saturating" - self-references at the ends). We just special case each instead. All the - primary edges are implemented is in - pkgs/stdenv/booter.nix, and secondarily aliases in - pkgs/top-level/stage.nix. + In each stage, pkgsBuildHost refers the the previous stage, pkgsBuildBuild refers to the one before that, and pkgsHostTarget refers to the current one, and pkgsTargetTarget refers to the next one. When there is no previous or next stage, they instead refer to the current stage. Note how all the invariants regarding the mapping between dependency and depending packages' build host and target platforms are preserved. pkgsBuildTarget and pkgsHostHost are more complex in that the stage fitting the requirements isn't always a fixed chain of "prevs" and "nexts" away (modulo the "saturating" self-references at the ends). We just special case each instead. All the primary edges are implemented is in pkgs/stdenv/booter.nix, and secondarily aliases in pkgs/top-level/stage.nix. - Note the native stages are bootstrapped in legacy ways that predate the - current cross implementation. This is why the the bootstrapping stages - leading up to the final stages are ignored inthe previous paragraph. + Note the native stages are bootstrapped in legacy ways that predate the current cross implementation. This is why the the bootstrapping stages leading up to the final stages are ignored inthe previous paragraph. - If one looks at the 3 platform triples, one can see that they overlap such - that one could put them together into a chain like: + If one looks at the 3 platform triples, one can see that they overlap such that one could put them together into a chain like: (native, native, native, foreign, foreign) - If one imagines the saturating self references at the end being replaced - with infinite stages, and then overlays those platform triples, one ends up - with the infinite tuple: + If one imagines the saturating self references at the end being replaced with infinite stages, and then overlays those platform triples, one ends up with the infinite tuple: (native..., native, native, native, foreign, foreign, foreign...) - On can then imagine any sequence of platforms such that there are bootstrap - stages with their 3 platforms determined by "sliding a window" that is the - 3 tuple through the sequence. This was the original model for - bootstrapping. Without a target platform (assume a better world where all - compilers are multi-target and all standard libraries are built in their - own derivation), this is sufficient. Conversely if one wishes to cross - compile "faster", with a "Canadian Cross" bootstraping stage where - build != host != target, more bootstrapping stages are - needed since no sliding window providess the pesky - pkgsBuildTarget package set since it skips the Canadian - cross stage's "host". + On can then imagine any sequence of platforms such that there are bootstrap stages with their 3 platforms determined by "sliding a window" that is the 3 tuple through the sequence. This was the original model for bootstrapping. Without a target platform (assume a better world where all compilers are multi-target and all standard libraries are built in their own derivation), this is sufficient. Conversely if one wishes to cross compile "faster", with a "Canadian Cross" bootstraping stage where build != host != target, more bootstrapping stages are needed since no sliding window providess the pesky pkgsBuildTarget package set since it skips the Canadian cross stage's "host". - It is much better to refer to buildPackages than - targetPackages, or more broadly package sets that do - not mention "target". There are three reasons for this. + It is much better to refer to buildPackages than targetPackages, or more broadly package sets that do not mention "target". There are three reasons for this. - First, it is because bootstrapping stages do not have a unique - targetPackages. For example a (x86-linux, - x86-linux, arm-linux) and (x86-linux, x86-linux, - x86-windows) package set both have a (x86-linux, - x86-linux, x86-linux) package set. Because there is no canonical - targetPackages for such a native (build == - host == target) package set, we set their - targetPackages + First, it is because bootstrapping stages do not have a unique targetPackages. For example a (x86-linux, x86-linux, arm-linux) and (x86-linux, x86-linux, x86-windows) package set both have a (x86-linux, x86-linux, x86-linux) package set. Because there is no canonical targetPackages for such a native (build == host == target) package set, we set their targetPackages - Second, it is because this is a frequent source of hard-to-follow - "infinite recursions" / cycles. When only package sets that don't mention - target are used, the package set forms a directed acyclic graph. This - means that all cycles that exist are confined to one stage. This means - they are a lot smaller, and easier to follow in the code or a backtrace. - It also means they are present in native and cross builds alike, and so - more likely to be caught by CI and other users. + Second, it is because this is a frequent source of hard-to-follow "infinite recursions" / cycles. When only package sets that don't mention target are used, the package set forms a directed acyclic graph. This means that all cycles that exist are confined to one stage. This means they are a lot smaller, and easier to follow in the code or a backtrace. It also means they are present in native and cross builds alike, and so more likely to be caught by CI and other users. - Thirdly, it is because everything target-mentioning only exists to - accommodate compilers with lousy build systems that insist on the compiler - itself and standard library being built together. Of course that is bad - because bigger derivations means longer rebuilds. It is also problematic - because it tends to make the standard libraries less like other libraries - than they could be, complicating code and build systems alike. Because of - the other problems, and because of these innate disadvantages, compilers - ought to be packaged another way where possible. + Thirdly, it is because everything target-mentioning only exists to accommodate compilers with lousy build systems that insist on the compiler itself and standard library being built together. Of course that is bad because bigger derivations means longer rebuilds. It is also problematic because it tends to make the standard libraries less like other libraries than they could be, complicating code and build systems alike. Because of the other problems, and because of these innate disadvantages, compilers ought to be packaged another way where possible. - If one explores Nixpkgs, they will see derivations with names like - gccCross. Such *Cross derivations is - a holdover from before we properly distinguished between the host and - target platforms—the derivation with "Cross" in the name covered the - build = host != target case, while the other covered - the host = target, with build platform the same or not - based on whether one was using its .nativeDrv or - .crossDrv. This ugliness will disappear soon. + If one explores Nixpkgs, they will see derivations with names like gccCross. Such *Cross derivations is a holdover from before we properly distinguished between the host and target platforms—the derivation with "Cross" in the name covered the build = host != target case, while the other covered the host = target, with build platform the same or not based on whether one was using its .nativeDrv or .crossDrv. This ugliness will disappear soon. diff --git a/doc/functions.xml b/doc/functions.xml index 96bd95958eae8..3e126e6b13970 100644 --- a/doc/functions.xml +++ b/doc/functions.xml @@ -4,8 +4,7 @@ xml:id="chap-functions"> Functions reference - The nixpkgs repository has several utility functions to manipulate Nix - expressions. + The nixpkgs repository has several utility functions to manipulate Nix expressions. diff --git a/doc/functions/appimagetools.xml b/doc/functions/appimagetools.xml index e6dbc22f48ddd..37e4251cda2ea 100644 --- a/doc/functions/appimagetools.xml +++ b/doc/functions/appimagetools.xml @@ -5,17 +5,12 @@ pkgs.appimageTools - pkgs.appimageTools is a set of functions for extracting - and wrapping AppImage files. - They are meant to be used if traditional packaging from source is infeasible, - or it would take too long. To quickly run an AppImage file, - pkgs.appimage-run can be used as well. + pkgs.appimageTools is a set of functions for extracting and wrapping AppImage files. They are meant to be used if traditional packaging from source is infeasible, or it would take too long. To quickly run an AppImage file, pkgs.appimage-run can be used as well. - The appimageTools API is unstable and may be subject to - backwards-incompatible changes in the future. + The appimageTools API is unstable and may be subject to backwards-incompatible changes in the future. @@ -23,9 +18,7 @@ AppImage formats - There are different formats for AppImages, see - the - specification for details. + There are different formats for AppImages, see the specification for details. @@ -55,8 +48,7 @@ type2.AppImage: ELF 64-bit LSB executable, x86-64, version 1 (SYSV) (Lepton 3.x) - Note how the type 1 AppImage is described as an ISO 9660 CD-ROM - filesystem, and the type 2 AppImage is not. + Note how the type 1 AppImage is described as an ISO 9660 CD-ROM filesystem, and the type 2 AppImage is not. @@ -64,8 +56,7 @@ type2.AppImage: ELF 64-bit LSB executable, x86-64, version 1 (SYSV) (Lepton 3.x) Wrapping - Depending on the type of AppImage you're wrapping, you'll have to use - wrapType1 or wrapType2. + Depending on the type of AppImage you're wrapping, you'll have to use wrapType1 or wrapType2. @@ -91,23 +82,16 @@ appimageTools.wrapType2 { # or wrapType1 - extraPkgs allows you to pass a function to include - additional packages inside the FHS environment your AppImage is going to - run in. There are a few ways to learn which dependencies an application - needs: + extraPkgs allows you to pass a function to include additional packages inside the FHS environment your AppImage is going to run in. There are a few ways to learn which dependencies an application needs: - Looking through the extracted AppImage files, reading its scripts and - running patchelf and ldd on its - executables. This can also be done in appimage-run, - by setting APPIMAGE_DEBUG_EXEC=bash. + Looking through the extracted AppImage files, reading its scripts and running patchelf and ldd on its executables. This can also be done in appimage-run, by setting APPIMAGE_DEBUG_EXEC=bash. - Running strace -vfefile on the wrapped executable, - looking for libraries that can't be found. + Running strace -vfefile on the wrapped executable, looking for libraries that can't be found. diff --git a/doc/functions/debug.xml b/doc/functions/debug.xml index c6b3611eea53d..c27421f12e76c 100644 --- a/doc/functions/debug.xml +++ b/doc/functions/debug.xml @@ -5,17 +5,10 @@ Debugging Nix Expressions - Nix is a unityped, dynamic language, this means every value can potentially - appear anywhere. Since it is also non-strict, evaluation order and what - ultimately is evaluated might surprise you. Therefore it is important to be - able to debug nix expressions. + Nix is a unityped, dynamic language, this means every value can potentially appear anywhere. Since it is also non-strict, evaluation order and what ultimately is evaluated might surprise you. Therefore it is important to be able to debug nix expressions. - In the lib/debug.nix file you will find a number of - functions that help (pretty-)printing values while evaluation is runnnig. You - can even specify how deep these values should be printed recursively, and - transform them on the fly. Please consult the docstrings in - lib/debug.nix for usage information. + In the lib/debug.nix file you will find a number of functions that help (pretty-)printing values while evaluation is runnnig. You can even specify how deep these values should be printed recursively, and transform them on the fly. Please consult the docstrings in lib/debug.nix for usage information. diff --git a/doc/functions/dockertools.xml b/doc/functions/dockertools.xml index 6b293a2e77879..2243453c3e972 100644 --- a/doc/functions/dockertools.xml +++ b/doc/functions/dockertools.xml @@ -5,17 +5,12 @@ pkgs.dockerTools - pkgs.dockerTools is a set of functions for creating and - manipulating Docker images according to the - - Docker Image Specification v1.2.0 . Docker itself is not used to - perform any of the operations done by these functions. + pkgs.dockerTools is a set of functions for creating and manipulating Docker images according to the Docker Image Specification v1.2.0 . Docker itself is not used to perform any of the operations done by these functions. - The dockerTools API is unstable and may be subject to - backwards-incompatible changes in the future. + The dockerTools API is unstable and may be subject to backwards-incompatible changes in the future. @@ -23,15 +18,11 @@ buildImage - This function is analogous to the docker build command, - in that it can be used to build a Docker-compatible repository tarball - containing a single image with one or multiple layers. As such, the result - is suitable for being loaded in Docker with docker load. + This function is analogous to the docker build command, in that it can be used to build a Docker-compatible repository tarball containing a single image with one or multiple layers. As such, the result is suitable for being loaded in Docker with docker load. - The parameters of buildImage with relative example values - are described below: + The parameters of buildImage with relative example values are described below: @@ -63,135 +54,89 @@ buildImage { - The above example will build a Docker image redis/latest - from the given base image. Loading and running this image in Docker results - in redis-server being started automatically. + The above example will build a Docker image redis/latest from the given base image. Loading and running this image in Docker results in redis-server being started automatically. - name specifies the name of the resulting image. This is - the only required argument for buildImage. + name specifies the name of the resulting image. This is the only required argument for buildImage. - tag specifies the tag of the resulting image. By - default it's null, which indicates that the nix output - hash will be used as tag. + tag specifies the tag of the resulting image. By default it's null, which indicates that the nix output hash will be used as tag. - fromImage is the repository tarball containing the base - image. It must be a valid Docker image, such as exported by - docker save. By default it's null, - which can be seen as equivalent to FROM scratch of a - Dockerfile. + fromImage is the repository tarball containing the base image. It must be a valid Docker image, such as exported by docker save. By default it's null, which can be seen as equivalent to FROM scratch of a Dockerfile. - fromImageName can be used to further specify the base - image within the repository, in case it contains multiple images. By - default it's null, in which case - buildImage will peek the first image available in the - repository. + fromImageName can be used to further specify the base image within the repository, in case it contains multiple images. By default it's null, in which case buildImage will peek the first image available in the repository. - fromImageTag can be used to further specify the tag of - the base image within the repository, in case an image contains multiple - tags. By default it's null, in which case - buildImage will peek the first tag available for the - base image. + fromImageTag can be used to further specify the tag of the base image within the repository, in case an image contains multiple tags. By default it's null, in which case buildImage will peek the first tag available for the base image. - contents is a derivation that will be copied in the new - layer of the resulting image. This can be similarly seen as ADD - contents/ / in a Dockerfile. By default - it's null. + contents is a derivation that will be copied in the new layer of the resulting image. This can be similarly seen as ADD contents/ / in a Dockerfile. By default it's null. - runAsRoot is a bash script that will run as root in an - environment that overlays the existing layers of the base image with the - new resulting layer, including the previously copied - contents derivation. This can be similarly seen as - RUN ... in a Dockerfile. + runAsRoot is a bash script that will run as root in an environment that overlays the existing layers of the base image with the new resulting layer, including the previously copied contents derivation. This can be similarly seen as RUN ... in a Dockerfile. - Using this parameter requires the kvm device to be - available. + Using this parameter requires the kvm device to be available. - config is used to specify the configuration of the - containers that will be started off the built image in Docker. The - available options are listed in the - - Docker Image Specification v1.2.0 . + config is used to specify the configuration of the containers that will be started off the built image in Docker. The available options are listed in the Docker Image Specification v1.2.0 . - After the new layer has been created, its closure (to which - contents, config and - runAsRoot contribute) will be copied in the layer itself. - Only new dependencies that are not already in the existing layers will be - copied. + After the new layer has been created, its closure (to which contents, config and runAsRoot contribute) will be copied in the layer itself. Only new dependencies that are not already in the existing layers will be copied. - At the end of the process, only one new single layer will be produced and - added to the resulting image. + At the end of the process, only one new single layer will be produced and added to the resulting image. - The resulting repository will only list the single image - image/tag. In the case of - it would be - redis/latest. + The resulting repository will only list the single image image/tag. In the case of it would be redis/latest. - It is possible to inspect the arguments with which an image was built using - its buildArgs attribute. + It is possible to inspect the arguments with which an image was built using its buildArgs attribute. - If you see errors similar to getProtocolByName: does not exist (no - such protocol name: tcp) you may need to add - pkgs.iana-etc to contents. + If you see errors similar to getProtocolByName: does not exist (no such protocol name: tcp) you may need to add pkgs.iana-etc to contents. - If you see errors similar to Error_Protocol ("certificate has - unknown CA",True,UnknownCa) you may need to add - pkgs.cacert to contents. + If you see errors similar to Error_Protocol ("certificate has unknown CA",True,UnknownCa) you may need to add pkgs.cacert to contents. Impurely Defining a Docker Layer's Creation Date - By default buildImage will use a static date of one - second past the UNIX Epoch. This allows buildImage to - produce binary reproducible images. When listing images with - docker images, the newly created images will be listed - like this: + By default buildImage will use a static date of one second past the UNIX Epoch. This allows buildImage to produce binary reproducible images. When listing images with docker images, the newly created images will be listed like this: - You can break binary reproducibility but have a sorted, meaningful - CREATED column by setting created to - now. + You can break binary reproducibility but have a sorted, meaningful CREATED column by setting created to now. - and now the Docker CLI will display a reasonable date and sort the images - as expected: + and now the Docker CLI will display a reasonable date and sort the images as expected: buildLayeredImage - Create a Docker image with many of the store paths being on their own layer - to improve sharing between images. + Create a Docker image with many of the store paths being on their own layer to improve sharing between images. @@ -264,8 +205,7 @@ hello latest de2bf4786de6 About a minute ago 25.2MB - Top level paths in the container. Either a single derivation, or a list - of derivations. + Top level paths in the container. Either a single derivation, or a list of derivations. Default: [] @@ -278,10 +218,7 @@ hello latest de2bf4786de6 About a minute ago 25.2MB - Run-time configuration of the container. A full list of the options are - available at in the - - Docker Image Specification v1.2.0 . + Run-time configuration of the container. A full list of the options are available at in the Docker Image Specification v1.2.0 . Default: {} @@ -294,9 +231,7 @@ hello latest de2bf4786de6 About a minute ago 25.2MB - Date and time the layers were created. Follows the same - now exception supported by - buildImage. + Date and time the layers were created. Follows the same now exception supported by buildImage. Default: 1970-01-01T00:00:01Z @@ -325,9 +260,7 @@ hello latest de2bf4786de6 About a minute ago 25.2MB - Shell commands to run while building the final layer, without access to - most of the layer contents. Changes to this layer are "on top" of all the - other layers, so can create additional directories and files. + Shell commands to run while building the final layer, without access to most of the layer contents. Changes to this layer are "on top" of all the other layers, so can create additional directories and files. @@ -337,8 +270,7 @@ hello latest de2bf4786de6 About a minute ago 25.2MB Behavior of <varname>contents</varname> in the final image - Each path directly listed in contents will have a - symlink in the root of the image. + Each path directly listed in contents will have a symlink in the root of the image. @@ -349,8 +281,7 @@ pkgs.dockerTools.buildLayeredImage { contents = [ pkgs.hello ]; } ]]> - will create symlinks for all the paths in the hello - package: + will create symlinks for all the paths in the hello package: /nix/store/h1zb1padqbbb7jicsvkmrym3r6snphxg-hello-2.10/bin/hello /share/info/hello.info -> /nix/store/h1zb1padqbbb7jicsvkmrym3r6snphxg-hello-2.10/share/info/hello.info @@ -363,13 +294,11 @@ pkgs.dockerTools.buildLayeredImage { Automatic inclusion of <varname>config</varname> references - The closure of config is automatically included in the - closure of the final image. + The closure of config is automatically included in the closure of the final image. - This allows you to make very simple Docker images with very little code. - This container will start up and run hello: + This allows you to make very simple Docker images with very little code. This container will start up and run hello: Adjusting maxLayers - Increasing the maxLayers increases the number of layers - which have a chance to be shared between different images. + Increasing the maxLayers increases the number of layers which have a chance to be shared between different images. - Modern Docker installations support up to 128 layers, however older - versions support as few as 42. + Modern Docker installations support up to 128 layers, however older versions support as few as 42. - If the produced image will not be extended by other Docker builds, it is - safe to set maxLayers to 128. However - it will be impossible to extend the image further. + If the produced image will not be extended by other Docker builds, it is safe to set maxLayers to 128. However it will be impossible to extend the image further. - The first (maxLayers-2) most "popular" paths will have - their own individual layers, then layer #maxLayers-1 - will contain all the remaining "unpopular" paths, and finally layer - #maxLayers will contain the Image configuration. + The first (maxLayers-2) most "popular" paths will have their own individual layers, then layer #maxLayers-1 will contain all the remaining "unpopular" paths, and finally layer #maxLayers will contain the Image configuration. - Docker's Layers are not inherently ordered, they are content-addressable - and are not explicitly layered until they are composed in to an Image. + Docker's Layers are not inherently ordered, they are content-addressable and are not explicitly layered until they are composed in to an Image. @@ -416,10 +337,7 @@ pkgs.dockerTools.buildLayeredImage { pullImage - This function is analogous to the docker pull command, in - that it can be used to pull a Docker image from a Docker registry. By - default Docker Hub is used - to pull images. + This function is analogous to the docker pull command, in that it can be used to pull a Docker image from a Docker registry. By default Docker Hub is used to pull images. @@ -444,71 +362,51 @@ pullImage { - imageName specifies the name of the image to be - downloaded, which can also include the registry namespace (e.g. - nixos). This argument is required. + imageName specifies the name of the image to be downloaded, which can also include the registry namespace (e.g. nixos). This argument is required. - imageDigest specifies the digest of the image to be - downloaded. This argument is required. + imageDigest specifies the digest of the image to be downloaded. This argument is required. - finalImageName, if specified, this is the name of the - image to be created. Note it is never used to fetch the image since we - prefer to rely on the immutable digest ID. By default it's equal to - imageName. + finalImageName, if specified, this is the name of the image to be created. Note it is never used to fetch the image since we prefer to rely on the immutable digest ID. By default it's equal to imageName. - finalImageTag, if specified, this is the tag of the - image to be created. Note it is never used to fetch the image since we - prefer to rely on the immutable digest ID. By default it's - latest. + finalImageTag, if specified, this is the tag of the image to be created. Note it is never used to fetch the image since we prefer to rely on the immutable digest ID. By default it's latest. - sha256 is the checksum of the whole fetched image. This - argument is required. + sha256 is the checksum of the whole fetched image. This argument is required. - os, if specified, is the operating system of the - fetched image. By default it's linux. + os, if specified, is the operating system of the fetched image. By default it's linux. - arch, if specified, is the cpu architecture of the - fetched image. By default it's x86_64. + arch, if specified, is the cpu architecture of the fetched image. By default it's x86_64. - nix-prefetch-docker command can be used to get required - image parameters: + nix-prefetch-docker command can be used to get required image parameters: $ nix run nixpkgs.nix-prefetch-docker -c nix-prefetch-docker --image-name mysql --image-tag 5 - Since a given imageName may transparently refer to a - manifest list of images which support multiple architectures and/or - operating systems, you can supply the and - arguments to specify exactly which image you want. - By default it will match the OS and architecture of the host the command is - run on. + Since a given imageName may transparently refer to a manifest list of images which support multiple architectures and/or operating systems, you can supply the and arguments to specify exactly which image you want. By default it will match the OS and architecture of the host the command is run on. $ nix-prefetch-docker --image-name mysql --image-tag 5 --arch x86_64 --os linux - Desired image name and tag can be set using - and - arguments: + Desired image name and tag can be set using and arguments: $ nix-prefetch-docker --image-name mysql --image-tag 5 --final-image-name eu.gcr.io/my-project/mysql --final-image-tag prod @@ -519,17 +417,12 @@ pullImage { exportImage - This function is analogous to the docker export command, - in that it can be used to flatten a Docker image that contains multiple - layers. It is in fact the result of the merge of all the layers of the - image. As such, the result is suitable for being imported in Docker with - docker import. + This function is analogous to the docker export command, in that it can be used to flatten a Docker image that contains multiple layers. It is in fact the result of the merge of all the layers of the image. As such, the result is suitable for being imported in Docker with docker import. - Using this function requires the kvm device to be - available. + Using this function requires the kvm device to be available. @@ -551,14 +444,11 @@ exportImage { - The parameters relative to the base image have the same synopsis as - described in , except that - fromImage is the only required argument in this case. + The parameters relative to the base image have the same synopsis as described in , except that fromImage is the only required argument in this case. - The name argument is the name of the derivation output, - which defaults to fromImage.name. + The name argument is the name of the derivation output, which defaults to fromImage.name. @@ -566,11 +456,7 @@ exportImage { shadowSetup - This constant string is a helper for setting up the base files for managing - users and groups, only if such files don't exist already. It is suitable for - being used in a runAsRoot - script for cases like - in the example below: + This constant string is a helper for setting up the base files for managing users and groups, only if such files don't exist already. It is suitable for being used in a runAsRoot script for cases like in the example below: @@ -592,9 +478,7 @@ buildImage { - Creating base files like /etc/passwd or - /etc/login.defs is necessary for shadow-utils to - manipulate users and groups. + Creating base files like /etc/passwd or /etc/login.defs is necessary for shadow-utils to manipulate users and groups. diff --git a/doc/functions/fetchers.xml b/doc/functions/fetchers.xml index a736008c9d418..369c1fb153eb6 100644 --- a/doc/functions/fetchers.xml +++ b/doc/functions/fetchers.xml @@ -5,18 +5,11 @@ Fetcher functions - When using Nix, you will frequently need to download source code and other - files from the internet. Nixpkgs comes with a few helper functions that allow - you to fetch fixed-output derivations in a structured way. + When using Nix, you will frequently need to download source code and other files from the internet. Nixpkgs comes with a few helper functions that allow you to fetch fixed-output derivations in a structured way. - The two fetcher primitives are fetchurl and - fetchzip. Both of these have two required arguments, a - URL and a hash. The hash is typically sha256, although - many more hash algorithms are supported. Nixpkgs contributors are currently - recommended to use sha256. This hash will be used by Nix - to identify your source. A typical usage of fetchurl is provided below. + The two fetcher primitives are fetchurl and fetchzip. Both of these have two required arguments, a URL and a hash. The hash is typically sha256, although many more hash algorithms are supported. Nixpkgs contributors are currently recommended to use sha256. This hash will be used by Nix to identify your source. A typical usage of fetchurl is provided below. - The main difference between fetchurl and - fetchzip is in how they store the contents. - fetchurl will store the unaltered contents of the URL - within the Nix store. fetchzip on the other hand will - decompress the archive for you, making files and directories directly - accessible in the future. fetchzip can only be used with - archives. Despite the name, fetchzip is not limited to - .zip files and can also be used with any tarball. + The main difference between fetchurl and fetchzip is in how they store the contents. fetchurl will store the unaltered contents of the URL within the Nix store. fetchzip on the other hand will decompress the archive for you, making files and directories directly accessible in the future. fetchzip can only be used with archives. Despite the name, fetchzip is not limited to .zip files and can also be used with any tarball. - fetchpatch works very similarly to - fetchurl with the same arguments expected. It expects - patch files as a source and and performs normalization on them before - computing the checksum. For example it will remove comments or other unstable - parts that are sometimes added by version control systems and can change over - time. + fetchpatch works very similarly to fetchurl with the same arguments expected. It expects patch files as a source and and performs normalization on them before computing the checksum. For example it will remove comments or other unstable parts that are sometimes added by version control systems and can change over time. - Other fetcher functions allow you to add source code directly from a VCS such - as subversion or git. These are mostly straightforward names based on the - name of the command used with the VCS system. Because they give you a working - repository, they act most like fetchzip. + Other fetcher functions allow you to add source code directly from a VCS such as subversion or git. These are mostly straightforward names based on the name of the command used with the VCS system. Because they give you a working repository, they act most like fetchzip. @@ -65,8 +43,7 @@ stdenv.mkDerivation { - Used with Subversion. Expects url to a Subversion - directory, rev, and sha256. + Used with Subversion. Expects url to a Subversion directory, rev, and sha256. @@ -76,10 +53,7 @@ stdenv.mkDerivation { - Used with Git. Expects url to a Git repo, - rev, and sha256. - rev in this case can be full the git commit id (SHA1 - hash) or a tag name like refs/tags/v1.0. + Used with Git. Expects url to a Git repo, rev, and sha256. rev in this case can be full the git commit id (SHA1 hash) or a tag name like refs/tags/v1.0. @@ -89,8 +63,7 @@ stdenv.mkDerivation { - Used with Fossil. Expects url to a Fossil archive, - rev, and sha256. + Used with Fossil. Expects url to a Fossil archive, rev, and sha256. @@ -100,8 +73,7 @@ stdenv.mkDerivation { - Used with CVS. Expects cvsRoot, tag, - and sha256. + Used with CVS. Expects cvsRoot, tag, and sha256. @@ -111,18 +83,14 @@ stdenv.mkDerivation { - Used with Mercurial. Expects url, - rev, and sha256. + Used with Mercurial. Expects url, rev, and sha256. - A number of fetcher functions wrap part of fetchurl and - fetchzip. They are mainly convenience functions intended - for commonly used destinations of source code in Nixpkgs. These wrapper - fetchers are listed below. + A number of fetcher functions wrap part of fetchurl and fetchzip. They are mainly convenience functions intended for commonly used destinations of source code in Nixpkgs. These wrapper fetchers are listed below. @@ -132,17 +100,7 @@ stdenv.mkDerivation { - fetchFromGitHub expects four arguments. - owner is a string corresponding to the GitHub user or - organization that controls this repository. repo - corresponds to the name of the software repository. These are located at - the top of every GitHub HTML page as - owner/repo. rev - corresponds to the Git commit hash or tag (e.g v1.0) - that will be downloaded from Git. Finally, sha256 - corresponds to the hash of the extracted directory. Again, other hash - algorithms are also available but sha256 is currently - preferred. + fetchFromGitHub expects four arguments. owner is a string corresponding to the GitHub user or organization that controls this repository. repo corresponds to the name of the software repository. These are located at the top of every GitHub HTML page as owner/repo. rev corresponds to the Git commit hash or tag (e.g v1.0) that will be downloaded from Git. Finally, sha256 corresponds to the hash of the extracted directory. Again, other hash algorithms are also available but sha256 is currently preferred. @@ -152,8 +110,7 @@ stdenv.mkDerivation { - This is used with GitLab repositories. The arguments expected are very - similar to fetchFromGitHub above. + This is used with GitLab repositories. The arguments expected are very similar to fetchFromGitHub above. @@ -163,8 +120,7 @@ stdenv.mkDerivation { - This is used with BitBucket repositories. The arguments expected are very - similar to fetchFromGitHub above. + This is used with BitBucket repositories. The arguments expected are very similar to fetchFromGitHub above. @@ -174,8 +130,7 @@ stdenv.mkDerivation { - This is used with Savannah repositories. The arguments expected are very - similar to fetchFromGitHub above. + This is used with Savannah repositories. The arguments expected are very similar to fetchFromGitHub above. @@ -185,8 +140,7 @@ stdenv.mkDerivation { - This is used with repo.or.cz repositories. The arguments expected are very - similar to fetchFromGitHub above. + This is used with repo.or.cz repositories. The arguments expected are very similar to fetchFromGitHub above. diff --git a/doc/functions/fhs-environments.xml b/doc/functions/fhs-environments.xml index 79682080be314..e7b81e97a23f9 100644 --- a/doc/functions/fhs-environments.xml +++ b/doc/functions/fhs-environments.xml @@ -5,15 +5,7 @@ buildFHSUserEnv - buildFHSUserEnv provides a way to build and run - FHS-compatible lightweight sandboxes. It creates an isolated root with bound - /nix/store, so its footprint in terms of disk space - needed is quite small. This allows one to run software which is hard or - unfeasible to patch for NixOS -- 3rd-party source trees with FHS assumptions, - games distributed as tarballs, software with integrity checking and/or - external self-updated binaries. It uses Linux namespaces feature to create - temporary lightweight environments which are destroyed after all child - processes exit, without root user rights requirement. Accepted arguments are: + buildFHSUserEnv provides a way to build and run FHS-compatible lightweight sandboxes. It creates an isolated root with bound /nix/store, so its footprint in terms of disk space needed is quite small. This allows one to run software which is hard or unfeasible to patch for NixOS -- 3rd-party source trees with FHS assumptions, games distributed as tarballs, software with integrity checking and/or external self-updated binaries. It uses Linux namespaces feature to create temporary lightweight environments which are destroyed after all child processes exit, without root user rights requirement. Accepted arguments are: @@ -33,8 +25,7 @@ - Packages to be installed for the main host's architecture (i.e. x86_64 on - x86_64 installations). Along with libraries binaries are also installed. + Packages to be installed for the main host's architecture (i.e. x86_64 on x86_64 installations). Along with libraries binaries are also installed. @@ -44,9 +35,7 @@ - Packages to be installed for all architectures supported by a host (i.e. - i686 and x86_64 on x86_64 installations). Only libraries are installed by - default. + Packages to be installed for all architectures supported by a host (i.e. i686 and x86_64 on x86_64 installations). Only libraries are installed by default. @@ -66,8 +55,7 @@ - Like extraBuildCommands, but executed only on multilib - architectures. + Like extraBuildCommands, but executed only on multilib architectures. @@ -77,8 +65,7 @@ - Additional derivation outputs to be linked for both target and - multi-architecture packages. + Additional derivation outputs to be linked for both target and multi-architecture packages. @@ -88,8 +75,7 @@ - Additional commands to be executed for finalizing the derivation with - runner script. + Additional commands to be executed for finalizing the derivation with runner script. @@ -99,16 +85,14 @@ - A command that would be executed inside the sandbox and passed all the - command line arguments. It defaults to bash. + A command that would be executed inside the sandbox and passed all the command line arguments. It defaults to bash. - One can create a simple environment using a shell.nix like - that: + One can create a simple environment using a shell.nix like that: - Running nix-shell would then drop you into a shell with - these libraries and binaries available. You can use this to run closed-source - applications which expect FHS structure without hassles: simply change - runScript to the application path, e.g. - ./bin/start.sh -- relative paths are supported. + Running nix-shell would then drop you into a shell with these libraries and binaries available. You can use this to run closed-source applications which expect FHS structure without hassles: simply change runScript to the application path, e.g. ./bin/start.sh -- relative paths are supported. diff --git a/doc/functions/generators.xml b/doc/functions/generators.xml index e860b10e8979f..9ce1f85eb1731 100644 --- a/doc/functions/generators.xml +++ b/doc/functions/generators.xml @@ -5,28 +5,15 @@ Generators - Generators are functions that create file formats from nix data structures, - e. g. for configuration files. There are generators available for: - INI, JSON and YAML + Generators are functions that create file formats from nix data structures, e. g. for configuration files. There are generators available for: INI, JSON and YAML - All generators follow a similar call interface: generatorName - configFunctions data, where configFunctions is an - attrset of user-defined functions that format nested parts of the content. - They each have common defaults, so often they do not need to be set manually. - An example is mkSectionName ? (name: libStr.escape [ "[" "]" ] - name) from the INI generator. It receives the name - of a section and sanitizes it. The default mkSectionName - escapes [ and ] with a backslash. + All generators follow a similar call interface: generatorName configFunctions data, where configFunctions is an attrset of user-defined functions that format nested parts of the content. They each have common defaults, so often they do not need to be set manually. An example is mkSectionName ? (name: libStr.escape [ "[" "]" ] name) from the INI generator. It receives the name of a section and sanitizes it. The default mkSectionName escapes [ and ] with a backslash. - Generators can be fine-tuned to produce exactly the file format required by - your application/service. One example is an INI-file format which uses - : as separator, the strings - "yes"/"no" as boolean values and - requires all string values to be quoted: + Generators can be fine-tuned to produce exactly the file format required by your application/service. One example is an INI-file format which uses : as separator, the strings "yes"/"no" as boolean values and requires all string values to be quoted: @@ -77,13 +64,11 @@ merge:"diff3" - Nix store paths can be converted to strings by enclosing a derivation - attribute like so: "${drv}". + Nix store paths can be converted to strings by enclosing a derivation attribute like so: "${drv}". - Detailed documentation for each generator can be found in - lib/generators.nix. + Detailed documentation for each generator can be found in lib/generators.nix. diff --git a/doc/functions/library.xml b/doc/functions/library.xml index e6aedaa6efdd5..6ffb944b5a609 100644 --- a/doc/functions/library.xml +++ b/doc/functions/library.xml @@ -5,8 +5,7 @@ Nixpkgs Library Functions - Nixpkgs provides a standard library at pkgs.lib, or - through import <nixpkgs/lib>. + Nixpkgs provides a standard library at pkgs.lib, or through import <nixpkgs/lib>. diff --git a/doc/functions/library/asserts.xml b/doc/functions/library/asserts.xml index 437850e408bc2..10891039e8696 100644 --- a/doc/functions/library/asserts.xml +++ b/doc/functions/library/asserts.xml @@ -27,8 +27,7 @@ - Condition under which the msg should - not be printed. + Condition under which the msg should not be printed. @@ -64,9 +63,7 @@ stderr> assert failed - Specialized asserts.assertMsg for checking if - val is one of the elements of xs. - Useful for checking enums. + Specialized asserts.assertMsg for checking if val is one of the elements of xs. Useful for checking enums. @@ -76,8 +73,7 @@ stderr> assert failed - The name of the variable the user entered val into, - for inclusion in the error message. + The name of the variable the user entered val into, for inclusion in the error message. @@ -87,8 +83,7 @@ stderr> assert failed - The value of what the user provided, to be compared against the values in - xs. + The value of what the user provided, to be compared against the values in xs. diff --git a/doc/functions/library/attrsets.xml b/doc/functions/library/attrsets.xml index 65d0b40e2e827..f9234069392ea 100644 --- a/doc/functions/library/attrsets.xml +++ b/doc/functions/library/attrsets.xml @@ -23,8 +23,7 @@ - A list of strings representing the path through the nested attribute set - set. + A list of strings representing the path through the nested attribute set set. @@ -34,8 +33,7 @@ - Default value if attrPath does not resolve to an - existing value. + Default value if attrPath does not resolve to an existing value. @@ -88,8 +86,7 @@ lib.attrsets.attrByPath [ "a" "b" ] 0 {} - A list of strings representing the path through the nested attribute set - set. + A list of strings representing the path through the nested attribute set set. @@ -125,8 +122,7 @@ lib.attrsets.hasAttrByPath - Create a new attribute set with value set at the nested - attribute location specified in attrPath. + Create a new attribute set with value set at the nested attribute location specified in attrPath. @@ -146,8 +142,7 @@ lib.attrsets.hasAttrByPath - The value to set at the location described by - attrPath. + The value to set at the location described by attrPath. @@ -171,8 +166,7 @@ lib.attrsets.setAttrByPath [ "a" "b" ] 3 - Like except - without a default, and it will throw if the value doesn't exist. + Like except without a default, and it will throw if the value doesn't exist. @@ -182,8 +176,7 @@ lib.attrsets.setAttrByPath [ "a" "b" ] 3 - A list of strings representing the path through the nested attribute set - set. + A list of strings representing the path through the nested attribute set set. @@ -235,8 +228,7 @@ lib.attrsets.getAttrFromPath [ "x" "y" ] { } - The list of attributes to fetch from set. Each - attribute name must exist on the attrbitue set. + The list of attributes to fetch from set. Each attribute name must exist on the attrbitue set. @@ -282,8 +274,7 @@ error: attribute 'd' missing - Provides a backwards-compatible interface of - builtins.attrValues for Nix version older than 1.8. + Provides a backwards-compatible interface of builtins.attrValues for Nix version older than 1.8. @@ -317,14 +308,11 @@ lib.attrsets.attrValues { a = 1; b = 2; c = 3; } - Collect each attribute named `attr' from the list of attribute sets, - sets. Sets that don't contain the named attribute are - ignored. + Collect each attribute named `attr' from the list of attribute sets, sets. Sets that don't contain the named attribute are ignored. - Provides a backwards-compatible interface of - builtins.catAttrs for Nix version older than 1.9. + Provides a backwards-compatible interface of builtins.catAttrs for Nix version older than 1.9. @@ -334,8 +322,7 @@ lib.attrsets.attrValues { a = 1; b = 2; c = 3; } - Attribute name to select from each attribute set in - sets. + Attribute name to select from each attribute set in sets. @@ -372,8 +359,7 @@ catAttrs "a" [{a = 1;} {b = 0;} {a = 2;}] - Filter an attribute set by removing all attributes for which the given - predicate return false. + Filter an attribute set by removing all attributes for which the given predicate return false. @@ -386,8 +372,7 @@ catAttrs "a" [{a = 1;} {b = 0;} {a = 2;}] String -> Any -> Bool - Predicate which returns true to include an attribute, or returns false to - exclude it. + Predicate which returns true to include an attribute, or returns false to exclude it. @@ -412,8 +397,7 @@ catAttrs "a" [{a = 1;} {b = 0;} {a = 2;}] - Returns true to include the attribute, - false to exclude the attribute. + Returns true to include the attribute, false to exclude the attribute. @@ -447,8 +431,7 @@ filterAttrs (n: v: n == "foo") { foo = 1; bar = 2; } - Filter an attribute set recursively by removing all attributes for which the - given predicate return false. + Filter an attribute set recursively by removing all attributes for which the given predicate return false. @@ -461,8 +444,7 @@ filterAttrs (n: v: n == "foo") { foo = 1; bar = 2; } String -> Any -> Bool - Predicate which returns true to include an attribute, or returns false to - exclude it. + Predicate which returns true to include an attribute, or returns false to exclude it. @@ -487,8 +469,7 @@ filterAttrs (n: v: n == "foo") { foo = 1; bar = 2; } - Returns true to include the attribute, - false to exclude the attribute. + Returns true to include the attribute, false to exclude the attribute. @@ -557,8 +538,7 @@ lib.attrsets.filterAttrsRecursive Any -> Any -> Any - Given a value val and a collector - col, combine the two. + Given a value val and a collector col, combine the two. @@ -578,8 +558,7 @@ lib.attrsets.filterAttrsRecursive - The result of previous op calls with other values - and nul. + The result of previous op calls with other values and nul. @@ -632,9 +611,7 @@ lib.attrsets.foldAttrs - Recursively collect sets that verify a given predicate named - pred from the set attrs. The recursion - stops when pred returns true. + Recursively collect sets that verify a given predicate named pred from the set attrs. The recursion stops when pred returns true. @@ -702,8 +679,7 @@ collect (x: x ? outPath) - Utility function that creates a {name, value} pair as - expected by builtins.listToAttrs. + Utility function that creates a {name, value} pair as expected by builtins.listToAttrs. @@ -747,13 +723,11 @@ nameValuePair "some" 6 - Apply a function to each element in an attribute set, creating a new - attribute set. + Apply a function to each element in an attribute set, creating a new attribute set. - Provides a backwards-compatible interface of - builtins.mapAttrs for Nix version older than 2.1. + Provides a backwards-compatible interface of builtins.mapAttrs for Nix version older than 2.1. @@ -814,9 +788,7 @@ lib.attrsets.mapAttrs - Like mapAttrs, but allows the name of each attribute to - be changed in addition to the value. The applied function should return both - the new name and value as a nameValuePair. + Like mapAttrs, but allows the name of each attribute to be changed in addition to the value. The applied function should return both the new name and value as a nameValuePair. @@ -829,10 +801,8 @@ lib.attrsets.mapAttrs String -> Any -> { name = String; value = Any } - Given an attribute's name and value, return a new - name - value pair. + Given an attribute's name and value, return a new name value pair. @@ -891,8 +861,7 @@ lib.attrsets.mapAttrs' (name: value: lib.attrsets.nameValuePair ("foo_" + name) - Call fn for each attribute in the given - set and return the result in a list. + Call fn for each attribute in the given set and return the result in a list. @@ -962,9 +931,7 @@ lib.attrsets.mapAttrsToList (name: value: "${name}=${value}") - Like mapAttrs, except that it recursively applies - itself to attribute sets. Also, the first argument of the argument function - is a list of the names of the containing attributes. + Like mapAttrs, except that it recursively applies itself to attribute sets. Also, the first argument of the argument function is a list of the names of the containing attributes. @@ -989,10 +956,7 @@ lib.attrsets.mapAttrsToList (name: value: "${name}=${value}") The list of attribute names to this value. - For example, the name_path for the - example string in the attribute set { foo - = { bar = "example"; }; } is [ "foo" "bar" - ]. + For example, the name_path for the example string in the attribute set { foo = { bar = "example"; }; } is [ "foo" "bar" ]. @@ -1059,11 +1023,7 @@ mapAttrsRecursive - Like mapAttrsRecursive, but it takes an additional - predicate function that tells it whether to recursive into an attribute set. - If it returns false, mapAttrsRecursiveCond does not - recurse, but does apply the map function. It is returns true, it does - recurse, and does not apply the map function. + Like mapAttrsRecursive, but it takes an additional predicate function that tells it whether to recursive into an attribute set. If it returns false, mapAttrsRecursiveCond does not recurse, but does apply the map function. It is returns true, it does recurse, and does not apply the map function. @@ -1076,8 +1036,7 @@ mapAttrsRecursive (AttrSet -> Bool) - Determine if mapAttrsRecursive should recurse deeper - in to the attribute set. + Determine if mapAttrsRecursive should recurse deeper in to the attribute set. @@ -1114,10 +1073,7 @@ mapAttrsRecursive The list of attribute names to this value. - For example, the name_path for the - example string in the attribute set { foo - = { bar = "example"; }; } is [ "foo" "bar" - ]. + For example, the name_path for the example string in the attribute set { foo = { bar = "example"; }; } is [ "foo" "bar" ]. @@ -1181,8 +1137,7 @@ lib.attrsets.mapAttrsRecursiveCond - Generate an attribute set by mapping a function over a list of attribute - names. + Generate an attribute set by mapping a function over a list of attribute names. @@ -1241,8 +1196,7 @@ lib.attrsets.genAttrs [ "foo" "bar" ] (name: "x_${name}") - Check whether the argument is a derivation. Any set with { type = - "derivation"; } counts as a derivation. + Check whether the argument is a derivation. Any set with { type = "derivation"; } counts as a derivation. @@ -1320,8 +1274,7 @@ lib.attrsets.isDerivation "foobar" - Condition under which the as attribute set is - returned. + Condition under which the as attribute set is returned. @@ -1363,8 +1316,7 @@ lib.attrsets.optionalAttrs false { my = "set"; } - Merge sets of attributes and use the function f to merge - attribute values where the attribute name is in names. + Merge sets of attributes and use the function f to merge attribute values where the attribute name is in names. @@ -1451,11 +1403,8 @@ lib.attrsets.zipAttrsWithNames - Merge sets of attributes and use the function f to merge - attribute values. Similar to - where - all key names are passed for names. + Merge sets of attributes and use the function f to merge attribute values. Similar to where all key names are passed for names. @@ -1531,9 +1480,7 @@ lib.attrsets.zipAttrsWith - Merge sets of attributes and combine each attribute value in to a list. - Similar to - where the merge function returns a list of all values. + Merge sets of attributes and combine each attribute value in to a list. Similar to where the merge function returns a list of all values. @@ -1573,12 +1520,7 @@ lib.attrsets.zipAttrs - Does the same as the update operator // except that - attributes are merged until the given predicate is verified. The predicate - should accept 3 arguments which are the path to reach the attribute, a part - of the first attribute set and a part of the second attribute set. When the - predicate is verified, the value of the first attribute set is replaced by - the value of the second attribute set. + Does the same as the update operator // except that attributes are merged until the given predicate is verified. The predicate should accept 3 arguments which are the path to reach the attribute, a part of the first attribute set and a part of the second attribute set. When the predicate is verified, the value of the first attribute set is replaced by the value of the second attribute set. @@ -1681,10 +1623,7 @@ lib.attrsets.recursiveUpdateUntil (path: l: r: path == ["foo"]) - A recursive variant of the update operator //. The - recursion stops when one of the attribute values is not an attribute set, in - which case the right hand side value takes precedence over the left hand - side value. + A recursive variant of the update operator //. The recursion stops when one of the attribute values is not an attribute set, in which case the right hand side value takes precedence over the left hand side value. diff --git a/doc/functions/nix-gitignore.xml b/doc/functions/nix-gitignore.xml index 9011570d1eaed..37a82b196ccf2 100644 --- a/doc/functions/nix-gitignore.xml +++ b/doc/functions/nix-gitignore.xml @@ -5,21 +5,14 @@ pkgs.nix-gitignore - pkgs.nix-gitignore is a function that acts similarly to - builtins.filterSource but also allows filtering with the - help of the gitignore format. + pkgs.nix-gitignore is a function that acts similarly to builtins.filterSource but also allows filtering with the help of the gitignore format.
Usage - pkgs.nix-gitignore exports a number of functions, but - you'll most likely need either gitignoreSource or - gitignoreSourcePure. As their first argument, they both - accept either 1. a file with gitignore lines or 2. a string with gitignore - lines, or 3. a list of either of the two. They will be concatenated into a - single big string. + pkgs.nix-gitignore exports a number of functions, but you'll most likely need either gitignoreSource or gitignoreSourcePure. As their first argument, they both accept either 1. a file with gitignore lines or 2. a string with gitignore lines, or 3. a list of either of the two. They will be concatenated into a single big string. - These functions are derived from the Filter functions by - setting the first filter argument to (_: _: true): + These functions are derived from the Filter functions by setting the first filter argument to (_: _: true): - Those filter functions accept the same arguments the - builtins.filterSource function would pass to its filters, - thus fn: gitignoreFilterSourcePure fn "" should be - extensionally equivalent to filterSource. The file is - blacklisted iff it's blacklisted by either your filter or the - gitignoreFilter. + Those filter functions accept the same arguments the builtins.filterSource function would pass to its filters, thus fn: gitignoreFilterSourcePure fn "" should be extensionally equivalent to filterSource. The file is blacklisted iff it's blacklisted by either your filter or the gitignoreFilter. @@ -71,8 +58,7 @@ gitignoreFilter = ign: root: filterPattern (gitignoreToPatterns ign) root; gitignore files in subdirectories - If you wish to use a filter that would search for .gitignore files in - subdirectories, just like git does by default, use this function: + If you wish to use a filter that would search for .gitignore files in subdirectories, just like git does by default, use this function: pkgs.ociTools - pkgs.ociTools is a set of functions for creating - containers according to the - OCI - container specification v1.0.0. Beyond that it makes no assumptions - about the container runner you choose to use to run the created container. + pkgs.ociTools is a set of functions for creating containers according to the OCI container specification v1.0.0. Beyond that it makes no assumptions about the container runner you choose to use to run the created container.
buildContainer - This function creates a simple OCI container that runs a single command - inside of it. An OCI container consists of a config.json - and a rootfs directory.The nix store of the container will contain all - referenced dependencies of the given command. + This function creates a simple OCI container that runs a single command inside of it. An OCI container consists of a config.json and a rootfs directory.The nix store of the container will contain all referenced dependencies of the given command. - The parameters of buildContainer with an example value - are described below: + The parameters of buildContainer with an example value are described below: @@ -51,23 +43,17 @@ buildContainer { - args specifies a set of arguments to run inside the - container. This is the only required argument for - buildContainer. All referenced packages inside the - derivation will be made available inside the container + args specifies a set of arguments to run inside the container. This is the only required argument for buildContainer. All referenced packages inside the derivation will be made available inside the container - mounts specifies additional mount points chosen by the - user. By default only a minimal set of necessary filesystems are mounted - into the container (e.g procfs, cgroupfs) + mounts specifies additional mount points chosen by the user. By default only a minimal set of necessary filesystems are mounted into the container (e.g procfs, cgroupfs) - readonly makes the container's rootfs read-only if it - is set to true. The default value is false false. + readonly makes the container's rootfs read-only if it is set to true. The default value is false false. diff --git a/doc/functions/overrides.xml b/doc/functions/overrides.xml index 1bd90d2a0c760..4ba4283c6094d 100644 --- a/doc/functions/overrides.xml +++ b/doc/functions/overrides.xml @@ -5,23 +5,18 @@ Overriding - Sometimes one wants to override parts of nixpkgs, e.g. - derivation attributes, the results of derivations. + Sometimes one wants to override parts of nixpkgs, e.g. derivation attributes, the results of derivations. - These functions are used to make changes to packages, returning only single - packages. Overlays, on the other - hand, can be used to combine the overridden packages across the entire - package set of Nixpkgs. + These functions are used to make changes to packages, returning only single packages. Overlays, on the other hand, can be used to combine the overridden packages across the entire package set of Nixpkgs.
<pkg>.override - The function override is usually available for all the - derivations in the nixpkgs expression (pkgs). + The function override is usually available for all the derivations in the nixpkgs expression (pkgs). @@ -47,10 +42,7 @@ mypkg = pkgs.callPackage ./mypkg.nix { - In the first example, pkgs.foo is the result of a - function call with some default arguments, usually a derivation. Using - pkgs.foo.override will call the same function with the - given new arguments. + In the first example, pkgs.foo is the result of a function call with some default arguments, usually a derivation. Using pkgs.foo.override will call the same function with the given new arguments.
@@ -58,12 +50,7 @@ mypkg = pkgs.callPackage ./mypkg.nix { <pkg>.overrideAttrs - The function overrideAttrs allows overriding the - attribute set passed to a stdenv.mkDerivation call, - producing a new derivation based on the original one. This function is - available on all derivations produced by the - stdenv.mkDerivation function, which is most packages in - the nixpkgs expression pkgs. + The function overrideAttrs allows overriding the attribute set passed to a stdenv.mkDerivation call, producing a new derivation based on the original one. This function is available on all derivations produced by the stdenv.mkDerivation function, which is most packages in the nixpkgs expression pkgs. @@ -76,30 +63,16 @@ helloWithDebug = pkgs.hello.overrideAttrs (oldAttrs: rec { - In the above example, the separateDebugInfo attribute is - overridden to be true, thus building debug info for - helloWithDebug, while all other attributes will be - retained from the original hello package. + In the above example, the separateDebugInfo attribute is overridden to be true, thus building debug info for helloWithDebug, while all other attributes will be retained from the original hello package. - The argument oldAttrs is conventionally used to refer to - the attr set originally passed to stdenv.mkDerivation. + The argument oldAttrs is conventionally used to refer to the attr set originally passed to stdenv.mkDerivation. - Note that separateDebugInfo is processed only by the - stdenv.mkDerivation function, not the generated, raw Nix - derivation. Thus, using overrideDerivation will not work - in this case, as it overrides only the attributes of the final derivation. - It is for this reason that overrideAttrs should be - preferred in (almost) all cases to overrideDerivation, - i.e. to allow using stdenv.mkDerivation to process input - arguments, as well as the fact that it is easier to use (you can use the - same attribute names you see in your Nix code, instead of the ones - generated (e.g. buildInputs vs - nativeBuildInputs), and it involves less typing). + Note that separateDebugInfo is processed only by the stdenv.mkDerivation function, not the generated, raw Nix derivation. Thus, using overrideDerivation will not work in this case, as it overrides only the attributes of the final derivation. It is for this reason that overrideAttrs should be preferred in (almost) all cases to overrideDerivation, i.e. to allow using stdenv.mkDerivation to process input arguments, as well as the fact that it is easier to use (you can use the same attribute names you see in your Nix code, instead of the ones generated (e.g. buildInputs vs nativeBuildInputs), and it involves less typing).
@@ -109,34 +82,18 @@ helloWithDebug = pkgs.hello.overrideAttrs (oldAttrs: rec { - You should prefer overrideAttrs in almost all cases, see - its documentation for the reasons why. - overrideDerivation is not deprecated and will continue - to work, but is less nice to use and does not have as many abilities as - overrideAttrs. + You should prefer overrideAttrs in almost all cases, see its documentation for the reasons why. overrideDerivation is not deprecated and will continue to work, but is less nice to use and does not have as many abilities as overrideAttrs. - Do not use this function in Nixpkgs as it evaluates a Derivation before - modifying it, which breaks package abstraction and removes error-checking - of function arguments. In addition, this evaluation-per-function - application incurs a performance penalty, which can become a problem if - many overrides are used. It is only intended for ad-hoc customisation, such - as in ~/.config/nixpkgs/config.nix. + Do not use this function in Nixpkgs as it evaluates a Derivation before modifying it, which breaks package abstraction and removes error-checking of function arguments. In addition, this evaluation-per-function application incurs a performance penalty, which can become a problem if many overrides are used. It is only intended for ad-hoc customisation, such as in ~/.config/nixpkgs/config.nix. - The function overrideDerivation creates a new derivation - based on an existing one by overriding the original's attributes with the - attribute set produced by the specified function. This function is available - on all derivations defined using the makeOverridable - function. Most standard derivation-producing functions, such as - stdenv.mkDerivation, are defined using this function, - which means most packages in the nixpkgs expression, - pkgs, have this function. + The function overrideDerivation creates a new derivation based on an existing one by overriding the original's attributes with the attribute set produced by the specified function. This function is available on all derivations defined using the makeOverridable function. Most standard derivation-producing functions, such as stdenv.mkDerivation, are defined using this function, which means most packages in the nixpkgs expression, pkgs, have this function. @@ -154,27 +111,16 @@ mySed = pkgs.gnused.overrideDerivation (oldAttrs: { - In the above example, the name, src, - and patches of the derivation will be overridden, while - all other attributes will be retained from the original derivation. + In the above example, the name, src, and patches of the derivation will be overridden, while all other attributes will be retained from the original derivation. - The argument oldAttrs is used to refer to the attribute - set of the original derivation. + The argument oldAttrs is used to refer to the attribute set of the original derivation. - A package's attributes are evaluated *before* being modified by the - overrideDerivation function. For example, the - name attribute reference in url = - "mirror://gnu/hello/${name}.tar.gz"; is filled-in *before* the - overrideDerivation function modifies the attribute set. - This means that overriding the name attribute, in this - example, *will not* change the value of the url - attribute. Instead, we need to override both the name - *and* url attributes. + A package's attributes are evaluated *before* being modified by the overrideDerivation function. For example, the name attribute reference in url = "mirror://gnu/hello/${name}.tar.gz"; is filled-in *before* the overrideDerivation function modifies the attribute set. This means that overriding the name attribute, in this example, *will not* change the value of the url attribute. Instead, we need to override both the name *and* url attributes.
@@ -183,9 +129,7 @@ mySed = pkgs.gnused.overrideDerivation (oldAttrs: { lib.makeOverridable - The function lib.makeOverridable is used to make the - result of a function easily customizable. This utility only makes sense for - functions that accept an argument set and return an attribute set. + The function lib.makeOverridable is used to make the result of a function easily customizable. This utility only makes sense for functions that accept an argument set and return an attribute set. @@ -197,16 +141,11 @@ c = lib.makeOverridable f { a = 1; b = 2; }; - The variable c is the value of the f - function applied with some default arguments. Hence the value of - c.result is 3, in this example. + The variable c is the value of the f function applied with some default arguments. Hence the value of c.result is 3, in this example. - The variable c however also has some additional - functions, like c.override which can - be used to override the default arguments. In this example the value of - (c.override { a = 4; }).result is 6. + The variable c however also has some additional functions, like c.override which can be used to override the default arguments. In this example the value of (c.override { a = 4; }).result is 6. diff --git a/doc/functions/prefer-remote-fetch.xml b/doc/functions/prefer-remote-fetch.xml index 3e43fd28ade8c..94d25d3d3aeb6 100644 --- a/doc/functions/prefer-remote-fetch.xml +++ b/doc/functions/prefer-remote-fetch.xml @@ -5,16 +5,12 @@ prefer-remote-fetch overlay - prefer-remote-fetch is an overlay that download sources - on remote builder. This is useful when the evaluating machine has a slow - upload while the builder can fetch faster directly from the source. To use - it, put the following snippet as a new overlay: + prefer-remote-fetch is an overlay that download sources on remote builder. This is useful when the evaluating machine has a slow upload while the builder can fetch faster directly from the source. To use it, put the following snippet as a new overlay: self: super: (super.prefer-remote-fetch self super) - A full configuration example for that sets the overlay up for your own - account, could look like this + A full configuration example for that sets the overlay up for your own account, could look like this $ mkdir ~/.config/nixpkgs/overlays/ $ cat > ~/.config/nixpkgs/overlays/prefer-remote-fetch.nix <<EOF diff --git a/doc/functions/shell.xml b/doc/functions/shell.xml index e5031c9463c06..cef65d06b8823 100644 --- a/doc/functions/shell.xml +++ b/doc/functions/shell.xml @@ -5,9 +5,7 @@ pkgs.mkShell - pkgs.mkShell is a special kind of derivation that is - only useful when using it combined with nix-shell. It will - in fact fail to instantiate when invoked with nix-build. + pkgs.mkShell is a special kind of derivation that is only useful when using it combined with nix-shell. It will in fact fail to instantiate when invoked with nix-build.
diff --git a/doc/functions/snaptools.xml b/doc/functions/snaptools.xml index d0e3efdf6c674..422fcfa37d885 100644 --- a/doc/functions/snaptools.xml +++ b/doc/functions/snaptools.xml @@ -5,28 +5,22 @@ pkgs.snapTools - pkgs.snapTools is a set of functions for creating - Snapcraft images. Snap and Snapcraft is not used to perform these operations. + pkgs.snapTools is a set of functions for creating Snapcraft images. Snap and Snapcraft is not used to perform these operations.
The makeSnap Function - makeSnap takes a single named argument, - meta. This argument mirrors - the upstream - snap.yaml format exactly. + makeSnap takes a single named argument, meta. This argument mirrors the upstream snap.yaml format exactly. - The base should not be be specified, as - makeSnap will force set it. + The base should not be be specified, as makeSnap will force set it. - Currently, makeSnap does not support creating GUI - stubs. + Currently, makeSnap does not support creating GUI stubs.
@@ -40,9 +34,7 @@ - nix-build this expression and install it with - snap install ./result --dangerous. - hello will now be the Snapcraft version of the package. + nix-build this expression and install it with snap install ./result --dangerous. hello will now be the Snapcraft version of the package.
@@ -53,21 +45,14 @@ Making a Graphical Snap - Graphical programs require many more integrations with the host. This - example uses Firefox as an example, because it is one of the most - complicated programs we could package. + Graphical programs require many more integrations with the host. This example uses Firefox as an example, because it is one of the most complicated programs we could package. - nix-build this expression and install it with - snap install ./result --dangerous. - nix-example-firefox will now be the Snapcraft version of - the Firefox package. + nix-build this expression and install it with snap install ./result --dangerous. nix-example-firefox will now be the Snapcraft version of the Firefox package. - The specific meaning behind plugs can be looked up in the - Snapcraft - interface documentation. + The specific meaning behind plugs can be looked up in the Snapcraft interface documentation. diff --git a/doc/functions/trivial-builders.xml b/doc/functions/trivial-builders.xml index 0211a4f317281..ae9f3a1b255d5 100644 --- a/doc/functions/trivial-builders.xml +++ b/doc/functions/trivial-builders.xml @@ -5,11 +5,7 @@ Trivial builders - Nixpkgs provides a couple of functions that help with building derivations. - The most important one, stdenv.mkDerivation, has already - been documented above. The following functions wrap - stdenv.mkDerivation, making it easier to use in certain - cases. + Nixpkgs provides a couple of functions that help with building derivations. The most important one, stdenv.mkDerivation, has already been documented above. The following functions wrap stdenv.mkDerivation, making it easier to use in certain cases. @@ -19,17 +15,7 @@ - This takes three arguments, name, - env, and buildCommand. - name is just the name that Nix will append to the store - path in the same way that stdenv.mkDerivation uses its - name attribute. env is an attribute - set specifying environment variables that will be set for this derivation. - These attributes are then passed to the wrapped - stdenv.mkDerivation. buildCommand - specifies the commands that will be run to create this derivation. Note - that you will need to create $out for Nix to register - the command as successful. + This takes three arguments, name, env, and buildCommand. name is just the name that Nix will append to the store path in the same way that stdenv.mkDerivation uses its name attribute. env is an attribute set specifying environment variables that will be set for this derivation. These attributes are then passed to the wrapped stdenv.mkDerivation. buildCommand specifies the commands that will be run to create this derivation. Note that you will need to create $out for Nix to register the command as successful. An example of using runCommand is provided below. @@ -62,10 +48,7 @@ - This works just like runCommand. The only difference is - that it also provides a C compiler in buildCommand’s - environment. To minimize your dependencies, you should only use this if - you are sure you will need a C compiler as part of running your command. + This works just like runCommand. The only difference is that it also provides a C compiler in buildCommand’s environment. To minimize your dependencies, you should only use this if you are sure you will need a C compiler as part of running your command. @@ -75,20 +58,10 @@ - These functions write text to the Nix store. This is - useful for creating scripts from Nix expressions. - writeTextFile takes an attribute set and expects two - arguments, name and text. - name corresponds to the name used in the Nix store - path. text will be the contents of the file. You can - also set executable to true to make this file have the - executable bit set. + These functions write text to the Nix store. This is useful for creating scripts from Nix expressions. writeTextFile takes an attribute set and expects two arguments, name and text. name corresponds to the name used in the Nix store path. text will be the contents of the file. You can also set executable to true to make this file have the executable bit set. - Many more commands wrap writeTextFile including - writeText, writeTextDir, - writeScript, and writeScriptBin. - These are convenience functions over writeTextFile. + Many more commands wrap writeTextFile including writeText, writeTextDir, writeScript, and writeScriptBin. These are convenience functions over writeTextFile. @@ -98,14 +71,7 @@ - This can be used to put many derivations into the same directory - structure. It works by creating a new derivation and adding symlinks to - each of the paths listed. It expects two arguments, - name, and paths. - name is the name used in the Nix store path for the - created derivation. paths is a list of paths that will - be symlinked. These paths can be to Nix store derivations or any other - subdirectory contained within. + This can be used to put many derivations into the same directory structure. It works by creating a new derivation and adding symlinks to each of the paths listed. It expects two arguments, name, and paths. name is the name used in the Nix store path for the created derivation. paths is a list of paths that will be symlinked. These paths can be to Nix store derivations or any other subdirectory contained within. diff --git a/doc/languages-frameworks/beam.xml b/doc/languages-frameworks/beam.xml index dee7f2d74191e..65f28d0a2d3b4 100644 --- a/doc/languages-frameworks/beam.xml +++ b/doc/languages-frameworks/beam.xml @@ -7,12 +7,7 @@ Introduction - In this document and related Nix expressions, we use the term, - BEAM, to describe the environment. BEAM is the name of - the Erlang Virtual Machine and, as far as we're concerned, from a packaging - perspective, all languages that run on the BEAM are interchangeable. That - which varies, like the build system, is transparent to users of any given - BEAM package, so we make no distinction. + In this document and related Nix expressions, we use the term, BEAM, to describe the environment. BEAM is the name of the Erlang Virtual Machine and, as far as we're concerned, from a packaging perspective, all languages that run on the BEAM are interchangeable. That which varies, like the build system, is transparent to users of any given BEAM package, so we make no distinction. @@ -20,57 +15,36 @@ Structure - All BEAM-related expressions are available via the top-level - beam attribute, which includes: + All BEAM-related expressions are available via the top-level beam attribute, which includes: - interpreters: a set of compilers running on the BEAM, - including multiple Erlang/OTP versions - (beam.interpreters.erlangR19, etc), Elixir - (beam.interpreters.elixir) and LFE - (beam.interpreters.lfe). + interpreters: a set of compilers running on the BEAM, including multiple Erlang/OTP versions (beam.interpreters.erlangR19, etc), Elixir (beam.interpreters.elixir) and LFE (beam.interpreters.lfe). - packages: a set of package sets, each compiled with a - specific Erlang/OTP version, e.g. - beam.packages.erlangR19. + packages: a set of package sets, each compiled with a specific Erlang/OTP version, e.g. beam.packages.erlangR19. - The default Erlang compiler, defined by - beam.interpreters.erlang, is aliased as - erlang. The default BEAM package set is defined by - beam.packages.erlang and aliased at the top level as - beamPackages. + The default Erlang compiler, defined by beam.interpreters.erlang, is aliased as erlang. The default BEAM package set is defined by beam.packages.erlang and aliased at the top level as beamPackages. - To create a package set built with a custom Erlang version, use the lambda, - beam.packagesWith, which accepts an Erlang/OTP derivation - and produces a package set similar to - beam.packages.erlang. + To create a package set built with a custom Erlang version, use the lambda, beam.packagesWith, which accepts an Erlang/OTP derivation and produces a package set similar to beam.packages.erlang. - Many Erlang/OTP distributions available in - beam.interpreters have versions with ODBC and/or Java - enabled. For example, there's - beam.interpreters.erlangR19_odbc_javac, which corresponds - to beam.interpreters.erlangR19. + Many Erlang/OTP distributions available in beam.interpreters have versions with ODBC and/or Java enabled. For example, there's beam.interpreters.erlangR19_odbc_javac, which corresponds to beam.interpreters.erlangR19. - We also provide the lambda, - beam.packages.erlang.callPackage, which simplifies - writing BEAM package definitions by injecting all packages from - beam.packages.erlang into the top-level context. + We also provide the lambda, beam.packages.erlang.callPackage, which simplifies writing BEAM package definitions by injecting all packages from beam.packages.erlang into the top-level context. @@ -81,24 +55,16 @@ Rebar3 - By default, Rebar3 wants to manage its own dependencies. This is perfectly - acceptable in the normal, non-Nix setup, but in the Nix world, it is not. - To rectify this, we provide two versions of Rebar3: + By default, Rebar3 wants to manage its own dependencies. This is perfectly acceptable in the normal, non-Nix setup, but in the Nix world, it is not. To rectify this, we provide two versions of Rebar3: - rebar3: patched to remove the ability to download - anything. When not running it via nix-shell or - nix-build, it's probably not going to work as - desired. + rebar3: patched to remove the ability to download anything. When not running it via nix-shell or nix-build, it's probably not going to work as desired. - rebar3-open: the normal, unmodified Rebar3. It should - work exactly as would any other version of Rebar3. Any Erlang package - should rely on rebar3 instead. See - rebar3-open: the normal, unmodified Rebar3. It should work exactly as would any other version of Rebar3. Any Erlang package should rely on rebar3 instead. See . @@ -110,10 +76,7 @@ Mix & Erlang.mk - Both Mix and Erlang.mk work exactly as expected. There is a bootstrap - process that needs to be run for both, however, which is supported by the - buildMix and buildErlangMk - derivations, respectively. + Both Mix and Erlang.mk work exactly as expected. There is a bootstrap process that needs to be run for both, however, which is supported by the buildMix and buildErlangMk derivations, respectively. @@ -122,13 +85,7 @@ How to Install BEAM Packages - BEAM packages are not registered at the top level, simply because they are - not relevant to the vast majority of Nix users. They are installable using - the beam.packages.erlang attribute set (aliased as - beamPackages), which points to packages built by the - default Erlang/OTP version in Nixpkgs, as defined by - beam.interpreters.erlang. To list the available packages - in beamPackages, use the following command: + BEAM packages are not registered at the top level, simply because they are not relevant to the vast majority of Nix users. They are installable using the beam.packages.erlang attribute set (aliased as beamPackages), which points to packages built by the default Erlang/OTP version in Nixpkgs, as defined by beam.interpreters.erlang. To list the available packages in beamPackages, use the following command: @@ -143,8 +100,7 @@ beamPackages.rebar3-pc pc-1.1.0 - To install any of those packages into your profile, refer to them by their - attribute path (first column): + To install any of those packages into your profile, refer to them by their attribute path (first column): @@ -152,9 +108,7 @@ beamPackages.rebar3-pc pc-1.1.0 - The attribute path of any BEAM package corresponds to the name of that - particular package in Hex or its - OTP Application/Release name. + The attribute path of any BEAM package corresponds to the name of that particular package in Hex or its OTP Application/Release name. @@ -168,13 +122,8 @@ beamPackages.rebar3-pc pc-1.1.0 Rebar3 Packages - The Nix function, buildRebar3, defined in - beam.packages.erlang.buildRebar3 and aliased at the top - level, can be used to build a derivation that understands how to build a - Rebar3 project. For example, we can build - hex2nix - as follows: + The Nix function, buildRebar3, defined in beam.packages.erlang.buildRebar3 and aliased at the top level, can be used to build a derivation that understands how to build a Rebar3 project. For example, we can build hex2nix as follows: @@ -196,25 +145,16 @@ buildRebar3 rec { - Such derivations are callable with - beam.packages.erlang.callPackage (see - ). To call this package using - the normal callPackage, refer to dependency packages - via beamPackages, e.g. - beamPackages.ibrowse. + Such derivations are callable with beam.packages.erlang.callPackage (see ). To call this package using the normal callPackage, refer to dependency packages via beamPackages, e.g. beamPackages.ibrowse. - Notably, buildRebar3 includes - beamDeps, while stdenv.mkDerivation - does not. BEAM dependencies added there will be correctly handled by the - system. + Notably, buildRebar3 includes beamDeps, while stdenv.mkDerivation does not. BEAM dependencies added there will be correctly handled by the system. - If a package needs to compile native code via Rebar3's port compilation - mechanism, add compilePort = true; to the derivation. + If a package needs to compile native code via Rebar3's port compilation mechanism, add compilePort = true; to the derivation. @@ -222,9 +162,7 @@ buildRebar3 rec { Erlang.mk Packages - Erlang.mk functions similarly to Rebar3, except we use - buildErlangMk instead of - buildRebar3. + Erlang.mk functions similarly to Rebar3, except we use buildErlangMk instead of buildRebar3. @@ -257,8 +195,7 @@ buildErlangMk { Mix Packages - Mix functions similarly to Rebar3, except we use - buildMix instead of buildRebar3. + Mix functions similarly to Rebar3, except we use buildMix instead of buildRebar3. @@ -323,11 +260,7 @@ buildHex { Accessing an Environment - Often, we simply want to access a valid environment that contains a - specific package and its dependencies. We can accomplish that with the - env attribute of a derivation. For example, let's say we - want to access an Erlang REPL with ibrowse loaded up. We - could do the following: + Often, we simply want to access a valid environment that contains a specific package and its dependencies. We can accomplish that with the env attribute of a derivation. For example, let's say we want to access an Erlang REPL with ibrowse loaded up. We could do the following: @@ -373,8 +306,7 @@ ok - Notice the -A beamPackages.ibrowse.env. That is the key - to this functionality. + Notice the -A beamPackages.ibrowse.env. That is the key to this functionality. @@ -382,11 +314,7 @@ ok Creating a Shell - Getting access to an environment often isn't enough to do real development. - Usually, we need to create a shell.nix file and do our - development inside of the environment specified therein. This file looks a - lot like the packaging described above, except that src - points to the project root and we call the package directly. + Getting access to an environment often isn't enough to do real development. Usually, we need to create a shell.nix file and do our development inside of the environment specified therein. This file looks a lot like the packaging described above, except that src points to the project root and we call the package directly. @@ -414,8 +342,7 @@ in Building in a Shell (for Mix Projects) - We can leverage the support of the derivation, irrespective of the build - derivation, by calling the commands themselves. + We can leverage the support of the derivation, irrespective of the build derivation, by calling the commands themselves. @@ -477,12 +404,8 @@ analyze: build plt - Using a shell.nix as described (see - ) should just work. Aside from - test, plt, and - analyze, the Make targets work just fine for all of the - build derivations. + Using a shell.nix as described (see ) should just work. Aside from test, plt, and analyze, the Make targets work just fine for all of the build derivations. @@ -492,25 +415,14 @@ analyze: build plt Generating Packages from Hex with <literal>hex2nix</literal> - Updating the Hex package set - requires - hex2nix. - Given the path to the Erlang modules (usually - pkgs/development/erlang-modules), it will dump a file - called hex-packages.nix, containing all the packages that - use a recognized build system in - Hex. It can't be determined, - however, whether every package is buildable. + Updating the Hex package set requires hex2nix. Given the path to the Erlang modules (usually pkgs/development/erlang-modules), it will dump a file called hex-packages.nix, containing all the packages that use a recognized build system in Hex. It can't be determined, however, whether every package is buildable. - To make life easier for our users, try to build every - Hex package and remove those - that fail. To do that, simply run the following command in the root of your - nixpkgs repository: + To make life easier for our users, try to build every Hex package and remove those that fail. To do that, simply run the following command in the root of your nixpkgs repository: @@ -518,11 +430,8 @@ analyze: build plt - That will attempt to build every package in beamPackages. - Then manually remove those that fail. Hopefully, someone will improve - hex2nix - in the future to automate the process. + That will attempt to build every package in beamPackages. Then manually remove those that fail. Hopefully, someone will improve hex2nix in the future to automate the process. diff --git a/doc/languages-frameworks/bower.xml b/doc/languages-frameworks/bower.xml index 118f6e10473ab..b0738cad293bc 100644 --- a/doc/languages-frameworks/bower.xml +++ b/doc/languages-frameworks/bower.xml @@ -4,32 +4,22 @@ Bower - Bower is a package manager for web - site front-end components. Bower packages (comprising of build artefacts and - sometimes sources) are stored in git repositories, - typically on Github. The package registry is run by the Bower team with - package metadata coming from the bower.json file within - each package. + Bower is a package manager for web site front-end components. Bower packages (comprising of build artefacts and sometimes sources) are stored in git repositories, typically on Github. The package registry is run by the Bower team with package metadata coming from the bower.json file within each package. - The end result of running Bower is a bower_components - directory which can be included in the web app's build process. + The end result of running Bower is a bower_components directory which can be included in the web app's build process. - Bower can be run interactively, by installing - nodePackages.bower. More interestingly, the Bower - components can be declared in a Nix derivation, with the help of - nodePackages.bower2nix. + Bower can be run interactively, by installing nodePackages.bower. More interestingly, the Bower components can be declared in a Nix derivation, with the help of nodePackages.bower2nix.
<command>bower2nix</command> usage - Suppose you have a bower.json with the following - contents: + Suppose you have a bower.json with the following contents: <filename>bower.json</filename> @@ -45,8 +35,7 @@ - Running bower2nix will produce something like the - following output: + Running bower2nix will produce something like the following output: - Using the bower2nix command line arguments, the output - can be redirected to a file. A name like - bower-packages.nix would be fine. + Using the bower2nix command line arguments, the output can be redirected to a file. A name like bower-packages.nix would be fine. - The resulting derivation is a union of all the downloaded Bower packages - (and their dependencies). To use it, they still need to be linked together - by Bower, which is where buildBowerComponents is useful. + The resulting derivation is a union of all the downloaded Bower packages (and their dependencies). To use it, they still need to be linked together by Bower, which is where buildBowerComponents is useful.
@@ -74,10 +59,7 @@ buildEnv { name = "bower-env"; ignoreCollisions = true; paths = [ <varname>buildBowerComponents</varname> function - The function is implemented in - - pkgs/development/bower-modules/generic/default.nix. - Example usage: + The function is implemented in pkgs/development/bower-modules/generic/default.nix. Example usage: buildBowerComponents @@ -91,34 +73,27 @@ bowerComponents = buildBowerComponents { - In , the following arguments are - of special significance to the function: + In , the following arguments are of special significance to the function: - generated specifies the file which was created by - bower2nix. + generated specifies the file which was created by bower2nix. - src is your project's sources. It needs to contain a - bower.json file. + src is your project's sources. It needs to contain a bower.json file. - buildBowerComponents will run Bower to link together the - output of bower2nix, resulting in a - bower_components directory which can be used. + buildBowerComponents will run Bower to link together the output of bower2nix, resulting in a bower_components directory which can be used. - Here is an example of a web frontend build process using - gulp. You might use grunt, or anything - else. + Here is an example of a web frontend build process using gulp. You might use grunt, or anything else. @@ -174,21 +149,17 @@ pkgs.stdenv.mkDerivation { - The result of buildBowerComponents is an input to the - frontend build. + The result of buildBowerComponents is an input to the frontend build. - Whether to symlink or copy the bower_components - directory depends on the build tool in use. In this case a copy is used - to avoid gulp silliness with permissions. + Whether to symlink or copy the bower_components directory depends on the build tool in use. In this case a copy is used to avoid gulp silliness with permissions. - gulp requires HOME to refer to a - writeable directory. + gulp requires HOME to refer to a writeable directory. @@ -210,17 +181,13 @@ pkgs.stdenv.mkDerivation { - This means that Bower was looking for a package version which doesn't - exist in the generated bower-packages.nix. + This means that Bower was looking for a package version which doesn't exist in the generated bower-packages.nix. - If bower.json has been updated, then run - bower2nix again. + If bower.json has been updated, then run bower2nix again. - It could also be a bug in bower2nix or - fetchbower. If possible, try reformulating the version - specification in bower.json. + It could also be a bug in bower2nix or fetchbower. If possible, try reformulating the version specification in bower.json. diff --git a/doc/languages-frameworks/coq.xml b/doc/languages-frameworks/coq.xml index 4314df5c9df29..86d9226166f59 100644 --- a/doc/languages-frameworks/coq.xml +++ b/doc/languages-frameworks/coq.xml @@ -4,31 +4,19 @@ Coq - Coq libraries should be installed in - $(out)/lib/coq/${coq.coq-version}/user-contrib/. Such - directories are automatically added to the $COQPATH - environment variable by the hook defined in the Coq derivation. + Coq libraries should be installed in $(out)/lib/coq/${coq.coq-version}/user-contrib/. Such directories are automatically added to the $COQPATH environment variable by the hook defined in the Coq derivation. - Some extensions (plugins) might require OCaml and sometimes other OCaml - packages. The coq.ocamlPackages attribute can be used to - depend on the same package set Coq was built against. + Some extensions (plugins) might require OCaml and sometimes other OCaml packages. The coq.ocamlPackages attribute can be used to depend on the same package set Coq was built against. - Coq libraries may be compatible with some specific versions of Coq only. The - compatibleCoqVersions attribute is used to precisely - select those versions of Coq that are compatible with this derivation. + Coq libraries may be compatible with some specific versions of Coq only. The compatibleCoqVersions attribute is used to precisely select those versions of Coq that are compatible with this derivation. - Here is a simple package example. It is a pure Coq library, thus it depends - on Coq. It builds on the Mathematical Components library, thus it also takes - mathcomp as buildInputs. Its - Makefile has been generated using - coq_makefile so we only have to set the - $COQLIB variable at install time. + Here is a simple package example. It is a pure Coq library, thus it depends on Coq. It builds on the Mathematical Components library, thus it also takes mathcomp as buildInputs. Its Makefile has been generated using coq_makefile so we only have to set the $COQLIB variable at install time. diff --git a/doc/languages-frameworks/gnome.xml b/doc/languages-frameworks/gnome.xml index 42b4ae04322ff..9e0f21a6c74fc 100644 --- a/doc/languages-frameworks/gnome.xml +++ b/doc/languages-frameworks/gnome.xml @@ -5,53 +5,26 @@ Packaging GNOME applications - Programs in the GNOME universe are written in various languages but they all - use GObject-based libraries like GLib, GTK or GStreamer. These libraries are - often modular, relying on looking into certain directories to find their - modules. However, due to Nix’s specific file system organization, this - will fail without our intervention. Fortunately, the libraries usually allow - overriding the directories through environment variables, either natively or - thanks to a patch in nixpkgs. - Wrapping the executables to - ensure correct paths are available to the application constitutes a - significant part of packaging a modern desktop application. In this section, - we will describe various modules needed by such applications, environment - variables needed to make the modules load, and finally a script that will do - the work for us. + Programs in the GNOME universe are written in various languages but they all use GObject-based libraries like GLib, GTK or GStreamer. These libraries are often modular, relying on looking into certain directories to find their modules. However, due to Nix’s specific file system organization, this will fail without our intervention. Fortunately, the libraries usually allow overriding the directories through environment variables, either natively or thanks to a patch in nixpkgs. Wrapping the executables to ensure correct paths are available to the application constitutes a significant part of packaging a modern desktop application. In this section, we will describe various modules needed by such applications, environment variables needed to make the modules load, and finally a script that will do the work for us.
Settings - GSettings - API is often used for storing settings. GSettings schemas are required, to - know the type and other metadata of the stored values. GLib looks for - glib-2.0/schemas/gschemas.compiled files inside the - directories of XDG_DATA_DIRS. + GSettings API is often used for storing settings. GSettings schemas are required, to know the type and other metadata of the stored values. GLib looks for glib-2.0/schemas/gschemas.compiled files inside the directories of XDG_DATA_DIRS. - On Linux, GSettings API is implemented using - dconf - backend. You will need to add dconf GIO module to - GIO_EXTRA_MODULES variable, otherwise the - memory backend will be used and the saved settings will - not be persistent. + On Linux, GSettings API is implemented using dconf backend. You will need to add dconf GIO module to GIO_EXTRA_MODULES variable, otherwise the memory backend will be used and the saved settings will not be persistent. - Last you will need the dconf database D-Bus service itself. You can enable - it using . + Last you will need the dconf database D-Bus service itself. You can enable it using . - Some applications will also require - gsettings-desktop-schemas for things like reading proxy - configuration or user interface customization. This dependency is often not - mentioned by upstream, you should grep for - org.gnome.desktop and - org.gnome.system to see if the schemas are needed. + Some applications will also require gsettings-desktop-schemas for things like reading proxy configuration or user interface customization. This dependency is often not mentioned by upstream, you should grep for org.gnome.desktop and org.gnome.system to see if the schemas are needed.
@@ -59,16 +32,7 @@ Icons - When an application uses icons, an icon theme should be available in - XDG_DATA_DIRS. The package for the default, icon-less - hicolor-icon-theme - contains a setup - hook that will pick up icon themes from - buildInputs and pass it to our wrapper. Unfortunately, - relying on that would mean every user has to download the theme included in - the package expression no matter their preference. For that reason, we - leave the installation of icon theme on the user. If you use one of the - desktop environments, you probably already have an icon theme installed. + When an application uses icons, an icon theme should be available in XDG_DATA_DIRS. The package for the default, icon-less hicolor-icon-theme contains a setup hook that will pick up icon themes from buildInputs and pass it to our wrapper. Unfortunately, relying on that would mean every user has to download the theme included in the package expression no matter their preference. For that reason, we leave the installation of icon theme on the user. If you use one of the desktop environments, you probably already have an icon theme installed. @@ -76,12 +40,7 @@ GTK Themes - Previously, a GTK theme needed to be in XDG_DATA_DIRS. This - is no longer necessary for most programs since GTK incorporated Adwaita - theme. Some programs (for example, those designed for - elementary - HIG) might require a special theme like - pantheon.elementary-gtk-theme. + Previously, a GTK theme needed to be in XDG_DATA_DIRS. This is no longer necessary for most programs since GTK incorporated Adwaita theme. Some programs (for example, those designed for elementary HIG) might require a special theme like pantheon.elementary-gtk-theme. @@ -89,10 +48,7 @@ GObject introspection typelibs - GObject - introspection allows applications to use C libraries in other - languages easily. It does this through typelib files - searched in GI_TYPELIB_PATH. + GObject introspection allows applications to use C libraries in other languages easily. It does this through typelib files searched in GI_TYPELIB_PATH. @@ -100,11 +56,7 @@ Various plug-ins - If your application uses - GStreamer or - Grilo, you - should set GST_PLUGIN_SYSTEM_PATH_1_0 and - GRL_PLUGIN_PATH, respectively. + If your application uses GStreamer or Grilo, you should set GST_PLUGIN_SYSTEM_PATH_1_0 and GRL_PLUGIN_PATH, respectively. @@ -113,8 +65,7 @@ Onto <package>wrapGAppsHook</package> - Given the requirements above, the package expression would become messy - quickly: + Given the requirements above, the package expression would become messy quickly: preFixup = '' for f in $(find $out/bin/ $out/libexec/ -type f -executable); do @@ -128,76 +79,48 @@ preFixup = '' done ''; - Fortunately, there is wrapGAppsHook, that does the - wrapping for us. In particular, it works in conjunction with other setup - hooks that will populate the variable: + Fortunately, there is wrapGAppsHook, that does the wrapping for us. In particular, it works in conjunction with other setup hooks that will populate the variable: - wrapGAppsHook itself will add the package’s - share directory to XDG_DATA_DIRS. + wrapGAppsHook itself will add the package’s share directory to XDG_DATA_DIRS. - glib setup hook will populate - GSETTINGS_SCHEMAS_PATH and then - wrapGAppsHook will prepend it to - XDG_DATA_DIRS. + glib setup hook will populate GSETTINGS_SCHEMAS_PATH and then wrapGAppsHook will prepend it to XDG_DATA_DIRS. - gnome3.dconf.lib is a dependency of - wrapGAppsHook, which then also adds it to the - GIO_EXTRA_MODULES variable. + gnome3.dconf.lib is a dependency of wrapGAppsHook, which then also adds it to the GIO_EXTRA_MODULES variable. - hicolor-icon-theme’s setup hook will add icon themes - to XDG_ICON_DIRS which is prepended to - XDG_DATA_DIRS by wrapGAppsHook. + hicolor-icon-theme’s setup hook will add icon themes to XDG_ICON_DIRS which is prepended to XDG_DATA_DIRS by wrapGAppsHook. - gobject-introspection setup hook populates - GI_TYPELIB_PATH variable with - lib/girepository-1.0 directories of dependencies, - which is then added to wrapper by wrapGAppsHook. It - also adds share directories of dependencies to - XDG_DATA_DIRS, which is intended to promote GIR files but - it also - pollutes - the closures of packages using wrapGAppsHook. + gobject-introspection setup hook populates GI_TYPELIB_PATH variable with lib/girepository-1.0 directories of dependencies, which is then added to wrapper by wrapGAppsHook. It also adds share directories of dependencies to XDG_DATA_DIRS, which is intended to promote GIR files but it also pollutes the closures of packages using wrapGAppsHook. - The setup hook - currently - does not work in expressions with strictDeps enabled, - like Python packages. In those cases, you will need to disable it with - strictDeps = false;. + The setup hook currently does not work in expressions with strictDeps enabled, like Python packages. In those cases, you will need to disable it with strictDeps = false;. - Setup hooks of gst_all_1.gstreamer and - gnome3.grilo will populate the - GST_PLUGIN_SYSTEM_PATH_1_0 and - GRL_PLUGIN_PATH variables, respectively, which will then - be added to the wrapper by wrapGAppsHook. + Setup hooks of gst_all_1.gstreamer and gnome3.grilo will populate the GST_PLUGIN_SYSTEM_PATH_1_0 and GRL_PLUGIN_PATH variables, respectively, which will then be added to the wrapper by wrapGAppsHook. - You can also pass additional arguments to makeWrapper - using gappsWrapperArgs in preFixup - hook: + You can also pass additional arguments to makeWrapper using gappsWrapperArgs in preFixup hook: preFixup = '' gappsWrapperArgs+=( @@ -215,13 +138,7 @@ preFixup = '' Updating GNOME packages - Most GNOME package offer - updateScript, - it is therefore possible to update to latest source tarball by running - nix-shell maintainers/scripts/update.nix --argstr package - gnome3.nautilus or even en masse with nix-shell - maintainers/scripts/update.nix --argstr path gnome3. Read the - package’s NEWS file to see what changed. + Most GNOME package offer updateScript, it is therefore possible to update to latest source tarball by running nix-shell maintainers/scripts/update.nix --argstr package gnome3.nautilus or even en masse with nix-shell maintainers/scripts/update.nix --argstr path gnome3. Read the package’s NEWS file to see what changed. @@ -235,17 +152,7 @@ preFixup = '' - There are no schemas avalable in XDG_DATA_DIRS. - Temporarily add a random package containing schemas like - gsettings-desktop-schemas to - buildInputs. - glib and - wrapGAppsHook - setup hooks will take care of making the schemas available to application - and you will see the actual missing schemas with the - next - error. Or you can try looking through the source code for the - actual schemas used. + There are no schemas avalable in XDG_DATA_DIRS. Temporarily add a random package containing schemas like gsettings-desktop-schemas to buildInputs. glib and wrapGAppsHook setup hooks will take care of making the schemas available to application and you will see the actual missing schemas with the next error. Or you can try looking through the source code for the actual schemas used. @@ -255,11 +162,7 @@ preFixup = '' - Package is missing some GSettings schemas. You can find out the package - containing the schema with nix-locate - org.gnome.foo.gschema.xml and let - the hooks handle the wrapping as - above. + Package is missing some GSettings schemas. You can find out the package containing the schema with nix-locate org.gnome.foo.gschema.xml and let the hooks handle the wrapping as above. @@ -269,14 +172,7 @@ preFixup = '' - This is because derivers like - python.pkgs.buildPythonApplication or - qt5.mkDerivation have setup-hooks automatically - added that produce wrappers with makeWrapper. The - simplest way to workaround that is to disable the - wrapGAppsHook automatic wrapping with - dontWrapGApps = true; and pass the arguments it intended to - pass to makeWrapper to another. + This is because derivers like python.pkgs.buildPythonApplication or qt5.mkDerivation have setup-hooks automatically added that produce wrappers with makeWrapper. The simplest way to workaround that is to disable the wrapGAppsHook automatic wrapping with dontWrapGApps = true; and pass the arguments it intended to pass to makeWrapper to another. In the case of a Python application it could look like: @@ -328,55 +224,34 @@ mkDerivation { - You can rely on applications depending on the library set the necessary - environment variables but that it often easy to miss. Instead we - recommend to patch the paths in the source code whenever possible. Here - are some examples: + You can rely on applications depending on the library set the necessary environment variables but that it often easy to miss. Instead we recommend to patch the paths in the source code whenever possible. Here are some examples: - Replacing - a GI_TYPELIB_PATH in GNOME Shell extension – - we are using substituteAll to include the path to - a typelib into a patch. + Replacing a GI_TYPELIB_PATH in GNOME Shell extension – we are using substituteAll to include the path to a typelib into a patch. - The following examples are hardcoding GSettings schema paths. To get - the schema paths we use the functions + The following examples are hardcoding GSettings schema paths. To get the schema paths we use the functions - glib.getSchemaPath Takes a nix package - attribute as an argument. + glib.getSchemaPath Takes a nix package attribute as an argument. - glib.makeSchemaPath Takes a package output - like $out and a derivation name. You should use - this if the schemas you need to hardcode are in the same - derivation. + glib.makeSchemaPath Takes a package output like $out and a derivation name. You should use this if the schemas you need to hardcode are in the same derivation. - Hard-coding - GSettings schema path in Vala plug-in (dynamically loaded - library) – here, substituteAll cannot be - used since the schema comes from the same package preventing us from - pass its path to the function, probably due to a - Nix - bug. + Hard-coding GSettings schema path in Vala plug-in (dynamically loaded library) – here, substituteAll cannot be used since the schema comes from the same package preventing us from pass its path to the function, probably due to a Nix bug. - Hard-coding - GSettings schema path in C library – nothing special other - than using - Coccinelle - patch to generate the patch itself. + Hard-coding GSettings schema path in C library – nothing special other than using Coccinelle patch to generate the patch itself. diff --git a/doc/languages-frameworks/go.xml b/doc/languages-frameworks/go.xml index b2b4962cb5f63..288a902986316 100644 --- a/doc/languages-frameworks/go.xml +++ b/doc/languages-frameworks/go.xml @@ -7,21 +7,16 @@ Go modules - The function buildGoModule builds Go programs managed - with Go modules. It builds a - Go - modules through a two phase build: + The function buildGoModule builds Go programs managed with Go modules. It builds a Go modules through a two phase build: - An intermediate fetcher derivation. This derivation will be used to fetch - all of the dependencies of the Go module. + An intermediate fetcher derivation. This derivation will be used to fetch all of the dependencies of the Go module. - A final derivation will use the output of the intermediate derivation to - build the binaries and produce the final output. + A final derivation will use the output of the intermediate derivation to build the binaries and produce the final output. @@ -57,21 +52,16 @@ pet = buildGoModule rec {
- is an example expression using - buildGoModule, the following arguments are of special significance to the - function: + is an example expression using buildGoModule, the following arguments are of special significance to the function: - modSha256 is the hash of the output of the - intermediate fetcher derivation. + modSha256 is the hash of the output of the intermediate fetcher derivation. - subPackages limits the builder from building child - packages that have not been listed. If subPackages is - not specified, all child packages will be built. + subPackages limits the builder from building child packages that have not been listed. If subPackages is not specified, all child packages will be built. @@ -82,8 +72,7 @@ pet = buildGoModule rec { Go legacy - The function buildGoPackage builds legacy Go programs, - not supporting Go modules. + The function buildGoPackage builds legacy Go programs, not supporting Go modules. @@ -111,49 +100,36 @@ deis = buildGoPackage rec { - is an example expression using - buildGoPackage, the following arguments are of special significance to the - function: + is an example expression using buildGoPackage, the following arguments are of special significance to the function: - goPackagePath specifies the package's canonical Go - import path. + goPackagePath specifies the package's canonical Go import path. - subPackages limits the builder from building child - packages that have not been listed. If subPackages is - not specified, all child packages will be built. + subPackages limits the builder from building child packages that have not been listed. If subPackages is not specified, all child packages will be built. - In this example only github.com/deis/deis/client will - be built. + In this example only github.com/deis/deis/client will be built. - goDeps is where the Go dependencies of a Go program - are listed as a list of package source identified by Go import path. It - could be imported as a separate deps.nix file for - readability. The dependency data structure is described below. + goDeps is where the Go dependencies of a Go program are listed as a list of package source identified by Go import path. It could be imported as a separate deps.nix file for readability. The dependency data structure is described below. - buildFlags is a list of flags passed to the go build - command. + buildFlags is a list of flags passed to the go build command. - The goDeps attribute can be imported from a separate - nix file that defines which Go libraries are needed and - should be included in GOPATH for - buildPhase. + The goDeps attribute can be imported from a separate nix file that defines which Go libraries are needed and should be included in GOPATH for buildPhase. @@ -196,27 +172,18 @@ deis = buildGoPackage rec { - fetch type that needs to be used to get package - source. If git is used there should be - url, rev and - sha256 defined next to it. + fetch type that needs to be used to get package source. If git is used there should be url, rev and sha256 defined next to it. - To extract dependency information from a Go package in automated way use - go2nix. It can - produce complete derivation and goDeps file for Go - programs. + To extract dependency information from a Go package in automated way use go2nix. It can produce complete derivation and goDeps file for Go programs. - buildGoPackage produces - where - bin includes program binaries. You can test build a Go - binary as follows: + buildGoPackage produces where bin includes program binaries. You can test build a Go binary as follows: $ nix-build -A deis.bin @@ -224,13 +191,11 @@ deis = buildGoPackage rec { $ nix-build -A deis.all - bin output will be installed by default with - nix-env -i or systemPackages. + bin output will be installed by default with nix-env -i or systemPackages. - You may use Go packages installed into the active Nix profiles by adding the - following to your ~/.bashrc: + You may use Go packages installed into the active Nix profiles by adding the following to your ~/.bashrc: for p in $NIX_PROFILES; do GOPATH="$p/share/go:$GOPATH" diff --git a/doc/languages-frameworks/index.xml b/doc/languages-frameworks/index.xml index 5836294b7748f..cd0b48adb14ab 100644 --- a/doc/languages-frameworks/index.xml +++ b/doc/languages-frameworks/index.xml @@ -3,12 +3,7 @@ xml:id="chap-language-support"> Support for specific programming languages and frameworks - The standard build environment makes it - easy to build typical Autotools-based packages with very little code. Any - other kind of package can be accomodated by overriding the appropriate phases - of stdenv. However, there are specialised functions in - Nixpkgs to easily build packages for other programming languages, such as - Perl or Haskell. These are described in this chapter. + The standard build environment makes it easy to build typical Autotools-based packages with very little code. Any other kind of package can be accomodated by overriding the appropriate phases of stdenv. However, there are specialised functions in Nixpkgs to easily build packages for other programming languages, such as Perl or Haskell. These are described in this chapter. diff --git a/doc/languages-frameworks/java.xml b/doc/languages-frameworks/java.xml index 68a1a097984de..bf0fc48839223 100644 --- a/doc/languages-frameworks/java.xml +++ b/doc/languages-frameworks/java.xml @@ -15,37 +15,24 @@ stdenv.mkDerivation { buildPhase = "ant"; }
- Note that jdk is an alias for the OpenJDK (self-built - where available, or pre-built via Zulu). Platforms with OpenJDK not (yet) in - Nixpkgs (Aarch32, Aarch64) point to the - (unfree) oraclejdk. + Note that jdk is an alias for the OpenJDK (self-built where available, or pre-built via Zulu). Platforms with OpenJDK not (yet) in Nixpkgs (Aarch32, Aarch64) point to the (unfree) oraclejdk.
- JAR files that are intended to be used by other packages should be installed - in $out/share/java. JDKs have a stdenv setup hook that - add any JARs in the share/java directories of the build - inputs to the CLASSPATH environment variable. For instance, if - the package libfoo installs a JAR named - foo.jar in its share/java - directory, and another package declares the attribute + JAR files that are intended to be used by other packages should be installed in $out/share/java. JDKs have a stdenv setup hook that add any JARs in the share/java directories of the build inputs to the CLASSPATH environment variable. For instance, if the package libfoo installs a JAR named foo.jar in its share/java directory, and another package declares the attribute buildInputs = [ libfoo ]; nativeBuildInputs = [ jdk ]; - then CLASSPATH will be set to - /nix/store/...-libfoo/share/java/foo.jar. + then CLASSPATH will be set to /nix/store/...-libfoo/share/java/foo.jar. - Private JARs should be installed in a location like - $out/share/package-name. + Private JARs should be installed in a location like $out/share/package-name. - If your Java package provides a program, you need to generate a wrapper - script to run it using the OpenJRE. You can use - makeWrapper for this: + If your Java package provides a program, you need to generate a wrapper script to run it using the OpenJRE. You can use makeWrapper for this: nativeBuildInputs = [ makeWrapper ]; @@ -56,30 +43,21 @@ installPhase = --add-flags "-cp $out/share/java/foo.jar org.foo.Main" ''; - Note the use of jre, which is the part of the OpenJDK - package that contains the Java Runtime Environment. By using - ${jre}/bin/java instead of - ${jdk}/bin/java, you prevent your package from depending - on the JDK at runtime. + Note the use of jre, which is the part of the OpenJDK package that contains the Java Runtime Environment. By using ${jre}/bin/java instead of ${jdk}/bin/java, you prevent your package from depending on the JDK at runtime. - Note all JDKs passthru home, so if your application - requires environment variables like JAVA_HOME being set, that - can be done in a generic fashion with the --set argument - of makeWrapper: + Note all JDKs passthru home, so if your application requires environment variables like JAVA_HOME being set, that can be done in a generic fashion with the --set argument of makeWrapper: --set JAVA_HOME ${jdk.home} - It is possible to use a different Java compiler than javac - from the OpenJDK. For instance, to use the GNU Java Compiler: + It is possible to use a different Java compiler than javac from the OpenJDK. For instance, to use the GNU Java Compiler: nativeBuildInputs = [ gcj ant ]; - Here, Ant will automatically use gij (the GNU Java - Runtime) instead of the OpenJRE. + Here, Ant will automatically use gij (the GNU Java Runtime) instead of the OpenJRE. diff --git a/doc/languages-frameworks/lua.xml b/doc/languages-frameworks/lua.xml index 5144bb24ff6e7..bcca6b7375391 100644 --- a/doc/languages-frameworks/lua.xml +++ b/doc/languages-frameworks/lua.xml @@ -4,18 +4,11 @@ Lua - Lua packages are built by the buildLuaPackage function. - This function is implemented in - - pkgs/development/lua-modules/generic/default.nix - and works similarly to buildPerlPackage. (See - for details.) + Lua packages are built by the buildLuaPackage function. This function is implemented in pkgs/development/lua-modules/generic/default.nix and works similarly to buildPerlPackage. (See for details.) - Lua packages are defined in - pkgs/top-level/lua-packages.nix. - Most of them are simple. For example: + Lua packages are defined in pkgs/top-level/lua-packages.nix. Most of them are simple. For example: fileSystem = buildLuaPackage { name = "filesystem-1.6.2"; @@ -33,16 +26,11 @@ fileSystem = buildLuaPackage { - Though, more complicated package should be placed in a seperate file in - pkgs/development/lua-modules. - Lua packages accept additional parameter disabled, which - defines the condition of disabling package from luaPackages. For example, if - package has disabled assigned to lua.luaversion - != "5.1", it will not be included in any luaPackages except - lua51Packages, making it only be built for lua 5.1. + Lua packages accept additional parameter disabled, which defines the condition of disabling package from luaPackages. For example, if package has disabled assigned to lua.luaversion != "5.1", it will not be included in any luaPackages except lua51Packages, making it only be built for lua 5.1. diff --git a/doc/languages-frameworks/ocaml.xml b/doc/languages-frameworks/ocaml.xml index b7006ecba9981..a0ea209b493c0 100644 --- a/doc/languages-frameworks/ocaml.xml +++ b/doc/languages-frameworks/ocaml.xml @@ -4,35 +4,15 @@ OCaml - OCaml libraries should be installed in - $(out)/lib/ocaml/${ocaml.version}/site-lib/. Such - directories are automatically added to the $OCAMLPATH - environment variable when building another package that depends on them or - when opening a nix-shell. + OCaml libraries should be installed in $(out)/lib/ocaml/${ocaml.version}/site-lib/. Such directories are automatically added to the $OCAMLPATH environment variable when building another package that depends on them or when opening a nix-shell. - Given that most of the OCaml ecosystem is now built with dune, nixpkgs - includes a convenience build support function called - buildDunePackage that will build an OCaml package using - dune, OCaml and findlib and any additional dependencies provided as - buildInputs or propagatedBuildInputs. + Given that most of the OCaml ecosystem is now built with dune, nixpkgs includes a convenience build support function called buildDunePackage that will build an OCaml package using dune, OCaml and findlib and any additional dependencies provided as buildInputs or propagatedBuildInputs. - Here is a simple package example. It defines an (optional) attribute - minimumOCamlVersion that will be used to throw a - descriptive evaluation error if building with an older OCaml is attempted. It - uses the fetchFromGitHub fetcher to get its source. It - sets the doCheck (optional) attribute to - true which means that tests will be run with dune - runtest -p angstrom after the build (dune build -p - angstrom) is complete. It uses alcotest as a - build input (because it is needed to run the tests) and - bigstringaf and result as propagated - build inputs (thus they will also be available to libraries depending on this - library). The library will be installed using the - angstrom.install file that dune generates. + Here is a simple package example. It defines an (optional) attribute minimumOCamlVersion that will be used to throw a descriptive evaluation error if building with an older OCaml is attempted. It uses the fetchFromGitHub fetcher to get its source. It sets the doCheck (optional) attribute to true which means that tests will be run with dune runtest -p angstrom after the build (dune build -p angstrom) is complete. It uses alcotest as a build input (because it is needed to run the tests) and bigstringaf and result as propagated build inputs (thus they will also be available to libraries depending on this library). The library will be installed using the angstrom.install file that dune generates. @@ -65,11 +45,7 @@ buildDunePackage rec { - Here is a second example, this time using a source archive generated with - dune-release. It is a good idea to use this archive when - it is available as it will usually contain substituted variables such as a - %%VERSION%% field. This library does not depend on any - other OCaml library and no tests are run after building it. + Here is a second example, this time using a source archive generated with dune-release. It is a good idea to use this archive when it is available as it will usually contain substituted variables such as a %%VERSION%% field. This library does not depend on any other OCaml library and no tests are run after building it. diff --git a/doc/languages-frameworks/perl.xml b/doc/languages-frameworks/perl.xml index d5911cf67fd7b..d9b6b2721c675 100644 --- a/doc/languages-frameworks/perl.xml +++ b/doc/languages-frameworks/perl.xml @@ -4,24 +4,13 @@ Perl - Nixpkgs provides a function buildPerlPackage, a generic - package builder function for any Perl package that has a standard - Makefile.PL. It’s implemented in - buildPerlPackage, a generic package builder function for any Perl package that has a standard Makefile.PL. It’s implemented in pkgs/development/perl-modules/generic. - Perl packages from CPAN are defined in - pkgs/top-level/perl-packages.nix, - rather than pkgs/all-packages.nix. Most Perl packages - are so straight-forward to build that they are defined here directly, rather - than having a separate function for each package called from - perl-packages.nix. However, more complicated packages - should be put in a separate file, typically in - pkgs/development/perl-modules. Here is an example of the - former: + Perl packages from CPAN are defined in pkgs/top-level/perl-packages.nix, rather than pkgs/all-packages.nix. Most Perl packages are so straight-forward to build that they are defined here directly, rather than having a separate function for each package called from perl-packages.nix. However, more complicated packages should be put in a separate file, typically in pkgs/development/perl-modules. Here is an example of the former: ClassC3 = buildPerlPackage rec { name = "Class-C3-0.21"; @@ -31,32 +20,22 @@ ClassC3 = buildPerlPackage rec { }; }; - Note the use of mirror://cpan/, and the - ${name} in the URL definition to ensure that the name - attribute is consistent with the source that we’re actually downloading. - Perl packages are made available in all-packages.nix - through the variable perlPackages. For instance, if you - have a package that needs ClassC3, you would typically - write + Note the use of mirror://cpan/, and the ${name} in the URL definition to ensure that the name attribute is consistent with the source that we’re actually downloading. Perl packages are made available in all-packages.nix through the variable perlPackages. For instance, if you have a package that needs ClassC3, you would typically write foo = import ../path/to/foo.nix { inherit stdenv fetchurl ...; inherit (perlPackages) ClassC3; }; - in all-packages.nix. You can test building a Perl - package as follows: + in all-packages.nix. You can test building a Perl package as follows: $ nix-build -A perlPackages.ClassC3 - buildPerlPackage adds perl- to the - start of the name attribute, so the package above is actually called - perl-Class-C3-0.21. So to install it, you can say: + buildPerlPackage adds perl- to the start of the name attribute, so the package above is actually called perl-Class-C3-0.21. So to install it, you can say: $ nix-env -i perl-Class-C3 - (Of course you can also install using the attribute name: nix-env -i - -A perlPackages.ClassC3.) + (Of course you can also install using the attribute name: nix-env -i -A perlPackages.ClassC3.) @@ -64,40 +43,24 @@ foo = import ../path/to/foo.nix { - In the configure phase, it calls perl Makefile.PL to - generate a Makefile. You can set the variable - makeMakerFlags to pass flags to - Makefile.PL + In the configure phase, it calls perl Makefile.PL to generate a Makefile. You can set the variable makeMakerFlags to pass flags to Makefile.PL - It adds the contents of the PERL5LIB environment variable - to #! .../bin/perl line of Perl scripts as - -Idir flags. This ensures - that a script can find its dependencies. (This can cause this shebang line - to become too long for Darwin to handle; see the note below.) + It adds the contents of the PERL5LIB environment variable to #! .../bin/perl line of Perl scripts as -Idir flags. This ensures that a script can find its dependencies. (This can cause this shebang line to become too long for Darwin to handle; see the note below.) - In the fixup phase, it writes the propagated build inputs - (propagatedBuildInputs) to the file - $out/nix-support/propagated-user-env-packages. - nix-env recursively installs all packages listed in - this file when you install a package that has it. This ensures that a Perl - package can find its dependencies. + In the fixup phase, it writes the propagated build inputs (propagatedBuildInputs) to the file $out/nix-support/propagated-user-env-packages. nix-env recursively installs all packages listed in this file when you install a package that has it. This ensures that a Perl package can find its dependencies. - buildPerlPackage is built on top of - stdenv, so everything can be customised in the usual way. - For instance, the BerkeleyDB module has a - preConfigure hook to generate a configuration file used by - Makefile.PL: + buildPerlPackage is built on top of stdenv, so everything can be customised in the usual way. For instance, the BerkeleyDB module has a preConfigure hook to generate a configuration file used by Makefile.PL: { buildPerlPackage, fetchurl, db }: @@ -118,12 +81,7 @@ buildPerlPackage rec { - Dependencies on other Perl packages can be specified in the - buildInputs and propagatedBuildInputs - attributes. If something is exclusively a build-time dependency, use - buildInputs; if it’s (also) a runtime dependency, use - propagatedBuildInputs. For instance, this builds a Perl - module that has runtime dependencies on a bunch of other modules: + Dependencies on other Perl packages can be specified in the buildInputs and propagatedBuildInputs attributes. If something is exclusively a build-time dependency, use buildInputs; if it’s (also) a runtime dependency, use propagatedBuildInputs. For instance, this builds a Perl module that has runtime dependencies on a bunch of other modules: ClassC3Componentised = buildPerlPackage rec { name = "Class-C3-Componentised-1.0004"; @@ -139,11 +97,7 @@ ClassC3Componentised = buildPerlPackage rec { - On Darwin, if a script has too many - -Idir flags in its first line - (its “shebang line”), it will not run. This can be worked around by - calling the shortenPerlShebang function from the - postInstall phase: + On Darwin, if a script has too many -Idir flags in its first line (its “shebang line”), it will not run. This can be worked around by calling the shortenPerlShebang function from the postInstall phase: { stdenv, buildPerlPackage, fetchurl, shortenPerlShebang }: @@ -162,20 +116,14 @@ ImageExifTool = buildPerlPackage { ''; }; - This will remove the -I flags from the shebang line, - rewrite them in the use lib form, and put them on the next - line instead. This function can be given any number of Perl scripts as - arguments; it will modify them in-place. + This will remove the -I flags from the shebang line, rewrite them in the use lib form, and put them on the next line instead. This function can be given any number of Perl scripts as arguments; it will modify them in-place.
Generation from CPAN - Nix expressions for Perl packages can be generated (almost) automatically - from CPAN. This is done by the program - nix-generate-from-cpan, which can be installed as - follows: + Nix expressions for Perl packages can be generated (almost) automatically from CPAN. This is done by the program nix-generate-from-cpan, which can be installed as follows: @@ -183,9 +131,7 @@ ImageExifTool = buildPerlPackage { - This program takes a Perl module name, looks it up on CPAN, fetches and - unpacks the corresponding package, and prints a Nix expression on standard - output. For example: + This program takes a Perl module name, looks it up on CPAN, fetches and unpacks the corresponding package, and prints a Nix expression on standard output. For example: $ nix-generate-from-cpan XML::Simple XMLSimple = buildPerlPackage rec { @@ -201,9 +147,7 @@ ImageExifTool = buildPerlPackage { }; }; - The output can be pasted into - pkgs/top-level/perl-packages.nix or wherever else you - need it. + The output can be pasted into pkgs/top-level/perl-packages.nix or wherever else you need it.
@@ -211,13 +155,7 @@ ImageExifTool = buildPerlPackage { Cross-compiling modules - Nixpkgs has experimental support for cross-compiling Perl modules. In many - cases, it will just work out of the box, even for modules with native - extensions. Sometimes, however, the Makefile.PL for a module may - (indirectly) import a native module. In that case, you will need to make a - stub for that module that will satisfy the Makefile.PL and install it into - lib/perl5/site_perl/cross_perl/${perl.version}. See the - postInstall for DBI for an example. + Nixpkgs has experimental support for cross-compiling Perl modules. In many cases, it will just work out of the box, even for modules with native extensions. Sometimes, however, the Makefile.PL for a module may (indirectly) import a native module. In that case, you will need to make a stub for that module that will satisfy the Makefile.PL and install it into lib/perl5/site_perl/cross_perl/${perl.version}. See the postInstall for DBI for an example. diff --git a/doc/languages-frameworks/qt.xml b/doc/languages-frameworks/qt.xml index d6f3314ab08db..8d97de504ad34 100644 --- a/doc/languages-frameworks/qt.xml +++ b/doc/languages-frameworks/qt.xml @@ -4,11 +4,7 @@ Qt - This section describes the differences between Nix expressions for Qt - libraries and applications and Nix expressions for other C++ software. Some - knowledge of the latter is assumed. There are primarily two problems which - the Qt infrastructure is designed to address: ensuring consistent versioning - of all dependencies and finding dependencies at runtime. + This section describes the differences between Nix expressions for Qt libraries and applications and Nix expressions for other C++ software. Some knowledge of the latter is assumed. There are primarily two problems which the Qt infrastructure is designed to address: ensuring consistent versioning of all dependencies and finding dependencies at runtime. @@ -28,38 +24,26 @@ mkDerivation { - Import mkDerivation and Qt (such as - qtbase modules directly. Do not - import Qt package sets; the Qt versions of dependencies may not be - coherent, causing build and runtime failures. + Import mkDerivation and Qt (such as qtbase modules directly. Do not import Qt package sets; the Qt versions of dependencies may not be coherent, causing build and runtime failures. - Use mkDerivation instead of - stdenv.mkDerivation. mkDerivation is - a wrapper around stdenv.mkDerivation which applies some - Qt-specific settings. This deriver accepts the same arguments as - stdenv.mkDerivation; refer to - for details. + Use mkDerivation instead of stdenv.mkDerivation. mkDerivation is a wrapper around stdenv.mkDerivation which applies some Qt-specific settings. This deriver accepts the same arguments as stdenv.mkDerivation; refer to for details. - To use another deriver instead of stdenv.mkDerivation, - use mkDerivationWith: + To use another deriver instead of stdenv.mkDerivation, use mkDerivationWith: mkDerivationWith myDeriver { # ... } - If you cannot use mkDerivationWith, please refer to - . + If you cannot use mkDerivationWith, please refer to . - mkDerivation accepts the same arguments as - stdenv.mkDerivation, such as - buildInputs. + mkDerivation accepts the same arguments as stdenv.mkDerivation, such as buildInputs. @@ -67,10 +51,7 @@ mkDerivationWith myDeriver { Locating runtime dependencies - Qt applications need to be wrapped to find runtime dependencies. If you - cannot use mkDerivation or - mkDerivationWith above, include - wrapQtAppsHook in nativeBuildInputs: + Qt applications need to be wrapped to find runtime dependencies. If you cannot use mkDerivation or mkDerivationWith above, include wrapQtAppsHook in nativeBuildInputs: stdenv.mkDerivation { # ... @@ -82,9 +63,7 @@ stdenv.mkDerivation { - Entries added to qtWrapperArgs are used to modify the - wrappers created by wrapQtAppsHook. The entries are passed - as arguments to . + Entries added to qtWrapperArgs are used to modify the wrappers created by wrapQtAppsHook. The entries are passed as arguments to . mkDerivation { # ... @@ -95,10 +74,7 @@ mkDerivation { - Set dontWrapQtApps to stop applications from being wrapped - automatically. It is required to wrap applications manually with - wrapQtApp, using the syntax of - : + Set dontWrapQtApps to stop applications from being wrapped automatically. It is required to wrap applications manually with wrapQtApp, using the syntax of : mkDerivation { # ... @@ -113,17 +89,12 @@ mkDerivation { - wrapQtAppsHook ignores files that are non-ELF - executables. This means that scripts won't be automatically wrapped so - you'll need to manually wrap them as previously mentioned. An example of - when you'd always need to do this is with Python applications that use PyQT. + wrapQtAppsHook ignores files that are non-ELF executables. This means that scripts won't be automatically wrapped so you'll need to manually wrap them as previously mentioned. An example of when you'd always need to do this is with Python applications that use PyQT. - Libraries are built with every available version of Qt. Use the - meta.broken attribute to disable the package for - unsupported Qt versions: + Libraries are built with every available version of Qt. Use the meta.broken attribute to disable the package for unsupported Qt versions: mkDerivation { # ... @@ -137,9 +108,7 @@ mkDerivation { Adding a library to Nixpkgs - Add a Qt library to all-packages.nix by adding it to - the collection inside mkLibsForQt5. This ensures that the - library is built with every available version of Qt as needed. + Add a Qt library to all-packages.nix by adding it to the collection inside mkLibsForQt5. This ensures that the library is built with every available version of Qt as needed. Adding a Qt library to <filename>all-packages.nix</filename> @@ -162,10 +131,7 @@ mkDerivation { Adding an application to Nixpkgs - Add a Qt application to all-packages.nix using - libsForQt5.callPackage instead of the usual - callPackage. The former ensures that all dependencies are - built with the same version of Qt. + Add a Qt application to all-packages.nix using libsForQt5.callPackage instead of the usual callPackage. The former ensures that all dependencies are built with the same version of Qt. Adding a Qt application to <filename>all-packages.nix</filename> diff --git a/doc/languages-frameworks/ruby.xml b/doc/languages-frameworks/ruby.xml index df4e5acb22cb9..b28745fd6e275 100644 --- a/doc/languages-frameworks/ruby.xml +++ b/doc/languages-frameworks/ruby.xml @@ -4,11 +4,7 @@ Ruby - There currently is support to bundle applications that are packaged as Ruby - gems. The utility "bundix" allows you to write a - Gemfile, let bundler create a - Gemfile.lock, and then convert this into a nix - expression that contains all Gem dependencies automatically. + There currently is support to bundle applications that are packaged as Ruby gems. The utility "bundix" allows you to write a Gemfile, let bundler create a Gemfile.lock, and then convert this into a nix expression that contains all Gem dependencies automatically. @@ -45,9 +41,7 @@ bundlerEnv rec {
- Please check in the Gemfile, - Gemfile.lock and the gemset.nix so - future updates can be run easily. + Please check in the Gemfile, Gemfile.lock and the gemset.nix so future updates can be run easily. @@ -62,10 +56,7 @@ $ nix-shell -p bundix --run 'bundix'
- For tools written in Ruby - i.e. where the desire is to install a package and - then execute e.g. rake at the command line, there is an - alternative builder called bundlerApp. Set up the - gemset.nix the same way, and then, for example: + For tools written in Ruby - i.e. where the desire is to install a package and then execute e.g. rake at the command line, there is an alternative builder called bundlerApp. Set up the gemset.nix the same way, and then, for example: @@ -87,29 +78,11 @@ bundlerApp { - The chief advantage of bundlerApp over - bundlerEnv is the executables introduced in the - environment are precisely those selected in the exes list, - as opposed to bundlerEnv which adds all the executables - made available by gems in the gemset, which can mean e.g. - rspec or rake in unpredictable versions - available from various packages. + The chief advantage of bundlerApp over bundlerEnv is the executables introduced in the environment are precisely those selected in the exes list, as opposed to bundlerEnv which adds all the executables made available by gems in the gemset, which can mean e.g. rspec or rake in unpredictable versions available from various packages. - Resulting derivations for both builders also have two helpful attributes, - env and wrappedRuby. The first one - allows one to quickly drop into nix-shell with the - specified environment present. E.g. nix-shell -A sensu.env - would give you an environment with Ruby preset so it has all the libraries - necessary for sensu in its paths. The second one can be - used to make derivations from custom Ruby scripts which have - Gemfiles with their dependencies specified. It is a - derivation with ruby wrapped so it can find all the needed - dependencies. For example, to make a derivation my-script - for a my-script.rb (which should be placed in - bin) you should run bundix as - specified above and then use bundlerEnv like this: + Resulting derivations for both builders also have two helpful attributes, env and wrappedRuby. The first one allows one to quickly drop into nix-shell with the specified environment present. E.g. nix-shell -A sensu.env would give you an environment with Ruby preset so it has all the libraries necessary for sensu in its paths. The second one can be used to make derivations from custom Ruby scripts which have Gemfiles with their dependencies specified. It is a derivation with ruby wrapped so it can find all the needed dependencies. For example, to make a derivation my-script for a my-script.rb (which should be placed in bin) you should run bundix as specified above and then use bundlerEnv like this: diff --git a/doc/languages-frameworks/texlive.xml b/doc/languages-frameworks/texlive.xml index 97f274933bef2..7876cc213b667 100644 --- a/doc/languages-frameworks/texlive.xml +++ b/doc/languages-frameworks/texlive.xml @@ -4,8 +4,7 @@ TeX Live - Since release 15.09 there is a new TeX Live packaging that lives entirely - under attribute texlive. + Since release 15.09 there is a new TeX Live packaging that lives entirely under attribute texlive.
@@ -14,28 +13,23 @@ - For basic usage just pull texlive.combined.scheme-basic - for an environment with basic LaTeX support. + For basic usage just pull texlive.combined.scheme-basic for an environment with basic LaTeX support. - It typically won't work to use separately installed packages together. - Instead, you can build a custom set of packages like this: + It typically won't work to use separately installed packages together. Instead, you can build a custom set of packages like this: texlive.combine { inherit (texlive) scheme-small collection-langkorean algorithms cm-super; } - There are all the schemes, collections and a few thousand packages, as - defined upstream (perhaps with tiny differences). + There are all the schemes, collections and a few thousand packages, as defined upstream (perhaps with tiny differences). - By default you only get executables and files needed during runtime, and a - little documentation for the core packages. To change that, you need to - add pkgFilter function to combine. + By default you only get executables and files needed during runtime, and a little documentation for the core packages. To change that, you need to add pkgFilter function to combine. texlive.combine { # inherit (texlive) whatever-you-want; @@ -59,10 +53,7 @@ nix-repl> texlive.collection- - Note that the wrapper assumes that the result has a chance to be useful. - For example, the core executables should be present, as well as some core - data files. The supported way of ensuring this is by including some - scheme, for example scheme-basic, into the combination. + Note that the wrapper assumes that the result has a chance to be useful. For example, the core executables should be present, as well as some core data files. The supported way of ensuring this is by including some scheme, for example scheme-basic, into the combination. @@ -84,14 +75,12 @@ nix-repl> texlive.collection- - feature/bug: when a package is rejected by pkgFilter, - its dependencies are still propagated; + feature/bug: when a package is rejected by pkgFilter, its dependencies are still propagated; - in case of any bugs or feature requests, file a github issue or better a - pull request and /cc @vcunat. + in case of any bugs or feature requests, file a github issue or better a pull request and /cc @vcunat. diff --git a/doc/meta.xml b/doc/meta.xml index 49db73ab79e61..9371196818ad9 100644 --- a/doc/meta.xml +++ b/doc/meta.xml @@ -3,10 +3,7 @@ xml:id="chap-meta"> Meta-attributes - Nix packages can declare meta-attributes that contain - information about a package such as a description, its homepage, its license, - and so on. For instance, the GNU Hello package has a meta - declaration like this: + Nix packages can declare meta-attributes that contain information about a package such as a description, its homepage, its license, and so on. For instance, the GNU Hello package has a meta declaration like this: meta = with stdenv.lib; { description = "A program that produces a familiar, friendly greeting"; @@ -22,13 +19,10 @@ meta = with stdenv.lib; { - Meta-attributes are not passed to the builder of the package. Thus, a change - to a meta-attribute doesn’t trigger a recompilation of the package. The - value of a meta-attribute must be a string. + Meta-attributes are not passed to the builder of the package. Thus, a change to a meta-attribute doesn’t trigger a recompilation of the package. The value of a meta-attribute must be a string. - The meta-attributes of a package can be queried from the command-line using - nix-env: + The meta-attributes of a package can be queried from the command-line using nix-env: $ nix-env -qa hello --json { @@ -67,8 +61,7 @@ meta = with stdenv.lib; { - nix-env knows about the description - field specifically: + nix-env knows about the description field specifically: $ nix-env -qa hello --description hello-2.3 A program that produces a familiar, friendly greeting @@ -88,18 +81,13 @@ hello-2.3 A program that produces a familiar, friendly greeting - A short (one-line) description of the package. This is shown by - nix-env -q --description and also on the Nixpkgs - release pages. + A short (one-line) description of the package. This is shown by nix-env -q --description and also on the Nixpkgs release pages. - Don’t include a period at the end. Don’t include newline characters. - Capitalise the first character. For brevity, don’t repeat the name of - package — just describe what it does. + Don’t include a period at the end. Don’t include newline characters. Capitalise the first character. For brevity, don’t repeat the name of package — just describe what it does. - Wrong: "libpng is a library that allows you to decode PNG - images." + Wrong: "libpng is a library that allows you to decode PNG images." Right: "A library for decoding PNG images" @@ -122,9 +110,7 @@ hello-2.3 A program that produces a familiar, friendly greeting - Release branch. Used to specify that a package is not going to receive - updates that are not in this branch; for example, Linux kernel 3.0 is - supposed to be updated to 3.0.X, not 3.1. + Release branch. Used to specify that a package is not going to receive updates that are not in this branch; for example, Linux kernel 3.0 is supposed to be updated to 3.0.X, not 3.1. @@ -134,8 +120,7 @@ hello-2.3 A program that produces a familiar, friendly greeting - The package’s homepage. Example: - https://www.gnu.org/software/hello/manual/ + The package’s homepage. Example: https://www.gnu.org/software/hello/manual/ @@ -145,8 +130,7 @@ hello-2.3 A program that produces a familiar, friendly greeting - The page where a link to the current version can be found. Example: - https://ftp.gnu.org/gnu/hello/ + The page where a link to the current version can be found. Example: https://ftp.gnu.org/gnu/hello/ @@ -156,10 +140,7 @@ hello-2.3 A program that produces a familiar, friendly greeting - A link or a list of links to the location of Changelog for a package. A - link may use expansion to refer to the correct changelog version. - Example: - "https://git.savannah.gnu.org/cgit/hello.git/plain/NEWS?h=v${version}" + A link or a list of links to the location of Changelog for a package. A link may use expansion to refer to the correct changelog version. Example: "https://git.savannah.gnu.org/cgit/hello.git/plain/NEWS?h=v${version}" @@ -169,46 +150,32 @@ hello-2.3 A program that produces a familiar, friendly greeting - The license, or licenses, for the package. One from the attribute set - defined in - - nixpkgs/lib/licenses.nix. At this moment - using both a list of licenses and a single license is valid. If the - license field is in the form of a list representation, then it means that - parts of the package are licensed differently. Each license should - preferably be referenced by their attribute. The non-list attribute value - can also be a space delimited string representation of the contained - attribute shortNames or spdxIds. The following are all valid examples: + The license, or licenses, for the package. One from the attribute set defined in nixpkgs/lib/licenses.nix. At this moment using both a list of licenses and a single license is valid. If the license field is in the form of a list representation, then it means that parts of the package are licensed differently. Each license should preferably be referenced by their attribute. The non-list attribute value can also be a space delimited string representation of the contained attribute shortNames or spdxIds. The following are all valid examples: - Single license referenced by attribute (preferred) - stdenv.lib.licenses.gpl3. + Single license referenced by attribute (preferred) stdenv.lib.licenses.gpl3. - Single license referenced by its attribute shortName (frowned upon) - "gpl3". + Single license referenced by its attribute shortName (frowned upon) "gpl3". - Single license referenced by its attribute spdxId (frowned upon) - "GPL-3.0". + Single license referenced by its attribute spdxId (frowned upon) "GPL-3.0". - Multiple licenses referenced by attribute (preferred) with - stdenv.lib.licenses; [ asl20 free ofl ]. + Multiple licenses referenced by attribute (preferred) with stdenv.lib.licenses; [ asl20 free ofl ]. - Multiple licenses referenced as a space delimited string of attribute - shortNames (frowned upon) "asl20 free ofl". + Multiple licenses referenced as a space delimited string of attribute shortNames (frowned upon) "asl20 free ofl". @@ -222,13 +189,8 @@ hello-2.3 A program that produces a familiar, friendly greeting - A list of names and e-mail addresses of the maintainers of this Nix - expression. If you would like to be a maintainer of a package, you may - want to add yourself to - nixpkgs/maintainers/maintainer-list.nix - and write something like [ stdenv.lib.maintainers.alice - stdenv.lib.maintainers.bob ]. + A list of names and e-mail addresses of the maintainers of this Nix expression. If you would like to be a maintainer of a package, you may want to add yourself to nixpkgs/maintainers/maintainer-list.nix and write something like [ stdenv.lib.maintainers.alice stdenv.lib.maintainers.bob ]. @@ -238,10 +200,7 @@ hello-2.3 A program that produces a familiar, friendly greeting - The priority of the package, used by - nix-env to resolve file name conflicts between - packages. See the Nix manual page for nix-env for - details. Example: "10" (a low-priority package). + The priority of the package, used by nix-env to resolve file name conflicts between packages. See the Nix manual page for nix-env for details. Example: "10" (a low-priority package). @@ -251,15 +210,11 @@ hello-2.3 A program that produces a familiar, friendly greeting - The list of Nix platform types on which the package is supported. Hydra - builds packages according to the platform specified. If no platform is - specified, the package does not have prebuilt binaries. An example is: + The list of Nix platform types on which the package is supported. Hydra builds packages according to the platform specified. If no platform is specified, the package does not have prebuilt binaries. An example is: meta.platforms = stdenv.lib.platforms.linux; - Attribute Set stdenv.lib.platforms defines - - various common lists of platforms types. + Attribute Set stdenv.lib.platforms defines various common lists of platforms types. @@ -270,23 +225,14 @@ meta.platforms = stdenv.lib.platforms.linux; - This attribute is special in that it is not actually under the - meta attribute set but rather under the - passthru attribute set. This is due to how - meta attributes work, and the fact that they are - supposed to contain only metadata, not derivations. + This attribute is special in that it is not actually under the meta attribute set but rather under the passthru attribute set. This is due to how meta attributes work, and the fact that they are supposed to contain only metadata, not derivations. - An attribute set with as values tests. A test is a derivation, which - builds successfully when the test passes, and fails to build otherwise. A - derivation that is a test needs to have meta.timeout - defined. + An attribute set with as values tests. A test is a derivation, which builds successfully when the test passes, and fails to build otherwise. A derivation that is a test needs to have meta.timeout defined. - The NixOS tests are available as nixosTests in - parameters of derivations. For instance, the OpenSMTPD derivation - includes lines similar to: + The NixOS tests are available as nixosTests in parameters of derivations. For instance, the OpenSMTPD derivation includes lines similar to: { /* ... */, nixosTests }: { @@ -305,13 +251,7 @@ meta.platforms = stdenv.lib.platforms.linux; - A timeout (in seconds) for building the derivation. If the derivation - takes longer than this time to build, it can fail due to breaking the - timeout. However, all computers do not have the same computing power, - hence some builders may decide to apply a multiplicative factor to this - value. When filling this value in, try to keep it approximately - consistent with other values already present in - nixpkgs. + A timeout (in seconds) for building the derivation. If the derivation takes longer than this time to build, it can fail due to breaking the timeout. However, all computers do not have the same computing power, hence some builders may decide to apply a multiplicative factor to this value. When filling this value in, try to keep it approximately consistent with other values already present in nixpkgs. @@ -321,13 +261,7 @@ meta.platforms = stdenv.lib.platforms.linux; - The list of Nix platform types for which the Hydra instance at - hydra.nixos.org will build the package. (Hydra is the - Nix-based continuous build system.) It defaults to the value of - meta.platforms. Thus, the only reason to set - meta.hydraPlatforms is if you want - hydra.nixos.org to build the package on a subset of - meta.platforms, or not at all, e.g. + The list of Nix platform types for which the Hydra instance at hydra.nixos.org will build the package. (Hydra is the Nix-based continuous build system.) It defaults to the value of meta.platforms. Thus, the only reason to set meta.hydraPlatforms is if you want hydra.nixos.org to build the package on a subset of meta.platforms, or not at all, e.g. meta.platforms = stdenv.lib.platforms.linux; meta.hydraPlatforms = []; @@ -341,10 +275,7 @@ meta.hydraPlatforms = []; - If set to true, the package is marked as “broken”, - meaning that it won’t show up in nix-env -qa, and - cannot be built or installed. Such packages should be removed from - Nixpkgs eventually unless they are fixed. + If set to true, the package is marked as “broken”, meaning that it won’t show up in nix-env -qa, and cannot be built or installed. Such packages should be removed from Nixpkgs eventually unless they are fixed. @@ -354,12 +285,7 @@ meta.hydraPlatforms = []; - If set to true, the package is tested to be updated - correctly by the update-walker.sh script without - additional settings. Such packages have meta.version - set and their homepage (or the page specified by - meta.downloadPage) contains a direct link to the - package tarball. + If set to true, the package is tested to be updated correctly by the update-walker.sh script without additional settings. Such packages have meta.version set and their homepage (or the page specified by meta.downloadPage) contains a direct link to the package tarball. @@ -369,17 +295,11 @@ meta.hydraPlatforms = []; Licenses - The meta.license attribute should preferrably contain a - value from stdenv.lib.licenses defined in - - nixpkgs/lib/licenses.nix, or in-place license - description of the same format if the license is unlikely to be useful in - another expression. + The meta.license attribute should preferrably contain a value from stdenv.lib.licenses defined in nixpkgs/lib/licenses.nix, or in-place license description of the same format if the license is unlikely to be useful in another expression. - Although it's typically better to indicate the specific license, a few - generic options are available: + Although it's typically better to indicate the specific license, a few generic options are available: @@ -397,18 +317,10 @@ meta.hydraPlatforms = []; - Unfree package that can be redistributed in binary form. That is, it’s - legal to redistribute the output of the derivation. - This means that the package can be included in the Nixpkgs channel. + Unfree package that can be redistributed in binary form. That is, it’s legal to redistribute the output of the derivation. This means that the package can be included in the Nixpkgs channel. - Sometimes proprietary software can only be redistributed unmodified. - Make sure the builder doesn’t actually modify the original binaries; - otherwise we’re breaking the license. For instance, the NVIDIA X11 - drivers can be redistributed unmodified, but our builder applies - patchelf to make them work. Thus, its license is - "unfree" and it cannot be included in the Nixpkgs - channel. + Sometimes proprietary software can only be redistributed unmodified. Make sure the builder doesn’t actually modify the original binaries; otherwise we’re breaking the license. For instance, the NVIDIA X11 drivers can be redistributed unmodified, but our builder applies patchelf to make them work. Thus, its license is "unfree" and it cannot be included in the Nixpkgs channel. @@ -418,9 +330,7 @@ meta.hydraPlatforms = []; - Unfree package that cannot be redistributed. You can build it yourself, - but you cannot redistribute the output of the derivation. Thus it cannot - be included in the Nixpkgs channel. + Unfree package that cannot be redistributed. You can build it yourself, but you cannot redistribute the output of the derivation. Thus it cannot be included in the Nixpkgs channel. @@ -430,9 +340,7 @@ meta.hydraPlatforms = []; - This package supplies unfree, redistributable firmware. This is a - separate value from unfree-redistributable because - not everybody cares whether firmware is free. + This package supplies unfree, redistributable firmware. This is a separate value from unfree-redistributable because not everybody cares whether firmware is free. diff --git a/doc/multiple-output.xml b/doc/multiple-output.xml index d0247e081f995..83275bb2fbd1a 100644 --- a/doc/multiple-output.xml +++ b/doc/multiple-output.xml @@ -10,31 +10,16 @@ Introduction - The Nix language allows a derivation to produce multiple outputs, which is - similar to what is utilized by other Linux distribution packaging systems. - The outputs reside in separate Nix store paths, so they can be mostly - handled independently of each other, including passing to build inputs, - garbage collection or binary substitution. The exception is that building - from source always produces all the outputs. + The Nix language allows a derivation to produce multiple outputs, which is similar to what is utilized by other Linux distribution packaging systems. The outputs reside in separate Nix store paths, so they can be mostly handled independently of each other, including passing to build inputs, garbage collection or binary substitution. The exception is that building from source always produces all the outputs. - The main motivation is to save disk space by reducing runtime closure sizes; - consequently also sizes of substituted binaries get reduced. Splitting can - be used to have more granular runtime dependencies, for example the typical - reduction is to split away development-only files, as those are typically - not needed during runtime. As a result, closure sizes of many packages can - get reduced to a half or even much less. + The main motivation is to save disk space by reducing runtime closure sizes; consequently also sizes of substituted binaries get reduced. Splitting can be used to have more granular runtime dependencies, for example the typical reduction is to split away development-only files, as those are typically not needed during runtime. As a result, closure sizes of many packages can get reduced to a half or even much less. - The reduction effects could be instead achieved by building the parts in - completely separate derivations. That would often additionally reduce - build-time closures, but it tends to be much harder to write such - derivations, as build systems typically assume all parts are being built at - once. This compromise approach of single source package producing multiple - binary packages is also utilized often by rpm and deb. + The reduction effects could be instead achieved by building the parts in completely separate derivations. That would often additionally reduce build-time closures, but it tends to be much harder to write such derivations, as build systems typically assume all parts are being built at once. This compromise approach of single source package producing multiple binary packages is also utilized often by rpm and deb.
@@ -42,23 +27,18 @@ Installing a split package - When installing a package via systemPackages or - nix-env you have several options: + When installing a package via systemPackages or nix-env you have several options: - You can install particular outputs explicitly, as each is available in the - Nix language as an attribute of the package. The - outputs attribute contains a list of output names. + You can install particular outputs explicitly, as each is available in the Nix language as an attribute of the package. The outputs attribute contains a list of output names. - You can let it use the default outputs. These are handled by - meta.outputsToInstall attribute that contains a list of - output names. + You can let it use the default outputs. These are handled by meta.outputsToInstall attribute that contains a list of output names. TODO: more about tweaking the attribute, etc. @@ -66,19 +46,11 @@ - NixOS provides configuration option - environment.extraOutputsToInstall that allows adding - extra outputs of environment.systemPackages atop the - default ones. It's mainly meant for documentation and debug symbols, and - it's also modified by specific options. + NixOS provides configuration option environment.extraOutputsToInstall that allows adding extra outputs of environment.systemPackages atop the default ones. It's mainly meant for documentation and debug symbols, and it's also modified by specific options. - At this moment there is no similar configurability for packages installed - by nix-env. You can still use approach from - to override - meta.outputsToInstall attributes, but that's a rather - inconvenient way. + At this moment there is no similar configurability for packages installed by nix-env. You can still use approach from to override meta.outputsToInstall attributes, but that's a rather inconvenient way. @@ -88,25 +60,15 @@ Using a split package - In the Nix language the individual outputs can be reached explicitly as - attributes, e.g. coreutils.info, but the typical case is - just using packages as build inputs. + In the Nix language the individual outputs can be reached explicitly as attributes, e.g. coreutils.info, but the typical case is just using packages as build inputs. - When a multiple-output derivation gets into a build input of another - derivation, the dev output is added if it exists, - otherwise the first output is added. In addition to that, - propagatedBuildOutputs of that package which by default - contain $outputBin and $outputLib are - also added. (See .) + When a multiple-output derivation gets into a build input of another derivation, the dev output is added if it exists, otherwise the first output is added. In addition to that, propagatedBuildOutputs of that package which by default contain $outputBin and $outputLib are also added. (See .) - In some cases it may be desirable to combine different outputs under a - single store path. A function symlinkJoin can be used to - do this. (Note that it may negate some closure size benefits of using a - multiple-output package.) + In some cases it may be desirable to combine different outputs under a single store path. A function symlinkJoin can be used to do this. (Note that it may negate some closure size benefits of using a multiple-output package.)
@@ -117,29 +79,18 @@ - In nixpkgs there is a framework supporting multiple-output derivations. It - tries to cover most cases by default behavior. You can find the source - separated in - <nixpkgs/pkgs/build-support/setup-hooks/multiple-outputs.sh>; - it's relatively well-readable. The whole machinery is triggered by defining - the outputs attribute to contain the list of desired - output names (strings). + In nixpkgs there is a framework supporting multiple-output derivations. It tries to cover most cases by default behavior. You can find the source separated in <nixpkgs/pkgs/build-support/setup-hooks/multiple-outputs.sh>; it's relatively well-readable. The whole machinery is triggered by defining the outputs attribute to contain the list of desired output names (strings). outputs = [ "bin" "dev" "out" "doc" ]; - Often such a single line is enough. For each output an equally named - environment variable is passed to the builder and contains the path in nix - store for that output. Typically you also want to have the main - out output, as it catches any files that didn't get - elsewhere. + Often such a single line is enough. For each output an equally named environment variable is passed to the builder and contains the path in nix store for that output. Typically you also want to have the main out output, as it catches any files that didn't get elsewhere. - There is a special handling of the debug output, - described at . + There is a special handling of the debug output, described at . @@ -147,36 +98,15 @@ <quote>Binaries first</quote> - A commonly adopted convention in nixpkgs is that - executables provided by the package are contained within its first output. - This convention allows the dependent packages to reference the executables - provided by packages in a uniform manner. For instance, provided with the - knowledge that the perl package contains a - perl executable it can be referenced as - ${pkgs.perl}/bin/perl within a Nix derivation that needs - to execute a Perl script. + A commonly adopted convention in nixpkgs is that executables provided by the package are contained within its first output. This convention allows the dependent packages to reference the executables provided by packages in a uniform manner. For instance, provided with the knowledge that the perl package contains a perl executable it can be referenced as ${pkgs.perl}/bin/perl within a Nix derivation that needs to execute a Perl script. - The glibc package is a deliberate single exception to - the binaries first convention. The glibc - has libs as its first output allowing the libraries - provided by glibc to be referenced directly (e.g. - ${stdenv.glibc}/lib/ld-linux-x86-64.so.2). The - executables provided by glibc can be accessed via its - bin attribute (e.g. - ${stdenv.glibc.bin}/bin/ldd). + The glibc package is a deliberate single exception to the binaries first convention. The glibc has libs as its first output allowing the libraries provided by glibc to be referenced directly (e.g. ${stdenv.glibc}/lib/ld-linux-x86-64.so.2). The executables provided by glibc can be accessed via its bin attribute (e.g. ${stdenv.glibc.bin}/bin/ldd). - The reason for why glibc deviates from the convention is - because referencing a library provided by glibc is a - very common operation among Nix packages. For instance, third-party - executables packaged by Nix are typically patched and relinked with the - relevant version of glibc libraries from Nix packages - (please see the documentation on - patchelf for more - details). + The reason for why glibc deviates from the convention is because referencing a library provided by glibc is a very common operation among Nix packages. For instance, third-party executables packaged by Nix are typically patched and relinked with the relevant version of glibc libraries from Nix packages (please see the documentation on patchelf for more details).
@@ -184,13 +114,7 @@ File type groups - The support code currently recognizes some particular kinds of outputs and - either instructs the build system of the package to put files into their - desired outputs or it moves the files during the fixup phase. Each group of - file types has an outputFoo variable specifying the - output name where they should go. If that variable isn't defined by the - derivation writer, it is guessed – a default output name is defined, - falling back to other possibilities if the output isn't defined. + The support code currently recognizes some particular kinds of outputs and either instructs the build system of the package to put files into their desired outputs or it moves the files during the fixup phase. Each group of file types has an outputFoo variable specifying the output name where they should go. If that variable isn't defined by the derivation writer, it is guessed – a default output name is defined, falling back to other possibilities if the output isn't defined. @@ -200,9 +124,7 @@ - is for development-only files. These include C(++) headers, pkg-config, - cmake and aclocal files. They go to dev or - out by default. + is for development-only files. These include C(++) headers, pkg-config, cmake and aclocal files. They go to dev or out by default. @@ -212,8 +134,7 @@ - is meant for user-facing binaries, typically residing in bin/. They go - to bin or out by default. + is meant for user-facing binaries, typically residing in bin/. They go to bin or out by default. @@ -223,9 +144,7 @@ - is meant for libraries, typically residing in lib/ - and libexec/. They go to lib or - out by default. + is meant for libraries, typically residing in lib/ and libexec/. They go to lib or out by default. @@ -235,9 +154,7 @@ - is for user documentation, typically residing in - share/doc/. It goes to doc or - out by default. + is for user documentation, typically residing in share/doc/. It goes to doc or out by default. @@ -247,10 +164,7 @@ - is for developer documentation. Currently we count - gtk-doc and devhelp books in there. It goes to devdoc - or is removed (!) by default. This is because e.g. gtk-doc tends to be - rather large and completely unused by nixpkgs users. + is for developer documentation. Currently we count gtk-doc and devhelp books in there. It goes to devdoc or is removed (!) by default. This is because e.g. gtk-doc tends to be rather large and completely unused by nixpkgs users. @@ -260,8 +174,7 @@ - is for man pages (except for section 3). They go to - man or $outputBin by default. + is for man pages (except for section 3). They go to man or $outputBin by default. @@ -271,8 +184,7 @@ - is for section 3 man pages. They go to devman or - $outputMan by default. + is for section 3 man pages. They go to devman or $outputMan by default. @@ -282,8 +194,7 @@ - is for info pages. They go to info or - $outputBin by default. + is for info pages. They go to info or $outputBin by default. @@ -296,31 +207,22 @@ - Some configure scripts don't like some of the parameters passed by - default by the framework, e.g. --docdir=/foo/bar. You - can disable this by setting setOutputFlags = false;. + Some configure scripts don't like some of the parameters passed by default by the framework, e.g. --docdir=/foo/bar. You can disable this by setting setOutputFlags = false;. - The outputs of a single derivation can retain references to each other, - but note that circular references are not allowed. (And each - strongly-connected component would act as a single output anyway.) + The outputs of a single derivation can retain references to each other, but note that circular references are not allowed. (And each strongly-connected component would act as a single output anyway.) - Most of split packages contain their core functionality in libraries. - These libraries tend to refer to various kind of data that typically gets - into out, e.g. locale strings, so there is often no - advantage in separating the libraries into lib, as - keeping them in out is easier. + Most of split packages contain their core functionality in libraries. These libraries tend to refer to various kind of data that typically gets into out, e.g. locale strings, so there is often no advantage in separating the libraries into lib, as keeping them in out is easier. - Some packages have hidden assumptions on install paths, which complicates - splitting. + Some packages have hidden assumptions on install paths, which complicates splitting. diff --git a/doc/overlays.xml b/doc/overlays.xml index bff2339ca9338..26a888368abf7 100644 --- a/doc/overlays.xml +++ b/doc/overlays.xml @@ -3,47 +3,32 @@ xml:id="chap-overlays"> Overlays - This chapter describes how to extend and change Nixpkgs using overlays. - Overlays are used to add layers in the fixed-point used by Nixpkgs to compose - the set of all packages. + This chapter describes how to extend and change Nixpkgs using overlays. Overlays are used to add layers in the fixed-point used by Nixpkgs to compose the set of all packages. - Nixpkgs can be configured with a list of overlays, which are applied in - order. This means that the order of the overlays can be significant if - multiple layers override the same package. + Nixpkgs can be configured with a list of overlays, which are applied in order. This means that the order of the overlays can be significant if multiple layers override the same package.
Installing overlays - The list of overlays can be set either explicitly in a Nix expression, or - through <nixpkgs-overlays> or user configuration - files. + The list of overlays can be set either explicitly in a Nix expression, or through <nixpkgs-overlays> or user configuration files.
Set overlays in NixOS or Nix expressions - On a NixOS system the value of the nixpkgs.overlays - option, if present, is passed to the system Nixpkgs directly as an - argument. Note that this does not affect the overlays for non-NixOS - operations (e.g. nix-env), which are - looked up independently. + On a NixOS system the value of the nixpkgs.overlays option, if present, is passed to the system Nixpkgs directly as an argument. Note that this does not affect the overlays for non-NixOS operations (e.g. nix-env), which are looked up independently. - The list of overlays can be passed explicitly when importing nixpkgs, for - example import <nixpkgs> { overlays = [ overlay1 overlay2 ]; - }. + The list of overlays can be passed explicitly when importing nixpkgs, for example import <nixpkgs> { overlays = [ overlay1 overlay2 ]; }. - Further overlays can be added by calling the pkgs.extend - or pkgs.appendOverlays, although it is often preferable - to avoid these functions, because they recompute the Nixpkgs fixpoint, - which is somewhat expensive to do. + Further overlays can be added by calling the pkgs.extend or pkgs.appendOverlays, although it is often preferable to avoid these functions, because they recompute the Nixpkgs fixpoint, which is somewhat expensive to do.
@@ -58,30 +43,20 @@ - First, if an - overlays - argument to the Nixpkgs function itself is given, then that is - used and no path lookup will be performed. + First, if an overlays argument to the Nixpkgs function itself is given, then that is used and no path lookup will be performed. - Otherwise, if the Nix path entry - <nixpkgs-overlays> exists, we look for overlays at - that path, as described below. + Otherwise, if the Nix path entry <nixpkgs-overlays> exists, we look for overlays at that path, as described below. - See the section on NIX_PATH in the Nix manual for - more details on how to set a value for - <nixpkgs-overlays>. + See the section on NIX_PATH in the Nix manual for more details on how to set a value for <nixpkgs-overlays>. - If one of ~/.config/nixpkgs/overlays.nix and - ~/.config/nixpkgs/overlays/ exists, then we look - for overlays at that path, as described below. It is an error if both - exist. + If one of ~/.config/nixpkgs/overlays.nix and ~/.config/nixpkgs/overlays/ exists, then we look for overlays at that path, as described below. It is an error if both exist. @@ -92,15 +67,12 @@ - If the path is a file, then the file is imported as a Nix expression and - used as the list of overlays. + If the path is a file, then the file is imported as a Nix expression and used as the list of overlays. - If the path is a directory, then we take the content of the directory, - order it lexicographically, and attempt to interpret each as an overlay - by: + If the path is a directory, then we take the content of the directory, order it lexicographically, and attempt to interpret each as an overlay by: @@ -109,8 +81,7 @@ - Importing a top-level default.nix file, if it is - a directory. + Importing a top-level default.nix file, if it is a directory. @@ -120,12 +91,7 @@ - Because overlays that are set in NixOS configuration do not affect - non-NixOS operations such as nix-env, the - overlays.nix option provides a convenient way to use - the same overlays for a NixOS system configuration and user configuration: - the same file can be used as overlays.nix and imported - as the value of nixpkgs.overlays. + Because overlays that are set in NixOS configuration do not affect non-NixOS operations such as nix-env, the overlays.nix option provides a convenient way to use the same overlays for a NixOS system configuration and user configuration: the same file can be used as overlays.nix and imported as the value of nixpkgs.overlays.
Linux kernel - The Nix expressions to build the Linux kernel are in - pkgs/os-specific/linux/kernel. - The function that builds the kernel has an argument - kernelPatches which should be a list of {name, - patch, extraConfig} attribute sets, where name - is the name of the patch (which is included in the kernel’s - meta.description attribute), patch is - the patch itself (possibly compressed), and extraConfig - (optional) is a string specifying extra options to be concatenated to the - kernel configuration file (.config). + The function that builds the kernel has an argument kernelPatches which should be a list of {name, patch, extraConfig} attribute sets, where name is the name of the patch (which is included in the kernel’s meta.description attribute), patch is the patch itself (possibly compressed), and extraConfig (optional) is a string specifying extra options to be concatenated to the kernel configuration file (.config). - The kernel derivation exports an attribute features - specifying whether optional functionality is or isn’t enabled. This is - used in NixOS to implement kernel-specific behaviour. For instance, if the - kernel has the iwlwifi feature (i.e. has built-in support - for Intel wireless chipsets), then NixOS doesn’t have to build the - external iwlwifi package: + The kernel derivation exports an attribute features specifying whether optional functionality is or isn’t enabled. This is used in NixOS to implement kernel-specific behaviour. For instance, if the kernel has the iwlwifi feature (i.e. has built-in support for Intel wireless chipsets), then NixOS doesn’t have to build the external iwlwifi package: modulesTree = [kernel] ++ pkgs.lib.optional (!kernel.features ? iwlwifi) kernelPackages.iwlwifi @@ -47,45 +32,31 @@ modulesTree = [kernel] - Copy the old Nix expression (e.g. linux-2.6.21.nix) - to the new one (e.g. linux-2.6.22.nix) and update - it. + Copy the old Nix expression (e.g. linux-2.6.21.nix) to the new one (e.g. linux-2.6.22.nix) and update it. - Add the new kernel to all-packages.nix (e.g., create - an attribute kernel_2_6_22). + Add the new kernel to all-packages.nix (e.g., create an attribute kernel_2_6_22). - Now we’re going to update the kernel configuration. First unpack the - kernel. Then for each supported platform (i686, - x86_64, uml) do the following: + Now we’re going to update the kernel configuration. First unpack the kernel. Then for each supported platform (i686, x86_64, uml) do the following: - Make an copy from the old config (e.g. - config-2.6.21-i686-smp) to the new one (e.g. - config-2.6.22-i686-smp). + Make an copy from the old config (e.g. config-2.6.21-i686-smp) to the new one (e.g. config-2.6.22-i686-smp). - Copy the config file for this platform (e.g. - config-2.6.22-i686-smp) to - .config in the kernel source tree. + Copy the config file for this platform (e.g. config-2.6.22-i686-smp) to .config in the kernel source tree. - Run make oldconfig - ARCH={i386,x86_64,um} and answer - all questions. (For the uml configuration, also add - SHELL=bash.) Make sure to keep the configuration - consistent between platforms (i.e. don’t enable some feature on - i686 and disable it on x86_64). + Run make oldconfig ARCH={i386,x86_64,um} and answer all questions. (For the uml configuration, also add SHELL=bash.) Make sure to keep the configuration consistent between platforms (i.e. don’t enable some feature on i686 and disable it on x86_64). @@ -99,8 +70,7 @@ modulesTree = [kernel] - Copy .config over the new config file (e.g. - config-2.6.22-i686-smp). + Copy .config over the new config file (e.g. config-2.6.22-i686-smp). @@ -108,18 +78,12 @@ modulesTree = [kernel] - Test building the kernel: nix-build -A kernel_2_6_22. - If it compiles, ship it! For extra credit, try booting NixOS with it. + Test building the kernel: nix-build -A kernel_2_6_22. If it compiles, ship it! For extra credit, try booting NixOS with it. - It may be that the new kernel requires updating the external kernel - modules and kernel-dependent packages listed in the - linuxPackagesFor function in - all-packages.nix (such as the NVIDIA drivers, AUFS, - etc.). If the updated packages aren’t backwards compatible with older - kernels, you may need to keep the older versions around. + It may be that the new kernel requires updating the external kernel modules and kernel-dependent packages listed in the linuxPackagesFor function in all-packages.nix (such as the NVIDIA drivers, AUFS, etc.). If the updated packages aren’t backwards compatible with older kernels, you may need to keep the older versions around. @@ -130,13 +94,7 @@ modulesTree = [kernel] X.org - The Nix expressions for the X.org packages reside in - pkgs/servers/x11/xorg/default.nix. This file is - automatically generated from lists of tarballs in an X.org release. As such - it should not be modified directly; rather, you should modify the lists, the - generator script or the file - pkgs/servers/x11/xorg/overrides.nix, in which you can - override or add to the derivations produced by the generator. + The Nix expressions for the X.org packages reside in pkgs/servers/x11/xorg/default.nix. This file is automatically generated from lists of tarballs in an X.org release. As such it should not be modified directly; rather, you should modify the lists, the generator script or the file pkgs/servers/x11/xorg/overrides.nix, in which you can override or add to the derivations produced by the generator. @@ -146,37 +104,22 @@ modulesTree = [kernel] $ cat tarballs-7.5.list extra.list old.list \ | perl ./generate-expr-from-tarballs.pl - For each of the tarballs in the .list files, the script - downloads it, unpacks it, and searches its configure.ac - and *.pc.in files for dependencies. This information is - used to generate default.nix. The generator caches - downloaded tarballs between runs. Pay close attention to the NOT - FOUND: name messages at the end of the - run, since they may indicate missing dependencies. (Some might be optional - dependencies, however.) + For each of the tarballs in the .list files, the script downloads it, unpacks it, and searches its configure.ac and *.pc.in files for dependencies. This information is used to generate default.nix. The generator caches downloaded tarballs between runs. Pay close attention to the NOT FOUND: name messages at the end of the run, since they may indicate missing dependencies. (Some might be optional dependencies, however.) - A file like tarballs-7.5.list contains all tarballs in - a X.org release. It can be generated like this: + A file like tarballs-7.5.list contains all tarballs in a X.org release. It can be generated like this: $ export i="mirror://xorg/X11R7.4/src/everything/" $ cat $(PRINT_PATH=1 nix-prefetch-url $i | tail -n 1) \ | perl -e 'while (<>) { if (/(href|HREF)="([^"]*.bz2)"/) { print "$ENV{'i'}$2\n"; }; }' \ | sort > tarballs-7.4.list - extra.list contains libraries that aren’t part of - X.org proper, but are closely related to it, such as - libxcb. old.list contains some - packages that were removed from X.org, but are still needed by some people - or by other packages (such as imake). + extra.list contains libraries that aren’t part of X.org proper, but are closely related to it, such as libxcb. old.list contains some packages that were removed from X.org, but are still needed by some people or by other packages (such as imake). - If the expression for a package requires derivation attributes that the - generator cannot figure out automatically (say, patches - or a postInstall hook), you should modify - pkgs/servers/x11/xorg/overrides.nix. + If the expression for a package requires derivation attributes that the generator cannot figure out automatically (say, patches or a postInstall hook), you should modify pkgs/servers/x11/xorg/overrides.nix.
@@ -199,41 +142,19 @@ modulesTree = [kernel] Eclipse - The Nix expressions related to the Eclipse platform and IDE are in - pkgs/applications/editors/eclipse. + The Nix expressions related to the Eclipse platform and IDE are in pkgs/applications/editors/eclipse. - Nixpkgs provides a number of packages that will install Eclipse in its - various forms. These range from the bare-bones Eclipse Platform to the more - fully featured Eclipse SDK or Scala-IDE packages and multiple version are - often available. It is possible to list available Eclipse packages by - issuing the command: + Nixpkgs provides a number of packages that will install Eclipse in its various forms. These range from the bare-bones Eclipse Platform to the more fully featured Eclipse SDK or Scala-IDE packages and multiple version are often available. It is possible to list available Eclipse packages by issuing the command: $ nix-env -f '<nixpkgs>' -qaP -A eclipses --description - Once an Eclipse variant is installed it can be run using the - eclipse command, as expected. From within Eclipse it is - then possible to install plugins in the usual manner by either manually - specifying an Eclipse update site or by installing the Marketplace Client - plugin and using it to discover and install other plugins. This installation - method provides an Eclipse installation that closely resemble a manually - installed Eclipse. + Once an Eclipse variant is installed it can be run using the eclipse command, as expected. From within Eclipse it is then possible to install plugins in the usual manner by either manually specifying an Eclipse update site or by installing the Marketplace Client plugin and using it to discover and install other plugins. This installation method provides an Eclipse installation that closely resemble a manually installed Eclipse. - If you prefer to install plugins in a more declarative manner then Nixpkgs - also offer a number of Eclipse plugins that can be installed in an - Eclipse environment. This type of environment is - created using the function eclipseWithPlugins found - inside the nixpkgs.eclipses attribute set. This function - takes as argument { eclipse, plugins ? [], jvmArgs ? [] } - where eclipse is a one of the Eclipse packages described - above, plugins is a list of plugin derivations, and - jvmArgs is a list of arguments given to the JVM running - the Eclipse. For example, say you wish to install the latest Eclipse - Platform with the popular Eclipse Color Theme plugin and also allow Eclipse - to use more RAM. You could then add + If you prefer to install plugins in a more declarative manner then Nixpkgs also offer a number of Eclipse plugins that can be installed in an Eclipse environment. This type of environment is created using the function eclipseWithPlugins found inside the nixpkgs.eclipses attribute set. This function takes as argument { eclipse, plugins ? [], jvmArgs ? [] } where eclipse is a one of the Eclipse packages described above, plugins is a list of plugin derivations, and jvmArgs is a list of arguments given to the JVM running the Eclipse. For example, say you wish to install the latest Eclipse Platform with the popular Eclipse Color Theme plugin and also allow Eclipse to use more RAM. You could then add packageOverrides = pkgs: { myEclipse = with pkgs.eclipses; eclipseWithPlugins { @@ -243,38 +164,18 @@ packageOverrides = pkgs: { }; } - to your Nixpkgs configuration - (~/.config/nixpkgs/config.nix) and install it by - running nix-env -f '<nixpkgs>' -iA myEclipse and - afterward run Eclipse as usual. It is possible to find out which plugins are - available for installation using eclipseWithPlugins by - running + to your Nixpkgs configuration (~/.config/nixpkgs/config.nix) and install it by running nix-env -f '<nixpkgs>' -iA myEclipse and afterward run Eclipse as usual. It is possible to find out which plugins are available for installation using eclipseWithPlugins by running $ nix-env -f '<nixpkgs>' -qaP -A eclipses.plugins --description - If there is a need to install plugins that are not available in Nixpkgs then - it may be possible to define these plugins outside Nixpkgs using the - buildEclipseUpdateSite and - buildEclipsePlugin functions found in the - nixpkgs.eclipses.plugins attribute set. Use the - buildEclipseUpdateSite function to install a plugin - distributed as an Eclipse update site. This function takes { name, - src } as argument where src indicates the - Eclipse update site archive. All Eclipse features and plugins within the - downloaded update site will be installed. When an update site archive is not - available then the buildEclipsePlugin function can be - used to install a plugin that consists of a pair of feature and plugin JARs. - This function takes an argument { name, srcFeature, srcPlugin - } where srcFeature and - srcPlugin are the feature and plugin JARs, respectively. + If there is a need to install plugins that are not available in Nixpkgs then it may be possible to define these plugins outside Nixpkgs using the buildEclipseUpdateSite and buildEclipsePlugin functions found in the nixpkgs.eclipses.plugins attribute set. Use the buildEclipseUpdateSite function to install a plugin distributed as an Eclipse update site. This function takes { name, src } as argument where src indicates the Eclipse update site archive. All Eclipse features and plugins within the downloaded update site will be installed. When an update site archive is not available then the buildEclipsePlugin function can be used to install a plugin that consists of a pair of feature and plugin JARs. This function takes an argument { name, srcFeature, srcPlugin } where srcFeature and srcPlugin are the feature and plugin JARs, respectively. - Expanding the previous example with two plugins using the above functions we - have + Expanding the previous example with two plugins using the above functions we have packageOverrides = pkgs: { myEclipse = with pkgs.eclipses; eclipseWithPlugins { @@ -311,19 +212,15 @@ packageOverrides = pkgs: { Elm - To start a development environment do nix-shell -p elmPackages.elm - elmPackages.elm-format + To start a development environment do nix-shell -p elmPackages.elm elmPackages.elm-format - To update Elm compiler, see - nixpkgs/pkgs/development/compilers/elm/README.md. + To update Elm compiler, see nixpkgs/pkgs/development/compilers/elm/README.md. - To package Elm applications, - read about - elm2nix. + To package Elm applications, read about elm2nix.
@@ -342,11 +239,7 @@ packageOverrides = pkgs: { Interactive shell helpers - Some packages provide the shell integration to be more useful. But unlike - other systems, nix doesn't have a standard share directory location. This is - why a bunch PACKAGE-share scripts are shipped that print - the location of the corresponding shared folder. Current list of such - packages is as following: + Some packages provide the shell integration to be more useful. But unlike other systems, nix doesn't have a standard share directory location. This is why a bunch PACKAGE-share scripts are shipped that print the location of the corresponding shared folder. Current list of such packages is as following: @@ -369,31 +262,20 @@ packageOverrides = pkgs: { Weechat - Weechat can be configured to include your choice of plugins, reducing its - closure size from the default configuration which includes all available - plugins. To make use of this functionality, install an expression that - overrides its configuration such as + Weechat can be configured to include your choice of plugins, reducing its closure size from the default configuration which includes all available plugins. To make use of this functionality, install an expression that overrides its configuration such as weechat.override {configure = {availablePlugins, ...}: { plugins = with availablePlugins; [ python perl ]; } } - If the configure function returns an attrset without the - plugins attribute, availablePlugins - will be used automatically. + If the configure function returns an attrset without the plugins attribute, availablePlugins will be used automatically. - The plugins currently available are python, - perl, ruby, guile, - tcl and lua. + The plugins currently available are python, perl, ruby, guile, tcl and lua. - The python and perl plugins allows the addition of extra libraries. For - instance, the inotify.py script in weechat-scripts - requires D-Bus or libnotify, and the fish.py script - requires pycrypto. To use these scripts, use the plugin's - withPackages attribute: + The python and perl plugins allows the addition of extra libraries. For instance, the inotify.py script in weechat-scripts requires D-Bus or libnotify, and the fish.py script requires pycrypto. To use these scripts, use the plugin's withPackages attribute: weechat.override { configure = {availablePlugins, ...}: { plugins = with availablePlugins; [ (python.withPackages (ps: with ps; [ pycrypto python-dbus ])) @@ -404,8 +286,7 @@ packageOverrides = pkgs: { - In order to also keep all default plugins installed, it is possible to use - the following method: + In order to also keep all default plugins installed, it is possible to use the following method: weechat.override { configure = { availablePlugins, ... }: { plugins = builtins.attrValues (availablePlugins // { python = availablePlugins.python.withPackages (ps: with ps; [ pycrypto python-dbus ]); @@ -415,9 +296,7 @@ packageOverrides = pkgs: { - WeeChat allows to set defaults on startup using the - --run-command. The configure method - can be used to pass commands to the program: + WeeChat allows to set defaults on startup using the --run-command. The configure method can be used to pass commands to the program: weechat.override { configure = { availablePlugins, ... }: { init = '' @@ -426,14 +305,11 @@ packageOverrides = pkgs: { ''; }; } - Further values can be added to the list of commands when running - weechat --run-command "your-commands". + Further values can be added to the list of commands when running weechat --run-command "your-commands". - Additionally it's possible to specify scripts to be loaded when starting - weechat. These will be loaded before the commands from - init: + Additionally it's possible to specify scripts to be loaded when starting weechat. These will be loaded before the commands from init: weechat.override { configure = { availablePlugins, ... }: { scripts = with pkgs.weechatScripts; [ @@ -447,11 +323,7 @@ packageOverrides = pkgs: { - In nixpkgs there's a subpackage which contains - derivations for WeeChat scripts. Such derivations expect a - passthru.scripts attribute which contains a list of all - scripts inside the store path. Furthermore all scripts have to live in - $out/share. An exemplary derivation looks like this: + In nixpkgs there's a subpackage which contains derivations for WeeChat scripts. Such derivations expect a passthru.scripts attribute which contains a list of all scripts inside the store path. Furthermore all scripts have to live in $out/share. An exemplary derivation looks like this: { stdenv, fetchurl }: stdenv.mkDerivation { @@ -480,18 +352,11 @@ stdenv.mkDerivation { Activating the engine - IBus needs to be configured accordingly to activate - typing-booster. The configuration depends on the desktop - manager in use. For detailed instructions, please refer to the - upstream - docs. + IBus needs to be configured accordingly to activate typing-booster. The configuration depends on the desktop manager in use. For detailed instructions, please refer to the upstream docs. - On NixOS you need to explicitly enable ibus with given - engines before customizing your desktop to use - typing-booster. This can be achieved using the - ibus module: + On NixOS you need to explicitly enable ibus with given engines before customizing your desktop to use typing-booster. This can be achieved using the ibus module: { pkgs, ... }: { i18n.inputMethod = { enabled = "ibus"; @@ -505,21 +370,14 @@ stdenv.mkDerivation { Using custom hunspell dictionaries - The IBus engine is based on hunspell to support - completion in many languages. By default the dictionaries - de-de, en-us, - fr-moderne es-es, - it-it, sv-se and - sv-fi are in use. To add another dictionary, the package - can be overridden like this: + The IBus engine is based on hunspell to support completion in many languages. By default the dictionaries de-de, en-us, fr-moderne es-es, it-it, sv-se and sv-fi are in use. To add another dictionary, the package can be overridden like this: ibus-engines.typing-booster.override { langs = [ "de-at" "en-gb" ]; } - Note: each language passed to langs must be an - attribute name in pkgs.hunspellDicts. + Note: each language passed to langs must be an attribute name in pkgs.hunspellDicts.
@@ -527,10 +385,7 @@ stdenv.mkDerivation { Built-in emoji picker - The ibus-engines.typing-booster package contains a - program named emoji-picker. To display all emojis - correctly, a special font such as noto-fonts-emoji is - needed: + The ibus-engines.typing-booster package contains a program named emoji-picker. To display all emojis correctly, a special font such as noto-fonts-emoji is needed: @@ -545,45 +400,22 @@ stdenv.mkDerivation { Nginx - Nginx is a reverse proxy and - lightweight webserver. + Nginx is a reverse proxy and lightweight webserver.
ETags on static files served from the Nix store - HTTP has a couple different mechanisms for caching to prevent clients from - having to download the same content repeatedly if a resource has not - changed since the last time it was requested. When nginx is used as a - server for static files, it implements the caching mechanism based on the - Last-Modified - response header automatically; unfortunately, it works by using filesystem - timestamps to determine the value of the Last-Modified - header. This doesn't give the desired behavior when the file is in the Nix - store, because all file timestamps are set to 0 (for reasons related to - build reproducibility). + HTTP has a couple different mechanisms for caching to prevent clients from having to download the same content repeatedly if a resource has not changed since the last time it was requested. When nginx is used as a server for static files, it implements the caching mechanism based on the Last-Modified response header automatically; unfortunately, it works by using filesystem timestamps to determine the value of the Last-Modified header. This doesn't give the desired behavior when the file is in the Nix store, because all file timestamps are set to 0 (for reasons related to build reproducibility). - Fortunately, HTTP supports an alternative (and more effective) caching - mechanism: the - ETag - response header. The value of the ETag header specifies - some identifier for the particular content that the server is sending (e.g. - a hash). When a client makes a second request for the same resource, it - sends that value back in an If-None-Match header. If the - ETag value is unchanged, then the server does not need to resend the - content. + Fortunately, HTTP supports an alternative (and more effective) caching mechanism: the ETag response header. The value of the ETag header specifies some identifier for the particular content that the server is sending (e.g. a hash). When a client makes a second request for the same resource, it sends that value back in an If-None-Match header. If the ETag value is unchanged, then the server does not need to resend the content. - As of NixOS 19.09, the nginx package in Nixpkgs is patched such that when - nginx serves a file out of /nix/store, the hash in the - store path is used as the ETag header in the HTTP - response, thus providing proper caching functionality. This happens - automatically; you do not need to do modify any configuration to get this - behavior. + As of NixOS 19.09, the nginx package in Nixpkgs is patched such that when nginx serves a file out of /nix/store, the hash in the store path is used as the ETag header in the HTTP response, thus providing proper caching functionality. This happens automatically; you do not need to do modify any configuration to get this behavior.
diff --git a/doc/package-specific-user-notes.xml b/doc/package-specific-user-notes.xml index 09af69bb15d84..a3ee42dc7fa0f 100644 --- a/doc/package-specific-user-notes.xml +++ b/doc/package-specific-user-notes.xml @@ -1,46 +1,24 @@ Package-specific usage notes - These chapters includes some notes that apply to specific packages and should - answer some of the frequently asked questions related to Nixpkgs use. Some - useful information related to package use can be found in - package-specific development notes. + These chapters includes some notes that apply to specific packages and should answer some of the frequently asked questions related to Nixpkgs use. Some useful information related to package use can be found in package-specific development notes.
OpenGL - Packages that use OpenGL have NixOS desktop as their primary target. The - current solution for loading the GPU-specific drivers is based on - libglvnd and looks for the driver implementation in - LD_LIBRARY_PATH. If you are using a non-NixOS - GNU/Linux/X11 desktop with free software video drivers, consider launching - OpenGL-dependent programs from Nixpkgs with Nixpkgs versions of - libglvnd and mesa_drivers in - LD_LIBRARY_PATH. For proprietary video drivers you might - have luck with also adding the corresponding video driver package. + Packages that use OpenGL have NixOS desktop as their primary target. The current solution for loading the GPU-specific drivers is based on libglvnd and looks for the driver implementation in LD_LIBRARY_PATH. If you are using a non-NixOS GNU/Linux/X11 desktop with free software video drivers, consider launching OpenGL-dependent programs from Nixpkgs with Nixpkgs versions of libglvnd and mesa_drivers in LD_LIBRARY_PATH. For proprietary video drivers you might have luck with also adding the corresponding video driver package.
Locales - To allow simultaneous use of packages linked against different versions of - glibc with different locale archive formats Nixpkgs - patches glibc to rely on - LOCALE_ARCHIVE environment variable. + To allow simultaneous use of packages linked against different versions of glibc with different locale archive formats Nixpkgs patches glibc to rely on LOCALE_ARCHIVE environment variable. - On non-NixOS distributions this variable is obviously not set. This can - cause regressions in language support or even crashes in some - Nixpkgs-provided programs. The simplest way to mitigate this problem is - exporting the LOCALE_ARCHIVE variable pointing to - ${glibcLocales}/lib/locale/locale-archive. The drawback - (and the reason this is not the default) is the relatively large (a hundred - MiB) size of the full set of locales. It is possible to build a custom set - of locales by overriding parameters allLocales and - locales of the package. + On non-NixOS distributions this variable is obviously not set. This can cause regressions in language support or even crashes in some Nixpkgs-provided programs. The simplest way to mitigate this problem is exporting the LOCALE_ARCHIVE variable pointing to ${glibcLocales}/lib/locale/locale-archive. The drawback (and the reason this is not the default) is the relatively large (a hundred MiB) size of the full set of locales. It is possible to build a custom set of locales by overriding parameters allLocales and locales of the package.
@@ -50,15 +28,7 @@ Configuring Emacs - The Emacs package comes with some extra helpers to make it easier to - configure. emacsWithPackages allows you to manage - packages from ELPA. This means that you will not have to install that - packages from within Emacs. For instance, if you wanted to use - company, counsel, - flycheck, ivy, - magit, projectile, and - use-package you could use this as a - ~/.config/nixpkgs/config.nix override: + The Emacs package comes with some extra helpers to make it easier to configure. emacsWithPackages allows you to manage packages from ELPA. This means that you will not have to install that packages from within Emacs. For instance, if you wanted to use company, counsel, flycheck, ivy, magit, projectile, and use-package you could use this as a ~/.config/nixpkgs/config.nix override: @@ -78,15 +48,7 @@ - You can install it like any other packages via nix-env -iA - myEmacs. However, this will only install those packages. It will - not configure them for us. To do this, we need to - provide a configuration file. Luckily, it is possible to do this from - within Nix! By modifying the above example, we can make Emacs load a custom - config file. The key is to create a package that provide a - default.el file in - /share/emacs/site-start/. Emacs knows to load this - file automatically when it starts. + You can install it like any other packages via nix-env -iA myEmacs. However, this will only install those packages. It will not configure them for us. To do this, we need to provide a configuration file. Luckily, it is possible to do this from within Nix! By modifying the above example, we can make Emacs load a custom config file. The key is to create a package that provide a default.el file in /share/emacs/site-start/. Emacs knows to load this file automatically when it starts. @@ -168,22 +130,11 @@ cp ${myEmacsConfig} $out/share/emacs/site-lisp/default.el - This provides a fairly full Emacs start file. It will load in addition to - the user's presonal config. You can always disable it by passing - -q to the Emacs command. + This provides a fairly full Emacs start file. It will load in addition to the user's presonal config. You can always disable it by passing -q to the Emacs command. - Sometimes emacsWithPackages is not enough, as this - package set has some priorities imposed on packages (with the lowest - priority assigned to Melpa Unstable, and the highest for packages manually - defined in pkgs/top-level/emacs-packages.nix). But you - can't control this priorities when some package is installed as a - dependency. You can override it on per-package-basis, providing all the - required dependencies manually - but it's tedious and there is always a - possibility that an unwanted dependency will sneak in through some other - package. To completely override such a package you can use - overrideScope'. + Sometimes emacsWithPackages is not enough, as this package set has some priorities imposed on packages (with the lowest priority assigned to Melpa Unstable, and the highest for packages manually defined in pkgs/top-level/emacs-packages.nix). But you can't control this priorities when some package is installed as a dependency. You can override it on per-package-basis, providing all the required dependencies manually - but it's tedious and there is always a possibility that an unwanted dependency will sneak in through some other package. To completely override such a package you can use overrideScope'. @@ -203,23 +154,18 @@ overrides = self: super: rec { DLib - DLib is a modern, C++-based - toolkit which provides several machine learning algorithms. + DLib is a modern, C++-based toolkit which provides several machine learning algorithms.
Compiling without AVX support - Especially older CPUs don't support - AVX - (Advanced Vector Extensions) instructions that are used by - DLib to optimize their algorithms. + Especially older CPUs don't support AVX (Advanced Vector Extensions) instructions that are used by DLib to optimize their algorithms. - On the affected hardware errors like Illegal instruction - will occur. In those cases AVX support needs to be disabled: + On the affected hardware errors like Illegal instruction will occur. In those cases AVX support needs to be disabled: self: super: { dlib = super.dlib.override { avxSupport = false; }; } @@ -230,22 +176,11 @@ overrides = self: super: rec { Unfree software - All users of Nixpkgs are free software users, and many users (and - developers) of Nixpkgs want to limit and tightly control their exposure to - unfree software. At the same time, many users need (or want) to run some - specific pieces of proprietary software. Nixpkgs includes some expressions - for unfree software packages. By default unfree software cannot be installed - and doesn’t show up in searches. To allow installing unfree software in a - single Nix invocation one can export - NIXPKGS_ALLOW_UNFREE=1. For a persistent solution, users - can set allowUnfree in the Nixpkgs configuration. + All users of Nixpkgs are free software users, and many users (and developers) of Nixpkgs want to limit and tightly control their exposure to unfree software. At the same time, many users need (or want) to run some specific pieces of proprietary software. Nixpkgs includes some expressions for unfree software packages. By default unfree software cannot be installed and doesn’t show up in searches. To allow installing unfree software in a single Nix invocation one can export NIXPKGS_ALLOW_UNFREE=1. For a persistent solution, users can set allowUnfree in the Nixpkgs configuration. - Fine-grained control is possible by defining - allowUnfreePredicate function in config; it takes the - mkDerivation parameter attrset and returns - true for unfree packages that should be allowed. + Fine-grained control is possible by defining allowUnfreePredicate function in config; it takes the mkDerivation parameter attrset and returns true for unfree packages that should be allowed.
@@ -255,13 +190,7 @@ overrides = self: super: rec { Steam in Nix - Steam is distributed as a .deb file, for now only as - an i686 package (the amd64 package only has documentation). When unpacked, - it has a script called steam that in Ubuntu (their - target distro) would go to /usr/bin . When run for the - first time, this script copies some files to the user's home, which include - another script that is the ultimate responsible for launching the steam - binary, which is also in $HOME. + Steam is distributed as a .deb file, for now only as an i686 package (the amd64 package only has documentation). When unpacked, it has a script called steam that in Ubuntu (their target distro) would go to /usr/bin . When run for the first time, this script copies some files to the user's home, which include another script that is the ultimate responsible for launching the steam binary, which is also in $HOME. @@ -269,8 +198,7 @@ overrides = self: super: rec { - We don't have /bin/bash and many scripts point - there. Similarly for /usr/bin/python . + We don't have /bin/bash and many scripts point there. Similarly for /usr/bin/python . @@ -280,8 +208,7 @@ overrides = self: super: rec { - The steam.sh script in $HOME can not be patched, as - it is checked and rewritten by steam. + The steam.sh script in $HOME can not be patched, as it is checked and rewritten by steam. @@ -293,11 +220,7 @@ overrides = self: super: rec { - The current approach to deploy Steam in NixOS is composing a FHS-compatible - chroot environment, as documented - here. - This allows us to have binaries in the expected paths without disrupting - the system, and to avoid patching them to work in a non FHS environment. + The current approach to deploy Steam in NixOS is composing a FHS-compatible chroot environment, as documented here. This allows us to have binaries in the expected paths without disrupting the system, and to avoid patching them to work in a non FHS environment.
@@ -309,9 +232,7 @@ overrides = self: super: rec { hardware.opengl.driSupport32Bit = true; in your /etc/nixos/configuration.nix. You'll also need hardware.pulseaudio.support32Bit = true; - if you are using PulseAudio - this will enable 32bit ALSA apps integration. - To use the Steam controller or other Steam supported controllers such as - the DualShock 4 or Nintendo Switch Pro, you need to add + if you are using PulseAudio - this will enable 32bit ALSA apps integration. To use the Steam controller or other Steam supported controllers such as the DualShock 4 or Nintendo Switch Pro, you need to add hardware.steam-hardware.enable = true; to your configuration. @@ -342,19 +263,14 @@ overrides = self: super: rec { - The newStdcpp parameter was removed since NixOS - 17.09 and should not be needed anymore. + The newStdcpp parameter was removed since NixOS 17.09 and should not be needed anymore. - Steam ships statically linked with a version of libcrypto that - conflics with the one dynamically loaded by radeonsi_dri.so. If you - get the error + Steam ships statically linked with a version of libcrypto that conflics with the one dynamically loaded by radeonsi_dri.so. If you get the error steam.sh: line 713: 7842 Segmentation fault (core dumped) - have a look at - this - pull request. + have a look at this pull request. @@ -368,8 +284,7 @@ overrides = self: super: rec { - There is no java in steam chrootenv by default. If you get a message - like + There is no java in steam chrootenv by default. If you get a message like /home/foo/.local/share/Steam/SteamApps/common/towns/towns.sh: line 1: java: command not found You need to add steam.override { withJava = true; }; @@ -387,8 +302,7 @@ overrides = self: super: rec { steam-run - The FHS-compatible chroot used for steam can also be used to run other - linux games that expect a FHS environment. To do it, add + The FHS-compatible chroot used for steam can also be used to run other linux games that expect a FHS environment. To do it, add pkgs.(steam.override { nativeOnly = true; newStdcpp = true; @@ -404,46 +318,23 @@ overrides = self: super: rec { - Please note that the citrix_receiver package has been - deprecated since its development was - discontinued - by upstream and has been replaced by - the - citrix workspace app. + Please note that the citrix_receiver package has been deprecated since its development was discontinued by upstream and has been replaced by the citrix workspace app. - Citrix - Receiver and - Citrix - Workspace App are a remote desktop viewers which provide access to - XenDesktop - installations. + Citrix Receiver and Citrix Workspace App are a remote desktop viewers which provide access to XenDesktop installations.
Basic usage - The tarball archive needs to be downloaded manually as the license - agreements of the vendor for - Citrix - Receiver or - Citrix - Workspace need to be accepted first. Then run - nix-prefetch-url file://$PWD/linuxx64-$version.tar.gz. - With the archive available in the store the package can be built and - installed with Nix. + The tarball archive needs to be downloaded manually as the license agreements of the vendor for Citrix Receiver or Citrix Workspace need to be accepted first. Then run nix-prefetch-url file://$PWD/linuxx64-$version.tar.gz. With the archive available in the store the package can be built and installed with Nix. Caution with <command>nix-shell</command> installs - It's recommended to install Citrix Receiver and/or - Citrix Workspace using nix-env -i or - globally to ensure that the .desktop files are - installed properly into $XDG_CONFIG_DIRS. Otherwise it - won't be possible to open .ica files automatically from - the browser to start a Citrix connection. + It's recommended to install Citrix Receiver and/or Citrix Workspace using nix-env -i or globally to ensure that the .desktop files are installed properly into $XDG_CONFIG_DIRS. Otherwise it won't be possible to open .ica files automatically from the browser to start a Citrix connection.
@@ -452,17 +343,7 @@ overrides = self: super: rec { Custom certificates - The Citrix Workspace App in nixpkgs - trust several certificates - from the - Mozilla database by default. However several companies using Citrix - might require their own corporate certificate. On distros with imperative - packaging these certs can be stored easily in - $ICAROOT, - however this directory is a store path in nixpkgs. In - order to work around this issue the package provides a simple mechanism to - add custom certificates without rebuilding the entire package using - symlinkJoin: + The Citrix Workspace App in nixpkgs trust several certificates from the Mozilla database by default. However several companies using Citrix might require their own corporate certificate. On distros with imperative packaging these certs can be stored easily in $ICAROOT, however this directory is a store path in nixpkgs. In order to work around this issue the package provides a simple mechanism to add custom certificates without rebuilding the entire package using symlinkJoin: { config.allowUnfree = true; }; let extraCerts = [ ./custom-cert-1.pem ./custom-cert-2.pem /* ... */ ]; in diff --git a/doc/platform-notes.xml b/doc/platform-notes.xml index 157d3fe2fcdda..d8d7692fc9a76 100644 --- a/doc/platform-notes.xml +++ b/doc/platform-notes.xml @@ -12,12 +12,7 @@ - The Darwin stdenv uses clang instead of gcc. When - referring to the compiler $CC or cc - will work in both cases. Some builds hardcode gcc/g++ in their build - scripts, that can usually be fixed with using something like - makeFlags = [ "CC=cc" ]; or by patching the build - scripts. + The Darwin stdenv uses clang instead of gcc. When referring to the compiler $CC or cc will work in both cases. Some builds hardcode gcc/g++ in their build scripts, that can usually be fixed with using something like makeFlags = [ "CC=cc" ]; or by patching the build scripts. stdenv.mkDerivation { @@ -31,12 +26,7 @@ stdenv.mkDerivation { - On Darwin, libraries are linked using absolute paths, libraries are - resolved by their install_name at link time. Sometimes - packages won't set this correctly causing the library lookups to fail at - runtime. This can be fixed by adding extra linker flags or by running - install_name_tool -id during the - fixupPhase. + On Darwin, libraries are linked using absolute paths, libraries are resolved by their install_name at link time. Sometimes packages won't set this correctly causing the library lookups to fail at runtime. This can be fixed by adding extra linker flags or by running install_name_tool -id during the fixupPhase. stdenv.mkDerivation { @@ -48,16 +38,10 @@ stdenv.mkDerivation { - Even if the libraries are linked using absolute paths and resolved via - their install_name correctly, tests can sometimes fail - to run binaries. This happens because the checkPhase - runs before the libraries are installed. + Even if the libraries are linked using absolute paths and resolved via their install_name correctly, tests can sometimes fail to run binaries. This happens because the checkPhase runs before the libraries are installed. - This can usually be solved by running the tests after the - installPhase or alternatively by using - DYLD_LIBRARY_PATH. More information about this variable - can be found in the + This can usually be solved by running the tests after the installPhase or alternatively by using DYLD_LIBRARY_PATH. More information about this variable can be found in the dyld 1 manpage. @@ -78,11 +62,7 @@ stdenv.mkDerivation { - Some packages assume xcode is available and use xcrun - to resolve build tools like clang, etc. This causes - errors like xcode-select: error: no developer tools were found at - '/Applications/Xcode.app' while the build doesn't actually depend - on xcode. + Some packages assume xcode is available and use xcrun to resolve build tools like clang, etc. This causes errors like xcode-select: error: no developer tools were found at '/Applications/Xcode.app' while the build doesn't actually depend on xcode. stdenv.mkDerivation { @@ -95,9 +75,7 @@ stdenv.mkDerivation { } - The package xcbuild can be used to build projects that - really depend on Xcode. However, this replacement is not 100% compatible - with Xcode and can occasionally cause issues. + The package xcbuild can be used to build projects that really depend on Xcode. However, this replacement is not 100% compatible with Xcode and can occasionally cause issues. diff --git a/doc/quick-start.xml b/doc/quick-start.xml index 39e3e7396bd57..80514cba49043 100644 --- a/doc/quick-start.xml +++ b/doc/quick-start.xml @@ -15,120 +15,75 @@
- Find a good place in the Nixpkgs tree to add the Nix expression for your - package. For instance, a library package typically goes into - pkgs/development/libraries/pkgname, - while a web browser goes into - pkgs/applications/networking/browsers/pkgname. - See for some hints on the tree - organisation. Create a directory for your package, e.g. + Find a good place in the Nixpkgs tree to add the Nix expression for your package. For instance, a library package typically goes into pkgs/development/libraries/pkgname, while a web browser goes into pkgs/applications/networking/browsers/pkgname. See for some hints on the tree organisation. Create a directory for your package, e.g. $ mkdir pkgs/development/libraries/libfoo - In the package directory, create a Nix expression — a piece of code that - describes how to build the package. In this case, it should be a - function that is called with the package dependencies - as arguments, and returns a build of the package in the Nix store. The - expression should usually be called default.nix. + In the package directory, create a Nix expression — a piece of code that describes how to build the package. In this case, it should be a function that is called with the package dependencies as arguments, and returns a build of the package in the Nix store. The expression should usually be called default.nix. $ emacs pkgs/development/libraries/libfoo/default.nix $ git add pkgs/development/libraries/libfoo/default.nix - You can have a look at the existing Nix expressions under - pkgs/ to see how it’s done. Here are some good - ones: + You can have a look at the existing Nix expressions under pkgs/ to see how it’s done. Here are some good ones: - GNU Hello: - pkgs/applications/misc/hello/default.nix. - Trivial package, which specifies some meta - attributes which is good practice. + GNU Hello: pkgs/applications/misc/hello/default.nix. Trivial package, which specifies some meta attributes which is good practice. - GNU cpio: - pkgs/tools/archivers/cpio/default.nix. - Also a simple package. The generic builder in stdenv - does everything for you. It has no dependencies beyond - stdenv. + GNU cpio: pkgs/tools/archivers/cpio/default.nix. Also a simple package. The generic builder in stdenv does everything for you. It has no dependencies beyond stdenv. - GNU Multiple Precision arithmetic library (GMP): - pkgs/development/libraries/gmp/5.1.x.nix. - Also done by the generic builder, but has a dependency on - m4. + GNU Multiple Precision arithmetic library (GMP): pkgs/development/libraries/gmp/5.1.x.nix. Also done by the generic builder, but has a dependency on m4. - Pan, a GTK-based newsreader: - pkgs/applications/networking/newsreaders/pan/default.nix. - Has an optional dependency on gtkspell, which is - only built if spellCheck is true. + Pan, a GTK-based newsreader: pkgs/applications/networking/newsreaders/pan/default.nix. Has an optional dependency on gtkspell, which is only built if spellCheck is true. - Apache HTTPD: - pkgs/servers/http/apache-httpd/2.4.nix. - A bunch of optional features, variable substitutions in the configure - flags, a post-install hook, and miscellaneous hackery. + Apache HTTPD: pkgs/servers/http/apache-httpd/2.4.nix. A bunch of optional features, variable substitutions in the configure flags, a post-install hook, and miscellaneous hackery. - Thunderbird: - pkgs/applications/networking/mailreaders/thunderbird/default.nix. - Lots of dependencies. + Thunderbird: pkgs/applications/networking/mailreaders/thunderbird/default.nix. Lots of dependencies. - JDiskReport, a Java utility: - pkgs/tools/misc/jdiskreport/default.nix - (and the - builder). - Nixpkgs doesn’t have a decent stdenv for Java yet - so this is pretty ad-hoc. + JDiskReport, a Java utility: pkgs/tools/misc/jdiskreport/default.nix (and the builder). Nixpkgs doesn’t have a decent stdenv for Java yet so this is pretty ad-hoc. - XML::Simple, a Perl module: - pkgs/top-level/perl-packages.nix - (search for the XMLSimple attribute). Most Perl - modules are so simple to build that they are defined directly in - perl-packages.nix; no need to make a separate file - for them. + XML::Simple, a Perl module: pkgs/top-level/perl-packages.nix (search for the XMLSimple attribute). Most Perl modules are so simple to build that they are defined directly in perl-packages.nix; no need to make a separate file for them. - Adobe Reader: - pkgs/applications/misc/adobe-reader/default.nix. - Shows how binary-only packages can be supported. In particular the - builder - uses patchelf to set the RUNPATH and ELF interpreter - of the executables so that the right libraries are found at runtime. + Adobe Reader: pkgs/applications/misc/adobe-reader/default.nix. Shows how binary-only packages can be supported. In particular the builder uses patchelf to set the RUNPATH and ELF interpreter of the executables so that the right libraries are found at runtime. @@ -138,67 +93,45 @@ - All meta attributes are - optional, but it’s still a good idea to provide at least the - description, homepage and - meta attributes are optional, but it’s still a good idea to provide at least the description, homepage and license. - You can use nix-prefetch-url - url to get the SHA-256 hash of source - distributions. There are similar commands as - nix-prefetch-git and - nix-prefetch-hg available in - nix-prefetch-scripts package. + You can use nix-prefetch-url url to get the SHA-256 hash of source distributions. There are similar commands as nix-prefetch-git and nix-prefetch-hg available in nix-prefetch-scripts package. - A list of schemes for mirror:// URLs can be found in - mirror:// URLs can be found in pkgs/build-support/fetchurl/mirrors.nix. - The exact syntax and semantics of the Nix expression language, including - the built-in function, are described in the Nix manual in the - chapter - on writing Nix expressions. + The exact syntax and semantics of the Nix expression language, including the built-in function, are described in the Nix manual in the chapter on writing Nix expressions. - Add a call to the function defined in the previous step to - pkgs/top-level/all-packages.nix - with some descriptive name for the variable, e.g. - libfoo. + Add a call to the function defined in the previous step to pkgs/top-level/all-packages.nix with some descriptive name for the variable, e.g. libfoo. $ emacs pkgs/top-level/all-packages.nix - The attributes in that file are sorted by category (like “Development / - Libraries”) that more-or-less correspond to the directory structure of - Nixpkgs, and then by attribute name. + The attributes in that file are sorted by category (like “Development / Libraries”) that more-or-less correspond to the directory structure of Nixpkgs, and then by attribute name. - To test whether the package builds, run the following command from the - root of the nixpkgs source tree: + To test whether the package builds, run the following command from the root of the nixpkgs source tree: $ nix-build -A libfoo - where libfoo should be the variable name defined in the - previous step. You may want to add the flag to keep - the temporary build directory in case something fails. If the build - succeeds, a symlink ./result to the package in the - Nix store is created. + where libfoo should be the variable name defined in the previous step. You may want to add the flag to keep the temporary build directory in case something fails. If the build succeeds, a symlink ./result to the package in the Nix store is created. @@ -210,14 +143,9 @@ - Optionally commit the new package and open a pull request - to - nixpkgs, or use - - the Patches category on Discourse for sending a patch without a - GitHub account. + Optionally commit the new package and open a pull request to nixpkgs, or use the Patches category on Discourse for sending a patch without a GitHub account.
diff --git a/doc/release-notes.xml b/doc/release-notes.xml index 8d9b1813010a2..b85f61da079c0 100644 --- a/doc/release-notes.xml +++ b/doc/release-notes.xml @@ -6,15 +6,11 @@ Release 0.14 (June 4, 2012) - In preparation for the switch from Subversion to Git, this release is mainly - the prevent the Nixpkgs version number from going backwards. (This would - happen because prerelease version numbers produced for the Git repository - are lower than those for the Subversion repository.) + In preparation for the switch from Subversion to Git, this release is mainly the prevent the Nixpkgs version number from going backwards. (This would happen because prerelease version numbers produced for the Git repository are lower than those for the Subversion repository.) - Since the last release, there have been thousands of changes and new - packages by numerous contributors. For details, see the commit logs. + Since the last release, there have been thousands of changes and new packages by numerous contributors. For details, see the commit logs.
@@ -55,14 +51,11 @@ Release 0.12 (April 24, 2009) - There are way too many additions to Nixpkgs since the last release to list - here: for example, the number of packages on Linux has increased from 1002 - to 2159. However, some specific improvements are worth listing: + There are way too many additions to Nixpkgs since the last release to list here: for example, the number of packages on Linux has increased from 1002 to 2159. However, some specific improvements are worth listing: - Nixpkgs now has a manual. In particular, it describes the standard build - environment in detail. + Nixpkgs now has a manual. In particular, it describes the standard build environment in detail. @@ -122,9 +115,7 @@ - Support for building derivations in a virtual machine, including RPM and - Debian builds in automatically generated VM images. See - pkgs/build-support/vm/default.nix for details. + Support for building derivations in a virtual machine, including RPM and Debian builds in automatically generated VM images. See pkgs/build-support/vm/default.nix for details. @@ -136,13 +127,7 @@ - The following people contributed to this release: Andres Löh, Arie - Middelkoop, Armijn Hemel, Eelco Dolstra, Lluís Batlle, Ludovic Courtès, - Marc Weber, Mart Kolthof, Martin Bravenboer, Michael Raskin, Nicolas - Pierron, Peter Simons, Pjotr Prins, Rob Vermaas, Sander van der Burg, Tobias - Hammerschmidt, Valentin David, Wouter den Breejen and Yury G. Kudryashov. In - addition, several people contributed patches on the - nix-dev mailing list. + The following people contributed to this release: Andres Löh, Arie Middelkoop, Armijn Hemel, Eelco Dolstra, Lluís Batlle, Ludovic Courtès, Marc Weber, Mart Kolthof, Martin Bravenboer, Michael Raskin, Nicolas Pierron, Peter Simons, Pjotr Prins, Rob Vermaas, Sander van der Burg, Tobias Hammerschmidt, Valentin David, Wouter den Breejen and Yury G. Kudryashov. In addition, several people contributed patches on the nix-dev mailing list.
@@ -153,25 +138,12 @@ - The standard build environment (stdenv) is now pure on - the x86_64-linux and powerpc-linux - platforms, just as on i686-linux. (Purity means that - building and using the standard environment has no dependencies outside - of the Nix store. For instance, it doesn’t require an external C - compiler such as /usr/bin/gcc.) Also, the statically - linked binaries used in the bootstrap process are now automatically - reproducible, making it easy to update the bootstrap tools and to add - support for other Linux platforms. See - pkgs/stdenv/linux/make-bootstrap-tools.nix for - details. + The standard build environment (stdenv) is now pure on the x86_64-linux and powerpc-linux platforms, just as on i686-linux. (Purity means that building and using the standard environment has no dependencies outside of the Nix store. For instance, it doesn’t require an external C compiler such as /usr/bin/gcc.) Also, the statically linked binaries used in the bootstrap process are now automatically reproducible, making it easy to update the bootstrap tools and to add support for other Linux platforms. See pkgs/stdenv/linux/make-bootstrap-tools.nix for details. - Hook variables in the generic builder are now executed using the - eval shell command. This has a major advantage: you - can write hooks directly in Nix expressions. For instance, rather than - writing a builder like this: + Hook variables in the generic builder are now executed using the eval shell command. This has a major advantage: you can write hooks directly in Nix expressions. For instance, rather than writing a builder like this: source $stdenv/setup @@ -182,91 +154,57 @@ postInstall() { } genericBuild - (the gzip builder), you can just add this attribute to - the derivation: + (the gzip builder), you can just add this attribute to the derivation: postInstall = "ln -sf gzip $out/bin/gunzip; ln -sf gzip $out/bin/zcat"; - and so a separate build script becomes unnecessary. This should allow us - to get rid of most builders in Nixpkgs. + and so a separate build script becomes unnecessary. This should allow us to get rid of most builders in Nixpkgs. - It is now possible to have the generic builder pass arguments to - configure and make that contain - whitespace. Previously, for example, you could say in a builder, + It is now possible to have the generic builder pass arguments to configure and make that contain whitespace. Previously, for example, you could say in a builder, configureFlags="CFLAGS=-O0" but not configureFlags="CFLAGS=-O0 -g" - since the -g would be interpreted as a separate - argument to configure. Now you can say + since the -g would be interpreted as a separate argument to configure. Now you can say configureFlagsArray=("CFLAGS=-O0 -g") or similarly configureFlagsArray=("CFLAGS=-O0 -g" "LDFLAGS=-L/foo -L/bar") - which does the right thing. Idem for makeFlags, - installFlags, checkFlags and - distFlags. + which does the right thing. Idem for makeFlags, installFlags, checkFlags and distFlags. - Unfortunately you can't pass arrays to Bash through the environment, so - you can't put the array above in a Nix expression, e.g., + Unfortunately you can't pass arrays to Bash through the environment, so you can't put the array above in a Nix expression, e.g., configureFlagsArray = ["CFLAGS=-O0 -g"]; - since it would just be flattened to a since string. However, you - can use the inline hooks described above: + since it would just be flattened to a since string. However, you can use the inline hooks described above: preConfigure = "configureFlagsArray=(\"CFLAGS=-O0 -g\")"; - The function fetchurl now has support for two - different kinds of mirroring of files. First, it has support for - content-addressable mirrors. For example, given the - fetchurl call + The function fetchurl now has support for two different kinds of mirroring of files. First, it has support for content-addressable mirrors. For example, given the fetchurl call fetchurl { url = http://releases.mozilla.org/.../firefox-2.0.0.6-source.tar.bz2; sha1 = "eb72f55e4a8bf08e8c6ef227c0ade3d068ba1082"; } - fetchurl will first try to download this file from - . - If that file doesn’t exist, it will try the original URL. In general, - the “content-addressed” location is - mirror/hash-type/hash. - There is currently only one content-addressable mirror - (), but more can be - specified in the hashedMirrors attribute in - pkgs/build-support/fetchurl/mirrors.nix, or by - setting the NIX_HASHED_MIRRORS environment variable to a - whitespace-separated list of URLs. + fetchurl will first try to download this file from . If that file doesn’t exist, it will try the original URL. In general, the “content-addressed” location is mirror/hash-type/hash. There is currently only one content-addressable mirror (), but more can be specified in the hashedMirrors attribute in pkgs/build-support/fetchurl/mirrors.nix, or by setting the NIX_HASHED_MIRRORS environment variable to a whitespace-separated list of URLs. - Second, fetchurl has support for widely-mirrored - distribution sites such as SourceForge or the Linux kernel archives. - Given a URL of the form - mirror://site/path, - it will try to download path from a - configurable list of mirrors for site. (This - idea was borrowed from Gentoo Linux.) Example: + Second, fetchurl has support for widely-mirrored distribution sites such as SourceForge or the Linux kernel archives. Given a URL of the form mirror://site/path, it will try to download path from a configurable list of mirrors for site. (This idea was borrowed from Gentoo Linux.) Example: fetchurl { url = mirror://gnu/gcc/gcc-4.2.0/gcc-core-4.2.0.tar.bz2; sha256 = "0ykhzxhr8857dr97z0j9wyybfz1kjr71xk457cfapfw5fjas4ny1"; } - Currently site can be - sourceforge, gnu and - kernel. The list of mirrors is defined in - pkgs/build-support/fetchurl/mirrors.nix. You can - override the list of mirrors for a particular site by setting the - environment variable - NIX_MIRRORS_site, e.g. + Currently site can be sourceforge, gnu and kernel. The list of mirrors is defined in pkgs/build-support/fetchurl/mirrors.nix. You can override the list of mirrors for a particular site by setting the environment variable NIX_MIRRORS_site, e.g. export NIX_MIRRORS_sourceforge=http://osdn.dl.sourceforge.net/sourceforge/ @@ -339,9 +277,7 @@ export NIX_MIRRORS_sourceforge=http://osdn.dl.sourceforge.net/sourceforge/ - The following people contributed to this release: Andres Löh, Arie - Middelkoop, Armijn Hemel, Eelco Dolstra, Marc Weber, Mart Kolthof, Martin - Bravenboer, Michael Raskin, Wouter den Breejen and Yury G. Kudryashov. + The following people contributed to this release: Andres Löh, Arie Middelkoop, Armijn Hemel, Eelco Dolstra, Marc Weber, Mart Kolthof, Martin Bravenboer, Michael Raskin, Wouter den Breejen and Yury G. Kudryashov.
@@ -349,10 +285,8 @@ export NIX_MIRRORS_sourceforge=http://osdn.dl.sourceforge.net/sourceforge/ - This release of Nixpkgs requires - Nix 0.10 - or higher. + This release of Nixpkgs requires Nix 0.10 or higher. @@ -363,32 +297,15 @@ xlink:href='http://nixos.org/releases/nix/nix-0.10/'>Nix 0.10 - pkgs/system/all-packages-generic.nix is gone, we now - just have pkgs/top-level/all-packages.nix that - contains all available packages. This should cause much less confusion - with users. all-packages.nix is a function that by - default returns packages for the current platform, but you can override - this by specifying a different system argument. + pkgs/system/all-packages-generic.nix is gone, we now just have pkgs/top-level/all-packages.nix that contains all available packages. This should cause much less confusion with users. all-packages.nix is a function that by default returns packages for the current platform, but you can override this by specifying a different system argument. - Certain packages in Nixpkgs are now user-configurable through a - configuration file, i.e., without having to edit the Nix expressions in - Nixpkgs. For instance, the Firefox provided in the Nixpkgs channel is - built without the RealPlayer plugin (for legal reasons). Previously, you - could easily enable RealPlayer support by editing the call to the Firefox - function in all-packages.nix, but such changes are - not respected when Firefox is subsequently updated through the Nixpkgs - channel. + Certain packages in Nixpkgs are now user-configurable through a configuration file, i.e., without having to edit the Nix expressions in Nixpkgs. For instance, the Firefox provided in the Nixpkgs channel is built without the RealPlayer plugin (for legal reasons). Previously, you could easily enable RealPlayer support by editing the call to the Firefox function in all-packages.nix, but such changes are not respected when Firefox is subsequently updated through the Nixpkgs channel. - The Nixpkgs configuration file (found in - ~/.nixpkgs/config.nix or through the - NIXPKGS_CONFIG environment variable) is an attribute set - that contains configuration options that - all-packages.nix reads and uses for certain packages. - For instance, the following configuration file: + The Nixpkgs configuration file (found in ~/.nixpkgs/config.nix or through the NIXPKGS_CONFIG environment variable) is an attribute set that contains configuration options that all-packages.nix reads and uses for certain packages. For instance, the following configuration file: { firefox = { @@ -398,9 +315,7 @@ xlink:href='http://nixos.org/releases/nix/nix-0.10/'>Nix 0.10 persistently enables RealPlayer support in the Firefox build. - (Actually, firefox.enableRealPlayer is the - only configuration option currently available, but - more are sure to be added.) + (Actually, firefox.enableRealPlayer is the only configuration option currently available, but more are sure to be added.) @@ -409,17 +324,8 @@ xlink:href='http://nixos.org/releases/nix/nix-0.10/'>Nix 0.10 - i686-cygwin, i.e., Windows (using - Cygwin). The standard - environment on i686-cygwin by default builds - binaries for the Cygwin environment (i.e., it uses Cygwin tools and - produces executables that use the Cygwin library). However, there is - also a standard environment that produces binaries that use - MinGW. You can - use it by calling all-package.nix with the - stdenvType argument set to - "i686-mingw". + i686-cygwin, i.e., Windows (using Cygwin). The standard environment on i686-cygwin by default builds binaries for the Cygwin environment (i.e., it uses Cygwin tools and produces executables that use the Cygwin library). However, there is also a standard environment that produces binaries that use MinGW. You can use it by calling all-package.nix with the stdenvType argument set to "i686-mingw". @@ -434,9 +340,7 @@ xlink:href='http://nixos.org/releases/nix/nix-0.10/'>Nix 0.10 - x86_64-linux, i.e., Linux on 64-bit AMD/Intel CPUs. - Unlike i686-linux, this platform doesn’t have a - pure stdenv yet. + x86_64-linux, i.e., Linux on 64-bit AMD/Intel CPUs. Unlike i686-linux, this platform doesn’t have a pure stdenv yet. @@ -472,21 +376,10 @@ xlink:href='http://nixos.org/releases/nix/nix-0.10/'>Nix 0.10 - It is now much easier to override the default C - compiler and other tools in stdenv for specific - packages. all-packages.nix provides two utility - functions for this purpose: overrideGCC and - overrideInStdenv. Both take a - stdenv and return an augmented - stdenv; the formed changes the C compiler, and the - latter adds additional packages to the front of - stdenv’s initial PATH, allowing tools - to be overridden. + It is now much easier to override the default C compiler and other tools in stdenv for specific packages. all-packages.nix provides two utility functions for this purpose: overrideGCC and overrideInStdenv. Both take a stdenv and return an augmented stdenv; the formed changes the C compiler, and the latter adds additional packages to the front of stdenv’s initial PATH, allowing tools to be overridden. - For instance, the package strategoxt doesn’t build - with the GNU Make in stdenv (version 3.81), so we call - it with an augmented stdenv that uses GNU Make 3.80: + For instance, the package strategoxt doesn’t build with the GNU Make in stdenv (version 3.81), so we call it with an augmented stdenv that uses GNU Make 3.80: strategoxt = (import ../development/compilers/strategoxt) { inherit fetchurl pkgconfig sdf aterm; @@ -494,8 +387,7 @@ strategoxt = (import ../development/compilers/strategoxt) { }; gnumake380 = ...; - Likewise, there are many packages that don’t compile with the default - GCC (4.1.1), but that’s easily fixed: + Likewise, there are many packages that don’t compile with the default GCC (4.1.1), but that’s easily fixed: exult = import ../games/exult { inherit fetchurl SDL SDL_mixer zlib libpng unzip; @@ -505,13 +397,7 @@ exult = import ../games/exult { - It has also become much easier to experiment with changes to the - stdenv setup script (which notably contains the generic - builder). Since edits to pkgs/stdenv/generic/setup.sh - trigger a rebuild of everything, this was formerly - quite painful. But now stdenv contains a function to - “regenerate” stdenv with a different setup script, - allowing the use of a different setup script for specific packages: + It has also become much easier to experiment with changes to the stdenv setup script (which notably contains the generic builder). Since edits to pkgs/stdenv/generic/setup.sh trigger a rebuild of everything, this was formerly quite painful. But now stdenv contains a function to “regenerate” stdenv with a different setup script, allowing the use of a different setup script for specific packages: pkg = import ... { stdenv = stdenv.regenerate ./my-setup.sh; @@ -521,10 +407,7 @@ pkg = import ... { - Packages can now have a human-readable description - field. Package descriptions are shown by nix-env -qa - --description. In addition, they’re shown on the Nixpkgs - release page. A description can be added to a package as follows: + Packages can now have a human-readable description field. Package descriptions are shown by nix-env -qa --description. In addition, they’re shown on the Nixpkgs release page. A description can be added to a package as follows: stdenv.mkDerivation { name = "exult-1.2"; @@ -533,34 +416,26 @@ stdenv.mkDerivation { description = "A reimplementation of the Ultima VII game engine"; }; } - The meta attribute is not passed to the builder, so - changes to the description do not trigger a rebuild. Additional - meta attributes may be defined in the future (such as - the URL of the package’s homepage, the license, etc.). + The meta attribute is not passed to the builder, so changes to the description do not trigger a rebuild. Additional meta attributes may be defined in the future (such as the URL of the package’s homepage, the license, etc.). - The following people contributed to this release: Andres Löh, Armijn Hemel, - Christof Douma, Eelco Dolstra, Eelco Visser, Mart Kolthof, Martin - Bravenboer, Merijn de Jonge, Rob Vermaas and Roy van den Broek. + The following people contributed to this release: Andres Löh, Armijn Hemel, Christof Douma, Eelco Dolstra, Eelco Visser, Mart Kolthof, Martin Bravenboer, Merijn de Jonge, Rob Vermaas and Roy van den Broek.
Release 0.9 (January 31, 2006) - There have been zillions of changes since the last release of Nixpkgs. Many - packages have been added or updated. The following are some of the more - notable changes: + There have been zillions of changes since the last release of Nixpkgs. Many packages have been added or updated. The following are some of the more notable changes: - Distribution files have been moved to - . @@ -576,24 +451,17 @@ stdenv.mkDerivation { - The old, unofficial Xlibs has been replaced by the official modularised - X11 distribution from X.org, i.e., X11R7.0. X11R7.0 consists of 287 (!) - packages, all of which are in Nixpkgs though not all have been tested. It - is now possible to build a working X server (previously we only had X - client libraries). We use a fully Nixified X server on NixOS. + The old, unofficial Xlibs has been replaced by the official modularised X11 distribution from X.org, i.e., X11R7.0. X11R7.0 consists of 287 (!) packages, all of which are in Nixpkgs though not all have been tested. It is now possible to build a working X server (previously we only had X client libraries). We use a fully Nixified X server on NixOS. - The Sun JDK 5 has been purified, i.e., it doesn’t require any non-Nix - components such as /lib/ld-linux.so.2. This means - that Java applications such as Eclipse and Azureus can run on NixOS. + The Sun JDK 5 has been purified, i.e., it doesn’t require any non-Nix components such as /lib/ld-linux.so.2. This means that Java applications such as Eclipse and Azureus can run on NixOS. - Hardware-accelerated OpenGL support, used by games like Quake 3 (which is - now built from source). + Hardware-accelerated OpenGL support, used by games like Quake 3 (which is now built from source). @@ -608,8 +476,7 @@ stdenv.mkDerivation { - Some support for cross-compilation: cross-compiling builds of GCC and - Binutils, and cross-compiled builds of the C library uClibc. + Some support for cross-compilation: cross-compiling builds of GCC and Binutils, and cross-compiled builds of the C library uClibc. @@ -618,8 +485,7 @@ stdenv.mkDerivation { - teTeX, including support for building LaTeX documents using Nix (with - automatic dependency determination). + teTeX, including support for building LaTeX documents using Nix (with automatic dependency determination). @@ -629,14 +495,12 @@ stdenv.mkDerivation { - System-level packages to support NixOS, e.g. Grub, GNU - parted and so on. + System-level packages to support NixOS, e.g. Grub, GNU parted and so on. - ecj, the Eclipse Compiler for Java, so we finally - have a freely distributable compiler that supports Java 5.0. + ecj, the Eclipse Compiler for Java, so we finally have a freely distributable compiler that supports Java 5.0. @@ -661,8 +525,7 @@ stdenv.mkDerivation { - kdelibs. This allows us to add KDE-based packages - (such as kcachegrind). + kdelibs. This allows us to add KDE-based packages (such as kcachegrind). @@ -671,17 +534,14 @@ stdenv.mkDerivation { - The following people contributed to this release: Andres Löh, Armijn Hemel, - Bogdan Dumitriu, Christof Douma, Eelco Dolstra, Eelco Visser, Mart Kolthof, - Martin Bravenboer, Rob Vermaas and Roy van den Broek. + The following people contributed to this release: Andres Löh, Armijn Hemel, Bogdan Dumitriu, Christof Douma, Eelco Dolstra, Eelco Visser, Mart Kolthof, Martin Bravenboer, Rob Vermaas and Roy van den Broek.
Release 0.8 (April 11, 2005) - This release is mostly to remain synchronised with the changed hashing - scheme in Nix 0.8. + This release is mostly to remain synchronised with the changed hashing scheme in Nix 0.8. @@ -706,16 +566,10 @@ stdenv.mkDerivation { - The bootstrap process for the standard build environment on Linux - (stdenv-linux) has been improved. It is no longer dependent in its initial - bootstrap stages on the system Glibc, GCC, and other tools. Rather, - Nixpkgs contains a statically linked bash and curl, and uses that to - download other statically linked tools. These are then used to build a - Glibc and dynamically linked versions of all other tools. + The bootstrap process for the standard build environment on Linux (stdenv-linux) has been improved. It is no longer dependent in its initial bootstrap stages on the system Glibc, GCC, and other tools. Rather, Nixpkgs contains a statically linked bash and curl, and uses that to download other statically linked tools. These are then used to build a Glibc and dynamically linked versions of all other tools. - This change also makes the bootstrap process faster. For instance, GCC is - built only once instead of three times. + This change also makes the bootstrap process faster. For instance, GCC is built only once instead of three times. (Contributed by Armijn Hemel.) @@ -723,17 +577,13 @@ stdenv.mkDerivation { - Tarballs used by Nixpkgs are now obtained from the same server that hosts - Nixpkgs (). This - reduces the risk of packages being unbuildable due to moved or deleted - files on various servers. + Tarballs used by Nixpkgs are now obtained from the same server that hosts Nixpkgs (). This reduces the risk of packages being unbuildable due to moved or deleted files on various servers. - There now is a generic mechanism for building Perl modules. See the - various Perl modules defined in pkgs/system/all-packages-generic.nix. + There now is a generic mechanism for building Perl modules. See the various Perl modules defined in pkgs/system/all-packages-generic.nix. diff --git a/doc/reviewing-contributions.xml b/doc/reviewing-contributions.xml index 5aa950625efa5..5a14684f9b1e2 100644 --- a/doc/reviewing-contributions.xml +++ b/doc/reviewing-contributions.xml @@ -6,68 +6,40 @@ Reviewing contributions - The following section is a draft, and the policy for reviewing is still - being discussed in issues such as - #11166 - and - #20836 - . + The following section is a draft, and the policy for reviewing is still being discussed in issues such as #11166 and #20836 . - The Nixpkgs project receives a fairly high number of contributions via GitHub - pull requests. Reviewing and approving these is an important task and a way - to contribute to the project. + The Nixpkgs project receives a fairly high number of contributions via GitHub pull requests. Reviewing and approving these is an important task and a way to contribute to the project. - The high change rate of Nixpkgs makes any pull request that remains open for - too long subject to conflicts that will require extra work from the submitter - or the merger. Reviewing pull requests in a timely manner and being - responsive to the comments is the key to avoid this issue. GitHub provides - sort filters that can be used to see the - most - recently and the - least - recently updated pull requests. We highly encourage looking at - - this list of ready to merge, unreviewed pull requests. + The high change rate of Nixpkgs makes any pull request that remains open for too long subject to conflicts that will require extra work from the submitter or the merger. Reviewing pull requests in a timely manner and being responsive to the comments is the key to avoid this issue. GitHub provides sort filters that can be used to see the most recently and the least recently updated pull requests. We highly encourage looking at this list of ready to merge, unreviewed pull requests. - When reviewing a pull request, please always be nice and polite. - Controversial changes can lead to controversial opinions, but it is important - to respect every community member and their work. + When reviewing a pull request, please always be nice and polite. Controversial changes can lead to controversial opinions, but it is important to respect every community member and their work. - GitHub provides reactions as a simple and quick way to provide feedback to - pull requests or any comments. The thumb-down reaction should be used with - care and if possible accompanied with some explanation so the submitter has - directions to improve their contribution. + GitHub provides reactions as a simple and quick way to provide feedback to pull requests or any comments. The thumb-down reaction should be used with care and if possible accompanied with some explanation so the submitter has directions to improve their contribution. - pull request reviews should include a list of what has been reviewed in a - comment, so other reviewers and mergers can know the state of the review. + pull request reviews should include a list of what has been reviewed in a comment, so other reviewers and mergers can know the state of the review. - All the review template samples provided in this section are generic and - meant as examples. Their usage is optional and the reviewer is free to adapt - them to their liking. + All the review template samples provided in this section are generic and meant as examples. Their usage is optional and the reviewer is free to adapt them to their liking.
Package updates - A package update is the most trivial and common type of pull request. These - pull requests mainly consist of updating the version part of the package - name and the source hash. + A package update is the most trivial and common type of pull request. These pull requests mainly consist of updating the version part of the package name and the source hash. - It can happen that non-trivial updates include patches or more complex - changes. + It can happen that non-trivial updates include patches or more complex changes. @@ -82,8 +54,7 @@ - 8.has: package (update) and any topic label that fit - the updated package. + 8.has: package (update) and any topic label that fit the updated package. @@ -105,9 +76,7 @@ - CODEOWNERS - will make GitHub notify users based on the submitted changes, but it can - happen that it misses some of the package maintainers. + CODEOWNERS will make GitHub notify users based on the submitted changes, but it can happen that it misses some of the package maintainers. @@ -119,15 +88,12 @@ - License can change with version updates, so it should be checked to - match the upstream license. + License can change with version updates, so it should be checked to match the upstream license. - If the package has no maintainer, a maintainer must be set. This can be - the update submitter or a community member that accepts to take - maintainership of the package. + If the package has no maintainer, a maintainer must be set. This can be the update submitter or a community member that accepts to take maintainership of the package. @@ -144,14 +110,10 @@ - pull requests are often targeted to the master or staging branch, and - building the pull request locally when it is submitted can trigger many - source builds. + pull requests are often targeted to the master or staging branch, and building the pull request locally when it is submitted can trigger many source builds. - It is possible to rebase the changes on nixos-unstable or - nixpkgs-unstable for easier review by running the following commands - from a nixpkgs clone. + It is possible to rebase the changes on nixos-unstable or nixpkgs-unstable for easier review by running the following commands from a nixpkgs clone. $ git remote add channels https://github.com/NixOS/nixpkgs-channels.git @@ -163,8 +125,7 @@ - This should be done only once to be able to fetch channel branches - from the nixpkgs-channels repository. + This should be done only once to be able to fetch channel branches from the nixpkgs-channels repository. @@ -174,9 +135,7 @@ - Fetching the pull request changes, PRNUMBER is the - number at the end of the pull request title and - BASEBRANCH the base branch of the pull request. + Fetching the pull request changes, PRNUMBER is the number at the end of the pull request title and BASEBRANCH the base branch of the pull request. @@ -189,12 +148,7 @@ - The - nix-review - tool can be used to review a pull request content in a single command. - PRNUMBER should be replaced by the number at the end - of the pull request title. You can also provide the full github pull - request url. + The nix-review tool can be used to review a pull request content in a single command. PRNUMBER should be replaced by the number at the end of the pull request title. You can also provide the full github pull request url. $ nix-shell -p nix-review --run "nix-review pr PRNUMBER" @@ -231,8 +185,7 @@ New packages - New packages are a common type of pull requests. These pull requests - consists in adding a new nix-expression for a package. + New packages are a common type of pull requests. These pull requests consists in adding a new nix-expression for a package. @@ -247,8 +200,7 @@ - 8.has: package (new) and any topic label that fit the - new package. + 8.has: package (new) and any topic label that fit the new package. @@ -280,8 +232,7 @@ - A maintainer must be set. This can be the package submitter or a - community member that accepts to take maintainership of the package. + A maintainer must be set. This can be the package submitter or a community member that accepts to take maintainership of the package. @@ -303,8 +254,7 @@ - The most appropriate function should be used (e.g. packages from GitHub - should use fetchFromGitHub). + The most appropriate function should be used (e.g. packages from GitHub should use fetchFromGitHub). @@ -351,8 +301,7 @@ Module updates - Module updates are submissions changing modules in some ways. These often - contains changes to the options or introduce new options. + Module updates are submissions changing modules in some ways. These often contains changes to the options or introduce new options. @@ -367,8 +316,7 @@ - 8.has: module (update) and any topic label that fit - the module. + 8.has: module (update) and any topic label that fit the module. @@ -380,9 +328,7 @@ - CODEOWNERS - will make GitHub notify users based on the submitted changes, but it can - happen that it misses some of the package maintainers. + CODEOWNERS will make GitHub notify users based on the submitted changes, but it can happen that it misses some of the package maintainers. @@ -399,9 +345,7 @@ - Type should be appropriate (string related types differs in their - merging capabilities, optionSet and - string types are deprecated). + Type should be appropriate (string related types differs in their merging capabilities, optionSet and string types are deprecated). @@ -418,23 +362,19 @@ - mkRenamedOptionModule and - mkAliasOptionModule functions provide way to make - option changes backward compatible. + mkRenamedOptionModule and mkAliasOptionModule functions provide way to make option changes backward compatible. - Ensure that removed options are declared with - mkRemovedOptionModule + Ensure that removed options are declared with mkRemovedOptionModule - Ensure that changes that are not backward compatible are mentioned in - release notes. + Ensure that changes that are not backward compatible are mentioned in release notes. @@ -480,8 +420,7 @@ - 8.has: module (new) and any topic label that fit the - module. + 8.has: module (new) and any topic label that fit the module. @@ -498,9 +437,7 @@ - Type should be appropriate (string related types differs in their - merging capabilities, optionSet and - string types are deprecated). + Type should be appropriate (string related types differs in their merging capabilities, optionSet and string types are deprecated). @@ -522,8 +459,7 @@ - Module documentation should be declared with - meta.doc. + Module documentation should be declared with meta.doc. @@ -535,8 +471,7 @@ - For example, enabling a module should not open firewall ports by - default. + For example, enabling a module should not open firewall ports by default. @@ -573,25 +508,18 @@ - If you consider having enough knowledge and experience in a topic and would - like to be a long-term reviewer for related submissions, please contact the - current reviewers for that topic. They will give you information about the - reviewing process. The main reviewers for a topic can be hard to find as - there is no list, but checking past pull requests to see who reviewed or - git-blaming the code to see who committed to that topic can give some hints. + If you consider having enough knowledge and experience in a topic and would like to be a long-term reviewer for related submissions, please contact the current reviewers for that topic. They will give you information about the reviewing process. The main reviewers for a topic can be hard to find as there is no list, but checking past pull requests to see who reviewed or git-blaming the code to see who committed to that topic can give some hints. - Container system, boot system and library changes are some examples of the - pull requests fitting this category. + Container system, boot system and library changes are some examples of the pull requests fitting this category.
Merging pull requests - It is possible for community members that have enough knowledge and - experience on a special topic to contribute by merging pull requests. + It is possible for community members that have enough knowledge and experience on a special topic to contribute by merging pull requests. @@ -608,12 +536,8 @@ policy. --> - In a case a contributor definitively leaves the Nix community, they should - create an issue or post on - Discourse with - references of packages and modules they maintain so the maintainership can - be taken over by other contributors. + In a case a contributor definitively leaves the Nix community, they should create an issue or post on Discourse with references of packages and modules they maintain so the maintainership can be taken over by other contributors.
diff --git a/doc/stdenv.xml b/doc/stdenv.xml index a4bc2809be05c..5495ce29ce314 100644 --- a/doc/stdenv.xml +++ b/doc/stdenv.xml @@ -3,22 +3,13 @@ xml:id="chap-stdenv"> The Standard Environment - The standard build environment in the Nix Packages collection provides an - environment for building Unix packages that does a lot of common build tasks - automatically. In fact, for Unix packages that use the standard - ./configure; make; make install build interface, you - don’t need to write a build script at all; the standard environment does - everything automatically. If stdenv doesn’t do what you - need automatically, you can easily customise or override the various build - phases. + The standard build environment in the Nix Packages collection provides an environment for building Unix packages that does a lot of common build tasks automatically. In fact, for Unix packages that use the standard ./configure; make; make install build interface, you don’t need to write a build script at all; the standard environment does everything automatically. If stdenv doesn’t do what you need automatically, you can easily customise or override the various build phases.
Using <literal>stdenv</literal> - To build a package with the standard environment, you use the function - stdenv.mkDerivation, instead of the primitive built-in - function derivation, e.g. + To build a package with the standard environment, you use the function stdenv.mkDerivation, instead of the primitive built-in function derivation, e.g. stdenv.mkDerivation { name = "libfoo-1.2.3"; @@ -27,17 +18,7 @@ stdenv.mkDerivation { sha256 = "0x2g1jqygyr5wiwg4ma1nd7w4ydpy82z9gkcv8vh2v8dn3y58v5m"; }; } - (stdenv needs to be in scope, so if you write this in a - separate Nix expression from pkgs/all-packages.nix, you - need to pass it as a function argument.) Specifying a - name and a src is the absolute minimum - Nix requires. For convenience, you can also use pname and - version attributes and mkDerivation - will automatically set name to - "${pname}-${version}" by default. Since - RFC 0035, - this is preferred for packages in Nixpkgs, as it allows us to reuse the - version easily: + (stdenv needs to be in scope, so if you write this in a separate Nix expression from pkgs/all-packages.nix, you need to pass it as a function argument.) Specifying a name and a src is the absolute minimum Nix requires. For convenience, you can also use pname and version attributes and mkDerivation will automatically set name to "${pname}-${version}" by default. Since RFC 0035, this is preferred for packages in Nixpkgs, as it allows us to reuse the version easily: stdenv.mkDerivation rec { pname = "libfoo"; @@ -50,31 +31,18 @@ stdenv.mkDerivation rec { - Many packages have dependencies that are not provided in the standard - environment. It’s usually sufficient to specify those dependencies in the - buildInputs attribute: + Many packages have dependencies that are not provided in the standard environment. It’s usually sufficient to specify those dependencies in the buildInputs attribute: stdenv.mkDerivation { name = "libfoo-1.2.3"; ... buildInputs = [libbar perl ncurses]; } - This attribute ensures that the bin subdirectories of - these packages appear in the PATH environment variable during - the build, that their include subdirectories are - searched by the C compiler, and so on. (See - for details.) + This attribute ensures that the bin subdirectories of these packages appear in the PATH environment variable during the build, that their include subdirectories are searched by the C compiler, and so on. (See for details.) - Often it is necessary to override or modify some aspect of the build. To - make this easier, the standard environment breaks the package build into a - number of phases, all of which can be overridden or - modified individually: unpacking the sources, applying patches, configuring, - building, and installing. (There are some others; see - .) For instance, a package that doesn’t - supply a makefile but instead has to be compiled “manually” could be - handled like this: + Often it is necessary to override or modify some aspect of the build. To make this easier, the standard environment breaks the package build into a number of phases, all of which can be overridden or modified individually: unpacking the sources, applying patches, configuring, building, and installing. (There are some others; see .) For instance, a package that doesn’t supply a makefile but instead has to be compiled “manually” could be handled like this: stdenv.mkDerivation { name = "fnord-4.5"; @@ -87,20 +55,15 @@ stdenv.mkDerivation { cp foo $out/bin ''; } - (Note the use of ''-style string literals, which are very - convenient for large multi-line script fragments because they don’t need - escaping of " and \, and because - indentation is intelligently removed.) + (Note the use of ''-style string literals, which are very convenient for large multi-line script fragments because they don’t need escaping of " and \, and because indentation is intelligently removed.) - There are many other attributes to customise the build. These are listed in - . + There are many other attributes to customise the build. These are listed in . - While the standard environment provides a generic builder, you can still - supply your own build script: + While the standard environment provides a generic builder, you can still supply your own build script: stdenv.mkDerivation { name = "libfoo-1.2.3"; @@ -111,9 +74,7 @@ stdenv.mkDerivation { source $stdenv/setup - to let stdenv set up the environment (e.g., process the - buildInputs). If you want, you can still use - stdenv’s generic builder: + to let stdenv set up the environment (e.g., process the buildInputs). If you want, you can still use stdenv’s generic builder: source $stdenv/setup @@ -179,23 +140,17 @@ genericBuild - gzip, bzip2 and - xz. + gzip, bzip2 and xz. - GNU Make. It has been patched to provide nested output - that can be fed into the nix-log2xml command and - log2html stylesheet to create a structured, readable - output of the build steps performed by Make. + GNU Make. It has been patched to provide nested output that can be fed into the nix-log2xml command and log2html stylesheet to create a structured, readable output of the build steps performed by Make. - Bash. This is the shell used for all builders in the Nix Packages - collection. Not using /bin/sh removes a large source - of portability problems. + Bash. This is the shell used for all builders in the Nix Packages collection. Not using /bin/sh removes a large source of portability problems. @@ -207,108 +162,52 @@ genericBuild - On Linux, stdenv also includes the - patchelf utility. + On Linux, stdenv also includes the patchelf utility.
Specifying dependencies - As described in the Nix manual, almost any *.drv store - path in a derivation's attribute set will induce a dependency on that - derivation. mkDerivation, however, takes a few attributes - intended to, between them, include all the dependencies of a package. This - is done both for structure and consistency, but also so that certain other - setup can take place. For example, certain dependencies need their bin - directories added to the PATH. That is built-in, but other - setup is done via a pluggable mechanism that works in conjunction with these - dependency attributes. See for details. + As described in the Nix manual, almost any *.drv store path in a derivation's attribute set will induce a dependency on that derivation. mkDerivation, however, takes a few attributes intended to, between them, include all the dependencies of a package. This is done both for structure and consistency, but also so that certain other setup can take place. For example, certain dependencies need their bin directories added to the PATH. That is built-in, but other setup is done via a pluggable mechanism that works in conjunction with these dependency attributes. See for details. - Dependencies can be broken down along three axes: their host and target - platforms relative to the new derivation's, and whether they are propagated. - The platform distinctions are motivated by cross compilation; see - for exactly what each platform means. + Dependencies can be broken down along three axes: their host and target platforms relative to the new derivation's, and whether they are propagated. The platform distinctions are motivated by cross compilation; see for exactly what each platform means. - The build platform is ignored because it is a mere implementation detail - of the package satisfying the dependency: As a general programming - principle, dependencies are always specified as - interfaces, not concrete implementation. + The build platform is ignored because it is a mere implementation detail of the package satisfying the dependency: As a general programming principle, dependencies are always specified as interfaces, not concrete implementation. - But even if one is not cross compiling, the platforms imply whether or not - the dependency is needed at run-time or build-time, a concept that makes - perfect sense outside of cross compilation. By default, the - run-time/build-time distinction is just a hint for mental clarity, but with - strictDeps set it is mostly enforced even in the native - case. + But even if one is not cross compiling, the platforms imply whether or not the dependency is needed at run-time or build-time, a concept that makes perfect sense outside of cross compilation. By default, the run-time/build-time distinction is just a hint for mental clarity, but with strictDeps set it is mostly enforced even in the native case. - The extension of PATH with dependencies, alluded to above, - proceeds according to the relative platforms alone. The process is carried - out only for dependencies whose host platform matches the new derivation's - build platform i.e. dependencies which run on the platform where the new - derivation will be built. + The extension of PATH with dependencies, alluded to above, proceeds according to the relative platforms alone. The process is carried out only for dependencies whose host platform matches the new derivation's build platform i.e. dependencies which run on the platform where the new derivation will be built. - Currently, this means for native builds all dependencies are put on the - PATH. But in the future that may not be the case for sake - of matching cross: the platforms would be assumed to be unique for native - and cross builds alike, so only the depsBuild* and - nativeBuildInputs would be added to the - PATH. + Currently, this means for native builds all dependencies are put on the PATH. But in the future that may not be the case for sake of matching cross: the platforms would be assumed to be unique for native and cross builds alike, so only the depsBuild* and nativeBuildInputs would be added to the PATH. - For each dependency dep of those dependencies, - dep/bin, if present, is - added to the PATH environment variable. + For each dependency dep of those dependencies, dep/bin, if present, is added to the PATH environment variable. - The dependency is propagated when it forces some of its other-transitive - (non-immediate) downstream dependencies to also take it on as an immediate - dependency. Nix itself already takes a package's transitive dependencies - into account, but this propagation ensures nixpkgs-specific infrastructure - like setup hooks (mentioned above) also are run as if the propagated - dependency. + The dependency is propagated when it forces some of its other-transitive (non-immediate) downstream dependencies to also take it on as an immediate dependency. Nix itself already takes a package's transitive dependencies into account, but this propagation ensures nixpkgs-specific infrastructure like setup hooks (mentioned above) also are run as if the propagated dependency. - It is important to note that dependencies are not necessarily propagated as - the same sort of dependency that they were before, but rather as the - corresponding sort so that the platform rules still line up. The exact rules - for dependency propagation can be given by assigning to each dependency two - integers based one how its host and target platforms are offset from the - depending derivation's platforms. Those offsets are given below in the - descriptions of each dependency list attribute. Algorithmically, we traverse - propagated inputs, accumulating every propagated dependency's propagated - dependencies and adjusting them to account for the "shift in perspective" - described by the current dependency's platform offsets. This results in sort - a transitive closure of the dependency relation, with the offsets being - approximately summed when two dependency links are combined. We also prune - transitive dependencies whose combined offsets go out-of-bounds, which can - be viewed as a filter over that transitive closure removing dependencies - that are blatantly absurd. + It is important to note that dependencies are not necessarily propagated as the same sort of dependency that they were before, but rather as the corresponding sort so that the platform rules still line up. The exact rules for dependency propagation can be given by assigning to each dependency two integers based one how its host and target platforms are offset from the depending derivation's platforms. Those offsets are given below in the descriptions of each dependency list attribute. Algorithmically, we traverse propagated inputs, accumulating every propagated dependency's propagated dependencies and adjusting them to account for the "shift in perspective" described by the current dependency's platform offsets. This results in sort a transitive closure of the dependency relation, with the offsets being approximately summed when two dependency links are combined. We also prune transitive dependencies whose combined offsets go out-of-bounds, which can be viewed as a filter over that transitive closure removing dependencies that are blatantly absurd. - We can define the process precisely with - Natural - Deduction using the inference rules. This probably seems a bit - obtuse, but so is the bash code that actually implements it! + We can define the process precisely with Natural Deduction using the inference rules. This probably seems a bit obtuse, but so is the bash code that actually implements it! - The findInputs function, currently residing in - pkgs/stdenv/generic/setup.sh, implements the - propagation logic. + The findInputs function, currently residing in pkgs/stdenv/generic/setup.sh, implements the propagation logic. - They're confusing in very different ways so... hopefully if something - doesn't make sense in one presentation, it will in the other! + They're confusing in very different ways so... hopefully if something doesn't make sense in one presentation, it will in the other! let mapOffset(h, t, i) = i + (if i <= 0 then h else t - 1) @@ -335,50 +234,22 @@ propagated-dep(mapOffset(h0, t0, h1), propagated-dep(h, t, A, B) ----------------------------- Propagated dependencies count as dependencies dep(h, t, A, B) - Some explanation of this monstrosity is in order. In the common case, the - target offset of a dependency is the successor to the target offset: - t = h + 1. That means that: + Some explanation of this monstrosity is in order. In the common case, the target offset of a dependency is the successor to the target offset: t = h + 1. That means that: let f(h, t, i) = i + (if i <= 0 then h else t - 1) let f(h, h + 1, i) = i + (if i <= 0 then h else (h + 1) - 1) let f(h, h + 1, i) = i + (if i <= 0 then h else h) let f(h, h + 1, i) = i + h - This is where "sum-like" comes in from above: We can just sum all of the - host offsets to get the host offset of the transitive dependency. The target - offset is the transitive dependency is simply the host offset + 1, just as - it was with the dependencies composed to make this transitive one; it can be - ignored as it doesn't add any new information. + This is where "sum-like" comes in from above: We can just sum all of the host offsets to get the host offset of the transitive dependency. The target offset is the transitive dependency is simply the host offset + 1, just as it was with the dependencies composed to make this transitive one; it can be ignored as it doesn't add any new information. - Because of the bounds checks, the uncommon cases are h = - t and h + 2 = t. In the former case, the - motivation for mapOffset is that since its host and - target platforms are the same, no transitive dependency of it should be able - to "discover" an offset greater than its reduced target offsets. - mapOffset effectively "squashes" all its transitive - dependencies' offsets so that none will ever be greater than the target - offset of the original h = t package. In the other case, - h + 1 is skipped over between the host and target - offsets. Instead of squashing the offsets, we need to "rip" them apart so no - transitive dependencies' offset is that one. + Because of the bounds checks, the uncommon cases are h = t and h + 2 = t. In the former case, the motivation for mapOffset is that since its host and target platforms are the same, no transitive dependency of it should be able to "discover" an offset greater than its reduced target offsets. mapOffset effectively "squashes" all its transitive dependencies' offsets so that none will ever be greater than the target offset of the original h = t package. In the other case, h + 1 is skipped over between the host and target offsets. Instead of squashing the offsets, we need to "rip" them apart so no transitive dependencies' offset is that one. - Overall, the unifying theme here is that propagation shouldn't be - introducing transitive dependencies involving platforms the depending - package is unaware of. [One can imagine the dependending package asking for - dependencies with the platforms it knows about; other platforms it doesn't - know how to ask for. The platform description in that scenario is a kind of - unforagable capability.] The offset bounds checking and definition of - mapOffset together ensure that this is the case. - Discovering a new offset is discovering a new platform, and since those - platforms weren't in the derivation "spec" of the needing package, they - cannot be relevant. From a capability perspective, we can imagine that the - host and target platforms of a package are the capabilities a package - requires, and the depending package must provide the capability to the - dependency. + Overall, the unifying theme here is that propagation shouldn't be introducing transitive dependencies involving platforms the depending package is unaware of. [One can imagine the dependending package asking for dependencies with the platforms it knows about; other platforms it doesn't know how to ask for. The platform description in that scenario is a kind of unforagable capability.] The offset bounds checking and definition of mapOffset together ensure that this is the case. Discovering a new offset is discovering a new platform, and since those platforms weren't in the derivation "spec" of the needing package, they cannot be relevant. From a capability perspective, we can imagine that the host and target platforms of a package are the capabilities a package requires, and the depending package must provide the capability to the dependency. @@ -389,23 +260,10 @@ let f(h, h + 1, i) = i + h - A list of dependencies whose host and target platforms are the new - derivation's build platform. This means a -1 host and - -1 target offset from the new derivation's platforms. - These are programs and libraries used at build time that produce programs - and libraries also used at build time. If the dependency doesn't care - about the target platform (i.e. isn't a compiler or similar tool), put it - in nativeBuildInputs instead. The most common use of - this buildPackages.stdenv.cc, the default C compiler - for this role. That example crops up more than one might think in old - commonly used C libraries. + A list of dependencies whose host and target platforms are the new derivation's build platform. This means a -1 host and -1 target offset from the new derivation's platforms. These are programs and libraries used at build time that produce programs and libraries also used at build time. If the dependency doesn't care about the target platform (i.e. isn't a compiler or similar tool), put it in nativeBuildInputs instead. The most common use of this buildPackages.stdenv.cc, the default C compiler for this role. That example crops up more than one might think in old commonly used C libraries. - Since these packages are able to be run at build-time, they are always - added to the PATH, as described above. But since these - packages are only guaranteed to be able to run then, they shouldn't - persist as run-time dependencies. This isn't currently enforced, but - could be in the future. + Since these packages are able to be run at build-time, they are always added to the PATH, as described above. But since these packages are only guaranteed to be able to run then, they shouldn't persist as run-time dependencies. This isn't currently enforced, but could be in the future. @@ -415,24 +273,10 @@ let f(h, h + 1, i) = i + h - A list of dependencies whose host platform is the new derivation's build - platform, and target platform is the new derivation's host platform. This - means a -1 host offset and 0 target - offset from the new derivation's platforms. These are programs and - libraries used at build-time that, if they are a compiler or similar - tool, produce code to run at run-time—i.e. tools used to build the new - derivation. If the dependency doesn't care about the target platform - (i.e. isn't a compiler or similar tool), put it here, rather than in - depsBuildBuild or depsBuildTarget. - This could be called depsBuildHost but - nativeBuildInputs is used for historical continuity. - - - Since these packages are able to be run at build-time, they are added to - the PATH, as described above. But since these packages are - only guaranteed to be able to run then, they shouldn't persist as - run-time dependencies. This isn't currently enforced, but could be in the - future. + A list of dependencies whose host platform is the new derivation's build platform, and target platform is the new derivation's host platform. This means a -1 host offset and 0 target offset from the new derivation's platforms. These are programs and libraries used at build-time that, if they are a compiler or similar tool, produce code to run at run-time—i.e. tools used to build the new derivation. If the dependency doesn't care about the target platform (i.e. isn't a compiler or similar tool), put it here, rather than in depsBuildBuild or depsBuildTarget. This could be called depsBuildHost but nativeBuildInputs is used for historical continuity. + + + Since these packages are able to be run at build-time, they are added to the PATH, as described above. But since these packages are only guaranteed to be able to run then, they shouldn't persist as run-time dependencies. This isn't currently enforced, but could be in the future. @@ -442,39 +286,13 @@ let f(h, h + 1, i) = i + h - A list of dependencies whose host platform is the new derivation's build - platform, and target platform is the new derivation's target platform. - This means a -1 host offset and 1 - target offset from the new derivation's platforms. These are programs - used at build time that produce code to run with code produced by the - depending package. Most commonly, these are tools used to build the - runtime or standard library that the currently-being-built compiler will - inject into any code it compiles. In many cases, the - currently-being-built-compiler is itself employed for that task, but when - that compiler won't run (i.e. its build and host platform differ) this is - not possible. Other times, the compiler relies on some other tool, like - binutils, that is always built separately so that the dependency is - unconditional. - - - This is a somewhat confusing concept to wrap one’s head around, and for - good reason. As the only dependency type where the platform offsets are - not adjacent integers, it requires thinking of a bootstrapping stage - two away from the current one. It and its use-case - go hand in hand and are both considered poor form: try to not need this - sort of dependency, and try to avoid building standard libraries and - runtimes in the same derivation as the compiler produces code using them. - Instead strive to build those like a normal library, using the - newly-built compiler just as a normal library would. In short, do not use - this attribute unless you are packaging a compiler and are sure it is - needed. - - - Since these packages are able to run at build time, they are added to the - PATH, as described above. But since these packages are - only guaranteed to be able to run then, they shouldn't persist as - run-time dependencies. This isn't currently enforced, but could be in the - future. + A list of dependencies whose host platform is the new derivation's build platform, and target platform is the new derivation's target platform. This means a -1 host offset and 1 target offset from the new derivation's platforms. These are programs used at build time that produce code to run with code produced by the depending package. Most commonly, these are tools used to build the runtime or standard library that the currently-being-built compiler will inject into any code it compiles. In many cases, the currently-being-built-compiler is itself employed for that task, but when that compiler won't run (i.e. its build and host platform differ) this is not possible. Other times, the compiler relies on some other tool, like binutils, that is always built separately so that the dependency is unconditional. + + + This is a somewhat confusing concept to wrap one’s head around, and for good reason. As the only dependency type where the platform offsets are not adjacent integers, it requires thinking of a bootstrapping stage two away from the current one. It and its use-case go hand in hand and are both considered poor form: try to not need this sort of dependency, and try to avoid building standard libraries and runtimes in the same derivation as the compiler produces code using them. Instead strive to build those like a normal library, using the newly-built compiler just as a normal library would. In short, do not use this attribute unless you are packaging a compiler and are sure it is needed. + + + Since these packages are able to run at build time, they are added to the PATH, as described above. But since these packages are only guaranteed to be able to run then, they shouldn't persist as run-time dependencies. This isn't currently enforced, but could be in the future. @@ -484,16 +302,7 @@ let f(h, h + 1, i) = i + h - A list of dependencies whose host and target platforms match the new - derivation's host platform. This means a 0 host offset - and 0 target offset from the new derivation's host - platform. These are packages used at run-time to generate code also used - at run-time. In practice, this would usually be tools used by compilers - for macros or a metaprogramming system, or libraries used by the macros - or metaprogramming code itself. It's always preferable to use a - depsBuildBuild dependency in the derivation being - built over a depsHostHost on the tool doing the - building for this purpose. + A list of dependencies whose host and target platforms match the new derivation's host platform. This means a 0 host offset and 0 target offset from the new derivation's host platform. These are packages used at run-time to generate code also used at run-time. In practice, this would usually be tools used by compilers for macros or a metaprogramming system, or libraries used by the macros or metaprogramming code itself. It's always preferable to use a depsBuildBuild dependency in the derivation being built over a depsHostHost on the tool doing the building for this purpose. @@ -503,21 +312,10 @@ let f(h, h + 1, i) = i + h - A list of dependencies whose host platform and target platform match the - new derivation's. This means a 0 host offset and a - 1 target offset from the new derivation's host - platform. This would be called depsHostTarget but for - historical continuity. If the dependency doesn't care about the target - platform (i.e. isn't a compiler or similar tool), put it here, rather - than in depsBuildBuild. + A list of dependencies whose host platform and target platform match the new derivation's. This means a 0 host offset and a 1 target offset from the new derivation's host platform. This would be called depsHostTarget but for historical continuity. If the dependency doesn't care about the target platform (i.e. isn't a compiler or similar tool), put it here, rather than in depsBuildBuild. - These are often programs and libraries used by the new derivation at - run-time, but that isn't always the case. For - example, the machine code in a statically-linked library is only used at - run-time, but the derivation containing the library is only needed at - build-time. Even in the dynamic case, the library may also be needed at - build-time to appease the linker. + These are often programs and libraries used by the new derivation at run-time, but that isn't always the case. For example, the machine code in a statically-linked library is only used at run-time, but the derivation containing the library is only needed at build-time. Even in the dynamic case, the library may also be needed at build-time to appease the linker. @@ -527,14 +325,7 @@ let f(h, h + 1, i) = i + h - A list of dependencies whose host platform matches the new derivation's - target platform. This means a 1 offset from the new - derivation's platforms. These are packages that run on the target - platform, e.g. the standard library or run-time deps of standard library - that a compiler insists on knowing about. It's poor form in almost all - cases for a package to depend on another from a future stage [future - stage corresponding to positive offset]. Do not use this attribute unless - you are packaging a compiler and are sure it is needed. + A list of dependencies whose host platform matches the new derivation's target platform. This means a 1 offset from the new derivation's platforms. These are packages that run on the target platform, e.g. the standard library or run-time deps of standard library that a compiler insists on knowing about. It's poor form in almost all cases for a package to depend on another from a future stage [future stage corresponding to positive offset]. Do not use this attribute unless you are packaging a compiler and are sure it is needed. @@ -544,9 +335,7 @@ let f(h, h + 1, i) = i + h - The propagated equivalent of depsBuildBuild. This - perhaps never ought to be used, but it is included for consistency [see - below for the others]. + The propagated equivalent of depsBuildBuild. This perhaps never ought to be used, but it is included for consistency [see below for the others]. @@ -556,18 +345,7 @@ let f(h, h + 1, i) = i + h - The propagated equivalent of nativeBuildInputs. This - would be called depsBuildHostPropagated but for - historical continuity. For example, if package Y has - propagatedNativeBuildInputs = [X], and package - Z has buildInputs = [Y], then - package Z will be built as if it included package - X in its nativeBuildInputs. If - instead, package Z has nativeBuildInputs = - [Y], then Z will be built as if it included - X in the depsBuildBuild of package - Z, because of the sum of the two -1 - host offsets. + The propagated equivalent of nativeBuildInputs. This would be called depsBuildHostPropagated but for historical continuity. For example, if package Y has propagatedNativeBuildInputs = [X], and package Z has buildInputs = [Y], then package Z will be built as if it included package X in its nativeBuildInputs. If instead, package Z has nativeBuildInputs = [Y], then Z will be built as if it included X in the depsBuildBuild of package Z, because of the sum of the two -1 host offsets. @@ -577,8 +355,7 @@ let f(h, h + 1, i) = i + h - The propagated equivalent of depsBuildTarget. This is - prefixed for the same reason of alerting potential users. + The propagated equivalent of depsBuildTarget. This is prefixed for the same reason of alerting potential users. @@ -598,9 +375,7 @@ let f(h, h + 1, i) = i + h - The propagated equivalent of buildInputs. This would - be called depsHostTargetPropagated but for historical - continuity. + The propagated equivalent of buildInputs. This would be called depsHostTargetPropagated but for historical continuity. @@ -610,8 +385,7 @@ let f(h, h + 1, i) = i + h - The propagated equivalent of depsTargetTarget. This is - prefixed for the same reason of alerting potential users. + The propagated equivalent of depsTargetTarget. This is prefixed for the same reason of alerting potential users. @@ -628,15 +402,7 @@ let f(h, h + 1, i) = i + h - A natural number indicating how much information to log. If set to 1 or - higher, stdenv will print moderate debugging - information during the build. In particular, the gcc - and ld wrapper scripts will print out the complete - command line passed to the wrapped tools. If set to 6 or higher, the - stdenv setup script will be run with set - -x tracing. If set to 7 or higher, the gcc - and ld wrapper scripts will also be run with - set -x tracing. + A natural number indicating how much information to log. If set to 1 or higher, stdenv will print moderate debugging information during the build. In particular, the gcc and ld wrapper scripts will print out the complete command line passed to the wrapped tools. If set to 6 or higher, the stdenv setup script will be run with set -x tracing. If set to 7 or higher, the gcc and ld wrapper scripts will also be run with set -x tracing. @@ -650,15 +416,10 @@ let f(h, h + 1, i) = i + h - If set to true, stdenv will pass - specific flags to make and other build tools to enable - parallel building with up to build-cores workers. + If set to true, stdenv will pass specific flags to make and other build tools to enable parallel building with up to build-cores workers. - Unless set to false, some build systems with good - support for parallel building including cmake, - meson, and qmake will set it to - true. + Unless set to false, some build systems with good support for parallel building including cmake, meson, and qmake will set it to true. @@ -672,8 +433,7 @@ let f(h, h + 1, i) = i + h - This is an attribute set which can be filled with arbitrary values. For - example: + This is an attribute set which can be filled with arbitrary values. For example: passthru = { foo = "bar"; @@ -685,17 +445,7 @@ passthru = { - Values inside it are not passed to the builder, so you can change them - without triggering a rebuild. However, they can be accessed outside of a - derivation directly, as if they were set inside a derivation itself, e.g. - hello.baz.value1. We don't specify any usage or schema - of passthru - it is meant for values that would be - useful outside the derivation in other parts of a Nix expression (e.g. in - other derivations). An example would be to convey some specific - dependency of your derivation which contains a program with plugins - support. Later, others who make derivations with plugins can use - passed-through dependency to ensure that their plugin would be - binary-compatible with built program. + Values inside it are not passed to the builder, so you can change them without triggering a rebuild. However, they can be accessed outside of a derivation directly, as if they were set inside a derivation itself, e.g. hello.baz.value1. We don't specify any usage or schema of passthru - it is meant for values that would be useful outside the derivation in other parts of a Nix expression (e.g. in other derivations). An example would be to convey some specific dependency of your derivation which contains a program with plugins support. Later, others who make derivations with plugins can use passed-through dependency to ensure that their plugin would be binary-compatible with built program. @@ -705,9 +455,7 @@ passthru = { - A script to be run by maintainers/scripts/update.nix - when the package is matched. It needs to be an executable file, either on - the file system: + A script to be run by maintainers/scripts/update.nix when the package is matched. It needs to be an executable file, either on the file system: passthru.updateScript = ./update.sh; @@ -723,21 +471,16 @@ passthru.updateScript = writeScript "update-zoom-us" '' update-source-version zoom-us "$version" ''; - The attribute can also contain a list, a script followed by arguments to - be passed to it: + The attribute can also contain a list, a script followed by arguments to be passed to it: passthru.updateScript = [ ../../update.sh pname "--requested-release=unstable" ]; - The script will be usually run from the root of the Nixpkgs repository - but you should not rely on that. Also note that the update scripts will - be run in parallel by default; you should avoid running git - commit or any other commands that cannot handle that. + The script will be usually run from the root of the Nixpkgs repository but you should not rely on that. Also note that the update scripts will be run in parallel by default; you should avoid running git commit or any other commands that cannot handle that. - For information about how to run the updates, execute nix-shell - maintainers/scripts/update.nix. + For information about how to run the updates, execute nix-shell maintainers/scripts/update.nix. @@ -747,33 +490,18 @@ passthru.updateScript = [ ../../update.sh pname "--requested-release=unstable" ] Phases - The generic builder has a number of phases. Package - builds are split into phases to make it easier to override specific parts of - the build (e.g., unpacking the sources or installing the binaries). - Furthermore, it allows a nicer presentation of build logs in the Nix build - farm. + The generic builder has a number of phases. Package builds are split into phases to make it easier to override specific parts of the build (e.g., unpacking the sources or installing the binaries). Furthermore, it allows a nicer presentation of build logs in the Nix build farm. - Each phase can be overridden in its entirety either by setting the - environment variable namePhase - to a string containing some shell commands to be executed, or by redefining - the shell function namePhase. - The former is convenient to override a phase from the derivation, while the - latter is convenient from a build script. However, typically one only wants - to add some commands to a phase, e.g. by defining - postInstall or preFixup, as skipping - some of the default actions may have unexpected consequences. The default - script for each phase is defined in the file - pkgs/stdenv/generic/setup.sh. + Each phase can be overridden in its entirety either by setting the environment variable namePhase to a string containing some shell commands to be executed, or by redefining the shell function namePhase. The former is convenient to override a phase from the derivation, while the latter is convenient from a build script. However, typically one only wants to add some commands to a phase, e.g. by defining postInstall or preFixup, as skipping some of the default actions may have unexpected consequences. The default script for each phase is defined in the file pkgs/stdenv/generic/setup.sh.
Controlling phases - There are a number of variables that control what phases are executed and - in what order: + There are a number of variables that control what phases are executed and in what order: Variables affecting phase control @@ -782,19 +510,10 @@ passthru.updateScript = [ ../../update.sh pname "--requested-release=unstable" ] - Specifies the phases. You can change the order in which phases are - executed, or add new phases, by setting this variable. If it’s not - set, the default value is used, which is $prePhases - unpackPhase patchPhase $preConfigurePhases configurePhase - $preBuildPhases buildPhase checkPhase $preInstallPhases installPhase - fixupPhase installCheckPhase $preDistPhases distPhase - $postPhases. + Specifies the phases. You can change the order in which phases are executed, or add new phases, by setting this variable. If it’s not set, the default value is used, which is $prePhases unpackPhase patchPhase $preConfigurePhases configurePhase $preBuildPhases buildPhase checkPhase $preInstallPhases installPhase fixupPhase installCheckPhase $preDistPhases distPhase $postPhases. - Usually, if you just want to add a few phases, it’s more convenient - to set one of the variables below (such as - preInstallPhases), as you then don’t specify all - the normal phases. + Usually, if you just want to add a few phases, it’s more convenient to set one of the variables below (such as preInstallPhases), as you then don’t specify all the normal phases. @@ -876,11 +595,7 @@ passthru.updateScript = [ ../../update.sh pname "--requested-release=unstable" ] The unpack phase - The unpack phase is responsible for unpacking the source code of the - package. The default implementation of unpackPhase - unpacks the source files listed in the src environment - variable to the current directory. It supports the following files by - default: + The unpack phase is responsible for unpacking the source code of the package. The default implementation of unpackPhase unpacks the source files listed in the src environment variable to the current directory. It supports the following files by default: @@ -888,13 +603,7 @@ passthru.updateScript = [ ../../update.sh pname "--requested-release=unstable" ] - These can optionally be compressed using gzip - (.tar.gz, .tgz or - .tar.Z), bzip2 - (.tar.bz2, .tbz2 or - .tbz) or xz - (.tar.xz, .tar.lzma or - .txz). + These can optionally be compressed using gzip (.tar.gz, .tgz or .tar.Z), bzip2 (.tar.bz2, .tbz2 or .tbz) or xz (.tar.xz, .tar.lzma or .txz). @@ -904,9 +613,7 @@ passthru.updateScript = [ ../../update.sh pname "--requested-release=unstable" ] - Zip files are unpacked using unzip. However, - unzip is not in the standard environment, so you - should add it to nativeBuildInputs yourself. + Zip files are unpacked using unzip. However, unzip is not in the standard environment, so you should add it to nativeBuildInputs yourself. @@ -916,16 +623,12 @@ passthru.updateScript = [ ../../update.sh pname "--requested-release=unstable" ] - These are simply copied to the current directory. The hash part of the - file name is stripped, e.g. - /nix/store/1wydxgby13cz...-my-sources would be - copied to my-sources. + These are simply copied to the current directory. The hash part of the file name is stripped, e.g. /nix/store/1wydxgby13cz...-my-sources would be copied to my-sources. - Additional file types can be supported by setting the - unpackCmd variable (see below). + Additional file types can be supported by setting the unpackCmd variable (see below). @@ -938,8 +641,7 @@ passthru.updateScript = [ ../../update.sh pname "--requested-release=unstable" ] - The list of source files or directories to be unpacked or copied. One of - these must be set. + The list of source files or directories to be unpacked or copied. One of these must be set. @@ -949,10 +651,7 @@ passthru.updateScript = [ ../../update.sh pname "--requested-release=unstable" ] - After running unpackPhase, the generic builder - changes the current directory to the directory created by unpacking the - sources. If there are multiple source directories, you should set - sourceRoot to the name of the intended directory. + After running unpackPhase, the generic builder changes the current directory to the directory created by unpacking the sources. If there are multiple source directories, you should set sourceRoot to the name of the intended directory. @@ -962,10 +661,7 @@ passthru.updateScript = [ ../../update.sh pname "--requested-release=unstable" ] - Alternatively to setting sourceRoot, you can set - setSourceRoot to a shell command to be evaluated by - the unpack phase after the sources have been unpacked. This command must - set sourceRoot. + Alternatively to setting sourceRoot, you can set setSourceRoot to a shell command to be evaluated by the unpack phase after the sources have been unpacked. This command must set sourceRoot. @@ -1005,10 +701,7 @@ passthru.updateScript = [ ../../update.sh pname "--requested-release=unstable" ] - If set to 1, the unpacked sources are - not made writable. By default, they are made - writable to prevent problems with read-only sources. For example, copied - store directories would be read-only without this. + If set to 1, the unpacked sources are not made writable. By default, they are made writable to prevent problems with read-only sources. For example, copied store directories would be read-only without this. @@ -1018,9 +711,7 @@ passthru.updateScript = [ ../../update.sh pname "--requested-release=unstable" ] - The unpack phase evaluates the string $unpackCmd for - any unrecognised file. The path to the current source file is contained - in the curSrc variable. + The unpack phase evaluates the string $unpackCmd for any unrecognised file. The path to the current source file is contained in the curSrc variable. @@ -1031,8 +722,7 @@ passthru.updateScript = [ ../../update.sh pname "--requested-release=unstable" ] The patch phase - The patch phase applies the list of patches defined in the - patches variable. + The patch phase applies the list of patches defined in the patches variable. @@ -1043,11 +733,7 @@ passthru.updateScript = [ ../../update.sh pname "--requested-release=unstable" ] - The list of patches. They must be in the format accepted by the - patch command, and may optionally be compressed using - gzip (.gz), - bzip2 (.bz2) or - xz (.xz). + The list of patches. They must be in the format accepted by the patch command, and may optionally be compressed using gzip (.gz), bzip2 (.bz2) or xz (.xz). @@ -1057,9 +743,7 @@ passthru.updateScript = [ ../../update.sh pname "--requested-release=unstable" ] - Flags to be passed to patch. If not set, the argument - is used, which causes the leading directory - component to be stripped from the file names in each patch. + Flags to be passed to patch. If not set, the argument is used, which causes the leading directory component to be stripped from the file names in each patch. @@ -1090,9 +774,7 @@ passthru.updateScript = [ ../../update.sh pname "--requested-release=unstable" ] The configure phase - The configure phase prepares the source tree for building. The default - configurePhase runs ./configure - (typically an Autoconf-generated script) if it exists. + The configure phase prepares the source tree for building. The default configurePhase runs ./configure (typically an Autoconf-generated script) if it exists. @@ -1103,10 +785,7 @@ passthru.updateScript = [ ../../update.sh pname "--requested-release=unstable" ] - The name of the configure script. It defaults to - ./configure if it exists; otherwise, the configure - phase is skipped. This can actually be a command (like perl - ./Configure.pl). + The name of the configure script. It defaults to ./configure if it exists; otherwise, the configure phase is skipped. This can actually be a command (like perl ./Configure.pl). @@ -1116,8 +795,7 @@ passthru.updateScript = [ ../../update.sh pname "--requested-release=unstable" ] - A list of strings passed as additional arguments to the configure - script. + A list of strings passed as additional arguments to the configure script. @@ -1137,9 +815,7 @@ passthru.updateScript = [ ../../update.sh pname "--requested-release=unstable" ] - A shell array containing additional arguments passed to the configure - script. You must use this instead of configureFlags - if the arguments contain spaces. + A shell array containing additional arguments passed to the configure script. You must use this instead of configureFlags if the arguments contain spaces. @@ -1149,8 +825,7 @@ passthru.updateScript = [ ../../update.sh pname "--requested-release=unstable" ] - By default, the flag --prefix=$prefix is added to the - configure flags. If this is undesirable, set this variable to true. + By default, the flag --prefix=$prefix is added to the configure flags. If this is undesirable, set this variable to true. @@ -1160,9 +835,7 @@ passthru.updateScript = [ ../../update.sh pname "--requested-release=unstable" ] - The prefix under which the package must be installed, passed via the - option to the configure script. It defaults to - . + The prefix under which the package must be installed, passed via the option to the configure script. It defaults to . @@ -1172,8 +845,7 @@ passthru.updateScript = [ ../../update.sh pname "--requested-release=unstable" ] - The key to use when specifying the prefix. By default, this is set to - as that is used by the majority of packages. + The key to use when specifying the prefix. By default, this is set to as that is used by the majority of packages. @@ -1183,9 +855,7 @@ passthru.updateScript = [ ../../update.sh pname "--requested-release=unstable" ] - By default, the flag --disable-dependency-tracking is - added to the configure flags to speed up Automake-based builds. If this - is undesirable, set this variable to true. + By default, the flag --disable-dependency-tracking is added to the configure flags to speed up Automake-based builds. If this is undesirable, set this variable to true. @@ -1195,15 +865,10 @@ passthru.updateScript = [ ../../update.sh pname "--requested-release=unstable" ] - By default, the configure phase applies some special hackery to all - files called ltmain.sh before running the configure - script in order to improve the purity of Libtool-based packages + By default, the configure phase applies some special hackery to all files called ltmain.sh before running the configure script in order to improve the purity of Libtool-based packages - It clears the - sys_lib_*search_path - variables in the Libtool script to prevent Libtool from using - libraries in /usr/lib and such. + It clears the sys_lib_*search_path variables in the Libtool script to prevent Libtool from using libraries in /usr/lib and such. . If this is undesirable, set this variable to true. @@ -1216,9 +881,7 @@ passthru.updateScript = [ ../../update.sh pname "--requested-release=unstable" ] - By default, when the configure script has - , the option - is added to the configure flags. + By default, when the configure script has , the option is added to the configure flags. If this is undesirable, set this variable to true. @@ -1231,16 +894,10 @@ passthru.updateScript = [ ../../update.sh pname "--requested-release=unstable" ] - By default, when cross compiling, the configure script has - and passed. - Packages can instead pass [ "build" "host" "target" ] - or a subset to control exactly which platform flags are passed. - Compilers and other tools can use this to also pass the target platform. + By default, when cross compiling, the configure script has and passed. Packages can instead pass [ "build" "host" "target" ] or a subset to control exactly which platform flags are passed. Compilers and other tools can use this to also pass the target platform. - Eventually these will be passed building natively as well, to improve - determinism: build-time guessing, as is done today, is a risk of - impurity. + Eventually these will be passed building natively as well, to improve determinism: build-time guessing, as is done today, is a risk of impurity. @@ -1273,12 +930,7 @@ passthru.updateScript = [ ../../update.sh pname "--requested-release=unstable" ] The build phase - The build phase is responsible for actually building the package (e.g. - compiling it). The default buildPhase simply calls - make if a file named Makefile, - makefile or GNUmakefile exists in - the current directory (or the makefile is explicitly - set); otherwise it does nothing. + The build phase is responsible for actually building the package (e.g. compiling it). The default buildPhase simply calls make if a file named Makefile, makefile or GNUmakefile exists in the current directory (or the makefile is explicitly set); otherwise it does nothing. @@ -1309,17 +961,13 @@ passthru.updateScript = [ ../../update.sh pname "--requested-release=unstable" ] - A list of strings passed as additional flags to make. - These flags are also used by the default install and check phase. For - setting make flags specific to the build phase, use - buildFlags (see below). + A list of strings passed as additional flags to make. These flags are also used by the default install and check phase. For setting make flags specific to the build phase, use buildFlags (see below). makeFlags = [ "PREFIX=$(out)" ]; - The flags are quoted in bash, but environment variables can be - specified by using the make syntax. + The flags are quoted in bash, but environment variables can be specified by using the make syntax. @@ -1331,18 +979,13 @@ makeFlags = [ "PREFIX=$(out)" ]; - A shell array containing additional arguments passed to - make. You must use this instead of - makeFlags if the arguments contain spaces, e.g. + A shell array containing additional arguments passed to make. You must use this instead of makeFlags if the arguments contain spaces, e.g. preBuild = '' makeFlagsArray+=(CFLAGS="-O0 -g" LDFLAGS="-lfoo -lbar") ''; - Note that shell arrays cannot be passed through environment variables, - so you cannot set makeFlagsArray in a derivation - attribute (because those are passed through environment variables): you - have to define them in shell code. + Note that shell arrays cannot be passed through environment variables, so you cannot set makeFlagsArray in a derivation attribute (because those are passed through environment variables): you have to define them in shell code. @@ -1352,9 +995,7 @@ preBuild = '' - A list of strings passed as additional flags to make. - Like makeFlags and makeFlagsArray, - but only used by the build phase. + A list of strings passed as additional flags to make. Like makeFlags and makeFlagsArray, but only used by the build phase. @@ -1381,14 +1022,11 @@ preBuild = '' - You can set flags for make through the - makeFlags variable. + You can set flags for make through the makeFlags variable. - Before and after running make, the hooks - preBuild and postBuild are called, - respectively. + Before and after running make, the hooks preBuild and postBuild are called, respectively.
@@ -1396,10 +1034,7 @@ preBuild = '' The check phase - The check phase checks whether the package was built correctly by running - its test suite. The default checkPhase calls - make check, but only if the doCheck - variable is enabled. + The check phase checks whether the package was built correctly by running its test suite. The default checkPhase calls make check, but only if the doCheck variable is enabled. @@ -1410,14 +1045,9 @@ preBuild = '' - Controls whether the check phase is executed. By default it is skipped, - but if doCheck is set to true, the check phase is - usually executed. Thus you should set + Controls whether the check phase is executed. By default it is skipped, but if doCheck is set to true, the check phase is usually executed. Thus you should set doCheck = true; - in the derivation to enable checks. The exception is cross compilation. - Cross compiled builds never run tests, no matter how - doCheck is set, as the newly-built program won't run - on the platform used to build it. + in the derivation to enable checks. The exception is cross compilation. Cross compiled builds never run tests, no matter how doCheck is set, as the newly-built program won't run on the platform used to build it. @@ -1437,8 +1067,7 @@ preBuild = '' - The make target that runs the tests. Defaults to - check. + The make target that runs the tests. Defaults to check. @@ -1448,9 +1077,7 @@ preBuild = '' - A list of strings passed as additional flags to make. - Like makeFlags and makeFlagsArray, - but only used by the check phase. + A list of strings passed as additional flags to make. Like makeFlags and makeFlagsArray, but only used by the check phase. @@ -1460,9 +1087,7 @@ preBuild = '' - A list of dependencies used by the phase. This gets included in - nativeBuildInputs when doCheck is - set. + A list of dependencies used by the phase. This gets included in nativeBuildInputs when doCheck is set. @@ -1493,10 +1118,7 @@ preBuild = '' The install phase - The install phase is responsible for installing the package in the Nix - store under out. The default - installPhase creates the directory - $out and calls make install. + The install phase is responsible for installing the package in the Nix store under out. The default installPhase creates the directory $out and calls make install. @@ -1517,8 +1139,7 @@ preBuild = '' - The make targets that perform the installation. Defaults to - install. Example: + The make targets that perform the installation. Defaults to install. Example: installTargets = "install-bin install-doc"; @@ -1530,9 +1151,7 @@ installTargets = "install-bin install-doc"; - A list of strings passed as additional flags to make. - Like makeFlags and makeFlagsArray, - but only used by the install phase. + A list of strings passed as additional flags to make. Like makeFlags and makeFlagsArray, but only used by the install phase. @@ -1563,15 +1182,11 @@ installTargets = "install-bin install-doc"; The fixup phase - The fixup phase performs some (Nix-specific) post-processing actions on the - files installed under $out by the install phase. The - default fixupPhase does the following: + The fixup phase performs some (Nix-specific) post-processing actions on the files installed under $out by the install phase. The default fixupPhase does the following: - It moves the man/, doc/ and - info/ subdirectories of $out to - share/. + It moves the man/, doc/ and info/ subdirectories of $out to share/. @@ -1581,19 +1196,12 @@ installTargets = "install-bin install-doc"; - On Linux, it applies the patchelf command to ELF - executables and libraries to remove unused directories from the - RPATH in order to prevent unnecessary runtime - dependencies. + On Linux, it applies the patchelf command to ELF executables and libraries to remove unused directories from the RPATH in order to prevent unnecessary runtime dependencies. - It rewrites the interpreter paths of shell scripts to paths found in - PATH. E.g., /usr/bin/perl will be - rewritten to - /nix/store/some-perl/bin/perl - found in PATH. + It rewrites the interpreter paths of shell scripts to paths found in PATH. E.g., /usr/bin/perl will be rewritten to /nix/store/some-perl/bin/perl found in PATH. @@ -1617,8 +1225,7 @@ installTargets = "install-bin install-doc"; - If set, libraries and executables are not stripped. By default, they - are. + If set, libraries and executables are not stripped. By default, they are. @@ -1628,10 +1235,7 @@ installTargets = "install-bin install-doc"; - Like dontStrip, but only affects the - strip command targetting the package's host platform. - Useful when supporting cross compilation, but otherwise feel free to - ignore. + Like dontStrip, but only affects the strip command targetting the package's host platform. Useful when supporting cross compilation, but otherwise feel free to ignore. @@ -1641,10 +1245,7 @@ installTargets = "install-bin install-doc"; - Like dontStrip, but only affects the - strip command targetting the packages' target - platform. Useful when supporting cross compilation, but otherwise feel - free to ignore. + Like dontStrip, but only affects the strip command targetting the packages' target platform. Useful when supporting cross compilation, but otherwise feel free to ignore. @@ -1654,8 +1255,7 @@ installTargets = "install-bin install-doc"; - If set, files in $out/sbin are not moved to - $out/bin. By default, they are. + If set, files in $out/sbin are not moved to $out/bin. By default, they are. @@ -1665,10 +1265,7 @@ installTargets = "install-bin install-doc"; - List of directories to search for libraries and executables from which - all symbols should be stripped. By default, it’s - empty. Stripping all symbols is risky, since it may remove not just - debug symbols but also ELF information necessary for normal execution. + List of directories to search for libraries and executables from which all symbols should be stripped. By default, it’s empty. Stripping all symbols is risky, since it may remove not just debug symbols but also ELF information necessary for normal execution. @@ -1678,9 +1275,7 @@ installTargets = "install-bin install-doc"; - Flags passed to the strip command applied to the - files in the directories listed in stripAllList. - Defaults to (i.e. ). + Flags passed to the strip command applied to the files in the directories listed in stripAllList. Defaults to (i.e. ). @@ -1690,9 +1285,7 @@ installTargets = "install-bin install-doc"; - List of directories to search for libraries and executables from which - only debugging-related symbols should be stripped. It defaults to - lib bin sbin. + List of directories to search for libraries and executables from which only debugging-related symbols should be stripped. It defaults to lib bin sbin. @@ -1702,9 +1295,7 @@ installTargets = "install-bin install-doc"; - Flags passed to the strip command applied to the - files in the directories listed in stripDebugList. - Defaults to (i.e. ). + Flags passed to the strip command applied to the files in the directories listed in stripDebugList. Defaults to (i.e. ). @@ -1714,8 +1305,7 @@ installTargets = "install-bin install-doc"; - If set, the patchelf command is not used to remove - unnecessary RPATH entries. Only applies to Linux. + If set, the patchelf command is not used to remove unnecessary RPATH entries. Only applies to Linux. @@ -1725,8 +1315,7 @@ installTargets = "install-bin install-doc"; - If set, scripts starting with #! do not have their - interpreter paths rewritten to paths in the Nix store. + If set, scripts starting with #! do not have their interpreter paths rewritten to paths in the Nix store. @@ -1736,9 +1325,7 @@ installTargets = "install-bin install-doc"; - If set, libtool .la files associated with shared - libraries won't have their dependency_libs field - cleared. + If set, libtool .la files associated with shared libraries won't have their dependency_libs field cleared. @@ -1748,9 +1335,7 @@ installTargets = "install-bin install-doc"; - The list of directories that must be moved from - $out to $out/share. Defaults - to man doc info. + The list of directories that must be moved from $out to $out/share. Defaults to man doc info. @@ -1760,11 +1345,7 @@ installTargets = "install-bin install-doc"; - A package can export a setup - hook by setting this variable. The setup hook, if defined, is - copied to $out/nix-support/setup-hook. Environment - variables are then substituted in it using - setup hook by setting this variable. The setup hook, if defined, is copied to $out/nix-support/setup-hook. Environment variables are then substituted in it using substituteAll. @@ -1795,25 +1376,14 @@ installTargets = "install-bin install-doc"; - If set to true, the standard environment will enable - debug information in C/C++ builds. After installation, the debug - information will be separated from the executables and stored in the - output named debug. (This output is enabled - automatically; you don’t need to set the outputs - attribute explicitly.) To be precise, the debug information is stored in - debug/lib/debug/.build-id/XX/YYYY…, - where XXYYYY… is the build - ID of the binary — a SHA-1 hash of the contents of the - binary. Debuggers like GDB use the build ID to look up the separated - debug information. + If set to true, the standard environment will enable debug information in C/C++ builds. After installation, the debug information will be separated from the executables and stored in the output named debug. (This output is enabled automatically; you don’t need to set the outputs attribute explicitly.) To be precise, the debug information is stored in debug/lib/debug/.build-id/XX/YYYY…, where XXYYYY… is the build ID of the binary — a SHA-1 hash of the contents of the binary. Debuggers like GDB use the build ID to look up the separated debug information. For example, with GDB, you can add set debug-file-directory ~/.nix-profile/lib/debug - to ~/.gdbinit. GDB will then be able to find debug - information installed via nix-env -i. + to ~/.gdbinit. GDB will then be able to find debug information installed via nix-env -i. @@ -1824,10 +1394,7 @@ set debug-file-directory ~/.nix-profile/lib/debug The installCheck phase - The installCheck phase checks whether the package was installed correctly - by running its test suite against the installed directories. The default - installCheck calls make - installcheck. + The installCheck phase checks whether the package was installed correctly by running its test suite against the installed directories. The default installCheck calls make installcheck. @@ -1838,14 +1405,9 @@ set debug-file-directory ~/.nix-profile/lib/debug - Controls whether the installCheck phase is executed. By default it is - skipped, but if doInstallCheck is set to true, the - installCheck phase is usually executed. Thus you should set + Controls whether the installCheck phase is executed. By default it is skipped, but if doInstallCheck is set to true, the installCheck phase is usually executed. Thus you should set doInstallCheck = true; - in the derivation to enable install checks. The exception is cross - compilation. Cross compiled builds never run tests, no matter how - doInstallCheck is set, as the newly-built program - won't run on the platform used to build it. + in the derivation to enable install checks. The exception is cross compilation. Cross compiled builds never run tests, no matter how doInstallCheck is set, as the newly-built program won't run on the platform used to build it. @@ -1855,8 +1417,7 @@ set debug-file-directory ~/.nix-profile/lib/debug - The make target that runs the install tests. Defaults to - installcheck. + The make target that runs the install tests. Defaults to installcheck. @@ -1866,9 +1427,7 @@ set debug-file-directory ~/.nix-profile/lib/debug - A list of strings passed as additional flags to make. - Like makeFlags and makeFlagsArray, - but only used by the installCheck phase. + A list of strings passed as additional flags to make. Like makeFlags and makeFlagsArray, but only used by the installCheck phase. @@ -1878,9 +1437,7 @@ set debug-file-directory ~/.nix-profile/lib/debug - A list of dependencies used by the phase. This gets included in - nativeBuildInputs when - doInstallCheck is set. + A list of dependencies used by the phase. This gets included in nativeBuildInputs when doInstallCheck is set. @@ -1911,11 +1468,7 @@ set debug-file-directory ~/.nix-profile/lib/debug The distribution phase - The distribution phase is intended to produce a source distribution of the - package. The default distPhase first calls - make dist, then it copies the resulting source tarballs - to $out/tarballs/. This phase is only executed if the - attribute doDist is set. + The distribution phase is intended to produce a source distribution of the package. The default distPhase first calls make dist, then it copies the resulting source tarballs to $out/tarballs/. This phase is only executed if the attribute doDist is set. @@ -1926,8 +1479,7 @@ set debug-file-directory ~/.nix-profile/lib/debug - The make target that produces the distribution. Defaults to - dist. + The make target that produces the distribution. Defaults to dist. @@ -1947,9 +1499,7 @@ set debug-file-directory ~/.nix-profile/lib/debug - The names of the source distribution files to be copied to - $out/tarballs/. It can contain shell wildcards. The - default is *.tar.gz. + The names of the source distribution files to be copied to $out/tarballs/. It can contain shell wildcards. The default is *.tar.gz. @@ -2000,8 +1550,7 @@ set debug-file-directory ~/.nix-profile/lib/debug - Constructs a wrapper for a program with various possible arguments. For - example: + Constructs a wrapper for a program with various possible arguments. For example: # adds `FOOBAR=baz` to `$out/bin/foo`’s environment makeWrapper $out/bin/foo $wrapperfile --set FOOBAR baz @@ -2011,12 +1560,10 @@ makeWrapper $out/bin/foo $wrapperfile --set FOOBAR baz # (via string replacements or in `configurePhase`). makeWrapper $out/bin/foo $wrapperfile --prefix PATH : ${lib.makeBinPath [ hello git ]} - There’s many more kinds of arguments, they are documented in - nixpkgs/pkgs/build-support/setup-hooks/make-wrapper.sh. + There’s many more kinds of arguments, they are documented in nixpkgs/pkgs/build-support/setup-hooks/make-wrapper.sh. - wrapProgram is a convenience function you probably - want to use most of the time. + wrapProgram is a convenience function you probably want to use most of the time. @@ -2026,10 +1573,7 @@ makeWrapper $out/bin/foo $wrapperfile --prefix PATH : ${lib.makeBinPath [ hello - Performs string substitution on the contents of - infile, writing the result to - outfile. The substitutions in - subs are of the following form: + Performs string substitution on the contents of infile, writing the result to outfile. The substitutions in subs are of the following form: @@ -2037,8 +1581,7 @@ makeWrapper $out/bin/foo $wrapperfile --prefix PATH : ${lib.makeBinPath [ hello - Replace every occurrence of the string s1 - by s2. + Replace every occurrence of the string s1 by s2. @@ -2048,13 +1591,7 @@ makeWrapper $out/bin/foo $wrapperfile --prefix PATH : ${lib.makeBinPath [ hello - Replace every occurrence of - @varName@ by the - contents of the environment variable - varName. This is useful for generating - files from templates, using - @...@ in the template - as placeholders. + Replace every occurrence of @varName@ by the contents of the environment variable varName. This is useful for generating files from templates, using @...@ in the template as placeholders. @@ -2064,9 +1601,7 @@ makeWrapper $out/bin/foo $wrapperfile --prefix PATH : ${lib.makeBinPath [ hello - Replace every occurrence of - @varName@ by the string - s. + Replace every occurrence of @varName@ by the string s. @@ -2082,14 +1617,8 @@ substitute ./foo.in ./foo.out \ - substitute is implemented using the - replace - command. Unlike with the sed command, you don’t have - to worry about escaping special characters. It supports performing - substitutions on binary files (such as executables), though there - you’ll probably want to make sure that the replacement string is as - long as the replaced string. + substitute is implemented using the replace command. Unlike with the sed command, you don’t have to worry about escaping special characters. It supports performing substitutions on binary files (such as executables), though there you’ll probably want to make sure that the replacement string is as long as the replaced string. @@ -2099,8 +1628,7 @@ substitute ./foo.in ./foo.out \ - Like substitute, but performs the substitutions in - place on the file file. + Like substitute, but performs the substitutions in place on the file file. @@ -2110,22 +1638,13 @@ substitute ./foo.in ./foo.out \ - Replaces every occurrence of - @varName@, where - varName is any environment variable, in - infile, writing the result to - outfile. For instance, if - infile has the contents + Replaces every occurrence of @varName@, where varName is any environment variable, in infile, writing the result to outfile. For instance, if infile has the contents #! @bash@/bin/sh PATH=@coreutils@/bin echo @foo@ - and the environment contains - bash=/nix/store/bmwp0q28cf21...-bash-3.2-p39 and - coreutils=/nix/store/68afga4khv0w...-coreutils-6.12, - but does not contain the variable foo, then the output - will be + and the environment contains bash=/nix/store/bmwp0q28cf21...-bash-3.2-p39 and coreutils=/nix/store/68afga4khv0w...-coreutils-6.12, but does not contain the variable foo, then the output will be #! /nix/store/bmwp0q28cf21...-bash-3.2-p39/bin/sh PATH=/nix/store/68afga4khv0w...-coreutils-6.12/bin @@ -2134,13 +1653,7 @@ echo @foo@ That is, no substitution is performed for undefined variables. - Environment variables that start with an uppercase letter or an - underscore are filtered out, to prevent global variables (like - HOME) or private variables (like - __ETC_PROFILE_DONE) from accidentally getting - substituted. The variables also have to be valid bash “names”, as - defined in the bash manpage (alphanumeric or _, must - not start with a number). + Environment variables that start with an uppercase letter or an underscore are filtered out, to prevent global variables (like HOME) or private variables (like __ETC_PROFILE_DONE) from accidentally getting substituted. The variables also have to be valid bash “names”, as defined in the bash manpage (alphanumeric or _, must not start with a number). @@ -2150,8 +1663,7 @@ echo @foo@ - Like substituteAll, but performs the substitutions - in place on the file file. + Like substituteAll, but performs the substitutions in place on the file file. @@ -2161,14 +1673,12 @@ echo @foo@ - Strips the directory and hash part of a store path, outputting the name - part to stdout. For example: + Strips the directory and hash part of a store path, outputting the name part to stdout. For example: # prints coreutils-8.24 stripHash "/nix/store/9s9r019176g7cvn2nvcw41gsp862y6b4-coreutils-8.24" - If you wish to store the result in another variable, then the following - idiom may be useful: + If you wish to store the result in another variable, then the following idiom may be useful: name="/nix/store/9s9r019176g7cvn2nvcw41gsp862y6b4-coreutils-8.24" someVar=$(stripHash $name) @@ -2182,13 +1692,10 @@ someVar=$(stripHash $name) - Convenience function for makeWrapper that - automatically creates a sane wrapper file It takes all the same arguments - as makeWrapper, except for --argv0. + Convenience function for makeWrapper that automatically creates a sane wrapper file It takes all the same arguments as makeWrapper, except for --argv0. - It cannot be applied multiple times, since it will overwrite the wrapper - file. + It cannot be applied multiple times, since it will overwrite the wrapper file. @@ -2198,85 +1705,34 @@ someVar=$(stripHash $name) Package setup hooks - Nix itself considers a build-time dependency as merely something that should - previously be built and accessible at build time—packages themselves are - on their own to perform any additional setup. In most cases, that is fine, - and the downstream derivation can deal with its own dependencies. But for a - few common tasks, that would result in almost every package doing the same - sort of setup work—depending not on the package itself, but entirely on - which dependencies were used. + Nix itself considers a build-time dependency as merely something that should previously be built and accessible at build time—packages themselves are on their own to perform any additional setup. In most cases, that is fine, and the downstream derivation can deal with its own dependencies. But for a few common tasks, that would result in almost every package doing the same sort of setup work—depending not on the package itself, but entirely on which dependencies were used. - In order to alleviate this burden, the setup hook - mechanism was written, where any package can include a shell script that [by - convention rather than enforcement by Nix], any downstream - reverse-dependency will source as part of its build process. That allows the - downstream dependency to merely specify its dependencies, and lets those - dependencies effectively initialize themselves. No boilerplate mirroring the - list of dependencies is needed. + In order to alleviate this burden, the setup hook mechanism was written, where any package can include a shell script that [by convention rather than enforcement by Nix], any downstream reverse-dependency will source as part of its build process. That allows the downstream dependency to merely specify its dependencies, and lets those dependencies effectively initialize themselves. No boilerplate mirroring the list of dependencies is needed. - The setup hook mechanism is a bit of a sledgehammer though: a powerful - feature with a broad and indiscriminate area of effect. The combination of - its power and implicit use may be expedient, but isn't without costs. Nix - itself is unchanged, but the spirit of added dependencies being effect-free - is violated even if the letter isn't. For example, if a derivation path is - mentioned more than once, Nix itself doesn't care and simply makes sure the - dependency derivation is already built just the same—depending is just - needing something to exist, and needing is idempotent. However, a dependency - specified twice will have its setup hook run twice, and that could easily - change the build environment (though a well-written setup hook will - therefore strive to be idempotent so this is in fact not observable). More - broadly, setup hooks are anti-modular in that multiple dependencies, whether - the same or different, should not interfere and yet their setup hooks may - well do so. + The setup hook mechanism is a bit of a sledgehammer though: a powerful feature with a broad and indiscriminate area of effect. The combination of its power and implicit use may be expedient, but isn't without costs. Nix itself is unchanged, but the spirit of added dependencies being effect-free is violated even if the letter isn't. For example, if a derivation path is mentioned more than once, Nix itself doesn't care and simply makes sure the dependency derivation is already built just the same—depending is just needing something to exist, and needing is idempotent. However, a dependency specified twice will have its setup hook run twice, and that could easily change the build environment (though a well-written setup hook will therefore strive to be idempotent so this is in fact not observable). More broadly, setup hooks are anti-modular in that multiple dependencies, whether the same or different, should not interfere and yet their setup hooks may well do so. - The most typical use of the setup hook is actually to add other hooks which - are then run (i.e. after all the setup hooks) on each dependency. For - example, the C compiler wrapper's setup hook feeds itself flags for each - dependency that contains relevant libraries and headers. This is done by - defining a bash function, and appending its name to one of - envBuildBuildHooks`, envBuildHostHooks`, - envBuildTargetHooks`, envHostHostHooks`, - envHostTargetHooks`, or envTargetTargetHooks`. - These 6 bash variables correspond to the 6 sorts of dependencies by platform - (there's 12 total but we ignore the propagated/non-propagated axis). + The most typical use of the setup hook is actually to add other hooks which are then run (i.e. after all the setup hooks) on each dependency. For example, the C compiler wrapper's setup hook feeds itself flags for each dependency that contains relevant libraries and headers. This is done by defining a bash function, and appending its name to one of envBuildBuildHooks`, envBuildHostHooks`, envBuildTargetHooks`, envHostHostHooks`, envHostTargetHooks`, or envTargetTargetHooks`. These 6 bash variables correspond to the 6 sorts of dependencies by platform (there's 12 total but we ignore the propagated/non-propagated axis). - Packages adding a hook should not hard code a specific hook, but rather - choose a variable relative to how they are included. - Returning to the C compiler wrapper example, if the wrapper itself is an - n dependency, then it only wants to accumulate flags from - n + 1 dependencies, as only those ones match the - compiler's target platform. The hostOffset variable is - defined with the current dependency's host offset - targetOffset with its target offset, before its setup hook is - sourced. Additionally, since most environment hooks don't care about the - target platform, that means the setup hook can append to the right bash - array by doing something like + Packages adding a hook should not hard code a specific hook, but rather choose a variable relative to how they are included. Returning to the C compiler wrapper example, if the wrapper itself is an n dependency, then it only wants to accumulate flags from n + 1 dependencies, as only those ones match the compiler's target platform. The hostOffset variable is defined with the current dependency's host offset targetOffset with its target offset, before its setup hook is sourced. Additionally, since most environment hooks don't care about the target platform, that means the setup hook can append to the right bash array by doing something like addEnvHooks "$hostOffset" myBashFunction - The existence of setups hooks has long been documented - and packages inside Nixpkgs are free to use this mechanism. Other packages, - however, should not rely on these mechanisms not changing between Nixpkgs - versions. Because of the existing issues with this system, there's little - benefit from mandating it be stable for any period of time. + The existence of setups hooks has long been documented and packages inside Nixpkgs are free to use this mechanism. Other packages, however, should not rely on these mechanisms not changing between Nixpkgs versions. Because of the existing issues with this system, there's little benefit from mandating it be stable for any period of time. - First, let’s cover some setup hooks that are part of Nixpkgs default - stdenv. This means that they are run for every package built using - stdenv.mkDerivation. Some of these are platform - specific, so they may run on Linux but not Darwin or vice-versa. + First, let’s cover some setup hooks that are part of Nixpkgs default stdenv. This means that they are run for every package built using stdenv.mkDerivation. Some of these are platform specific, so they may run on Linux but not Darwin or vice-versa. @@ -2284,10 +1740,7 @@ addEnvHooks "$hostOffset" myBashFunction - This setup hook moves any installed documentation to the - /share subdirectory directory. This includes the man, - doc and info directories. This is needed for legacy programs that do not - know how to use the share subdirectory. + This setup hook moves any installed documentation to the /share subdirectory directory. This includes the man, doc and info directories. This is needed for legacy programs that do not know how to use the share subdirectory. @@ -2297,9 +1750,7 @@ addEnvHooks "$hostOffset" myBashFunction - This setup hook compresses any man pages that have been installed. The - compression is done using the gzip program. This helps to reduce the - installed size of packages. + This setup hook compresses any man pages that have been installed. The compression is done using the gzip program. This helps to reduce the installed size of packages. @@ -2309,9 +1760,7 @@ addEnvHooks "$hostOffset" myBashFunction - This runs the strip command on installed binaries and libraries. This - removes unnecessary information like debug symbols when they are not - needed. This also helps to reduce the installed size of packages. + This runs the strip command on installed binaries and libraries. This removes unnecessary information like debug symbols when they are not needed. This also helps to reduce the installed size of packages. @@ -2321,12 +1770,7 @@ addEnvHooks "$hostOffset" myBashFunction - This setup hook patches installed scripts to use the full path to the - shebang interpreter. A shebang interpreter is the first commented line - of a script telling the operating system which program will run the - script (e.g #!/bin/bash). In Nix, we want an exact - path to that interpreter to be used. This often replaces - /bin/sh with a path in the Nix store. + This setup hook patches installed scripts to use the full path to the shebang interpreter. A shebang interpreter is the first commented line of a script telling the operating system which program will run the script (e.g #!/bin/bash). In Nix, we want an exact path to that interpreter to be used. This often replaces /bin/sh with a path in the Nix store. @@ -2336,10 +1780,7 @@ addEnvHooks "$hostOffset" myBashFunction - This verifies that no references are left from the install binaries to - the directory used to build those binaries. This ensures that the - binaries do not need things outside the Nix store. This is currently - supported in Linux only. + This verifies that no references are left from the install binaries to the directory used to build those binaries. This ensures that the binaries do not need things outside the Nix store. This is currently supported in Linux only. @@ -2349,12 +1790,7 @@ addEnvHooks "$hostOffset" myBashFunction - This setup hook adds configure flags that tell packages to install files - into any one of the proper outputs listed in outputs. - This behavior can be turned off by setting - setOutputFlags to false in the derivation - environment. See for more - information. + This setup hook adds configure flags that tell packages to install files into any one of the proper outputs listed in outputs. This behavior can be turned off by setting setOutputFlags to false in the derivation environment. See for more information. @@ -2364,9 +1800,7 @@ addEnvHooks "$hostOffset" myBashFunction - This setup hook moves any binaries installed in the sbin subdirectory - into bin. In addition, a link is provided from sbin to bin for - compatibility. + This setup hook moves any binaries installed in the sbin subdirectory into bin. In addition, a link is provided from sbin to bin for compatibility. @@ -2376,9 +1810,7 @@ addEnvHooks "$hostOffset" myBashFunction - This setup hook moves any libraries installed in the lib64 subdirectory - into lib. In addition, a link is provided from lib64 to lib for - compatibility. + This setup hook moves any libraries installed in the lib64 subdirectory into lib. In addition, a link is provided from lib64 to lib for compatibility. @@ -2388,8 +1820,7 @@ addEnvHooks "$hostOffset" myBashFunction - This sets SOURCE_DATE_EPOCH to the modification time - of the most recent file. + This sets SOURCE_DATE_EPOCH to the modification time of the most recent file. @@ -2399,70 +1830,22 @@ addEnvHooks "$hostOffset" myBashFunction - The Bintools Wrapper wraps the binary utilities for a bunch of - miscellaneous purposes. These are GNU Binutils when targetting Linux, - and a mix of cctools and GNU binutils for Darwin. [The "Bintools" name - is supposed to be a compromise between "Binutils" and "cctools" not - denoting any specific implementation.] Specifically, the underlying - bintools package, and a C standard library (glibc or Darwin's libSystem, - just for the dynamic loader) are all fed in, and dependency finding, - hardening (see below), and purity checks for each are handled by the - Bintools Wrapper. Packages typically depend on CC Wrapper, which in turn - (at run time) depends on the Bintools Wrapper. - - - The Bintools Wrapper was only just recently split off from CC Wrapper, - so the division of labor is still being worked out. For example, it - shouldn't care about the C standard library, but just take a derivation - with the dynamic loader (which happens to be the glibc on linux). - Dependency finding however is a task both wrappers will continue to need - to share, and probably the most important to understand. It is currently - accomplished by collecting directories of host-platform dependencies - (i.e. buildInputs and - nativeBuildInputs) in environment variables. The - Bintools Wrapper's setup hook causes any lib and - lib64 subdirectories to be added to - NIX_LDFLAGS. Since the CC Wrapper and the Bintools - Wrapper use the same strategy, most of the Bintools Wrapper code is - sparsely commented and refers to the CC Wrapper. But the CC Wrapper's - code, by contrast, has quite lengthy comments. The Bintools Wrapper - merely cites those, rather than repeating them, to avoid falling out of - sync. - - - A final task of the setup hook is defining a number of standard - environment variables to tell build systems which executables fulfill - which purpose. They are defined to just be the base name of the tools, - under the assumption that the Bintools Wrapper's binaries will be on the - path. Firstly, this helps poorly-written packages, e.g. ones that look - for just gcc when CC isn't defined yet - clang is to be used. Secondly, this helps packages - not get confused when cross-compiling, in which case multiple Bintools - Wrappers may simultaneously be in use. + The Bintools Wrapper wraps the binary utilities for a bunch of miscellaneous purposes. These are GNU Binutils when targetting Linux, and a mix of cctools and GNU binutils for Darwin. [The "Bintools" name is supposed to be a compromise between "Binutils" and "cctools" not denoting any specific implementation.] Specifically, the underlying bintools package, and a C standard library (glibc or Darwin's libSystem, just for the dynamic loader) are all fed in, and dependency finding, hardening (see below), and purity checks for each are handled by the Bintools Wrapper. Packages typically depend on CC Wrapper, which in turn (at run time) depends on the Bintools Wrapper. + + + The Bintools Wrapper was only just recently split off from CC Wrapper, so the division of labor is still being worked out. For example, it shouldn't care about the C standard library, but just take a derivation with the dynamic loader (which happens to be the glibc on linux). Dependency finding however is a task both wrappers will continue to need to share, and probably the most important to understand. It is currently accomplished by collecting directories of host-platform dependencies (i.e. buildInputs and nativeBuildInputs) in environment variables. The Bintools Wrapper's setup hook causes any lib and lib64 subdirectories to be added to NIX_LDFLAGS. Since the CC Wrapper and the Bintools Wrapper use the same strategy, most of the Bintools Wrapper code is sparsely commented and refers to the CC Wrapper. But the CC Wrapper's code, by contrast, has quite lengthy comments. The Bintools Wrapper merely cites those, rather than repeating them, to avoid falling out of sync. + + + A final task of the setup hook is defining a number of standard environment variables to tell build systems which executables fulfill which purpose. They are defined to just be the base name of the tools, under the assumption that the Bintools Wrapper's binaries will be on the path. Firstly, this helps poorly-written packages, e.g. ones that look for just gcc when CC isn't defined yet clang is to be used. Secondly, this helps packages not get confused when cross-compiling, in which case multiple Bintools Wrappers may simultaneously be in use. - Each wrapper targets a single platform, so if binaries for multiple - platforms are needed, the underlying binaries must be wrapped multiple - times. As this is a property of the wrapper itself, the multiple - wrappings are needed whether or not the same underlying binaries can - target multiple platforms. + Each wrapper targets a single platform, so if binaries for multiple platforms are needed, the underlying binaries must be wrapped multiple times. As this is a property of the wrapper itself, the multiple wrappings are needed whether or not the same underlying binaries can target multiple platforms. - BUILD_- and TARGET_-prefixed versions of - the normal environment variable are defined for additional Bintools - Wrappers, properly disambiguating them. + BUILD_- and TARGET_-prefixed versions of the normal environment variable are defined for additional Bintools Wrappers, properly disambiguating them. - A problem with this final task is that the Bintools Wrapper is honest - and defines LD as ld. Most packages, - however, firstly use the C compiler for linking, secondly use - LD anyways, defining it as the C compiler, and thirdly, - only so define LD when it is undefined as a fallback. - This triple-threat means Bintools Wrapper will break those packages, as - LD is already defined as the actual linker which the package won't - override yet doesn't want to use. The workaround is to define, just for - the problematic package, LD as the C compiler. A good way - to do this would be preConfigure = "LD=$CC". + A problem with this final task is that the Bintools Wrapper is honest and defines LD as ld. Most packages, however, firstly use the C compiler for linking, secondly use LD anyways, defining it as the C compiler, and thirdly, only so define LD when it is undefined as a fallback. This triple-threat means Bintools Wrapper will break those packages, as LD is already defined as the actual linker which the package won't override yet doesn't want to use. The workaround is to define, just for the problematic package, LD as the C compiler. A good way to do this would be preConfigure = "LD=$CC". @@ -2472,31 +1855,13 @@ addEnvHooks "$hostOffset" myBashFunction - The CC Wrapper wraps a C toolchain for a bunch of miscellaneous - purposes. Specifically, a C compiler (GCC or Clang), wrapped binary - tools, and a C standard library (glibc or Darwin's libSystem, just for - the dynamic loader) are all fed in, and dependency finding, hardening - (see below), and purity checks for each are handled by the CC Wrapper. - Packages typically depend on the CC Wrapper, which in turn (at run-time) - depends on the Bintools Wrapper. + The CC Wrapper wraps a C toolchain for a bunch of miscellaneous purposes. Specifically, a C compiler (GCC or Clang), wrapped binary tools, and a C standard library (glibc or Darwin's libSystem, just for the dynamic loader) are all fed in, and dependency finding, hardening (see below), and purity checks for each are handled by the CC Wrapper. Packages typically depend on the CC Wrapper, which in turn (at run-time) depends on the Bintools Wrapper. - Dependency finding is undoubtedly the main task of the CC Wrapper. This - works just like the Bintools Wrapper, except that any - include subdirectory of any relevant dependency is - added to NIX_CFLAGS_COMPILE. The setup hook itself - contains some lengthy comments describing the exact convoluted mechanism - by which this is accomplished. + Dependency finding is undoubtedly the main task of the CC Wrapper. This works just like the Bintools Wrapper, except that any include subdirectory of any relevant dependency is added to NIX_CFLAGS_COMPILE. The setup hook itself contains some lengthy comments describing the exact convoluted mechanism by which this is accomplished. - Similarly, the CC Wrapper follows the Bintools Wrapper in defining - standard environment variables with the names of the tools it wraps, for - the same reasons described above. Importantly, while it includes a - cc symlink to the c compiler for portability, the - CC will be defined using the compiler's "real name" (i.e. - gcc or clang). This helps lousy - build systems that inspect on the name of the compiler rather than run - it. + Similarly, the CC Wrapper follows the Bintools Wrapper in defining standard environment variables with the names of the tools it wraps, for the same reasons described above. Importantly, while it includes a cc symlink to the c compiler for portability, the CC will be defined using the compiler's "real name" (i.e. gcc or clang). This helps lousy build systems that inspect on the name of the compiler rather than run it. @@ -2504,9 +1869,7 @@ addEnvHooks "$hostOffset" myBashFunction - Here are some more packages that provide a setup hook. Since the list of - hooks is extensible, this is not an exhaustive list the mechanism is only to - be used as a last resort, it might cover most uses. + Here are some more packages that provide a setup hook. Since the list of hooks is extensible, this is not an exhaustive list the mechanism is only to be used as a last resort, it might cover most uses. @@ -2514,11 +1877,7 @@ addEnvHooks "$hostOffset" myBashFunction - Adds the lib/site_perl subdirectory of each build - input to the PERL5LIB environment variable. For instance, - if buildInputs contains Perl, then the - lib/site_perl subdirectory of each input is added - to the PERL5LIB environment variable. + Adds the lib/site_perl subdirectory of each build input to the PERL5LIB environment variable. For instance, if buildInputs contains Perl, then the lib/site_perl subdirectory of each input is added to the PERL5LIB environment variable. @@ -2528,9 +1887,7 @@ addEnvHooks "$hostOffset" myBashFunction - Adds the lib/${python.libPrefix}/site-packages - subdirectory of each build input to the PYTHONPATH - environment variable. + Adds the lib/${python.libPrefix}/site-packages subdirectory of each build input to the PYTHONPATH environment variable. @@ -2540,9 +1897,7 @@ addEnvHooks "$hostOffset" myBashFunction - Adds the lib/pkgconfig and - share/pkgconfig subdirectories of each build input - to the PKG_CONFIG_PATH environment variable. + Adds the lib/pkgconfig and share/pkgconfig subdirectories of each build input to the PKG_CONFIG_PATH environment variable. @@ -2552,8 +1907,7 @@ addEnvHooks "$hostOffset" myBashFunction - Adds the share/aclocal subdirectory of each build - input to the ACLOCAL_PATH environment variable. + Adds the share/aclocal subdirectory of each build input to the ACLOCAL_PATH environment variable. @@ -2563,12 +1917,7 @@ addEnvHooks "$hostOffset" myBashFunction - The autoreconfHook derivation adds - autoreconfPhase, which runs autoreconf, libtoolize - and automake, essentially preparing the configure script in - autotools-based builds. Most autotools-based packages come with the - configure script pre-generated, but this hook is necessary for a few - packages and when you need to patch the package’s configure scripts. + The autoreconfHook derivation adds autoreconfPhase, which runs autoreconf, libtoolize and automake, essentially preparing the configure script in autotools-based builds. Most autotools-based packages come with the configure script pre-generated, but this hook is necessary for a few packages and when you need to patch the package’s configure scripts. @@ -2578,10 +1927,7 @@ addEnvHooks "$hostOffset" myBashFunction - Adds every file named catalog.xml found under the - xml/dtd and xml/xsl - subdirectories of each build input to the - XML_CATALOG_FILES environment variable. + Adds every file named catalog.xml found under the xml/dtd and xml/xsl subdirectories of each build input to the XML_CATALOG_FILES environment variable. @@ -2591,8 +1937,7 @@ addEnvHooks "$hostOffset" myBashFunction - Adds the share/texmf-nix subdirectory of each build - input to the TEXINPUTS environment variable. + Adds the share/texmf-nix subdirectory of each build input to the TEXINPUTS environment variable. @@ -2612,9 +1957,7 @@ addEnvHooks "$hostOffset" myBashFunction - Exports GDK_PIXBUF_MODULE_FILE environment variable to - the builder. Add librsvg package to buildInputs to - get svg support. + Exports GDK_PIXBUF_MODULE_FILE environment variable to the builder. Add librsvg package to buildInputs to get svg support. @@ -2624,8 +1967,7 @@ addEnvHooks "$hostOffset" myBashFunction - Creates a temporary package database and registers every Haskell build - input in it (TODO: how?). + Creates a temporary package database and registers every Haskell build input in it (TODO: how?). @@ -2635,8 +1977,7 @@ addEnvHooks "$hostOffset" myBashFunction - Hooks related to GNOME platform and related libraries like GLib, GTK and - GStreamer are described in . + Hooks related to GNOME platform and related libraries like GLib, GTK and GStreamer are described in . @@ -2646,15 +1987,10 @@ addEnvHooks "$hostOffset" myBashFunction - This is a special setup hook which helps in packaging proprietary - software in that it automatically tries to find missing shared library - dependencies of ELF files based on the given - buildInputs and nativeBuildInputs. + This is a special setup hook which helps in packaging proprietary software in that it automatically tries to find missing shared library dependencies of ELF files based on the given buildInputs and nativeBuildInputs. - You can also specify a runtimeDependencies environment - variable which lists dependencies that are unconditionally added to all - executables. + You can also specify a runtimeDependencies environment variable which lists dependencies that are unconditionally added to all executables. This is useful for programs that use @@ -2662,16 +1998,10 @@ addEnvHooks "$hostOffset" myBashFunction 3 to load libraries at runtime. - In certain situations you may want to run the main command - (autoPatchelf) of the setup hook on a file or a set - of directories instead of unconditionally patching all outputs. This can - be done by setting the dontAutoPatchelf environment - variable to a non-empty value. + In certain situations you may want to run the main command (autoPatchelf) of the setup hook on a file or a set of directories instead of unconditionally patching all outputs. This can be done by setting the dontAutoPatchelf environment variable to a non-empty value. - The autoPatchelf command also recognizes a - --no-recurse command line flag, - which prevents it from recursing into subdirectories. + The autoPatchelf command also recognizes a --no-recurse command line flag, which prevents it from recursing into subdirectories. @@ -2681,36 +2011,16 @@ addEnvHooks "$hostOffset" myBashFunction - This hook will make a build pause instead of stopping when a failure - happens. It prevents nix from cleaning up the build environment - immediately and allows the user to attach to a build environment using - the cntr command. Upon build error it will print - instructions on how to use cntr, which can be used to - enter the environment for debugging. Installing cntr and running the - command will provide shell access to the build sandbox of failed build. - At /var/lib/cntr the sandboxed filesystem is - mounted. All commands and files of the system are still accessible - within the shell. To execute commands from the sandbox use the cntr exec - subcommand. cntr is only supported on Linux-based - platforms. To use it first add cntr to your - environment.systemPackages on NixOS or alternatively - to the root user on non-NixOS systems. Then in the package that is - supposed to be inspected, add breakpointHook to - nativeBuildInputs. + This hook will make a build pause instead of stopping when a failure happens. It prevents nix from cleaning up the build environment immediately and allows the user to attach to a build environment using the cntr command. Upon build error it will print instructions on how to use cntr, which can be used to enter the environment for debugging. Installing cntr and running the command will provide shell access to the build sandbox of failed build. At /var/lib/cntr the sandboxed filesystem is mounted. All commands and files of the system are still accessible within the shell. To execute commands from the sandbox use the cntr exec subcommand. cntr is only supported on Linux-based platforms. To use it first add cntr to your environment.systemPackages on NixOS or alternatively to the root user on non-NixOS systems. Then in the package that is supposed to be inspected, add breakpointHook to nativeBuildInputs. nativeBuildInputs = [ breakpointHook ]; - When a build failure happens there will be an instruction printed that - shows how to attach with cntr to the build sandbox. + When a build failure happens there will be an instruction printed that shows how to attach with cntr to the build sandbox. Caution with remote builds - This won't work with remote builds as the build environment is on a - different machine and can't be accessed by cntr. - Remote builds can be turned off by setting --option builders - '' for nix-build or --builders - '' for nix build. + This won't work with remote builds as the build environment is on a different machine and can't be accessed by cntr. Remote builds can be turned off by setting --option builders '' for nix-build or --builders '' for nix build. @@ -2721,28 +2031,13 @@ nativeBuildInputs = [ breakpointHook ]; - This hook helps with installing manpages and shell completion files. It - exposes 2 shell functions installManPage and - installShellCompletion that can be used from your - postInstall hook. + This hook helps with installing manpages and shell completion files. It exposes 2 shell functions installManPage and installShellCompletion that can be used from your postInstall hook. - The installManPage function takes one or more paths - to manpages to install. The manpages must have a section suffix, and may - optionally be compressed (with .gz suffix). This - function will place them into the correct directory. + The installManPage function takes one or more paths to manpages to install. The manpages must have a section suffix, and may optionally be compressed (with .gz suffix). This function will place them into the correct directory. - The installShellCompletion function takes one or more - paths to shell completion files. By default it will autodetect the shell - type from the completion file extension, but you may also specify it by - passing one of --bash, --fish, or - --zsh. These flags apply to all paths listed after - them (up until another shell flag is given). Each path may also have a - custom installation name provided by providing a flag --name - NAME before the path. If this flag is not provided, zsh - completions will be renamed automatically such that - foobar.zsh becomes _foobar. + The installShellCompletion function takes one or more paths to shell completion files. By default it will autodetect the shell type from the completion file extension, but you may also specify it by passing one of --bash, --fish, or --zsh. These flags apply to all paths listed after them (up until another shell flag is given). Each path may also have a custom installation name provided by providing a flag --name NAME before the path. If this flag is not provided, zsh completions will be renamed automatically such that foobar.zsh becomes _foobar. nativeBuildInputs = [ installShellFiles ]; postInstall = '' @@ -2764,13 +2059,7 @@ postInstall = '' - A few libraries automatically add to NIX_LDFLAGS - their library, making their symbols automatically available to the - linker. This includes libiconv and libintl (gettext). This is done to - provide compatibility between GNU Linux, where libiconv and libintl are - bundled in, and other systems where that might not be the case. - Sometimes, this behavior is not desired. To disable this behavior, set - dontAddExtraLibs. + A few libraries automatically add to NIX_LDFLAGS their library, making their symbols automatically available to the linker. This includes libiconv and libintl (gettext). This is done to provide compatibility between GNU Linux, where libiconv and libintl are bundled in, and other systems where that might not be the case. Sometimes, this behavior is not desired. To disable this behavior, set dontAddExtraLibs. @@ -2780,16 +2069,7 @@ postInstall = '' - Overrides the default configure phase to run the CMake command. By - default, we use the Make generator of CMake. In addition, dependencies - are added automatically to CMAKE_PREFIX_PATH so that packages are - correctly detected by CMake. Some additional flags are passed in to give - similar behavior to configure-based packages. You can disable this - hook’s behavior by setting configurePhase to a custom value, or by - setting dontUseCmakeConfigure. cmakeFlags controls flags passed only to - CMake. By default, parallel building is enabled as CMake supports - parallel building almost everywhere. When Ninja is also in use, CMake - will detect that and use the ninja generator. + Overrides the default configure phase to run the CMake command. By default, we use the Make generator of CMake. In addition, dependencies are added automatically to CMAKE_PREFIX_PATH so that packages are correctly detected by CMake. Some additional flags are passed in to give similar behavior to configure-based packages. You can disable this hook’s behavior by setting configurePhase to a custom value, or by setting dontUseCmakeConfigure. cmakeFlags controls flags passed only to CMake. By default, parallel building is enabled as CMake supports parallel building almost everywhere. When Ninja is also in use, CMake will detect that and use the ninja generator. @@ -2799,11 +2079,7 @@ postInstall = '' - Overrides the build and install phases to run the “xcbuild” command. - This hook is needed when a project only comes with build files for the - XCode build system. You can disable this behavior by setting buildPhase - and configurePhase to a custom value. xcbuildFlags controls flags passed - only to xcbuild. + Overrides the build and install phases to run the “xcbuild” command. This hook is needed when a project only comes with build files for the XCode build system. You can disable this behavior by setting buildPhase and configurePhase to a custom value. xcbuildFlags controls flags passed only to xcbuild. @@ -2813,10 +2089,7 @@ postInstall = '' - Overrides the configure phase to run meson to generate Ninja files. To - run these files, you should accompany Meson with ninja. By default, - enableParallelBuilding is enabled as Meson supports - parallel building almost everywhere. + Overrides the configure phase to run meson to generate Ninja files. To run these files, you should accompany Meson with ninja. By default, enableParallelBuilding is enabled as Meson supports parallel building almost everywhere. Variables controlling Meson @@ -2836,10 +2109,8 @@ postInstall = '' - Which - --buildtype - to pass to Meson. We default to plain. + Which --buildtype to pass to Meson. We default to plain. @@ -2849,10 +2120,8 @@ postInstall = '' - What value to set - -Dauto_features= - to. We default to enabled. + What value to set -Dauto_features= to. We default to enabled. @@ -2862,11 +2131,8 @@ postInstall = '' - What value to set - -Dwrap_mode= - to. We default to nodownload as we disallow - network access. + What value to set -Dwrap_mode= to. We default to nodownload as we disallow network access. @@ -2889,10 +2155,7 @@ postInstall = '' - Overrides the build, install, and check phase to run ninja instead of - make. You can disable this behavior with the dontUseNinjaBuild, - dontUseNinjaInstall, and dontUseNinjaCheck, respectively. Parallel - building is enabled by default in Ninja. + Overrides the build, install, and check phase to run ninja instead of make. You can disable this behavior with the dontUseNinjaBuild, dontUseNinjaInstall, and dontUseNinjaCheck, respectively. Parallel building is enabled by default in Ninja. @@ -2902,8 +2165,7 @@ postInstall = '' - This setup hook will allow you to unzip .zip files specified in $src. - There are many similar packages like unrar, undmg, etc. + This setup hook will allow you to unzip .zip files specified in $src. There are many similar packages like unrar, undmg, etc. @@ -2913,10 +2175,7 @@ postInstall = '' - Overrides the configure, build, and install phases. This will run the - "waf" script used by many projects. If wafPath (default ./waf) doesn’t - exist, it will copy the version of waf available in Nixpkgs. wafFlags - can be used to pass flags to the waf script. + Overrides the configure, build, and install phases. This will run the "waf" script used by many projects. If wafPath (default ./waf) doesn’t exist, it will copy the version of waf available in Nixpkgs. wafFlags can be used to pass flags to the waf script. @@ -2926,9 +2185,7 @@ postInstall = '' - Overrides the build, install, and check phases. This uses the scons - build system as a replacement for make. scons does not provide a - configure phase, so everything is managed at build and install time. + Overrides the build, install, and check phases. This uses the scons build system as a replacement for make. scons does not provide a configure phase, so everything is managed at build and install time. @@ -2939,40 +2196,26 @@ postInstall = '' Purity in Nixpkgs - [measures taken to prevent dependencies on packages outside the store, and - what you can do to prevent them] + [measures taken to prevent dependencies on packages outside the store, and what you can do to prevent them] - GCC doesn't search in locations such as /usr/include. - In fact, attempts to add such directories through the - flag are filtered out. Likewise, the linker (from GNU binutils) doesn't - search in standard locations such as /usr/lib. Programs - built on Linux are linked against a GNU C Library that likewise doesn't - search in the default system locations. + GCC doesn't search in locations such as /usr/include. In fact, attempts to add such directories through the flag are filtered out. Likewise, the linker (from GNU binutils) doesn't search in standard locations such as /usr/lib. Programs built on Linux are linked against a GNU C Library that likewise doesn't search in the default system locations.
Hardening in Nixpkgs - There are flags available to harden packages at compile or link-time. These - can be toggled using the stdenv.mkDerivation parameters - hardeningDisable and hardeningEnable. + There are flags available to harden packages at compile or link-time. These can be toggled using the stdenv.mkDerivation parameters hardeningDisable and hardeningEnable. - Both parameters take a list of flags as strings. The special - "all" flag can be passed to - hardeningDisable to turn off all hardening. These flags - can also be used as environment variables for testing or development - purposes. + Both parameters take a list of flags as strings. The special "all" flag can be passed to hardeningDisable to turn off all hardening. These flags can also be used as environment variables for testing or development purposes. - The following flags are enabled by default and might require disabling with - hardeningDisable if the program to package is - incompatible. + The following flags are enabled by default and might require disabling with hardeningDisable if the program to package is incompatible. @@ -2982,13 +2225,7 @@ postInstall = '' - Adds the compiler options. At present, this warns - about calls to printf and scanf - functions where the format string is not a string literal and there are - no format arguments, as in printf(foo);. This may be a - security hole if the format string came from untrusted input and contains - %n. + Adds the compiler options. At present, this warns about calls to printf and scanf functions where the format string is not a string literal and there are no format arguments, as in printf(foo);. This may be a security hole if the format string came from untrusted input and contains %n. This needs to be turned off or fixed for errors similar to: @@ -3007,12 +2244,7 @@ cc1plus: some warnings being treated as errors - Adds the compiler options. This adds safety checks - against stack overwrites rendering many potential code injection attacks - into aborting situations. In the best case this turns code injection - vulnerabilities into denial of service or into non-issues (depending on - the application). + Adds the compiler options. This adds safety checks against stack overwrites rendering many potential code injection attacks into aborting situations. In the best case this turns code injection vulnerabilities into denial of service or into non-issues (depending on the application). This needs to be turned off or fixed for errors similar to: @@ -3029,19 +2261,10 @@ bin/blib.a(bios_console.o): In function `bios_handle_cup': - Adds the compiler options. - During code generation the compiler knows a great deal of information - about buffer sizes (where possible), and attempts to replace insecure - unlimited length buffer function calls with length-limited ones. This is - especially useful for old, crufty code. Additionally, format strings in - writable memory that contain '%n' are blocked. If an application depends - on such a format string, it will need to be worked around. + Adds the compiler options. During code generation the compiler knows a great deal of information about buffer sizes (where possible), and attempts to replace insecure unlimited length buffer function calls with length-limited ones. This is especially useful for old, crufty code. Additionally, format strings in writable memory that contain '%n' are blocked. If an application depends on such a format string, it will need to be worked around. - Additionally, some warnings are enabled which might trigger build - failures if compiler warnings are treated as errors in the package build. - In this case, set to - . + Additionally, some warnings are enabled which might trigger build failures if compiler warnings are treated as errors in the package build. In this case, set to . This needs to be turned off or fixed for errors similar to: @@ -3070,15 +2293,10 @@ fcntl2.h:50:4: error: call to '__open_missing_mode' declared with attribute erro - Adds the compiler options. This options adds - support for position independent code in shared libraries and thus making - ASLR possible. + Adds the compiler options. This options adds support for position independent code in shared libraries and thus making ASLR possible. - Most notably, the Linux kernel, kernel modules and other code not running - in an operating system environment like boot loaders won't build with PIC - enabled. The compiler will is most cases complain that PIC is not - supported for a specific build. + Most notably, the Linux kernel, kernel modules and other code not running in an operating system environment like boot loaders won't build with PIC enabled. The compiler will is most cases complain that PIC is not supported for a specific build. This needs to be turned off or fixed for assembler errors similar to: @@ -3095,13 +2313,7 @@ ccbLfRgg.s:33: Error: missing or invalid displacement expression `private_key_le - Signed integer overflow is undefined behaviour according to the C - standard. If it happens, it is an error in the program as it should check - for overflow before it can happen, not afterwards. GCC provides built-in - functions to perform arithmetic with overflow checking, which are correct - and faster than any custom implementation. As a workaround, the option - makes gcc behave as if signed - integer overflows were defined. + Signed integer overflow is undefined behaviour according to the C standard. If it happens, it is an error in the program as it should check for overflow before it can happen, not afterwards. GCC provides built-in functions to perform arithmetic with overflow checking, which are correct and faster than any custom implementation. As a workaround, the option makes gcc behave as if signed integer overflows were defined. This flag should not trigger any build or runtime errors. @@ -3114,18 +2326,10 @@ ccbLfRgg.s:33: Error: missing or invalid displacement expression `private_key_le - Adds the linker option. During program load, - several ELF memory sections need to be written to by the linker, but can - be turned read-only before turning over control to the program. This - prevents some GOT (and .dtors) overwrite attacks, but at least the part - of the GOT used by the dynamic linker (.got.plt) is still vulnerable. + Adds the linker option. During program load, several ELF memory sections need to be written to by the linker, but can be turned read-only before turning over control to the program. This prevents some GOT (and .dtors) overwrite attacks, but at least the part of the GOT used by the dynamic linker (.got.plt) is still vulnerable. - This flag can break dynamic shared object loading. For instance, the - module systems of Xorg and OpenCV are incompatible with this flag. In - almost all cases the bindnow flag must also be - disabled and incompatible programs typically fail with similar errors at - runtime. + This flag can break dynamic shared object loading. For instance, the module systems of Xorg and OpenCV are incompatible with this flag. In almost all cases the bindnow flag must also be disabled and incompatible programs typically fail with similar errors at runtime. @@ -3135,18 +2339,10 @@ ccbLfRgg.s:33: Error: missing or invalid displacement expression `private_key_le - Adds the linker option. During program load, - all dynamic symbols are resolved, allowing for the complete GOT to be - marked read-only (due to relro). This prevents GOT - overwrite attacks. For very large applications, this can incur some - performance loss during initial load while symbols are resolved, but this - shouldn't be an issue for daemons. + Adds the linker option. During program load, all dynamic symbols are resolved, allowing for the complete GOT to be marked read-only (due to relro). This prevents GOT overwrite attacks. For very large applications, this can incur some performance loss during initial load while symbols are resolved, but this shouldn't be an issue for daemons. - This flag can break dynamic shared object loading. For instance, the - module systems of Xorg and PHP are incompatible with this flag. Programs - incompatible with this flag often fail at runtime due to missing symbols, - like: + This flag can break dynamic shared object loading. For instance, the module systems of Xorg and PHP are incompatible with this flag. Programs incompatible with this flag often fail at runtime due to missing symbols, like: intel_drv.so: undefined symbol: vgaHWFreeHWRec @@ -3156,9 +2352,7 @@ intel_drv.so: undefined symbol: vgaHWFreeHWRec - The following flags are disabled by default and should be enabled with - hardeningEnable for packages that take untrusted input - like network services. + The following flags are disabled by default and should be enabled with hardeningEnable for packages that take untrusted input like network services. @@ -3168,31 +2362,14 @@ intel_drv.so: undefined symbol: vgaHWFreeHWRec - Adds the compiler and linker - options. Position Independent Executables are needed to take advantage of - Address Space Layout Randomization, supported by modern kernel versions. - While ASLR can already be enforced for data areas in the stack and heap - (brk and mmap), the code areas must be compiled as position-independent. - Shared libraries already do this with the pic flag, so - they gain ASLR automatically, but binary .text regions need to be build - with pie to gain ASLR. When this happens, ROP attacks - are much harder since there are no static locations to bounce off of - during a memory corruption attack. + Adds the compiler and linker options. Position Independent Executables are needed to take advantage of Address Space Layout Randomization, supported by modern kernel versions. While ASLR can already be enforced for data areas in the stack and heap (brk and mmap), the code areas must be compiled as position-independent. Shared libraries already do this with the pic flag, so they gain ASLR automatically, but binary .text regions need to be build with pie to gain ASLR. When this happens, ROP attacks are much harder since there are no static locations to bounce off of during a memory corruption attack. - For more in-depth information on these hardening flags and hardening in - general, refer to the - Debian Wiki, - Ubuntu - Wiki, - Gentoo - Wiki, and the - - Arch Wiki. + For more in-depth information on these hardening flags and hardening in general, refer to the Debian Wiki, Ubuntu Wiki, Gentoo Wiki, and the Arch Wiki.
diff --git a/doc/submitting-changes.xml b/doc/submitting-changes.xml index a04ec08b04843..9c98abbe87ade 100644 --- a/doc/submitting-changes.xml +++ b/doc/submitting-changes.xml @@ -8,8 +8,7 @@ - Read Manual (How to - write packages for Nix). + Read Manual (How to write packages for Nix). @@ -23,15 +22,11 @@ - You can make branch from a commit of your local - nixos-version. That will help you to avoid - additional local compilations. Because you will receive packages from - binary cache. + You can make branch from a commit of your local nixos-version. That will help you to avoid additional local compilations. Because you will receive packages from binary cache. - For example: nixos-version returns - 15.05.git.0998212 (Dingo). So you can do: + For example: nixos-version returns 15.05.git.0998212 (Dingo). So you can do: @@ -55,9 +50,7 @@ - If you removed pkgs, made some major NixOS changes etc., write about - them in - nixos/doc/manual/release-notes/rl-unstable.xml. + If you removed pkgs, made some major NixOS changes etc., write about them in nixos/doc/manual/release-notes/rl-unstable.xml. @@ -65,8 +58,7 @@ - Check for unnecessary whitespace with git diff --check - before committing. + Check for unnecessary whitespace with git diff --check before committing. @@ -121,8 +113,7 @@ Additional information. - nix-env -i pkg-name -f <path to your local nixpkgs - folder> + nix-env -i pkg-name -f <path to your local nixpkgs folder> @@ -134,14 +125,12 @@ Additional information. - Make sure it's in - pkgs/top-level/all-packages.nix + Make sure it's in pkgs/top-level/all-packages.nix - nix-env -i pkg-name -f <path to your local nixpkgs - folder> + nix-env -i pkg-name -f <path to your local nixpkgs folder> @@ -149,15 +138,11 @@ Additional information. - If you don't want to install pkg in you - profile. + If you don't want to install pkg in you profile. - nix-build -A pkg-attribute-name <path to your local - nixpkgs folder>/default.nix and check results in the - folder result. It will appear in the same - directory where you did nix-build. + nix-build -A pkg-attribute-name <path to your local nixpkgs folder>/default.nix and check results in the folder result. It will appear in the same directory where you did nix-build. @@ -165,9 +150,7 @@ Additional information. - If you did nix-env -i pkg-name you can do - nix-env -e pkg-name to uninstall it from your - system. + If you did nix-env -i pkg-name you can do nix-env -e pkg-name to uninstall it from your system. @@ -179,10 +162,7 @@ Additional information. - You can add new module to your NixOS configuration file (usually - it's /etc/nixos/configuration.nix). And do - sudo nixos-rebuild test -I nixpkgs=<path to your local - nixpkgs folder> --fast. + You can add new module to your NixOS configuration file (usually it's /etc/nixos/configuration.nix). And do sudo nixos-rebuild test -I nixpkgs=<path to your local nixpkgs folder> --fast. @@ -193,9 +173,7 @@ Additional information. - If you have commits pkg-name: oh, forgot to insert - whitespace: squash commits in this case. Use git rebase - -i. + If you have commits pkg-name: oh, forgot to insert whitespace: squash commits in this case. Use git rebase -i. @@ -220,8 +198,7 @@ Additional information. - Write the title in format (pkg-name | nixos/<module>): - improvement. + Write the title in format (pkg-name | nixos/<module>): improvement. @@ -233,8 +210,7 @@ Additional information. - Write in comment if you have tested your patch. Do not rely much on - TravisCI. + Write in comment if you have tested your patch. Do not rely much on TravisCI. @@ -244,8 +220,7 @@ Additional information. - Notify maintainers of the package. For example add to the message: - cc @jagajaga @domenkozar. + Notify maintainers of the package. For example add to the message: cc @jagajaga @domenkozar. @@ -257,64 +232,39 @@ Additional information. Pull Request Template - The pull request template helps determine what steps have been made for a - contribution so far, and will help guide maintainers on the status of a - change. The motivation section of the PR should include any extra details - the title does not address and link any existing issues related to the pull - request. + The pull request template helps determine what steps have been made for a contribution so far, and will help guide maintainers on the status of a change. The motivation section of the PR should include any extra details the title does not address and link any existing issues related to the pull request. - When a PR is created, it will be pre-populated with some checkboxes detailed - below: + When a PR is created, it will be pre-populated with some checkboxes detailed below:
Tested using sandboxing - When sandbox builds are enabled, Nix will setup an isolated environment for - each build process. It is used to remove further hidden dependencies set by - the build environment to improve reproducibility. This includes access to - the network during the build outside of fetch* - functions and files outside the Nix store. Depending on the operating - system access to other resources are blocked as well (ex. inter process - communication is isolated on Linux); see - build-use-sandbox - in Nix manual for details. + When sandbox builds are enabled, Nix will setup an isolated environment for each build process. It is used to remove further hidden dependencies set by the build environment to improve reproducibility. This includes access to the network during the build outside of fetch* functions and files outside the Nix store. Depending on the operating system access to other resources are blocked as well (ex. inter process communication is isolated on Linux); see build-use-sandbox in Nix manual for details. - Sandboxing is not enabled by default in Nix due to a small performance hit - on each build. In pull requests for - nixpkgs - people are asked to test builds with sandboxing enabled (see - Tested using sandboxing in the pull request template) - because - inhttps://nixos.org/hydra/ - sandboxing is also used. + Sandboxing is not enabled by default in Nix due to a small performance hit on each build. In pull requests for nixpkgs people are asked to test builds with sandboxing enabled (see Tested using sandboxing in the pull request template) because inhttps://nixos.org/hydra/ sandboxing is also used. - Depending if you use NixOS or other platforms you can use one of the - following methods to enable sandboxing - before building the package: + Depending if you use NixOS or other platforms you can use one of the following methods to enable sandboxing before building the package: - Globally enable sandboxing on NixOS: - add the following to configuration.nix + Globally enable sandboxing on NixOS: add the following to configuration.nix nix.useSandbox = true; - Globally enable sandboxing on non-NixOS - platforms: add the following to: - /etc/nix/nix.conf + Globally enable sandboxing on non-NixOS platforms: add the following to: /etc/nix/nix.conf build-use-sandbox = true @@ -326,11 +276,7 @@ Additional information. Built on platform(s) - Many Nix packages are designed to run on multiple platforms. As such, it's - important to let the maintainer know which platforms your changes have been - tested on. It's not always practical to test a change on all platforms, and - is not required for a pull request to be merged. Only check the systems you - tested the build on in this section. + Many Nix packages are designed to run on multiple platforms. As such, it's important to let the maintainer know which platforms your changes have been tested on. It's not always practical to test a change on all platforms, and is not required for a pull request to be merged. Only check the systems you tested the build on in this section.
@@ -338,15 +284,8 @@ Additional information. Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests) - Packages with automated tests are much more likely to be merged in a timely - fashion because it doesn't require as much manual testing by the maintainer - to verify the functionality of the package. If there are existing tests for - the package, they should be run to verify your changes do not break the - tests. Tests only apply to packages with NixOS modules defined and can only - be run on Linux. For more details on writing and running tests, see the - section - in the NixOS manual. + Packages with automated tests are much more likely to be merged in a timely fashion because it doesn't require as much manual testing by the maintainer to verify the functionality of the package. If there are existing tests for the package, they should be run to verify your changes do not break the tests. Tests only apply to packages with NixOS modules defined and can only be run on Linux. For more details on writing and running tests, see the section in the NixOS manual.
@@ -354,11 +293,7 @@ Additional information. Tested compilation of all pkgs that depend on this change using <command>nix-review</command> - If you are updating a package's version, you can use nix-review to make - sure all packages that depend on the updated package still compile - correctly. The nix-review utility can look for and build - all dependencies either based on uncommited changes with the - wip option or specifying a github pull request number. + If you are updating a package's version, you can use nix-review to make sure all packages that depend on the updated package still compile correctly. The nix-review utility can look for and build all dependencies either based on uncommited changes with the wip option or specifying a github pull request number. @@ -376,13 +311,7 @@ Additional information. Tested execution of all binary files (usually in <filename>./result/bin/</filename>) - It's important to test any executables generated by a build when you change - or create a package in nixpkgs. This can be done by looking in - ./result/bin and running any files in there, or at a - minimum, the main executable for the package. For example, if you make a - change to texlive, you probably would only check the - binaries associated with the change you made rather than testing all of - them. + It's important to test any executables generated by a build when you change or create a package in nixpkgs. This can be done by looking in ./result/bin and running any files in there, or at a minimum, the main executable for the package. For example, if you make a change to texlive, you probably would only check the binaries associated with the change you made rather than testing all of them. @@ -390,14 +319,8 @@ Additional information. Meets Nixpkgs contribution standards - The last checkbox is fits - CONTRIBUTING.md. - The contributing document has detailed information on standards the Nix - community has for commit messages, reviews, licensing of contributions you - make to the project, etc... Everyone should read and understand the - standards the community has for contributing before submitting a pull - request. + The last checkbox is fits CONTRIBUTING.md. The contributing document has detailed information on standards the Nix community has for commit messages, reviews, licensing of contributions you make to the project, etc... Everyone should read and understand the standards the community has for contributing before submitting a pull request. @@ -435,22 +358,17 @@ Additional information. - Commits must be sufficiently tested before being merged, both for the - master and staging branches. + Commits must be sufficiently tested before being merged, both for the master and staging branches. - Hydra builds for master and staging should not be used as testing - platform, it's a build farm for changes that have been already tested. + Hydra builds for master and staging should not be used as testing platform, it's a build farm for changes that have been already tested. - When changing the bootloader installation process, extra care must be - taken. Grub installations cannot be rolled back, hence changes may break - people's installations forever. For any non-trivial change to the - bootloader please file a PR asking for review, especially from @edolstra. + When changing the bootloader installation process, extra care must be taken. Grub installations cannot be rolled back, hence changes may break people's installations forever. For any non-trivial change to the bootloader please file a PR asking for review, especially from @edolstra. @@ -473,20 +391,12 @@ Additional information. - It's only for non-breaking mass-rebuild commits. That means it's not to - be used for testing, and changes must have been well tested already. - Read - policy here. + It's only for non-breaking mass-rebuild commits. That means it's not to be used for testing, and changes must have been well tested already. Read policy here. - If the branch is already in a broken state, please refrain from adding - extra new breakages. Stabilize it for a few days, merge into master, then - resume development on staging. - Keep - an eye on the staging evaluations here. If any fixes for staging - happen to be already in master, then master can be merged into staging. + If the branch is already in a broken state, please refrain from adding extra new breakages. Stabilize it for a few days, merge into master, then resume development on staging. Keep an eye on the staging evaluations here. If any fixes for staging happen to be already in master, then master can be merged into staging. @@ -498,10 +408,7 @@ Additional information. - If you're cherry-picking a commit to a stable release branch, always use - git cherry-pick -xe and ensure the message contains a - clear description about why this needs to be included in the stable - branch. + If you're cherry-picking a commit to a stable release branch, always use git cherry-pick -xe and ensure the message contains a clear description about why this needs to be included in the stable branch. An example of a cherry-picked commit would look like this: -- cgit 1.4.1 From 22f70547f622255bdb35dedfc82d3cbc9f5b219d Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Thu, 12 Sep 2019 15:07:39 +0200 Subject: nixos/doc/gnome: clarify icon theme availability --- doc/languages-frameworks/gnome.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/languages-frameworks/gnome.xml b/doc/languages-frameworks/gnome.xml index 8b3151d5bf949..05bfa4fe0ce17 100644 --- a/doc/languages-frameworks/gnome.xml +++ b/doc/languages-frameworks/gnome.xml @@ -32,7 +32,7 @@ Icons - When an application uses icons, an icon theme should be available in XDG_DATA_DIRS. The package for the default, icon-less hicolor-icon-theme contains a setup hook that will pick up icon themes from buildInputs and pass it to our wrapper. Unfortunately, relying on that would mean every user has to download the theme included in the package expression no matter their preference. For that reason, we leave the installation of icon theme on the user. If you use one of the desktop environments, you probably already have an icon theme installed. + When an application uses icons, an icon theme should be available in XDG_DATA_DIRS during runtime. The package for the default, icon-less hicolor-icon-theme (should be propagated by every icon theme) contains a setup hook that will pick up icon themes from buildInputs and pass it to our wrapper. Unfortunately, relying on that would mean every user has to download the theme included in the package expression no matter their preference. For that reason, we leave the installation of icon theme on the user. If you use one of the desktop environments, you probably already have an icon theme installed. -- cgit 1.4.1 From f343b11914c73fb44b4a4cc543fdcf96f8306456 Mon Sep 17 00:00:00 2001 From: Benjamin Asbach Date: Wed, 18 Sep 2019 00:28:15 +0200 Subject: doc: replaced outdated config reference `build-use-sandbox` with `sandbox` --- doc/submitting-changes.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/submitting-changes.xml b/doc/submitting-changes.xml index 9c98abbe87ade..2c7defb817497 100644 --- a/doc/submitting-changes.xml +++ b/doc/submitting-changes.xml @@ -244,7 +244,7 @@ Additional information. When sandbox builds are enabled, Nix will setup an isolated environment for each build process. It is used to remove further hidden dependencies set by the build environment to improve reproducibility. This includes access to the network during the build outside of fetch* functions and files outside the Nix store. Depending on the operating system access to other resources are blocked as well (ex. inter process communication is isolated on Linux); see build-use-sandbox in Nix manual for details. + xlink:href="https://nixos.org/nix/manual/#conf-sandbox">sandbox in Nix manual for details. @@ -265,7 +265,7 @@ Additional information. Globally enable sandboxing on non-NixOS platforms: add the following to: /etc/nix/nix.conf -build-use-sandbox = true +sandbox = true -- cgit 1.4.1 From 9b184c104d7509826c84b1fea55695964901aa85 Mon Sep 17 00:00:00 2001 From: Alexandre Esteves Date: Thu, 19 Sep 2019 00:30:59 +0100 Subject: Fix example --- doc/cross-compilation.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/cross-compilation.xml b/doc/cross-compilation.xml index f496fa3f8967f..93fe9095ce2f3 100644 --- a/doc/cross-compilation.xml +++ b/doc/cross-compilation.xml @@ -271,14 +271,14 @@ Nixpkgs can be instantiated with localSystem alone, in which case there is no cross-compiling and everything is built by and for that system, or also with crossSystem, in which case packages run on the latter, but all building happens on the former. Both parameters take the same schema as the 3 (build, host, and target) platforms defined in the previous section. As mentioned above, lib.systems.examples has some platforms which are used as arguments for these parameters in practice. You can use them programmatically, or on the command line: -nix-build <nixpkgs> --arg crossSystem '(import <nixpkgs/lib>).systems.examples.fooBarBaz' -A whatever +nix-build '<nixpkgs>' --arg crossSystem '(import <nixpkgs/lib>).systems.examples.fooBarBaz' -A whatever
Eventually we would like to make these platform examples an unnecessary convenience so that -nix-build <nixpkgs> --arg crossSystem '{ config = "<arch>-<os>-<vendor>-<abi>"; }' -A whatever +nix-build '<nixpkgs>' --arg crossSystem '{ config = "<arch>-<os>-<vendor>-<abi>"; }' -A whatever works in the vast majority of cases. The problem today is dependencies on other sorts of configuration which aren't given proper defaults. We rely on the examples to crudely to set those configuration parameters in some vaguely sane manner on the users behalf. Issue #34274 tracks this inconvenience along with its root cause in crufty configuration options. -- cgit 1.4.1 From 9559a4fe08897eebdfeca24af8c67b8abbff712d Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Thu, 19 Sep 2019 01:35:12 +0200 Subject: doc/gnome: describe icon-theme.cache --- doc/languages-frameworks/gnome.xml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'doc') diff --git a/doc/languages-frameworks/gnome.xml b/doc/languages-frameworks/gnome.xml index 05bfa4fe0ce17..3d69d77a1c845 100644 --- a/doc/languages-frameworks/gnome.xml +++ b/doc/languages-frameworks/gnome.xml @@ -34,6 +34,10 @@ When an application uses icons, an icon theme should be available in XDG_DATA_DIRS during runtime. The package for the default, icon-less hicolor-icon-theme (should be propagated by every icon theme) contains a setup hook that will pick up icon themes from buildInputs and pass it to our wrapper. Unfortunately, relying on that would mean every user has to download the theme included in the package expression no matter their preference. For that reason, we leave the installation of icon theme on the user. If you use one of the desktop environments, you probably already have an icon theme installed. + + + To avoid costly file system access when locating icons, GTK, as well as Qt, can rely on icon-theme.cache files from the themes’ top-level directories. These files are generated using gtk-update-icon-cache, which is expected to be run whenever an icon is added or removed to an icon theme (typically an application icon into hicolor theme) and some programs do indeed run this after icon installation. However, since packages are installed into their own prefix by Nix, this would lead to conflicts. For that reason, gtk3 provides a setup hook that will clean the file from installation. Since most applications only ship their own icon that will be loaded on start-up, it should not affect them too much. On the other hand, icon themes are much larger and more widely used so we need to cache them. Because we recommend installing icon themes globally, we will generate the cache files from all packages in a profile using a NixOS module. You can enable the cache generation using option if your desktop environment does not already do that. +
@@ -91,6 +95,11 @@ preFixup = '' glib setup hook will populate GSETTINGS_SCHEMAS_PATH and then wrapGAppsHook will prepend it to XDG_DATA_DIRS. + + + One of gtk3’s setup hooks will remove icon-theme.cache files from package’s icon theme directories to avoid conflicts. Icon theme packages should prevent this with dontDropIconThemeCache = true;. + + gnome3.dconf.lib is a dependency of wrapGAppsHook, which then also adds it to the GIO_EXTRA_MODULES variable. -- cgit 1.4.1 From f8a8fc6c7c079de430fa528f688ddac781bcef16 Mon Sep 17 00:00:00 2001 From: Vladimír Čunát Date: Sat, 21 Sep 2019 20:05:09 +0200 Subject: Revert "Merge branch 'staging-next'" This reverts commit 41af38f3728bd64b80721c44ed1fb019978cbc1b, reversing changes made to f0fec244ca380b9d3e617ee7b419c59758c8b0f1. Let's delay this. We have some serious regressions. --- doc/languages-frameworks/gnome.xml | 12 +-- .../modules/services/networking/networkmanager.nix | 5 -- pkgs/applications/gis/grass/default.nix | 8 +- .../applications/graphics/gnome-photos/default.nix | 2 +- pkgs/applications/misc/mysql-workbench/default.nix | 4 +- pkgs/applications/office/kexi/default.nix | 4 +- pkgs/applications/office/libreoffice/default.nix | 4 +- pkgs/applications/office/libreoffice/still.nix | 4 +- .../science/electronics/kicad/default.nix | 2 +- pkgs/applications/science/math/glsurf/default.nix | 4 +- pkgs/applications/video/kodi/default.nix | 4 +- pkgs/build-support/setup-hooks/wrap-gapps-hook.sh | 26 +++--- pkgs/desktops/deepin/dde-daemon/default.nix | 2 +- .../gnome-3/apps/gnome-characters/default.nix | 2 +- .../gnome-3/extensions/gsconnect/default.nix | 4 +- pkgs/development/compilers/gerbil/build.nix | 8 +- pkgs/development/compilers/hhvm/default.nix | 4 +- pkgs/development/compilers/neko/default.nix | 4 +- pkgs/development/compilers/urweb/default.nix | 8 +- .../haskell-modules/configuration-nix.nix | 2 +- pkgs/development/interpreters/perl/sw_vers.patch | 2 +- pkgs/development/interpreters/php/default.nix | 8 +- pkgs/development/libraries/cppdb/default.nix | 6 +- pkgs/development/libraries/expat/default.nix | 6 +- pkgs/development/libraries/gdal/2.4.0.nix | 4 +- pkgs/development/libraries/gdal/default.nix | 4 +- pkgs/development/libraries/giflib/5.1.nix | 18 ++++ pkgs/development/libraries/giflib/default.nix | 24 ------ pkgs/development/libraries/kdb/default.nix | 4 +- pkgs/development/libraries/libagar/default.nix | 6 +- .../libraries/libdbi-drivers/default.nix | 10 +-- pkgs/development/libraries/libgda/default.nix | 6 +- pkgs/development/libraries/libgdiplus/default.nix | 24 ++++-- pkgs/development/libraries/librdf/redland.nix | 4 +- pkgs/development/libraries/opendbx/default.nix | 8 +- pkgs/development/libraries/openssl/default.nix | 8 +- pkgs/development/libraries/poco/default.nix | 6 +- pkgs/development/libraries/qt-3/default.nix | 6 +- pkgs/development/libraries/qt-4.x/4.8/default.nix | 6 +- pkgs/development/libraries/qt-5/modules/qtbase.nix | 12 +-- pkgs/development/libraries/tntdb/default.nix | 4 +- .../libraries/unixODBCDrivers/default.nix | 17 ++-- pkgs/development/libraries/wt/default.nix | 6 +- .../lisp-modules/quicklisp-to-nix-overrides.nix | 8 +- pkgs/development/lisp-modules/shell.nix | 4 +- pkgs/development/lua-modules/overrides.nix | 6 +- pkgs/development/ocaml-modules/mysql/default.nix | 4 +- .../development/perl-modules/DBD-mysql/default.nix | 4 +- pkgs/development/pure-modules/glpk/default.nix | 6 +- .../python-modules/cryptography/default.nix | 11 +-- .../python-modules/mysqlclient/default.nix | 6 +- .../python-modules/pyopenssl/default.nix | 3 +- pkgs/development/r-modules/default.nix | 4 +- .../ruby-modules/gem-config/default.nix | 6 +- pkgs/development/tools/misc/patchelf/default.nix | 19 +---- pkgs/development/tools/misc/patchelf/unstable.nix | 26 +++--- pkgs/development/tools/misc/sysbench/default.nix | 4 +- pkgs/development/tools/tora/default.nix | 6 +- pkgs/games/zod/default.nix | 6 +- pkgs/os-specific/linux/firmware/fwupd/default.nix | 6 +- pkgs/os-specific/linux/kexectools/default.nix | 2 +- pkgs/servers/clickhouse/default.nix | 4 +- pkgs/servers/computing/slurm/default.nix | 4 +- pkgs/servers/freeradius/default.nix | 6 +- pkgs/servers/http/lighttpd/default.nix | 6 +- pkgs/servers/mail/dovecot/default.nix | 4 +- pkgs/servers/mail/exim/default.nix | 12 +-- pkgs/servers/mail/opensmtpd/extras.nix | 6 +- pkgs/servers/mail/postfix/default.nix | 6 +- pkgs/servers/monitoring/plugins/default.nix | 4 +- pkgs/servers/monitoring/zabbix/proxy.nix | 4 +- pkgs/servers/monitoring/zabbix/server.nix | 4 +- pkgs/servers/sql/mariadb/connector-c/3_1.nix | 6 -- pkgs/servers/sql/mariadb/connector-c/default.nix | 54 ------------ pkgs/servers/sql/mariadb/default.nix | 98 ++++++++++++++++++++++ pkgs/servers/sql/mariadb/galera/25.nix | 6 -- pkgs/servers/sql/mariadb/galera/default.nix | 63 -------------- pkgs/servers/uwsgi/default.nix | 4 +- pkgs/tools/backup/bareos/default.nix | 8 +- pkgs/tools/backup/mydumper/default.nix | 4 +- pkgs/tools/graphics/zbar/default.nix | 4 +- pkgs/tools/networking/kea/default.nix | 6 +- pkgs/tools/networking/mailutils/default.nix | 8 +- pkgs/tools/networking/maxscale/default.nix | 6 +- pkgs/tools/networking/modem-manager/default.nix | 7 ++ pkgs/tools/networking/network-manager/default.nix | 5 ++ pkgs/tools/security/thc-hydra/default.nix | 4 +- pkgs/tools/system/collectd/default.nix | 4 +- pkgs/tools/system/rsyslog/default.nix | 6 +- pkgs/top-level/aliases.nix | 1 + pkgs/top-level/all-packages.nix | 24 ++---- 91 files changed, 380 insertions(+), 441 deletions(-) create mode 100644 pkgs/development/libraries/giflib/5.1.nix delete mode 100644 pkgs/development/libraries/giflib/default.nix delete mode 100644 pkgs/servers/sql/mariadb/connector-c/3_1.nix delete mode 100644 pkgs/servers/sql/mariadb/connector-c/default.nix delete mode 100644 pkgs/servers/sql/mariadb/galera/25.nix delete mode 100644 pkgs/servers/sql/mariadb/galera/default.nix (limited to 'doc') diff --git a/doc/languages-frameworks/gnome.xml b/doc/languages-frameworks/gnome.xml index 8b3151d5bf949..9e0f21a6c74fc 100644 --- a/doc/languages-frameworks/gnome.xml +++ b/doc/languages-frameworks/gnome.xml @@ -210,7 +210,7 @@ mkDerivation { dontWrapGApps = true; # Arguments to be passed to `makeWrapper`, only used by qt5’s mkDerivation - qtWrapperArgs = [ + qtWrapperArgs [ "\${gappsWrapperArgs[@]}" ]; } @@ -258,16 +258,6 @@ mkDerivation { - - - I need to wrap a binary outside bin and libexec directories. - - - - You can manually trigger the wrapping with wrapGApp in preFixup phase. It takes a path to a program as a first argument; the remaining arguments are passed directly to wrapProgram function. - - -
diff --git a/nixos/modules/services/networking/networkmanager.nix b/nixos/modules/services/networking/networkmanager.nix index db047e6d0b893..db4d0e328e2d1 100644 --- a/nixos/modules/services/networking/networkmanager.nix +++ b/nixos/modules/services/networking/networkmanager.nix @@ -468,16 +468,12 @@ in { mkdir -m 700 -p /etc/ipsec.d mkdir -m 755 -p ${stateDirs} ''; - - aliases = [ "dbus-org.freedesktop.NetworkManager.service" ]; }; systemd.services.NetworkManager-wait-online = { wantedBy = [ "network-online.target" ]; }; - systemd.services.ModemManager.aliases = [ "dbus-org.freedesktop.ModemManager1.service" ]; - systemd.services.nm-setup-hostsdirs = mkIf dynamicHostsEnabled { wantedBy = [ "NetworkManager.service" ]; before = [ "NetworkManager.service" ]; @@ -499,7 +495,6 @@ in { # useful binaries for user-specified hooks path = [ pkgs.iproute pkgs.utillinux pkgs.coreutils ]; - aliases = [ "dbus-org.freedesktop.nm-dispatcher.service" ]; }; # Turn off NixOS' network management when networking is managed entirely by NetworkManager diff --git a/pkgs/applications/gis/grass/default.nix b/pkgs/applications/gis/grass/default.nix index 562a5e616a324..360d94d1b8250 100644 --- a/pkgs/applications/gis/grass/default.nix +++ b/pkgs/applications/gis/grass/default.nix @@ -1,6 +1,6 @@ { stdenv, fetchFromGitHub, flex, bison, pkgconfig, zlib, libtiff, libpng, fftw , cairo, readline, ffmpeg, makeWrapper, wxGTK30, netcdf, blas -, proj, gdal, geos, sqlite, postgresql, libmysqlclient, python2Packages, libLAS, proj-datumgrid +, proj, gdal, geos, sqlite, postgresql, mysql, python2Packages, libLAS, proj-datumgrid }: stdenv.mkDerivation rec { @@ -16,7 +16,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ pkgconfig ]; buildInputs = [ flex bison zlib proj gdal libtiff libpng fftw sqlite cairo proj - readline ffmpeg makeWrapper wxGTK30 netcdf geos postgresql libmysqlclient blas + readline ffmpeg makeWrapper wxGTK30 netcdf geos postgresql mysql.connector-c blas libLAS proj-datumgrid ] ++ (with python2Packages; [ python dateutil wxPython30 numpy ]); @@ -37,8 +37,8 @@ stdenv.mkDerivation rec { "--with-postgres-libs=${postgresql.lib}/lib/" # it complains about missing libmysqld but doesn't really seem to need it "--with-mysql" - "--with-mysql-includes=${libmysqlclient}/include/mysql" - "--with-mysql-libs=${libmysqlclient}/lib/mysql" + "--with-mysql-includes=${mysql.connector-c}/include/mysql" + "--with-mysql-libs=${mysql.connector-c}/lib/mysql" "--with-blas" "--with-liblas=${libLAS}/bin/liblas-config" ]; diff --git a/pkgs/applications/graphics/gnome-photos/default.nix b/pkgs/applications/graphics/gnome-photos/default.nix index ea4cf986f3997..f591dd5a60dd2 100644 --- a/pkgs/applications/graphics/gnome-photos/default.nix +++ b/pkgs/applications/graphics/gnome-photos/default.nix @@ -102,7 +102,7 @@ stdenv.mkDerivation rec { ''; postFixup = '' - wrapGApp "${placeholder "installedTests"}/libexec/installed-tests/gnome-photos/basic.py" + wrapProgram "${placeholder "installedTests"}/libexec/installed-tests/gnome-photos/basic.py" "''${gappsWrapperArgs[@]}" ''; passthru = { diff --git a/pkgs/applications/misc/mysql-workbench/default.nix b/pkgs/applications/misc/mysql-workbench/default.nix index 135745feec315..172f999223a88 100644 --- a/pkgs/applications/misc/mysql-workbench/default.nix +++ b/pkgs/applications/misc/mysql-workbench/default.nix @@ -85,8 +85,8 @@ in stdenv.mkDerivation rec { find -L "$out/bin" -type f -executable -print0 \ | while IFS= read -r -d ''' file; do if [[ "''${file}" != *-bin ]]; then - echo "Wrapping program $file" - wrapGApp "$file" + echo "Wrapping program ''${file}" + wrapProgram "''${file}" "''${gappsWrapperArgs[@]}" fi done ''; diff --git a/pkgs/applications/office/kexi/default.nix b/pkgs/applications/office/kexi/default.nix index 8db7068f7cfa6..83515de49903f 100644 --- a/pkgs/applications/office/kexi/default.nix +++ b/pkgs/applications/office/kexi/default.nix @@ -4,7 +4,7 @@ breeze-icons, karchive, kcodecs, kcompletion, kconfig, kconfigwidgets, kcoreaddons, kcrash, kguiaddons, ki18n, kiconthemes, kitemviews, kio, ktexteditor, ktextwidgets, kwidgetsaddons, kxmlgui, - kdb, kproperty, kreport, lcms2, libmysqlclient, marble, postgresql + kdb, kproperty, kreport, lcms2, mysql, marble, postgresql }: mkDerivation rec { @@ -23,7 +23,7 @@ mkDerivation rec { breeze-icons karchive kcodecs kcompletion kconfig kconfigwidgets kcoreaddons kcrash kguiaddons ki18n kiconthemes kitemviews kio ktexteditor ktextwidgets kwidgetsaddons kxmlgui - kdb kproperty kreport lcms2 libmysqlclient marble postgresql + kdb kproperty kreport lcms2 mysql.connector-c marble postgresql ]; propagatedUserEnvPkgs = [ kproperty ]; diff --git a/pkgs/applications/office/libreoffice/default.nix b/pkgs/applications/office/libreoffice/default.nix index a459302177b99..f5f53e10496b1 100644 --- a/pkgs/applications/office/libreoffice/default.nix +++ b/pkgs/applications/office/libreoffice/default.nix @@ -4,7 +4,7 @@ , bison, flex, zip, unzip, gtk3, gtk2, libmspack, getopt, file, cairo, which , icu, boost, jdk, ant, cups, xorg, libcmis, fontforge , openssl, gperf, cppunit, GConf, ORBit2, poppler, utillinux -, librsvg, gnome_vfs, libGLU_combined, bsh, CoinMP, libwps, libabw, libmysqlclient +, librsvg, gnome_vfs, libGLU_combined, bsh, CoinMP, libwps, libabw, mysql , autoconf, automake, openldap, bash, hunspell, librdf_redland, nss, nspr , libwpg, dbus-glib, qt4, clucene_core, libcdr, lcms, vigra , unixODBC, mdds, sane-backends, mythes, libexttextcat, libvisio @@ -361,7 +361,7 @@ in stdenv.mkDerivation rec { libmspack librdf_redland librsvg libsndfile libvisio libwpd libwpg libX11 libXaw libXext libXi libXinerama libxml2 libxslt libXtst libXdmcp libpthreadstubs libGLU_combined mythes gst_all_1.gstreamer - gst_all_1.gst-plugins-base glib libmysqlclient + gst_all_1.gst-plugins-base glib mysql.connector-c neon nspr nss openldap openssl ORBit2 pam perl pkgconfig poppler python3 sablotron sane-backends unzip vigra which zip zlib mdds bluez5 libcmis libwps libabw libzmf diff --git a/pkgs/applications/office/libreoffice/still.nix b/pkgs/applications/office/libreoffice/still.nix index 4739d52655844..eb774a309416c 100644 --- a/pkgs/applications/office/libreoffice/still.nix +++ b/pkgs/applications/office/libreoffice/still.nix @@ -4,7 +4,7 @@ , bison, flex, zip, unzip, gtk3, gtk2, libmspack, getopt, file, cairo, which , icu, boost, jdk, ant, cups, xorg, libcmis, fontforge , openssl, gperf, cppunit, GConf, ORBit2, poppler, utillinux -, librsvg, gnome_vfs, libGLU_combined, bsh, CoinMP, libwps, libabw, libmysqlclient +, librsvg, gnome_vfs, libGLU_combined, bsh, CoinMP, libwps, libabw, mysql , autoconf, automake, openldap, bash, hunspell, librdf_redland, nss, nspr , libwpg, dbus-glib, qt4, clucene_core, libcdr, lcms, vigra , unixODBC, mdds, sane-backends, mythes, libexttextcat, libvisio @@ -358,7 +358,7 @@ in stdenv.mkDerivation rec { libmspack librdf_redland librsvg libsndfile libvisio libwpd libwpg libX11 libXaw libXext libXi libXinerama libxml2 libxslt libXtst libXdmcp libpthreadstubs libGLU_combined mythes gst_all_1.gstreamer - gst_all_1.gst-plugins-base glib libmysqlclient + gst_all_1.gst-plugins-base glib mysql.connector-c neon nspr nss openldap openssl ORBit2 pam perl poppler python3 sablotron sane-backends unzip vigra which zip zlib mdds bluez5 libcmis libwps libabw libzmf diff --git a/pkgs/applications/science/electronics/kicad/default.nix b/pkgs/applications/science/electronics/kicad/default.nix index bd57e355c757f..f31dd0daa5c35 100644 --- a/pkgs/applications/science/electronics/kicad/default.nix +++ b/pkgs/applications/science/electronics/kicad/default.nix @@ -107,7 +107,7 @@ in stdenv.mkDerivation rec { buildPythonPath "$out $pythonPath" gappsWrapperArgs+=(--set PYTHONPATH "$program_PYTHONPATH") - wrapGApp "$out/bin/kicad" + wrapProgram "$out/bin/kicad" "''${gappsWrapperArgs[@]}" ''; meta = { diff --git a/pkgs/applications/science/math/glsurf/default.nix b/pkgs/applications/science/math/glsurf/default.nix index 1cd5e364208a8..4de683cdce906 100644 --- a/pkgs/applications/science/math/glsurf/default.nix +++ b/pkgs/applications/science/math/glsurf/default.nix @@ -1,5 +1,5 @@ { stdenv, fetchurl, ocamlPackages, libGLU_combined, freeglut -, libmysqlclient, mpfr, gmp, libtiff, libjpeg, libpng, giflib +, mysql, mpfr, gmp, libtiff, libjpeg, libpng, giflib }: stdenv.mkDerivation { @@ -10,7 +10,7 @@ stdenv.mkDerivation { sha256 = "0w8xxfnw2snflz8wdr2ca9f5g91w5vbyp1hwlx1v7vg83d4bwqs7"; }; - buildInputs = [ freeglut libGLU_combined libmysqlclient mpfr gmp + buildInputs = [ freeglut libGLU_combined mysql.connector-c mpfr gmp libtiff libjpeg libpng giflib ] ++ (with ocamlPackages; [ ocaml findlib ocaml_mysql lablgl camlimages_4_0 mlgmpidl diff --git a/pkgs/applications/video/kodi/default.nix b/pkgs/applications/video/kodi/default.nix index 7953cde241398..773c63b0036d1 100644 --- a/pkgs/applications/video/kodi/default.nix +++ b/pkgs/applications/video/kodi/default.nix @@ -13,7 +13,7 @@ , libmpeg2, libsamplerate, libmad , libogg, libvorbis, flac, libxslt , lzo, libcdio, libmodplug, libass, libbluray -, sqlite, libmysqlclient, nasm, gnutls, libva, libdrm +, sqlite, mysql, nasm, gnutls, libva, libdrm , curl, bzip2, zip, unzip, glxinfo, xdpyinfo , libcec, libcec_platform, dcadec, libuuid , libcrossguid, libmicrohttpd @@ -161,7 +161,7 @@ in stdenv.mkDerivation { libmpeg2 libsamplerate libmad libogg libvorbis flac libxslt systemd lzo libcdio libmodplug libass libbluray - sqlite libmysqlclient avahi lame + sqlite mysql.connector-c avahi lame curl bzip2 zip unzip glxinfo xdpyinfo libcec libcec_platform dcadec libuuid libgcrypt libgpgerror libunistring diff --git a/pkgs/build-support/setup-hooks/wrap-gapps-hook.sh b/pkgs/build-support/setup-hooks/wrap-gapps-hook.sh index 717740f1f20f0..906b1db9d10ee 100644 --- a/pkgs/build-support/setup-hooks/wrap-gapps-hook.sh +++ b/pkgs/build-support/setup-hooks/wrap-gapps-hook.sh @@ -1,19 +1,12 @@ -# shellcheck shell=bash gappsWrapperArgs=() find_gio_modules() { - if [ -d "$1/lib/gio/modules" ] && [ -n "$(ls -A "$1/lib/gio/modules")" ] ; then + if [ -d "$1"/lib/gio/modules ] && [ -n "$(ls -A $1/lib/gio/modules)" ] ; then gappsWrapperArgs+=(--prefix GIO_EXTRA_MODULES : "$1/lib/gio/modules") fi } -addEnvHooks "${targetOffset:?}" find_gio_modules - -wrapGApp() { - local program="$1" - shift 1 - wrapProgram "$program" "${gappsWrapperArgs[@]}" "$@" -} +addEnvHooks "$targetOffset" find_gio_modules # Note: $gappsWrapperArgs still gets defined even if $dontWrapGApps is set. wrapGAppsHook() { @@ -33,19 +26,20 @@ wrapGAppsHook() { gappsWrapperArgs+=(--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH") fi - if [ -d "${prefix:?}/share" ]; then + if [ -d "$prefix/share" ]; then gappsWrapperArgs+=(--prefix XDG_DATA_DIRS : "$prefix/share") fi - if [ -d "$prefix/lib/gio/modules" ] && [ -n "$(ls -A "$prefix/lib/gio/modules")" ] ; then + if [ -d "$prefix/lib/gio/modules" ] && [ -n "$(ls -A $prefix/lib/gio/modules)" ] ; then gappsWrapperArgs+=(--prefix GIO_EXTRA_MODULES : "$prefix/lib/gio/modules") fi - for v in ${wrapPrefixVariables:-} GST_PLUGIN_SYSTEM_PATH_1_0 GI_TYPELIB_PATH GRL_PLUGIN_PATH; do - gappsWrapperArgs+=(--prefix "$v" : "${!v}") + for v in $wrapPrefixVariables GST_PLUGIN_SYSTEM_PATH_1_0 GI_TYPELIB_PATH GRL_PLUGIN_PATH; do + eval local dummy="\$$v" + gappsWrapperArgs+=(--prefix $v : "$dummy") done - if [[ -z "${dontWrapGApps:-}" ]]; then + if [[ -z "$dontWrapGApps" ]]; then targetDirsThatExist=() targetDirsRealPath=() @@ -58,7 +52,7 @@ wrapGAppsHook() { find "${targetDir}" -type f -executable -print0 \ | while IFS= read -r -d '' file; do echo "Wrapping program '${file}'" - wrapGApp "${file}" + wrapProgram "${file}" "${gappsWrapperArgs[@]}" done fi done @@ -77,7 +71,7 @@ wrapGAppsHook() { fi done echo "Wrapping link: '$linkPath'" - wrapGApp "${linkPath}" + wrapProgram "${linkPath}" "${gappsWrapperArgs[@]}" done fi fi diff --git a/pkgs/desktops/deepin/dde-daemon/default.nix b/pkgs/desktops/deepin/dde-daemon/default.nix index da217186e2768..19089a6b050e5 100644 --- a/pkgs/desktops/deepin/dde-daemon/default.nix +++ b/pkgs/desktops/deepin/dde-daemon/default.nix @@ -115,7 +115,7 @@ buildGoPackage rec { postFixup = '' # wrapGAppsHook does not work with binaries outside of $out/bin or $out/libexec for binary in $out/lib/deepin-daemon/*; do - wrapGApp "$binary" + wrapProgram $binary "''${gappsWrapperArgs[@]}" done searchHardCodedPaths $out # debugging diff --git a/pkgs/desktops/gnome-3/apps/gnome-characters/default.nix b/pkgs/desktops/gnome-3/apps/gnome-characters/default.nix index 9e44573d2e387..ac1e9ee85c015 100644 --- a/pkgs/desktops/gnome-3/apps/gnome-characters/default.nix +++ b/pkgs/desktops/gnome-3/apps/gnome-characters/default.nix @@ -64,7 +64,7 @@ stdenv.mkDerivation rec { sed -e $"2iimports.package._findEffectiveEntryPointName = () => \'$(basename $file)\' " \ -i $file - wrapGApp "$file" + wrapProgram $file "''${gappsWrapperArgs[@]}" done ''; diff --git a/pkgs/desktops/gnome-3/extensions/gsconnect/default.nix b/pkgs/desktops/gnome-3/extensions/gsconnect/default.nix index cef00513df1c4..cff0db665bbae 100644 --- a/pkgs/desktops/gnome-3/extensions/gsconnect/default.nix +++ b/pkgs/desktops/gnome-3/extensions/gsconnect/default.nix @@ -76,8 +76,8 @@ stdenv.mkDerivation rec { postFixup = '' # Let’s wrap the daemons for file in $out/share/gnome-shell/extensions/gsconnect@andyholmes.github.io/service/{{daemon,nativeMessagingHost}.js,components/folks.py}; do - echo "Wrapping program $file" - wrapGApp "$file" + echo "Wrapping program ''${file}" + wrapProgram "''${file}" "''${gappsWrapperArgs[@]}" done ''; diff --git a/pkgs/development/compilers/gerbil/build.nix b/pkgs/development/compilers/gerbil/build.nix index b5ccbca6f7e64..9ef650c330fab 100644 --- a/pkgs/development/compilers/gerbil/build.nix +++ b/pkgs/development/compilers/gerbil/build.nix @@ -1,6 +1,6 @@ { stdenv, makeStaticLibraries, coreutils, rsync, bash, - openssl, zlib, sqlite, libxml2, libyaml, libmysqlclient, lmdb, leveldb, postgresql, + openssl, zlib, sqlite, libxml2, libyaml, mysql, lmdb, leveldb, postgresql, version, git-version, gambit, src }: # TODO: distinct packages for gerbil-release and gerbil-devel @@ -12,13 +12,13 @@ stdenv.mkDerivation rec { inherit src; # Use makeStaticLibraries to enable creation of statically linked binaries - buildInputs_libraries = [ openssl zlib sqlite libxml2 libyaml libmysqlclient lmdb leveldb postgresql ]; + buildInputs_libraries = [ openssl zlib sqlite libxml2 libyaml mysql.connector-c lmdb leveldb postgresql ]; buildInputs_staticLibraries = map makeStaticLibraries buildInputs_libraries; buildInputs = [ gambit rsync bash ] ++ buildInputs_libraries ++ buildInputs_staticLibraries; - NIX_CFLAGS_COMPILE = [ "-I${libmysqlclient}/include/mysql" "-L${libmysqlclient}/lib/mysql" ]; + NIX_CFLAGS_COMPILE = [ "-I${mysql.connector-c}/include/mysql" "-L${mysql.connector-c}/lib/mysql" ]; postPatch = '' echo '(define (gerbil-version-string) "v${git-version}")' > src/gerbil/runtime/gx-version.scm @@ -40,7 +40,7 @@ ZLIB=${makeStaticLibraries zlib}/lib/libz.a # SQLITE=${makeStaticLibraries sqlite}/lib/sqlite.a # MISSING! # LIBXML2=${makeStaticLibraries libxml2}/lib/libxml2.a # MISSING! # YAML=${makeStaticLibraries libyaml}/lib/libyaml.a # MISSING! -MYSQL=${makeStaticLibraries libmysqlclient}/lib/mariadb/libmariadb.a +MYSQL=${makeStaticLibraries mysql.connector-c}/lib/mariadb/libmariadb.a # LMDB=${makeStaticLibraries lmdb}/lib/mysql/libmysqlclient_r.a # MISSING! LEVELDB=${makeStaticLibraries lmdb}/lib/libleveldb.a EOF diff --git a/pkgs/development/compilers/hhvm/default.nix b/pkgs/development/compilers/hhvm/default.nix index 7066744bb54dd..24e88f9ee2e2c 100644 --- a/pkgs/development/compilers/hhvm/default.nix +++ b/pkgs/development/compilers/hhvm/default.nix @@ -2,7 +2,7 @@ , pcre, libevent, gd, curl, libxml2, icu, flex, bison, openssl, zlib, php , expat, libcap, oniguruma, libdwarf, libmcrypt, tbb, gperftools, glog, libkrb5 , bzip2, openldap, readline, libelf, uwimap, binutils, cyrus_sasl, pam, libpng -, libxslt, freetype, gdb, git, perl, libmysqlclient, gmp, libyaml, libedit +, libxslt, freetype, gdb, git, perl, mysql, gmp, libyaml, libedit , libvpx, imagemagick, fribidi, gperf, which, ocamlPackages }: @@ -19,7 +19,7 @@ stdenv.mkDerivation rec { }; buildInputs = - [ cmake pkgconfig boost libunwind libmysqlclient libmemcached pcre gdb git perl + [ cmake pkgconfig boost libunwind mysql.connector-c libmemcached pcre gdb git perl libevent gd curl libxml2 icu flex bison openssl zlib php expat libcap oniguruma libdwarf libmcrypt tbb gperftools bzip2 openldap readline libelf uwimap binutils cyrus_sasl pam glog libpng libxslt libkrb5 diff --git a/pkgs/development/compilers/neko/default.nix b/pkgs/development/compilers/neko/default.nix index 79c4aacbed5b9..74ccaac388f26 100644 --- a/pkgs/development/compilers/neko/default.nix +++ b/pkgs/development/compilers/neko/default.nix @@ -1,5 +1,5 @@ { stdenv, fetchurl, boehmgc, zlib, sqlite, pcre, cmake, pkgconfig -, git, apacheHttpd, apr, aprutil, libmysqlclient, mbedtls, openssl, pkgs, gtk2, libpthreadstubs +, git, apacheHttpd, apr, aprutil, mysql, mbedtls, openssl, pkgs, gtk2, libpthreadstubs }: stdenv.mkDerivation rec { @@ -14,7 +14,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ cmake pkgconfig git ]; buildInputs = [ boehmgc zlib sqlite pcre apacheHttpd apr aprutil - libmysqlclient mbedtls openssl libpthreadstubs ] + mysql.connector-c mbedtls openssl libpthreadstubs ] ++ stdenv.lib.optional stdenv.isLinux gtk2 ++ stdenv.lib.optionals stdenv.isDarwin [ pkgs.darwin.apple_sdk.frameworks.Security pkgs.darwin.apple_sdk.frameworks.Carbon]; diff --git a/pkgs/development/compilers/urweb/default.nix b/pkgs/development/compilers/urweb/default.nix index 31381aac741d0..01d4972a55d50 100644 --- a/pkgs/development/compilers/urweb/default.nix +++ b/pkgs/development/compilers/urweb/default.nix @@ -1,5 +1,5 @@ { stdenv, fetchurl, file, openssl, mlton -, libmysqlclient, postgresql, sqlite, gcc, icu +, mysql, postgresql, sqlite, gcc, icu }: stdenv.mkDerivation rec { @@ -11,7 +11,7 @@ stdenv.mkDerivation rec { sha256 = "1cl0x0sy7w1lazszc8q06q3wx0x0rczxh27vimrsw54s6s9y096s"; }; - buildInputs = [ openssl mlton libmysqlclient postgresql sqlite icu ]; + buildInputs = [ openssl mlton mysql.connector-c postgresql sqlite icu ]; prePatch = '' sed -e 's@/usr/bin/file@${file}/bin/file@g' -i configure @@ -21,13 +21,13 @@ stdenv.mkDerivation rec { preConfigure = '' export PGHEADER="${postgresql}/include/libpq-fe.h"; - export MSHEADER="${libmysqlclient}/include/mysql/mysql.h"; + export MSHEADER="${mysql.connector-c}/include/mysql/mysql.h"; export SQHEADER="${sqlite.dev}/include/sqlite3.h"; export CC="${gcc}/bin/gcc"; export CCARGS="-I$out/include \ -L${openssl.out}/lib \ - -L${libmysqlclient}/lib \ + -L${mysql.connector-c}/lib \ -L${postgresql.lib}/lib \ -L${sqlite.out}/lib"; ''; diff --git a/pkgs/development/haskell-modules/configuration-nix.nix b/pkgs/development/haskell-modules/configuration-nix.nix index 91fdb1ece2767..5db25686fc66d 100644 --- a/pkgs/development/haskell-modules/configuration-nix.nix +++ b/pkgs/development/haskell-modules/configuration-nix.nix @@ -53,7 +53,7 @@ self: super: builtins.intersectAttrs super { # Use the default version of mysql to build this package (which is actually mariadb). # test phase requires networking - mysql = dontCheck (super.mysql.override { mysql = pkgs.libmysqlclient; }); + mysql = dontCheck (super.mysql.override { mysql = pkgs.mysql.connector-c; }); # CUDA needs help finding the SDK headers and libraries. cuda = overrideCabal super.cuda (drv: { diff --git a/pkgs/development/interpreters/perl/sw_vers.patch b/pkgs/development/interpreters/perl/sw_vers.patch index 2e30dba929242..9d4cd75486e64 100644 --- a/pkgs/development/interpreters/perl/sw_vers.patch +++ b/pkgs/development/interpreters/perl/sw_vers.patch @@ -7,7 +7,7 @@ index afadf53..80b7533 100644 # "ProductVersion: 10.10.5" "10.10" # "ProductVersion: 10.11" "10.11" - prodvers=`sw_vers|awk '/^ProductVersion:/{print $2}'|awk -F. '{print $1"."$2}'` -+ prodvers="${MACOSX_DEPLOYMENT_TARGET:-10.12}" ++ prodvers="10.10" case "$prodvers" in 10.*) add_macosx_version_min ccflags $prodvers diff --git a/pkgs/development/interpreters/php/default.nix b/pkgs/development/interpreters/php/default.nix index 508339d0da6b3..9a82868b7b3d3 100644 --- a/pkgs/development/interpreters/php/default.nix +++ b/pkgs/development/interpreters/php/default.nix @@ -1,6 +1,6 @@ # pcre functionality is tested in nixos/tests/php-pcre.nix { lib, stdenv, fetchurl, autoconf, bison, libtool, pkgconfig, re2c -, libmysqlclient, libxml2, readline, zlib, curl, postgresql, gettext +, mysql, libxml2, readline, zlib, curl, postgresql, gettext , openssl, pcre, pcre2, sqlite, config, libjpeg, libpng, freetype , libxslt, libmcrypt, bzip2, icu, openldap, cyrus_sasl, libmhash, unixODBC , uwimap, pam, gmp, apacheHttpd, libiconv, systemd, libsodium, html-tidy, libargon2 @@ -64,7 +64,7 @@ let }: let - mysqlBuildInputs = optional (!mysqlndSupport) libmysqlclient; + mysqlBuildInputs = optional (!mysqlndSupport) mysql.connector-c; libmcrypt' = libmcrypt.override { disablePosixThreads = true; }; in stdenv.mkDerivation { @@ -149,9 +149,9 @@ let ++ optional postgresqlSupport "--with-pgsql=${postgresql}" ++ optional pdo_odbcSupport "--with-pdo-odbc=unixODBC,${unixODBC}" ++ optional pdo_pgsqlSupport "--with-pdo-pgsql=${postgresql}" - ++ optional pdo_mysqlSupport "--with-pdo-mysql=${if mysqlndSupport then "mysqlnd" else libmysqlclient}" + ++ optional pdo_mysqlSupport "--with-pdo-mysql=${if mysqlndSupport then "mysqlnd" else mysql.connector-c}" ++ optionals mysqliSupport [ - "--with-mysqli=${if mysqlndSupport then "mysqlnd" else "${libmysqlclient}/bin/mysql_config"}" + "--with-mysqli=${if mysqlndSupport then "mysqlnd" else "${mysql.connector-c}/bin/mysql_config"}" ] ++ optional ( pdo_mysqlSupport || mysqliSupport ) "--with-mysql-sock=/run/mysqld/mysqld.sock" ++ optional bcmathSupport "--enable-bcmath" diff --git a/pkgs/development/libraries/cppdb/default.nix b/pkgs/development/libraries/cppdb/default.nix index a21b3cc93faa0..737122c57bfe2 100644 --- a/pkgs/development/libraries/cppdb/default.nix +++ b/pkgs/development/libraries/cppdb/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, cmake, sqlite, libmysqlclient, postgresql, unixODBC }: +{ stdenv, fetchurl, cmake, sqlite, mysql, postgresql, unixODBC }: stdenv.mkDerivation rec { pname = "cppdb"; @@ -11,10 +11,10 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; - buildInputs = [ cmake sqlite libmysqlclient postgresql unixODBC ]; + buildInputs = [ cmake sqlite mysql.connector-c postgresql unixODBC ]; cmakeFlags = [ "--no-warn-unused-cli" ]; - NIX_CFLAGS_COMPILE = [ "-I${libmysqlclient}/include/mysql" "-L${libmysqlclient}/lib/mysql" ]; + NIX_CFLAGS_COMPILE = [ "-I${mysql.connector-c}/include/mysql" "-L${mysql.connector-c}/lib/mysql" ]; meta = with stdenv.lib; { homepage = http://cppcms.com/sql/cppdb/; diff --git a/pkgs/development/libraries/expat/default.nix b/pkgs/development/libraries/expat/default.nix index bb86ac57832ad..ef2574019459d 100644 --- a/pkgs/development/libraries/expat/default.nix +++ b/pkgs/development/libraries/expat/default.nix @@ -1,11 +1,11 @@ { stdenv, fetchurl }: stdenv.mkDerivation rec { - name = "expat-2.2.8"; + name = "expat-2.2.7"; src = fetchurl { - url = "https://github.com/libexpat/libexpat/releases/download/R_2_2_8/${name}.tar.xz"; - sha256 = "16vpj5mk3lps3x7fr8cs03rffx3ir4jilyqw0frayn6q94daijk1"; + url = "mirror://sourceforge/expat/${name}.tar.bz2"; + sha256 = "067cfhqwiswm4zynw7xaxl59mrrimaiyjhnn8byxma1i98pi1jfb"; }; outputs = [ "out" "dev" ]; # TODO: fix referrers diff --git a/pkgs/development/libraries/gdal/2.4.0.nix b/pkgs/development/libraries/gdal/2.4.0.nix index d41b4c55f867d..baf847d4e0a28 100644 --- a/pkgs/development/libraries/gdal/2.4.0.nix +++ b/pkgs/development/libraries/gdal/2.4.0.nix @@ -1,5 +1,5 @@ { stdenv, fetchurl, fetchpatch, unzip, libjpeg, libtiff, zlib -, postgresql, libmysqlclient, libgeotiff, pythonPackages, proj, geos, openssl +, postgresql, mysql, libgeotiff, pythonPackages, proj, geos, openssl , libpng, sqlite, libspatialite, poppler, hdf4, qhull, giflib, expat , libiconv, libxml2 , netcdfSupport ? true, netcdf, hdf5, curl @@ -30,7 +30,7 @@ stdenv.mkDerivation rec { "--with-poppler=${poppler.dev}" # optional "--with-libz=${zlib.dev}" # optional "--with-pg=${postgresql}/bin/pg_config" - "--with-mysql=${libmysqlclient}/bin/mysql_config" + "--with-mysql=${mysql.connector-c or mysql}/bin/mysql_config" "--with-geotiff=${libgeotiff.dev}" "--with-sqlite3=${sqlite.dev}" "--with-spatialite=${libspatialite}" diff --git a/pkgs/development/libraries/gdal/default.nix b/pkgs/development/libraries/gdal/default.nix index bb53277075f13..413d4e19dde75 100644 --- a/pkgs/development/libraries/gdal/default.nix +++ b/pkgs/development/libraries/gdal/default.nix @@ -1,5 +1,5 @@ { stdenv, fetchFromGitHub, fetchpatch, unzip, libjpeg, libtiff, zlib -, postgresql, libmysqlclient, libgeotiff, pythonPackages, proj, geos, openssl +, postgresql, mysql, libgeotiff, pythonPackages, proj, geos, openssl , libpng, sqlite, libspatialite, poppler, hdf4, qhull, giflib, expat , libiconv, libxml2, autoreconfHook , netcdfSupport ? true, netcdf, hdf5, curl @@ -38,7 +38,7 @@ stdenv.mkDerivation rec { "--with-poppler=${poppler.dev}" # optional "--with-libz=${zlib.dev}" # optional "--with-pg=${postgresql}/bin/pg_config" - "--with-mysql=${libmysqlclient}/bin/mysql_config" + "--with-mysql=${mysql.connector-c or mysql}/bin/mysql_config" "--with-geotiff=${libgeotiff}" "--with-sqlite3=${sqlite.dev}" "--with-spatialite=${libspatialite}" diff --git a/pkgs/development/libraries/giflib/5.1.nix b/pkgs/development/libraries/giflib/5.1.nix new file mode 100644 index 0000000000000..fee760b3ea26f --- /dev/null +++ b/pkgs/development/libraries/giflib/5.1.nix @@ -0,0 +1,18 @@ +{stdenv, fetchurl, xmlto, docbook_xml_dtd_412, docbook_xsl, libxml2 }: + +stdenv.mkDerivation { + name = "giflib-5.1.4"; + src = fetchurl { + url = mirror://sourceforge/giflib/giflib-5.1.4.tar.bz2; + sha256 = "1md83dip8rf29y40cm5r7nn19705f54iraz6545zhwa6y8zyq9yz"; + }; + + buildInputs = [ xmlto docbook_xml_dtd_412 docbook_xsl libxml2 ]; + meta = { + description = "A library for reading and writing gif images"; + platforms = stdenv.lib.platforms.unix; + license = stdenv.lib.licenses.mit; + maintainers = with stdenv.lib.maintainers; [ fuuzetsu ]; + branch = "5.1"; + }; +} diff --git a/pkgs/development/libraries/giflib/default.nix b/pkgs/development/libraries/giflib/default.nix deleted file mode 100644 index d97477e3f3a50..0000000000000 --- a/pkgs/development/libraries/giflib/default.nix +++ /dev/null @@ -1,24 +0,0 @@ -{stdenv, fetchurl, xmlto, docbook_xml_dtd_412, docbook_xsl, libxml2 }: - -stdenv.mkDerivation rec { - name = "giflib-5.2.1"; - src = fetchurl { - url = "mirror://sourceforge/giflib/${name}.tar.gz"; - sha256 = "1gbrg03z1b6rlrvjyc6d41bc8j1bsr7rm8206gb1apscyii5bnii"; - }; - - postPatch = '' - substituteInPlace Makefile \ - --replace 'PREFIX = /usr/local' 'PREFIX = ${builtins.placeholder "out"}' - ''; - - buildInputs = [ xmlto docbook_xml_dtd_412 docbook_xsl libxml2 ]; - - meta = { - description = "A library for reading and writing gif images"; - platforms = stdenv.lib.platforms.unix; - license = stdenv.lib.licenses.mit; - maintainers = with stdenv.lib.maintainers; [ fuuzetsu ]; - branch = "5.2"; - }; -} diff --git a/pkgs/development/libraries/kdb/default.nix b/pkgs/development/libraries/kdb/default.nix index 03eabc6447b43..4a403a19964e9 100644 --- a/pkgs/development/libraries/kdb/default.nix +++ b/pkgs/development/libraries/kdb/default.nix @@ -1,7 +1,7 @@ { mkDerivation, lib, fetchurl, extra-cmake-modules, - qtbase, qttranslations, kcoreaddons, python2, sqlite, postgresql, libmysqlclient + qtbase, qttranslations, kcoreaddons, python2, sqlite, postgresql, mysql }: mkDerivation rec { @@ -15,7 +15,7 @@ mkDerivation rec { nativeBuildInputs = [ extra-cmake-modules ]; - buildInputs = [ qttranslations kcoreaddons python2 sqlite postgresql libmysqlclient ]; + buildInputs = [ qttranslations kcoreaddons python2 sqlite postgresql mysql.connector-c ]; propagatedBuildInputs = [ qtbase ]; diff --git a/pkgs/development/libraries/libagar/default.nix b/pkgs/development/libraries/libagar/default.nix index 630b17121587e..48fb0f1153e78 100644 --- a/pkgs/development/libraries/libagar/default.nix +++ b/pkgs/development/libraries/libagar/default.nix @@ -1,6 +1,6 @@ { stdenv, fetchurl, pkgconfig, libtool, perl, bsdbuild, gettext, mandoc , libpng, libjpeg, xlibsWrapper, libXinerama, freetype, SDL, libGLU_combined -, libsndfile, portaudio, libmysqlclient, fontconfig +, libsndfile, portaudio, mysql, fontconfig }: let srcs = import ./srcs.nix { inherit fetchurl; }; in @@ -20,7 +20,7 @@ stdenv.mkDerivation { "--with-gettext=${gettext}" "--with-jpeg=${libjpeg.dev}" "--with-gl=${libGLU_combined}" - "--with-mysql=${libmysqlclient}" + "--with-mysql=${mysql.connector-c}" "--with-manpages=yes" ]; @@ -29,7 +29,7 @@ stdenv.mkDerivation { nativeBuildInputs = [ pkgconfig libtool gettext ]; buildInputs = [ - bsdbuild perl xlibsWrapper libXinerama SDL libGLU_combined libmysqlclient mandoc + bsdbuild perl xlibsWrapper libXinerama SDL libGLU_combined mysql.connector-c mandoc freetype.dev libpng libjpeg.dev fontconfig portaudio libsndfile ]; diff --git a/pkgs/development/libraries/libdbi-drivers/default.nix b/pkgs/development/libraries/libdbi-drivers/default.nix index 52b8a32fab4a5..99cd636b03b8e 100644 --- a/pkgs/development/libraries/libdbi-drivers/default.nix +++ b/pkgs/development/libraries/libdbi-drivers/default.nix @@ -1,5 +1,5 @@ { stdenv, fetchurl, libdbi -, libmysqlclient ? null +, mysql ? null , sqlite ? null , postgresql ? null }: @@ -13,7 +13,7 @@ stdenv.mkDerivation rec { sha256 = "0m680h8cc4428xin4p733azysamzgzcmv4psjvraykrsaz6ymlj3"; }; - buildInputs = [ libdbi sqlite postgresql ] ++ optional (libmysqlclient != null) libmysqlclient; + buildInputs = [ libdbi sqlite postgresql ] ++ optional (mysql != null) mysql.connector-c; postPatch = '' sed -i '/SQLITE3_LIBS/ s/-lsqlite/-lsqlite3/' configure; @@ -26,10 +26,10 @@ stdenv.mkDerivation rec { "--enable-libdbi" "--with-dbi-incdir=${libdbi}/include" "--with-dbi-libdir=${libdbi}/lib" - ] ++ optionals (libmysqlclient != null) [ + ] ++ optionals (mysql != null) [ "--with-mysql" - "--with-mysql-incdir=${libmysqlclient}/include/mysql" - "--with-mysql-libdir=${libmysqlclient}/lib/mysql" + "--with-mysql-incdir=${mysql.connector-c}/include/mysql" + "--with-mysql-libdir=${mysql.connector-c}/lib/mysql" ] ++ optionals (sqlite != null) [ "--with-sqlite3" "--with-sqlite3-incdir=${sqlite.dev}/include/sqlite" diff --git a/pkgs/development/libraries/libgda/default.nix b/pkgs/development/libraries/libgda/default.nix index 270326079963d..bb6402dc42872 100644 --- a/pkgs/development/libraries/libgda/default.nix +++ b/pkgs/development/libraries/libgda/default.nix @@ -1,10 +1,10 @@ { stdenv, fetchurl, pkgconfig, intltool, itstool, libxml2, gtk3, openssl, gnome3, gobject-introspection, vala, libgee , overrideCC, gcc6 -, mysqlSupport ? false, libmysqlclient ? null +, mysqlSupport ? false, mysql ? null , postgresSupport ? false, postgresql ? null }: -assert mysqlSupport -> libmysqlclient != null; +assert mysqlSupport -> mysql != null; assert postgresSupport -> postgresql != null; (if stdenv.isAarch64 then overrideCC stdenv gcc6 else stdenv).mkDerivation rec { @@ -25,7 +25,7 @@ assert postgresSupport -> postgresql != null; nativeBuildInputs = [ pkgconfig intltool itstool libxml2 gobject-introspection vala ]; buildInputs = with stdenv.lib; [ gtk3 openssl libgee ] - ++ optional (mysqlSupport) libmysqlclient + ++ optional (mysqlSupport) mysql.connector-c ++ optional (postgresSupport) postgresql; passthru = { diff --git a/pkgs/development/libraries/libgdiplus/default.nix b/pkgs/development/libraries/libgdiplus/default.nix index ca65c3fdf8c21..9ba3cdbd09aac 100644 --- a/pkgs/development/libraries/libgdiplus/default.nix +++ b/pkgs/development/libraries/libgdiplus/default.nix @@ -2,19 +2,33 @@ , libtiff, giflib, libjpeg, libpng , libXrender, libexif, autoreconfHook, fetchpatch }: -stdenv.mkDerivation rec { - pname = "libgdiplus"; - version = "6.0.2"; +stdenv.mkDerivation { + name = "libgdiplus-5.6.1"; src = fetchFromGitHub { owner = "mono"; repo = "libgdiplus"; - rev = version; - sha256 = "07a3n7i35mn5j2djah64by785b1hzy8ckk1pz0xwvk716yzb7sxg"; + rev = "5.6.1"; + sha256 = "023xf3l2s0mxcdbl2viglzrkhx3lwcrpm66fiq7cfdqz80d4vsj2"; }; NIX_LDFLAGS = "-lgif"; + patches = [ # Series of patches cherry-picked from master, all fixes various sigsegv (or required by other patch) + (fetchpatch { + url = "https://github.com/mono/libgdiplus/commit/d33a2580a94701ff33abe28c22881d6173be57d0.patch"; + sha256 = "0rr54jylscn4icqjprqhwrncyr92r0d7kmfrrq3myskplpqv1c11"; + }) + (fetchpatch { + url ="https://github.com/mono/libgdiplus/commit/aa6aa53906935572f52f519fe4ab9ebedc051d08.patch"; + sha256 = "1wg0avm8qv5cb4vk80baflfzszm6q7ydhn89c3h6kq68hg6zsf1f"; + }) + (fetchpatch { + url = "https://github.com/mono/libgdiplus/commit/81e45a1d5a3ac3cf035bcc3fabb2859818b6cc04.patch"; + sha256 = "07wmc88cd1lqifs5x6npryni65jyy9gi8lgr2i1lb7v0fhvlyswg"; + }) + ]; + hardeningDisable = [ "format" ]; nativeBuildInputs = [ autoreconfHook pkgconfig ]; diff --git a/pkgs/development/libraries/librdf/redland.nix b/pkgs/development/libraries/librdf/redland.nix index 8835490187d1d..30d8d8a94e9d5 100644 --- a/pkgs/development/libraries/librdf/redland.nix +++ b/pkgs/development/libraries/librdf/redland.nix @@ -1,6 +1,6 @@ { stdenv, fetchurl, pkgconfig, openssl, libxslt, perl , curl, pcre, libxml2, librdf_rasqal, gmp -, libmysqlclient, withMysql ? false +, mysql, withMysql ? false , postgresql, withPostgresql ? false , sqlite, withSqlite ? true , db, withBdb ? false @@ -17,7 +17,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ perl pkgconfig ]; buildInputs = [ openssl libxslt curl pcre libxml2 gmp ] - ++ stdenv.lib.optional withMysql libmysqlclient + ++ stdenv.lib.optional withMysql mysql.connector-c ++ stdenv.lib.optional withSqlite sqlite ++ stdenv.lib.optional withPostgresql postgresql ++ stdenv.lib.optional withBdb db; diff --git a/pkgs/development/libraries/opendbx/default.nix b/pkgs/development/libraries/opendbx/default.nix index 16ec6a5c11032..f954aaf72457e 100644 --- a/pkgs/development/libraries/opendbx/default.nix +++ b/pkgs/development/libraries/opendbx/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, readline, libmysqlclient, postgresql, sqlite }: +{ stdenv, fetchurl, readline, mysql, postgresql, sqlite }: stdenv.mkDerivation rec { name = "opendbx-1.4.6"; @@ -9,12 +9,12 @@ stdenv.mkDerivation rec { }; preConfigure = '' - export CPPFLAGS="-I${libmysqlclient}/include/mysql" - export LDFLAGS="-L${libmysqlclient}/lib/mysql -L${postgresql}/lib" + export CPPFLAGS="-I${mysql.connector-c}/include/mysql" + export LDFLAGS="-L${mysql.connector-c}/lib/mysql -L${postgresql}/lib" configureFlagsArray=(--with-backends="mysql pgsql sqlite3") ''; - buildInputs = [ readline libmysqlclient postgresql sqlite ]; + buildInputs = [ readline mysql.connector-c postgresql sqlite ]; meta = with stdenv.lib; { description = "Extremely lightweight but extensible database access library written in C"; diff --git a/pkgs/development/libraries/openssl/default.nix b/pkgs/development/libraries/openssl/default.nix index 0b026ae75f4e1..03082eab09178 100644 --- a/pkgs/development/libraries/openssl/default.nix +++ b/pkgs/development/libraries/openssl/default.nix @@ -127,8 +127,8 @@ let in { openssl_1_0_2 = common { - version = "1.0.2t"; - sha256 = "1g67ra0ph7gpz6fgvv1i96d792jmd6ymci5kk53vbikszr74djql"; + version = "1.0.2s"; + sha256 = "15mbmg8hf7s12vr3v2bdc0pi9y4pdbnsxhzk4fyyap42jaa5rgfa"; patches = [ ./1.0.2/nix-ssl-cert-file.patch @@ -139,8 +139,8 @@ in { }; openssl_1_1 = common { - version = "1.1.1d"; - sha256 = "1whinyw402z3b9xlb3qaxv4b9sk4w1bgh9k0y8df1z4x3yy92fhy"; + version = "1.1.1c"; + sha256 = "142c7zdlz06hjrrvinb9f276czc78bnkyhd9xma621qmmmwk1yzn"; patches = [ ./1.1/nix-ssl-cert-file.patch diff --git a/pkgs/development/libraries/poco/default.nix b/pkgs/development/libraries/poco/default.nix index e69ed0236f486..c19e343f19aec 100644 --- a/pkgs/development/libraries/poco/default.nix +++ b/pkgs/development/libraries/poco/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, cmake, pkgconfig, zlib, pcre, expat, sqlite, openssl, unixODBC, libmysqlclient }: +{ stdenv, fetchurl, cmake, pkgconfig, zlib, pcre, expat, sqlite, openssl, unixODBC, mysql }: stdenv.mkDerivation rec { pname = "poco"; @@ -12,9 +12,9 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ cmake pkgconfig ]; - buildInputs = [ zlib pcre expat sqlite openssl unixODBC libmysqlclient ]; + buildInputs = [ zlib pcre expat sqlite openssl unixODBC mysql.connector-c ]; - MYSQL_DIR = libmysqlclient; + MYSQL_DIR = mysql.connector-c; MYSQL_INCLUDE_DIR = "${MYSQL_DIR}/include/mysql"; cmakeFlags = [ diff --git a/pkgs/development/libraries/qt-3/default.nix b/pkgs/development/libraries/qt-3/default.nix index a46dcec031283..3b3f406485c7d 100644 --- a/pkgs/development/libraries/qt-3/default.nix +++ b/pkgs/development/libraries/qt-3/default.nix @@ -5,7 +5,7 @@ , xineramaSupport ? true, libXinerama ? null , cursorSupport ? true, libXcursor ? null , threadSupport ? true -, mysqlSupport ? false, libmysqlclient ? null +, mysqlSupport ? false, mysql ? null , libGLSupported ? stdenv.lib.elem stdenv.hostPlatform.system stdenv.lib.platforms.mesaPlatforms , openglSupport ? stdenv.lib.elem stdenv.hostPlatform.system stdenv.lib.platforms.mesaPlatforms , libGLU_combined ? null, libXmu ? null @@ -16,7 +16,7 @@ assert xftSupport -> libXft != null; assert xrenderSupport -> xftSupport && libXrender != null; assert xrandrSupport -> libXrandr != null; assert cursorSupport -> libXcursor != null; -assert mysqlSupport -> libmysqlclient != null; +assert mysqlSupport -> mysql != null; assert openglSupport -> libGLU_combined != null && libXmu != null; stdenv.mkDerivation { @@ -62,7 +62,7 @@ stdenv.mkDerivation { ] ++ stdenv.lib.optionals cursorSupport [ "-L${libXcursor.out}/lib -I${libXcursor.dev}/include" ] ++ stdenv.lib.optionals mysqlSupport [ - "-qt-sql-mysql" "-L${libmysqlclient}/lib/mysql" "-I${libmysqlclient}/include/mysql" + "-qt-sql-mysql" "-L${mysql.connector-c}/lib/mysql" "-I${mysql.connector-c}/include/mysql" ] ++ stdenv.lib.optionals xftSupport [ "-L${libXft.out}/lib" "-I${libXft.dev}/include" "-L${libXft.freetype.out}/lib" "-I${libXft.freetype.dev}/include" diff --git a/pkgs/development/libraries/qt-4.x/4.8/default.nix b/pkgs/development/libraries/qt-4.x/4.8/default.nix index 7c7f8f51de7dd..b5a10e8f11a75 100644 --- a/pkgs/development/libraries/qt-4.x/4.8/default.nix +++ b/pkgs/development/libraries/qt-4.x/4.8/default.nix @@ -2,7 +2,7 @@ , libXrender, libXinerama, libXcursor, libXv, libXext , libXfixes, libXrandr, libSM, freetype, fontconfig, zlib, libjpeg, libpng , libmng, which, libGLU, openssl, dbus, cups, pkgconfig -, libtiff, glib, icu, libmysqlclient, postgresql, sqlite, perl, coreutils, libXi +, libtiff, glib, icu, mysql, postgresql, sqlite, perl, coreutils, libXi , buildMultimedia ? stdenv.isLinux, alsaLib, gstreamer, gst-plugins-base , buildWebkit ? (stdenv.isLinux || stdenv.isDarwin) , libGLSupported ? stdenv.lib.elem stdenv.hostPlatform.system stdenv.lib.platforms.mesaPlatforms @@ -166,7 +166,7 @@ stdenv.mkDerivation rec { (mk (!stdenv.isFreeBSD) "opengl") "-xrender" "-xrandr" "-xinerama" "-xcursor" "-xinput" "-xfixes" "-fontconfig" "-qdbus" (mk (cups != null) "cups") "-glib" "-dbus-linked" "-openssl-linked" - "-${if libmysqlclient != null then "plugin" else "no"}-sql-mysql" "-system-sqlite" + "-${if mysql != null then "plugin" else "no"}-sql-mysql" "-system-sqlite" "-exceptions" "-xmlpatterns" @@ -192,7 +192,7 @@ stdenv.mkDerivation rec { buildInputs = [ cups # Qt dlopen's libcups instead of linking to it postgresql sqlite libjpeg libmng libtiff icu ] - ++ lib.optionals (libmysqlclient != null) [ libmysqlclient ] + ++ lib.optionals (mysql != null) [ mysql.connector-c ] ++ lib.optionals gtkStyle [ gtk2 gdk-pixbuf ] ++ lib.optionals stdenv.isDarwin [ ApplicationServices OpenGL Cocoa AGL libcxx libobjc ]; diff --git a/pkgs/development/libraries/qt-5/modules/qtbase.nix b/pkgs/development/libraries/qt-5/modules/qtbase.nix index 8119513618b24..e2c71a77062eb 100644 --- a/pkgs/development/libraries/qt-5/modules/qtbase.nix +++ b/pkgs/development/libraries/qt-5/modules/qtbase.nix @@ -14,7 +14,7 @@ zlib, # optional dependencies - cups ? null, libmysqlclient ? null, postgresql ? null, + cups ? null, mysql ? null, postgresql ? null, withGtk3 ? false, dconf ? null, gtk3 ? null, # options @@ -80,7 +80,7 @@ stdenv.mkDerivation { ) ++ lib.optional developerBuild gdb ++ lib.optional (cups != null) cups - ++ lib.optional (libmysqlclient != null) libmysqlclient + ++ lib.optional (mysql != null) mysql.connector-c ++ lib.optional (postgresql != null) postgresql; nativeBuildInputs = @@ -285,7 +285,7 @@ stdenv.mkDerivation { "-L" "${openssl.out}/lib" "-I" "${openssl.dev}/include" "-system-sqlite" - ''-${if libmysqlclient != null then "plugin" else "no"}-sql-mysql'' + ''-${if mysql != null then "plugin" else "no"}-sql-mysql'' ''-${if postgresql != null then "plugin" else "no"}-sql-psql'' "-make libs" @@ -349,9 +349,9 @@ stdenv.mkDerivation { "-L" "${cups.lib}/lib" "-I" "${cups.dev}/include" ] - ++ lib.optionals (libmysqlclient != null) [ - "-L" "${libmysqlclient}/lib" - "-I" "${libmysqlclient}/include" + ++ lib.optionals (mysql != null) [ + "-L" "${mysql.out}/lib" + "-I" "${mysql.out}/include" ] ); diff --git a/pkgs/development/libraries/tntdb/default.nix b/pkgs/development/libraries/tntdb/default.nix index 2d6ae3f18cad8..13b4e6b97a9a1 100644 --- a/pkgs/development/libraries/tntdb/default.nix +++ b/pkgs/development/libraries/tntdb/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, cxxtools, postgresql, libmysqlclient, sqlite, zlib, openssl }: +{ stdenv, fetchurl, cxxtools, postgresql, mysql, sqlite, zlib, openssl }: stdenv.mkDerivation rec { pname = "tntdb"; @@ -9,7 +9,7 @@ stdenv.mkDerivation rec { sha256 = "0js79dbvkic30bzw1pf26m64vs2ssw2sbj55w1dc0sy69dlv4fh9"; }; - buildInputs = [ cxxtools postgresql libmysqlclient sqlite zlib openssl ]; + buildInputs = [ cxxtools postgresql mysql.connector-c sqlite zlib openssl ]; enableParallelBuilding = true; diff --git a/pkgs/development/libraries/unixODBCDrivers/default.nix b/pkgs/development/libraries/unixODBCDrivers/default.nix index 44e7ed17f0c67..b9aa1696d4878 100644 --- a/pkgs/development/libraries/unixODBCDrivers/default.nix +++ b/pkgs/development/libraries/unixODBCDrivers/default.nix @@ -1,4 +1,4 @@ -{ fetchurl, stdenv, unixODBC, cmake, postgresql, mysql, libmysqlclient, sqlite, zlib, libxml2, dpkg, lib, openssl, kerberos, curl, libuuid, autoPatchelfHook }: +{ fetchurl, stdenv, unixODBC, cmake, postgresql, mysql, mariadb, sqlite, zlib, libxml2, dpkg, lib, kerberos, curl, libuuid, autoPatchelfHook }: # I haven't done any parameter tweaking.. So the defaults provided here might be bad @@ -29,23 +29,18 @@ mariadb = stdenv.mkDerivation rec { pname = "mariadb-connector-odbc"; - version = "3.1.2"; + version = "2.0.10"; src = fetchurl { - url = "https://downloads.mariadb.org/interstitial/connector-odbc-${version}/${pname}-${version}-ga-src.tar.gz"; - sha256 = "0iibly2mbqijqyq4pzpb6dh40clqhvqrhgnj8knm4bw3nlksd0d5"; + url = "https://downloads.mariadb.org/interstitial/connector-odbc-${version}/src/${pname}-${version}-ga-src.tar.gz"; + sha256 = "0b6ximy0dg0xhqbrm1l7pn8hjapgpmddi67kh54h6i9cq9hqfdvz"; }; nativeBuildInputs = [ cmake ]; - buildInputs = [ unixODBC libmysqlclient openssl ]; + buildInputs = [ unixODBC mariadb.connector-c ]; cmakeFlags = [ - "-DWITH_OPENSSL=ON" - ]; - - NIX_CFLAGS_COMPILE = [ - "-I${libmysqlclient}/include/mysql" - "-L${libmysqlclient}/lib/mysql" + "-DMARIADB_INCLUDE_DIR=${mariadb.connector-c}/include/mariadb" ]; passthru = { diff --git a/pkgs/development/libraries/wt/default.nix b/pkgs/development/libraries/wt/default.nix index 31fa104fb059d..319b0effc5788 100644 --- a/pkgs/development/libraries/wt/default.nix +++ b/pkgs/development/libraries/wt/default.nix @@ -1,5 +1,5 @@ { stdenv, fetchFromGitHub, cmake, boost, pkgconfig, doxygen, qt48Full, libharu -, pango, fcgi, firebird, libmysqlclient, postgresql, graphicsmagick, glew, openssl +, pango, fcgi, firebird, mysql, postgresql, graphicsmagick, glew, openssl , pcre, harfbuzz }: @@ -22,7 +22,7 @@ let nativeBuildInputs = [ pkgconfig ]; buildInputs = [ cmake boost doxygen qt48Full libharu - pango fcgi firebird libmysqlclient postgresql graphicsmagick glew + pango fcgi firebird mysql.connector-c postgresql graphicsmagick glew openssl pcre ]; @@ -30,7 +30,7 @@ let "-DWT_WRASTERIMAGE_IMPLEMENTATION=GraphicsMagick" "-DWT_CPP_11_MODE=-std=c++11" "-DGM_PREFIX=${graphicsmagick}" - "-DMYSQL_PREFIX=${libmysqlclient}" + "-DMYSQL_PREFIX=${mysql.connector-c}" "-DHARFBUZZ_INCLUDE_DIR=${harfbuzz.dev}/include" "--no-warn-unused-cli" ]; diff --git a/pkgs/development/lisp-modules/quicklisp-to-nix-overrides.nix b/pkgs/development/lisp-modules/quicklisp-to-nix-overrides.nix index acc98215af01c..052bfb1194987 100644 --- a/pkgs/development/lisp-modules/quicklisp-to-nix-overrides.nix +++ b/pkgs/development/lisp-modules/quicklisp-to-nix-overrides.nix @@ -53,11 +53,11 @@ in cl-async-ssl = addNativeLibs [pkgs.openssl (import ./openssl-lib-marked.nix)]; cl-async-test = addNativeLibs [pkgs.openssl]; clsql = x: { - propagatedBuildInputs = with pkgs; [libmysqlclient postgresql sqlite zlib]; + propagatedBuildInputs = with pkgs; [mysql.connector-c postgresql sqlite zlib]; overrides = y: (x.overrides y) // { preConfigure = ((x.overrides y).preConfigure or "") + '' - export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${pkgs.libmysqlclient}/include/mysql" - export NIX_LDFLAGS="$NIX_LDFLAGS -L${pkgs.libmysqlclient}/lib/mysql" + export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${pkgs.mysql.connector-c}/include/mysql" + export NIX_LDFLAGS="$NIX_LDFLAGS -L${pkgs.mysql.connector-c}/lib/mysql" ''; }; }; @@ -77,7 +77,7 @@ $out/lib/common-lisp/query-fs" }; }; cffi = addNativeLibs [pkgs.libffi]; - cl-mysql = addNativeLibs [pkgs.libmysqlclient]; + cl-mysql = addNativeLibs [pkgs.mysql]; cl-ppcre-template = x: { overrides = y: (x.overrides y) // { postPatch = '' diff --git a/pkgs/development/lisp-modules/shell.nix b/pkgs/development/lisp-modules/shell.nix index 4a1f9ded56c87..b3d50b2fb0757 100644 --- a/pkgs/development/lisp-modules/shell.nix +++ b/pkgs/development/lisp-modules/shell.nix @@ -6,11 +6,11 @@ self = rec { env = buildEnv { name = name; paths = buildInputs; }; buildInputs = [ gcc stdenv - openssl fuse libuv libmysqlclient libfixposix libev sqlite + openssl fuse libuv mysql.connector-c libfixposix libev sqlite freetds lispPackages.quicklisp-to-nix lispPackages.quicklisp-to-nix-system-info ]; CPATH = "${libfixposix}/include"; - LD_LIBRARY_PATH = "${openssl.out}/lib:${fuse}/lib:${libuv}/lib:${libev}/lib:${libmysqlclient}/lib:${libmysqlclient}/lib/mysql:${postgresql.lib}/lib:${sqlite.out}/lib:${libfixposix}/lib:${freetds}/lib:${openssl_lib_marked}/lib"; + LD_LIBRARY_PATH = "${openssl.out}/lib:${fuse}/lib:${libuv}/lib:${libev}/lib:${mysql.connector-c}/lib:${mysql.connector-c}/lib/mysql:${postgresql.lib}/lib:${sqlite.out}/lib:${libfixposix}/lib:${freetds}/lib:${openssl_lib_marked}/lib"; }; in stdenv.mkDerivation self diff --git a/pkgs/development/lua-modules/overrides.nix b/pkgs/development/lua-modules/overrides.nix index 41dae8347eede..233503c2eca86 100644 --- a/pkgs/development/lua-modules/overrides.nix +++ b/pkgs/development/lua-modules/overrides.nix @@ -154,12 +154,12 @@ with super; luadbi-mysql = super.luadbi-mysql.override({ extraVariables = '' -- Can't just be /include and /lib, unfortunately needs the trailing 'mysql' - MYSQL_INCDIR='${pkgs.libmysqlclient}/include/mysql'; - MYSQL_LIBDIR='${pkgs.libmysqlclient}/lib/mysql'; + MYSQL_INCDIR='${pkgs.mysql.connector-c}/include/mysql'; + MYSQL_LIBDIR='${pkgs.mysql.connector-c}/lib/mysql'; ''; buildInputs = [ pkgs.mysql.client - pkgs.libmysqlclient + pkgs.mysql.connector-c ]; }); diff --git a/pkgs/development/ocaml-modules/mysql/default.nix b/pkgs/development/ocaml-modules/mysql/default.nix index 9be5ebf8a7bc9..1986f7e48f69e 100644 --- a/pkgs/development/ocaml-modules/mysql/default.nix +++ b/pkgs/development/ocaml-modules/mysql/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, fetchpatch, ocaml, findlib, libmysqlclient }: +{ stdenv, fetchurl, fetchpatch, ocaml, findlib, mysql }: # TODO: la versione stabile da' un errore di compilazione dovuto a # qualche cambiamento negli header .h @@ -26,7 +26,7 @@ stdenv.mkDerivation rec { createFindlibDestdir = true; - propagatedBuildInputs = [ libmysqlclient ]; + propagatedBuildInputs = [ mysql.connector-c ]; patches = [ (fetchpatch { diff --git a/pkgs/development/perl-modules/DBD-mysql/default.nix b/pkgs/development/perl-modules/DBD-mysql/default.nix index eb53933960322..6eed57c4e7c67 100644 --- a/pkgs/development/perl-modules/DBD-mysql/default.nix +++ b/pkgs/development/perl-modules/DBD-mysql/default.nix @@ -1,4 +1,4 @@ -{ fetchurl, buildPerlPackage, DBI, DevelChecklib, libmysqlclient }: +{ fetchurl, buildPerlPackage, DBI, DevelChecklib, mysql }: buildPerlPackage { pname = "DBD-mysql"; @@ -9,7 +9,7 @@ buildPerlPackage { sha256 = "0y4djb048i09dk19av7mzfb3khr72vw11p3ayw2p82jsy4gm8j2g"; }; - buildInputs = [ libmysqlclient DevelChecklib ] ; + buildInputs = [ mysql.connector-c DevelChecklib ] ; propagatedBuildInputs = [ DBI ]; doCheck = false; diff --git a/pkgs/development/pure-modules/glpk/default.nix b/pkgs/development/pure-modules/glpk/default.nix index 34d12f1471fb1..7b615928da9aa 100644 --- a/pkgs/development/pure-modules/glpk/default.nix +++ b/pkgs/development/pure-modules/glpk/default.nix @@ -1,5 +1,5 @@ { lib, stdenv, fetchurl, - pkgconfig, pure, glpk, gmp, libtool, libmysqlclient, libiodbc }: + pkgconfig, pure, glpk, gmp, libtool, mysql, libiodbc }: stdenv.mkDerivation rec { baseName = "glpk"; @@ -12,13 +12,13 @@ stdenv.mkDerivation rec { }; glpkWithExtras = lib.overrideDerivation glpk (attrs: { - propagatedBuildInputs = [ gmp libtool libmysqlclient libiodbc ]; + propagatedBuildInputs = [ gmp libtool mysql.connector-c libiodbc ]; CPPFLAGS = "-I${gmp.dev}/include"; preConfigure = '' substituteInPlace configure \ - --replace /usr/include/mysql ${libmysqlclient}/include/mysql + --replace /usr/include/mysql ${mysql.connector-c}/include/mysql ''; configureFlags = [ "--enable-dl" "--enable-odbc" diff --git a/pkgs/development/python-modules/cryptography/default.nix b/pkgs/development/python-modules/cryptography/default.nix index 2a5d4fa475738..6b20b4b570a33 100644 --- a/pkgs/development/python-modules/cryptography/default.nix +++ b/pkgs/development/python-modules/cryptography/default.nix @@ -1,7 +1,6 @@ { stdenv , buildPythonPackage , fetchPypi -, fetchpatch , openssl , cryptography_vectors , darwin @@ -50,18 +49,10 @@ buildPythonPackage rec { pytz ]; - # remove when https://github.com/pyca/cryptography/issues/4998 is fixed checkPhase = '' - py.test --disable-pytest-warnings tests -k 'not load_ecdsa_no_named_curve' + py.test --disable-pytest-warnings tests ''; - patches = [ - (fetchpatch { - url = "https://github.com/pyca/cryptography/commit/e575e3d482f976c4a1f3203d63ea0f5007a49a2a.patch"; - sha256 = "0vg9prqsizd6gzh5j7lscsfxzxlhz7pacvzhgqmj1vhdhjwbblcp"; - }) - ]; - # IOKit's dependencies are inconsistent between OSX versions, so this is the best we # can do until nix 1.11's release __impureHostDeps = [ "/usr/lib" ]; diff --git a/pkgs/development/python-modules/mysqlclient/default.nix b/pkgs/development/python-modules/mysqlclient/default.nix index b37f191286e4c..488f6f9a7bb54 100644 --- a/pkgs/development/python-modules/mysqlclient/default.nix +++ b/pkgs/development/python-modules/mysqlclient/default.nix @@ -1,15 +1,15 @@ -{ stdenv, buildPythonPackage, fetchPypi, libmysqlclient }: +{ stdenv, buildPythonPackage, fetchPypi, mysql }: buildPythonPackage rec { pname = "mysqlclient"; version = "1.4.4"; nativeBuildInputs = [ - libmysqlclient + mysql.connector-c ]; buildInputs = [ - libmysqlclient + mysql.connector-c ]; # Tests need a MySQL database diff --git a/pkgs/development/python-modules/pyopenssl/default.nix b/pkgs/development/python-modules/pyopenssl/default.nix index 018463ead5464..ec17b77ba200f 100644 --- a/pkgs/development/python-modules/pyopenssl/default.nix +++ b/pkgs/development/python-modules/pyopenssl/default.nix @@ -9,7 +9,6 @@ , pretend , flaky , glibcLocales -, six }: with stdenv.lib; @@ -85,7 +84,7 @@ buildPythonPackage rec { doCheck = !stdenv.isDarwin; nativeBuildInputs = [ openssl ]; - propagatedBuildInputs = [ cryptography pyasn1 idna six ]; + propagatedBuildInputs = [ cryptography pyasn1 idna ]; checkInputs = [ pytest pretend flaky glibcLocales ]; } diff --git a/pkgs/development/r-modules/default.nix b/pkgs/development/r-modules/default.nix index cef7f0aecf260..1616eacffc651 100644 --- a/pkgs/development/r-modules/default.nix +++ b/pkgs/development/r-modules/default.nix @@ -325,7 +325,7 @@ let rmatio = [ pkgs.zlib.dev ]; Rmpfr = [ pkgs.gmp pkgs.mpfr.dev ]; Rmpi = [ pkgs.openmpi ]; - RMySQL = [ pkgs.zlib pkgs.libmysqlclient pkgs.openssl.dev ]; + RMySQL = [ pkgs.zlib pkgs.mysql.connector-c pkgs.openssl.dev ]; RNetCDF = [ pkgs.netcdf pkgs.udunits ]; RODBCext = [ pkgs.libiodbc ]; RODBC = [ pkgs.libiodbc ]; @@ -810,7 +810,7 @@ let }); RMySQL = old.RMySQL.overrideDerivation (attrs: { - MYSQL_DIR="${pkgs.libmysqlclient}"; + MYSQL_DIR=pkgs.mysql.connector-c; preConfigure = '' patchShebangs configure ''; diff --git a/pkgs/development/ruby-modules/gem-config/default.nix b/pkgs/development/ruby-modules/gem-config/default.nix index 157e15e375f64..a03e40e8097cf 100644 --- a/pkgs/development/ruby-modules/gem-config/default.nix +++ b/pkgs/development/ruby-modules/gem-config/default.nix @@ -20,7 +20,7 @@ { lib, fetchurl, writeScript, ruby, kerberos, libxml2, libxslt, python, stdenv, which , libiconv, postgresql, v8_3_16_14, clang, sqlite, zlib, imagemagick , pkgconfig , ncurses, xapian, gpgme, utillinux, tzdata, icu, libffi -, cmake, libssh2, openssl, libmysqlclient, darwin, git, perl, pcre, gecode_3, curl +, cmake, libssh2, openssl, mysql, darwin, git, perl, pcre, gecode_3, curl , msgpack, qt59, libsodium, snappy, libossp_uuid, lxc, libpcap, xorg, gtk2, buildRubyGem , cairo, re2, rake, gobject-introspection, gdk-pixbuf, zeromq, czmq, graphicsmagick, libcxx , file, libvirt, glib, vips, taglib, libopus, linux-pam, libidn, protobuf, fribidi, harfbuzz @@ -349,11 +349,11 @@ in }; mysql = attrs: { - buildInputs = [ libmysqlclient zlib openssl ]; + buildInputs = [ mysql.connector-c zlib openssl ]; }; mysql2 = attrs: { - buildInputs = [ libmysqlclient zlib openssl ]; + buildInputs = [ mysql.connector-c zlib openssl ]; }; ncursesw = attrs: { diff --git a/pkgs/development/tools/misc/patchelf/default.nix b/pkgs/development/tools/misc/patchelf/default.nix index db8bb4f424356..77d03f299f4a5 100644 --- a/pkgs/development/tools/misc/patchelf/default.nix +++ b/pkgs/development/tools/misc/patchelf/default.nix @@ -1,27 +1,16 @@ -{ stdenv, fetchurl, autoreconfHook }: +{ stdenv, fetchurl }: stdenv.mkDerivation rec { - name = "patchelf-${version}"; - version = "0.10"; + name = "patchelf-0.9"; src = fetchurl { url = "https://nixos.org/releases/patchelf/${name}/${name}.tar.bz2"; - sha256 = "1wzwvnlyf853hw9zgqq5522bvf8gqadk8icgqa41a5n7593csw7n"; + sha256 = "a0f65c1ba148890e9f2f7823f4bedf7ecad5417772f64f994004f59a39014f83"; }; - # Drop test that fails on musl (?) - postPatch = stdenv.lib.optionalString stdenv.hostPlatform.isMusl '' - substituteInPlace tests/Makefile.am \ - --replace "set-rpath-library.sh" "" - ''; - setupHook = [ ./setup-hook.sh ]; - nativeBuildInputs = [ autoreconfHook ]; - buildInputs = [ ]; - - # if not Musl, fails 8 out of 25 tests, problems when loading libc.so.6 - doCheck = stdenv.hostPlatform.isMusl; + doCheck = false; # fails 8 out of 24 tests, problems when loading libc.so.6 meta = with stdenv.lib; { homepage = https://nixos.org/patchelf.html; diff --git a/pkgs/development/tools/misc/patchelf/unstable.nix b/pkgs/development/tools/misc/patchelf/unstable.nix index f5ff1c74bcc9d..c673bd261098a 100644 --- a/pkgs/development/tools/misc/patchelf/unstable.nix +++ b/pkgs/development/tools/misc/patchelf/unstable.nix @@ -1,18 +1,24 @@ -{ stdenv, fetchurl, autoreconfHook }: +{ stdenv, fetchFromGitHub, autoreconfHook }: stdenv.mkDerivation rec { - name = "patchelf-${version}"; - version = "0.10"; + pname = "patchelf"; + version = "0.10-pre-20190328"; - src = fetchurl { - url = "https://nixos.org/releases/patchelf/${name}/${name}.tar.bz2"; - sha256 = "1wzwvnlyf853hw9zgqq5522bvf8gqadk8icgqa41a5n7593csw7n"; + src = fetchFromGitHub { + owner = "NixOS"; + repo = "patchelf"; + rev = "e1e39f3639e39360ceebb2f7ed533cede4623070"; + sha256 = "09q1b1yqfzg1ih51v7qjh55vxfdbd8x5anycl8sfz6qy107wr02k"; }; # Drop test that fails on musl (?) postPatch = stdenv.lib.optionalString stdenv.hostPlatform.isMusl '' substituteInPlace tests/Makefile.am \ --replace "set-rpath-library.sh" "" + '' + + # extend version identifier to more informative than "0.10". + '' + echo -n ${version} > version ''; setupHook = [ ./setup-hook.sh ]; @@ -22,11 +28,11 @@ stdenv.mkDerivation rec { doCheck = !stdenv.isDarwin; - meta = with stdenv.lib; { + meta = { homepage = https://nixos.org/patchelf.html; - license = licenses.gpl3; + license = "GPL"; description = "A small utility to modify the dynamic linker and RPATH of ELF executables"; - maintainers = [ maintainers.eelco ]; - platforms = platforms.all; + maintainers = [ stdenv.lib.maintainers.eelco ]; + platforms = stdenv.lib.platforms.all; }; } diff --git a/pkgs/development/tools/misc/sysbench/default.nix b/pkgs/development/tools/misc/sysbench/default.nix index 8076925f29b02..e2d507ab80134 100644 --- a/pkgs/development/tools/misc/sysbench/default.nix +++ b/pkgs/development/tools/misc/sysbench/default.nix @@ -1,11 +1,11 @@ -{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, vim, libmysqlclient +{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, vim, mysql , libaio }: stdenv.mkDerivation { name = "sysbench-1.0.17"; nativeBuildInputs = [ autoreconfHook pkgconfig ]; - buildInputs = [ vim libmysqlclient libaio ]; + buildInputs = [ vim mysql.connector-c libaio ]; src = fetchFromGitHub { owner = "akopytov"; diff --git a/pkgs/development/tools/tora/default.nix b/pkgs/development/tools/tora/default.nix index 931c00ecce588..74f1f22426f9a 100644 --- a/pkgs/development/tools/tora/default.nix +++ b/pkgs/development/tools/tora/default.nix @@ -1,5 +1,5 @@ { mkDerivation, lib, fetchFromGitHub, cmake, extra-cmake-modules, makeWrapper -, boost, doxygen, openssl, libmysqlclient, postgresql, graphviz, loki +, boost, doxygen, openssl, mysql, postgresql, graphviz, loki , qscintilla, qtbase, qttools }: mkDerivation { @@ -16,7 +16,7 @@ mkDerivation { nativeBuildInputs = [ cmake extra-cmake-modules makeWrapper qttools ]; buildInputs = [ - boost doxygen graphviz loki libmysqlclient openssl postgresql qscintilla qtbase + boost doxygen graphviz loki mysql.connector-c openssl postgresql qscintilla qtbase ]; preConfigure = '' @@ -47,7 +47,7 @@ mkDerivation { "-lssl" ]; - NIX_CFLAGS_COMPILE = [ "-L${libmysqlclient}/lib/mysql" "-I${libmysqlclient}/include/mysql" ]; + NIX_CFLAGS_COMPILE = [ "-L${mysql.connector-c}/lib/mysql" "-I${mysql.connector-c}/include/mysql" ]; qtWrapperArgs = [ ''--prefix PATH : ${lib.getBin graphviz}/bin'' diff --git a/pkgs/games/zod/default.nix b/pkgs/games/zod/default.nix index 888b7bd3d6aab..c14eda2968e02 100644 --- a/pkgs/games/zod/default.nix +++ b/pkgs/games/zod/default.nix @@ -1,5 +1,5 @@ { fetchurl, stdenv, unrar, unzip, SDL, SDL_image, SDL_ttf, SDL_mixer -, libmysqlclient, makeWrapper }: +, mysql, makeWrapper }: stdenv.mkDerivation { name = "zod-engine-2011-03-18"; @@ -24,9 +24,9 @@ stdenv.mkDerivation { sourceRoot=`pwd`/src ''; - buildInputs = [ unrar unzip SDL SDL_image SDL_ttf SDL_mixer libmysqlclient makeWrapper ]; + buildInputs = [ unrar unzip SDL SDL_image SDL_ttf SDL_mixer mysql.connector-c makeWrapper ]; - NIX_LDFLAGS = "-L${libmysqlclient}/lib/mysql"; + NIX_LDFLAGS = "-L${mysql.connector-c}/lib/mysql"; installPhase = '' mkdir -p $out/bin $out/share/zod diff --git a/pkgs/os-specific/linux/firmware/fwupd/default.nix b/pkgs/os-specific/linux/firmware/fwupd/default.nix index 75144799d014d..9fdf9ca0bc156 100644 --- a/pkgs/os-specific/linux/firmware/fwupd/default.nix +++ b/pkgs/os-specific/linux/firmware/fwupd/default.nix @@ -237,9 +237,9 @@ stdenv.mkDerivation rec { postFixup = '' find -L "$out/bin" "$out/libexec" -type f -executable -print0 \ | while IFS= read -r -d ''' file; do - if [[ "$file" != *.efi ]]; then - echo "Wrapping program $file" - wrapGApp "$file" + if [[ "''${file}" != *.efi ]]; then + echo "Wrapping program ''${file}" + wrapProgram "''${file}" "''${gappsWrapperArgs[@]}" fi done ''; diff --git a/pkgs/os-specific/linux/kexectools/default.nix b/pkgs/os-specific/linux/kexectools/default.nix index 4e9007c73625a..d6fd7346f4f5c 100644 --- a/pkgs/os-specific/linux/kexectools/default.nix +++ b/pkgs/os-specific/linux/kexectools/default.nix @@ -18,7 +18,7 @@ stdenv.mkDerivation rec { depsBuildBuild = [ buildPackages.stdenv.cc ]; buildInputs = [ zlib ]; - patches = [ + patches = stdenv.lib.optionals stdenv.hostPlatform.isi686 [ # fix build on i686 # See: https://src.fedoraproject.org/rpms/kexec-tools/c/cb1e5463b5298b064e9b6c86ad6fe3505fec9298 (fetchpatch { diff --git a/pkgs/servers/clickhouse/default.nix b/pkgs/servers/clickhouse/default.nix index ab2d44577c0d2..e48dec7d20c8c 100644 --- a/pkgs/servers/clickhouse/default.nix +++ b/pkgs/servers/clickhouse/default.nix @@ -1,6 +1,6 @@ { stdenv, fetchFromGitHub, cmake, libtool , boost, capnproto, cctz, clang-unwrapped, double-conversion, gperftools, icu -, libcpuid, libxml2, lld, llvm, lz4 , libmysqlclient, openssl, poco, re2, rdkafka +, libcpuid, libxml2, lld, llvm, lz4 , mysql, openssl, poco, re2, rdkafka , readline, sparsehash, unixODBC, zstd, ninja, jemalloc, brotli, protobuf, xxHash }: @@ -18,7 +18,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ cmake libtool ninja ]; buildInputs = [ boost capnproto cctz clang-unwrapped double-conversion gperftools icu - libcpuid libxml2 lld llvm lz4 libmysqlclient openssl poco re2 rdkafka + libcpuid libxml2 lld llvm lz4 mysql.connector-c openssl poco re2 rdkafka readline sparsehash unixODBC zstd jemalloc brotli protobuf xxHash ]; diff --git a/pkgs/servers/computing/slurm/default.nix b/pkgs/servers/computing/slurm/default.nix index 93e1a31abb17a..c448e4936f64d 100644 --- a/pkgs/servers/computing/slurm/default.nix +++ b/pkgs/servers/computing/slurm/default.nix @@ -1,6 +1,6 @@ { stdenv, fetchFromGitHub, pkgconfig, libtool, curl , python, munge, perl, pam, openssl, zlib -, ncurses, libmysqlclient, gtk2, lua, hwloc, numactl +, ncurses, mysql, gtk2, lua, hwloc, numactl , readline, freeipmi, libssh2, xorg, lz4 # enable internal X11 support via libssh2 , enableX11 ? true @@ -35,7 +35,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ pkgconfig libtool ]; buildInputs = [ curl python munge perl pam openssl zlib - libmysqlclient ncurses gtk2 lz4 + mysql.connector-c ncurses gtk2 lz4 lua hwloc numactl readline freeipmi ] ++ stdenv.lib.optionals enableX11 [ libssh2 xorg.xauth ]; diff --git a/pkgs/servers/freeradius/default.nix b/pkgs/servers/freeradius/default.nix index eeea3298ecdc7..6c6eb2b0c0910 100644 --- a/pkgs/servers/freeradius/default.nix +++ b/pkgs/servers/freeradius/default.nix @@ -13,7 +13,7 @@ , withMemcached ? false , hiredis , withRedis ? false -, libmysqlclient +, mysql , withMysql ? false , json_c , withJson ? false @@ -31,7 +31,7 @@ assert withPcap -> libpcap != null; assert withCap -> libcap != null; assert withMemcached -> libmemcached != null; assert withRedis -> hiredis != null; -assert withMysql -> libmysqlclient != null; +assert withMysql -> mysql != null; assert withYubikey -> libyubikey != null; assert withCollectd -> collectd != null; assert withRest -> curl != null && withJson; @@ -59,7 +59,7 @@ stdenv.mkDerivation rec { ++ optional withCap libcap ++ optional withMemcached libmemcached ++ optional withRedis hiredis - ++ optional withMysql libmysqlclient + ++ optional withMysql mysql.connector-c ++ optional withJson json_c ++ optional withYubikey libyubikey ++ optional withCollectd collectd diff --git a/pkgs/servers/http/lighttpd/default.nix b/pkgs/servers/http/lighttpd/default.nix index f67bc5b004526..7dacb997d4704 100644 --- a/pkgs/servers/http/lighttpd/default.nix +++ b/pkgs/servers/http/lighttpd/default.nix @@ -1,6 +1,6 @@ { stdenv, buildPackages, fetchurl, pkgconfig, pcre, libxml2, zlib, bzip2, which, file , openssl, enableMagnet ? false, lua5_1 ? null -, enableMysql ? false, libmysqlclient ? null +, enableMysql ? false, mysql ? null , enableLdap ? false, openldap ? null , enableWebDAV ? false, sqlite ? null, libuuid ? null , enableExtendedAttrs ? false, attr ? null @@ -8,7 +8,7 @@ }: assert enableMagnet -> lua5_1 != null; -assert enableMysql -> libmysqlclient != null; +assert enableMysql -> mysql != null; assert enableLdap -> openldap != null; assert enableWebDAV -> sqlite != null; assert enableWebDAV -> libuuid != null; @@ -33,7 +33,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ pkgconfig ]; buildInputs = [ pcre pcre.dev libxml2 zlib bzip2 which file openssl ] ++ stdenv.lib.optional enableMagnet lua5_1 - ++ stdenv.lib.optional enableMysql libmysqlclient + ++ stdenv.lib.optional enableMysql mysql.connector-c ++ stdenv.lib.optional enableLdap openldap ++ stdenv.lib.optional enableWebDAV sqlite ++ stdenv.lib.optional enableWebDAV libuuid; diff --git a/pkgs/servers/mail/dovecot/default.nix b/pkgs/servers/mail/dovecot/default.nix index 4104b0443ff0d..e3afd1f987986 100644 --- a/pkgs/servers/mail/dovecot/default.nix +++ b/pkgs/servers/mail/dovecot/default.nix @@ -3,7 +3,7 @@ , clucene_core_2, icu, openldap, libsodium, libstemmer, cyrus_sasl , nixosTests # Auth modules -, withMySQL ? false, libmysqlclient +, withMySQL ? false, mysql , withPgSQL ? false, postgresql , withSQLite ? true, sqlite }: @@ -15,7 +15,7 @@ stdenv.mkDerivation rec { buildInputs = [ openssl bzip2 zlib lz4 clucene_core_2 icu openldap libsodium libstemmer cyrus_sasl.dev ] ++ lib.optionals (stdenv.isLinux) [ systemd pam libcap inotify-tools ] - ++ lib.optional withMySQL libmysqlclient + ++ lib.optional withMySQL mysql.connector-c ++ lib.optional withPgSQL postgresql ++ lib.optional withSQLite sqlite; diff --git a/pkgs/servers/mail/exim/default.nix b/pkgs/servers/mail/exim/default.nix index 96c8ad4a383ed..fcafd5817d4ed 100644 --- a/pkgs/servers/mail/exim/default.nix +++ b/pkgs/servers/mail/exim/default.nix @@ -1,6 +1,6 @@ { coreutils, db, fetchurl, openssl, pcre, perl, pkgconfig, stdenv , enableLDAP ? false, openldap -, enableMySQL ? false, libmysqlclient, zlib +, enableMySQL ? false, mysql, zlib , enableAuthDovecot ? false, dovecot , enablePAM ? false, pam , enableSPF ? true, libspf2 @@ -17,7 +17,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ pkgconfig ]; buildInputs = [ coreutils db openssl perl pcre ] ++ stdenv.lib.optional enableLDAP openldap - ++ stdenv.lib.optionals enableMySQL [ libmysqlclient zlib ] + ++ stdenv.lib.optionals enableMySQL [ mysql.connector-c zlib ] ++ stdenv.lib.optional enableAuthDovecot dovecot ++ stdenv.lib.optional enablePAM pam ++ stdenv.lib.optional enableSPF libspf2; @@ -53,10 +53,10 @@ stdenv.mkDerivation rec { ''} ${stdenv.lib.optionalString enableMySQL '' s:^# \(LOOKUP_MYSQL=yes\)$:\1: - s:^# \(LOOKUP_MYSQL_PC=libmysqlclient\)$:\1: - s:^\(LOOKUP_LIBS\)=\(.*\):\1=\2 -lmysqlclient -L${libmysqlclient}/lib/mysql -lssl -ldl -lm -lpthread -lz: - s:^# \(LOOKUP_LIBS\)=.*:\1=-lmysqlclient -L${libmysqlclient}/lib/mysql -lssl -ldl -lm -lpthread -lz: - s:^# \(LOOKUP_INCLUDE\)=.*:\1=-I${libmysqlclient}/include/mysql/: + s:^# \(LOOKUP_MYSQL_PC=mysql.connector-c\)$:\1: + s:^\(LOOKUP_LIBS\)=\(.*\):\1=\2 -lmysqlclient -L${mysql.connector-c}/lib/mysql -lssl -ldl -lm -lpthread -lz: + s:^# \(LOOKUP_LIBS\)=.*:\1=-lmysqlclient -L${mysql.connector-c}/lib/mysql -lssl -ldl -lm -lpthread -lz: + s:^# \(LOOKUP_INCLUDE\)=.*:\1=-I${mysql.connector-c}/include/mysql/: ''} ${stdenv.lib.optionalString enableAuthDovecot '' s:^# \(AUTH_DOVECOT\)=.*:\1=yes: diff --git a/pkgs/servers/mail/opensmtpd/extras.nix b/pkgs/servers/mail/opensmtpd/extras.nix index f7ed6382a7be5..71b27facbab67 100644 --- a/pkgs/servers/mail/opensmtpd/extras.nix +++ b/pkgs/servers/mail/opensmtpd/extras.nix @@ -1,5 +1,5 @@ { stdenv, fetchurl, openssl, libevent, libasr, - python2, pkgconfig, lua5, perl, libmysqlclient, postgresql, sqlite, hiredis, + python2, pkgconfig, lua5, perl, mysql, postgresql, sqlite, hiredis, enablePython ? true, enableLua ? true, enablePerl ? true, @@ -20,7 +20,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ pkgconfig ]; buildInputs = [ openssl libevent - libasr python2 lua5 perl libmysqlclient postgresql sqlite hiredis ]; + libasr python2 lua5 perl mysql.connector-c postgresql sqlite hiredis ]; configureFlags = [ "--sysconfdir=/etc" @@ -80,7 +80,7 @@ stdenv.mkDerivation rec { stdenv.lib.optional enableRedis "-I${hiredis}/include/hiredis -lhiredis" ++ stdenv.lib.optional enableMysql - "-L${libmysqlclient}/lib/mysql"; + "-L${mysql.connector-c}/lib/mysql"; meta = with stdenv.lib; { homepage = https://www.opensmtpd.org/; diff --git a/pkgs/servers/mail/postfix/default.nix b/pkgs/servers/mail/postfix/default.nix index b299d212a185f..39845f12f03cd 100644 --- a/pkgs/servers/mail/postfix/default.nix +++ b/pkgs/servers/mail/postfix/default.nix @@ -3,7 +3,7 @@ , buildPackages , withLDAP ? true, openldap , withPgSQL ? false, postgresql -, withMySQL ? false, libmysqlclient +, withMySQL ? false, mysql , withSQLite ? false, sqlite }: @@ -12,7 +12,7 @@ let "-DUSE_TLS" "-DUSE_SASL_AUTH" "-DUSE_CYRUS_SASL" "-I${cyrus_sasl.dev}/include/sasl" "-DHAS_DB_BYPASS_MAKEDEFS_CHECK" ] ++ lib.optional withPgSQL "-DHAS_PGSQL" - ++ lib.optionals withMySQL [ "-DHAS_MYSQL" "-I${libmysqlclient}/include/mysql" "-L${libmysqlclient}/lib/mysql" ] + ++ lib.optionals withMySQL [ "-DHAS_MYSQL" "-I${mysql.connector-c}/include/mysql" "-L${mysql.connector-c}/lib/mysql" ] ++ lib.optional withSQLite "-DHAS_SQLITE" ++ lib.optionals withLDAP ["-DHAS_LDAP" "-DUSE_LDAP_SASL"]); auxlibs = lib.concatStringsSep " " ([ @@ -36,7 +36,7 @@ in stdenv.mkDerivation rec { nativeBuildInputs = [ makeWrapper m4 ]; buildInputs = [ db openssl cyrus_sasl icu libnsl pcre ] ++ lib.optional withPgSQL postgresql - ++ lib.optional withMySQL libmysqlclient + ++ lib.optional withMySQL mysql.connector-c ++ lib.optional withSQLite sqlite ++ lib.optional withLDAP openldap; diff --git a/pkgs/servers/monitoring/plugins/default.nix b/pkgs/servers/monitoring/plugins/default.nix index 62f40b59d374a..9f23cc3e54c38 100644 --- a/pkgs/servers/monitoring/plugins/default.nix +++ b/pkgs/servers/monitoring/plugins/default.nix @@ -1,6 +1,6 @@ { stdenv, fetchFromGitHub, fetchpatch, autoreconfHook , coreutils, gnugrep, gnused, lm_sensors, net_snmp, openssh, openssl, perl -, dnsutils, libdbi, libmysqlclient, zlib, openldap, procps +, dnsutils, libdbi, mysql, zlib, openldap, procps , runtimeShell }: with stdenv.lib; @@ -48,7 +48,7 @@ in stdenv.mkDerivation { ''; # !!! make openssh a runtime dependency only - buildInputs = [ dnsutils libdbi libmysqlclient net_snmp openldap openssh openssl perl procps zlib ]; + buildInputs = [ dnsutils libdbi mysql net_snmp openldap openssh openssl perl procps zlib ]; nativeBuildInputs = [ autoreconfHook ]; diff --git a/pkgs/servers/monitoring/zabbix/proxy.nix b/pkgs/servers/monitoring/zabbix/proxy.nix index 53932af6a18f7..48b72dc0590d1 100644 --- a/pkgs/servers/monitoring/zabbix/proxy.nix +++ b/pkgs/servers/monitoring/zabbix/proxy.nix @@ -3,7 +3,7 @@ , snmpSupport ? true, net_snmp , sshSupport ? true, libssh2 , sqliteSupport ? false, sqlite -, mysqlSupport ? false, libmysqlclient +, mysqlSupport ? false, mysql , postgresqlSupport ? false, postgresql }: @@ -37,7 +37,7 @@ in ++ optional snmpSupport net_snmp ++ optional sqliteSupport sqlite ++ optional sshSupport libssh2 - ++ optional mysqlSupport libmysqlclient + ++ optional mysqlSupport mysql.connector-c ++ optional postgresqlSupport postgresql; configureFlags = [ diff --git a/pkgs/servers/monitoring/zabbix/server.nix b/pkgs/servers/monitoring/zabbix/server.nix index ac5dcca901d5c..51ca38e8cfc89 100644 --- a/pkgs/servers/monitoring/zabbix/server.nix +++ b/pkgs/servers/monitoring/zabbix/server.nix @@ -4,7 +4,7 @@ , odbcSupport ? true, unixODBC , snmpSupport ? true, net_snmp , sshSupport ? true, libssh2 -, mysqlSupport ? false, libmysqlclient +, mysqlSupport ? false, mysql , postgresqlSupport ? false, postgresql }: @@ -40,7 +40,7 @@ in ++ optional ldapSupport openldap ++ optional snmpSupport net_snmp ++ optional sshSupport libssh2 - ++ optional mysqlSupport libmysqlclient + ++ optional mysqlSupport mysql.connector-c ++ optional postgresqlSupport postgresql; configureFlags = [ diff --git a/pkgs/servers/sql/mariadb/connector-c/3_1.nix b/pkgs/servers/sql/mariadb/connector-c/3_1.nix deleted file mode 100644 index c8bc4858f7198..0000000000000 --- a/pkgs/servers/sql/mariadb/connector-c/3_1.nix +++ /dev/null @@ -1,6 +0,0 @@ -{ callPackage, ... } @ args: - -callPackage ./. (args // { - version = "3.1.2"; - sha256 = "0pgz8m8d39mvj9wnjll6c83xvdl2h24273b3dkx0g5pxj7ga4shm"; -}) diff --git a/pkgs/servers/sql/mariadb/connector-c/default.nix b/pkgs/servers/sql/mariadb/connector-c/default.nix deleted file mode 100644 index 0e03026854017..0000000000000 --- a/pkgs/servers/sql/mariadb/connector-c/default.nix +++ /dev/null @@ -1,54 +0,0 @@ -{ stdenv, fetchurl, cmake -, curl, openssl, zlib -, libiconv -, version, sha256, ... -}: - -with stdenv.lib; - -stdenv.mkDerivation { - pname = "mariadb-connector-c"; - inherit version; - - src = fetchurl { - urls = [ - "https://downloads.mariadb.org/f/connector-c-${version}/mariadb-connector-c-${version}-src.tar.gz" - "https://downloads.mariadb.com/Connectors/c/connector-c-${version}/mariadb-connector-c-${version}-src.tar.gz" - ]; - inherit sha256; - }; - - cmakeFlags = [ - "-DWITH_EXTERNAL_ZLIB=ON" - "-DMYSQL_UNIX_ADDR=/run/mysqld/mysqld.sock" - "-DWITH_CURL=ON" - ]; - - # The cmake setup-hook uses $out/lib by default, this is not the case here. - preConfigure = optionalString stdenv.isDarwin '' - cmakeFlagsArray+=("-DCMAKE_INSTALL_NAME_DIR=$out/lib/mariadb") - ''; - - nativeBuildInputs = [ cmake ]; - propagatedBuildInputs = [ curl openssl zlib ]; - buildInputs = [ libiconv ]; - - enableParallelBuilding = true; - - postFixup = '' - ln -sv mariadb_config $out/bin/mysql_config - ln -sv mariadb $out/lib/mysql - ln -sv mariadb $out/include/mysql - ln -sv libmariadbclient.a $out/lib/mariadb/libmysqlclient.a - ln -sv libmariadbclient.a $out/lib/mariadb/libmysqlclient_r.a - ln -sv libmariadb.so $out/lib/mariadb/libmysqlclient.so - ln -sv libmariadb.so $out/lib/mariadb/libmysqlclient_r.so - ''; - - meta = { - description = "Client library that can be used to connect to MySQL or MariaDB"; - license = licenses.lgpl21; - maintainers = with maintainers; [ globin ]; - platforms = platforms.all; - }; -} diff --git a/pkgs/servers/sql/mariadb/default.nix b/pkgs/servers/sql/mariadb/default.nix index 2352d7c1088d8..15553055457c8 100644 --- a/pkgs/servers/sql/mariadb/default.nix +++ b/pkgs/servers/sql/mariadb/default.nix @@ -18,6 +18,13 @@ mytopEnv = perl.withPackages (p: with p; [ DataDumper DBDmysql DBI TermReadKey ] mariadb = server // { inherit client; # MariaDB Client server = server; # MariaDB Server + inherit connector-c; # libmysqlclient.so + inherit galera; +}; + +galeraLibs = buildEnv { + name = "galera-lib-inputs-united"; + paths = [ openssl.out boost check ]; }; common = rec { # attributes common to both builds @@ -211,4 +218,95 @@ server = stdenv.mkDerivation (common // { CXXFLAGS = optionalString stdenv.isi686 "-fpermissive"; }); + +connector-c = stdenv.mkDerivation rec { + pname = "mariadb-connector-c"; + version = "2.3.7"; + + src = fetchurl { + url = "https://downloads.mariadb.org/interstitial/connector-c-${version}/mariadb-connector-c-${version}-src.tar.gz/from/http%3A//nyc2.mirrors.digitalocean.com/mariadb/"; + sha256 = "13izi35vvxhiwl2dsnqrz75ciisy2s2k30giv7hrm01qlwnmiycl"; + name = "mariadb-connector-c-${version}-src.tar.gz"; + }; + + # outputs = [ "dev" "out" ]; FIXME: cmake variables don't allow that < 3.0 + cmakeFlags = [ + "-DWITH_EXTERNAL_ZLIB=ON" + "-DMYSQL_UNIX_ADDR=/run/mysqld/mysqld.sock" + ]; + + # The cmake setup-hook uses $out/lib by default, this is not the case here. + preConfigure = stdenv.lib.optionalString stdenv.isDarwin '' + cmakeFlagsArray+=("-DCMAKE_INSTALL_NAME_DIR=$out/lib/mariadb") + ''; + + nativeBuildInputs = [ cmake ]; + propagatedBuildInputs = [ openssl zlib ]; + buildInputs = [ libiconv ]; + + enableParallelBuilding = true; + + postFixup = '' + ln -sv mariadb_config $out/bin/mysql_config + ln -sv mariadb $out/lib/mysql + ln -sv mariadb $out/include/mysql + ''; + + meta = with stdenv.lib; { + description = "Client library that can be used to connect to MySQL or MariaDB"; + license = licenses.lgpl21; + maintainers = with maintainers; [ globin ]; + platforms = platforms.all; + }; +}; + +galera = stdenv.mkDerivation rec { + pname = "mariadb-galera"; + version = "25.3.26"; + + src = fetchFromGitHub { + owner = "codership"; + repo = "galera"; + rev = "release_${version}"; + sha256 = "0fs0c1px9lknf1a5wwb12z1hj7j7b6hsfjddggikvkdkrnr2xs1f"; + fetchSubmodules = true; + }; + + buildInputs = [ asio boost check openssl scons ]; + + postPatch = '' + substituteInPlace SConstruct \ + --replace "boost_library_path = '''" "boost_library_path = '${boost}/lib'" + ''; + + preConfigure = '' + export CPPFLAGS="-I${asio}/include -I${boost.dev}/include -I${check}/include -I${openssl.dev}/include" + export LIBPATH="${galeraLibs}/lib" + ''; + + sconsFlags = "ssl=1 system_asio=0 strict_build_flags=0"; + + installPhase = '' + # copied with modifications from scripts/packages/freebsd.sh + GALERA_LICENSE_DIR="$share/licenses/${pname}-${version}" + install -d $out/{bin,lib/galera,share/doc/galera,$GALERA_LICENSE_DIR} + install -m 555 "garb/garbd" "$out/bin/garbd" + install -m 444 "libgalera_smm.so" "$out/lib/galera/libgalera_smm.so" + install -m 444 "scripts/packages/README" "$out/share/doc/galera/" + install -m 444 "scripts/packages/README-MySQL" "$out/share/doc/galera/" + install -m 444 "scripts/packages/freebsd/LICENSE" "$out/$GALERA_LICENSE_DIR" + install -m 444 "LICENSE" "$out/$GALERA_LICENSE_DIR/GPLv2" + install -m 444 "asio/LICENSE_1_0.txt" "$out/$GALERA_LICENSE_DIR/LICENSE.asio" + install -m 444 "www.evanjones.ca/LICENSE" "$out/$GALERA_LICENSE_DIR/LICENSE.crc32c" + install -m 444 "chromium/LICENSE" "$out/$GALERA_LICENSE_DIR/LICENSE.chromium" + ''; + + meta = { + description = "Galera 3 wsrep provider library"; + homepage = http://galeracluster.com/; + license = licenses.lgpl2; + maintainers = with maintainers; [ izorkin ]; + platforms = platforms.all; + }; +}; in mariadb diff --git a/pkgs/servers/sql/mariadb/galera/25.nix b/pkgs/servers/sql/mariadb/galera/25.nix deleted file mode 100644 index 2772d60e398b7..0000000000000 --- a/pkgs/servers/sql/mariadb/galera/25.nix +++ /dev/null @@ -1,6 +0,0 @@ -{ callPackage, ... } @ args: - -callPackage ./. (args // { - version = "25.3.27"; - sha256 = "143kzj0fmak1gdww4qkqmmliw8klxm6mwk5531748swlwm6gqr5q"; -}) diff --git a/pkgs/servers/sql/mariadb/galera/default.nix b/pkgs/servers/sql/mariadb/galera/default.nix deleted file mode 100644 index 263a21983e26b..0000000000000 --- a/pkgs/servers/sql/mariadb/galera/default.nix +++ /dev/null @@ -1,63 +0,0 @@ -{ stdenv, fetchFromGitHub, buildEnv -, asio, boost, check, openssl, scons -, version, sha256, ... -}: - -let - pname = "mariadb-galera"; - galeraLibs = buildEnv { - name = "galera-lib-inputs-united"; - paths = [ openssl.out boost check ]; - }; - -in stdenv.mkDerivation { - inherit pname; - inherit version; - - src = fetchFromGitHub { - owner = "codership"; - repo = "galera"; - rev = "release_${version}"; - inherit sha256; - fetchSubmodules = true; - }; - - buildInputs = [ asio boost check openssl scons ]; - - postPatch = '' - substituteInPlace SConstruct \ - --replace "boost_library_path = '''" "boost_library_path = '${boost}/lib'" - ''; - - preConfigure = '' - export CPPFLAGS="-I${asio}/include -I${boost.dev}/include -I${check}/include -I${openssl.dev}/include" - export LIBPATH="${galeraLibs}/lib" - ''; - - sconsFlags = "ssl=1 system_asio=1 strict_build_flags=0"; - - enableParallelBuilding = true; - - installPhase = '' - # copied with modifications from scripts/packages/freebsd.sh - GALERA_LICENSE_DIR="$share/licenses/${pname}" - install -d $out/{bin,lib/galera,share/doc/galera,$GALERA_LICENSE_DIR} - install -m 555 "garb/garbd" "$out/bin/garbd" - install -m 444 "libgalera_smm.so" "$out/lib/galera/libgalera_smm.so" - install -m 444 "scripts/packages/README" "$out/share/doc/galera/" - install -m 444 "scripts/packages/README-MySQL" "$out/share/doc/galera/" - install -m 444 "scripts/packages/freebsd/LICENSE" "$out/$GALERA_LICENSE_DIR" - install -m 444 "LICENSE" "$out/$GALERA_LICENSE_DIR/GPLv2" - install -m 444 "asio/LICENSE_1_0.txt" "$out/$GALERA_LICENSE_DIR/LICENSE.asio" - install -m 444 "www.evanjones.ca/LICENSE" "$out/$GALERA_LICENSE_DIR/LICENSE.crc32c" - install -m 444 "chromium/LICENSE" "$out/$GALERA_LICENSE_DIR/LICENSE.chromium" - ''; - - meta = with stdenv.lib; { - description = "Galera 3 wsrep provider library"; - homepage = http://galeracluster.com/; - license = licenses.lgpl2; - maintainers = with maintainers; [ izorkin ]; - platforms = platforms.all; - }; -} diff --git a/pkgs/servers/uwsgi/default.nix b/pkgs/servers/uwsgi/default.nix index 556c44b61a754..85fa6cd800634 100644 --- a/pkgs/servers/uwsgi/default.nix +++ b/pkgs/servers/uwsgi/default.nix @@ -4,7 +4,7 @@ , pam, withPAM ? stdenv.isLinux , systemd, withSystemd ? stdenv.isLinux , python2, python3, ncurses -, ruby, php-embed, libmysqlclient +, ruby, php-embed, mysql }: let pythonPlugin = pkg : lib.nameValuePair "python${if pkg.isPy2 then "2" else "3"}" { @@ -34,7 +34,7 @@ let pythonPlugin = pkg : lib.nameValuePair "python${if pkg.isPy2 then "2" else " # usage: https://uwsgi-docs.readthedocs.io/en/latest/PHP.html#running-php-apps-with-nginx path = "plugins/php"; inputs = [ php-embed ] ++ php-embed.buildInputs; - NIX_CFLAGS_LINK = [ "-L${libmysqlclient}/lib/mysql" ]; + NIX_CFLAGS_LINK = [ "-L${mysql.connector-c}/lib/mysql" ]; }) ]; diff --git a/pkgs/tools/backup/bareos/default.nix b/pkgs/tools/backup/bareos/default.nix index 949e45de5e11e..79ae1e50ca2b6 100644 --- a/pkgs/tools/backup/bareos/default.nix +++ b/pkgs/tools/backup/bareos/default.nix @@ -1,10 +1,10 @@ { stdenv, fetchFromGitHub, pkgconfig, nettools, gettext, flex , readline ? null, openssl ? null, python2 ? null, ncurses ? null, rocksdb -, sqlite ? null, postgresql ? null, libmysqlclient ? null, zlib ? null, lzo ? null +, sqlite ? null, postgresql ? null, mysql ? null, zlib ? null, lzo ? null , jansson ? null, acl ? null, glusterfs ? null, libceph ? null, libcap ? null }: -assert sqlite != null || postgresql != null || libmysqlclient != null; +assert sqlite != null || postgresql != null || mysql != null; with stdenv.lib; let @@ -25,7 +25,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ pkgconfig ]; buildInputs = [ nettools gettext readline openssl python2 flex ncurses sqlite postgresql - libmysqlclient zlib lzo jansson acl glusterfs libceph libcap rocksdb + mysql.connector-c zlib lzo jansson acl glusterfs libceph libcap rocksdb ]; postPatch = '' @@ -55,7 +55,7 @@ stdenv.mkDerivation rec { ++ optional (openssl != null) "--with-openssl=${openssl.dev}" ++ optional (sqlite != null) "--with-sqlite3=${sqlite.dev}" ++ optional (postgresql != null) "--with-postgresql=${postgresql}" - ++ optional (libmysqlclient != null) "--with-mysql=${libmysqlclient}" + ++ optional (mysql != null) "--with-mysql=${mysql.connector-c}" ++ optional (zlib != null) "--with-zlib=${zlib.dev}" ++ optional (lzo != null) "--with-lzo=${lzo}" ++ optional (jansson != null) "--with-jansson=${jansson}" diff --git a/pkgs/tools/backup/mydumper/default.nix b/pkgs/tools/backup/mydumper/default.nix index 7160e7f195034..5538b45c5f1b7 100644 --- a/pkgs/tools/backup/mydumper/default.nix +++ b/pkgs/tools/backup/mydumper/default.nix @@ -1,5 +1,5 @@ { stdenv, fetchFromGitHub, cmake, pkgconfig -, glib, zlib, pcre, libmysqlclient, libressl }: +, glib, zlib, pcre, mysql, libressl }: stdenv.mkDerivation rec { version = "0.9.5"; @@ -14,7 +14,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ cmake pkgconfig ]; - buildInputs = [ glib zlib pcre libmysqlclient libressl ]; + buildInputs = [ glib zlib pcre mysql.connector-c libressl ]; meta = with stdenv.lib; { description = ''High-perfomance MySQL backup tool''; diff --git a/pkgs/tools/graphics/zbar/default.nix b/pkgs/tools/graphics/zbar/default.nix index 687c4832e4765..6423a84badc6e 100644 --- a/pkgs/tools/graphics/zbar/default.nix +++ b/pkgs/tools/graphics/zbar/default.nix @@ -8,7 +8,6 @@ , qtbase , qtx11extras , wrapQtAppsHook -, wrapGAppsHook , gtk3 , xmlto , docbook_xsl @@ -37,7 +36,6 @@ stdenv.mkDerivation rec { autoreconfHook docbook_xsl wrapQtAppsHook - wrapGAppsHook ]; buildInputs = [ @@ -73,7 +71,7 @@ stdenv.mkDerivation rec { dontWrapGApps = true; postFixup = lib.optionalString enableVideo '' - wrapGApp "$out/bin/zbarcam-gtk" + wrapProgram "$out/bin/zbarcam-gtk" "''${gappsWrapperArgs[@]}" wrapQtApp "$out/bin/zbarcam-qt" ''; diff --git a/pkgs/tools/networking/kea/default.nix b/pkgs/tools/networking/kea/default.nix index 3986cadd08a58..bc35a25cfde8d 100644 --- a/pkgs/tools/networking/kea/default.nix +++ b/pkgs/tools/networking/kea/default.nix @@ -1,5 +1,5 @@ { stdenv, fetchurl, autoreconfHook, pkgconfig, openssl, botan2, log4cplus -, boost, python3, postgresql, libmysqlclient, gmp, bzip2 }: +, boost, python3, postgresql, mysql, gmp, bzip2 }: stdenv.mkDerivation rec { pname = "kea"; @@ -20,12 +20,12 @@ stdenv.mkDerivation rec { configureFlags = [ "--localstatedir=/var" "--with-pgsql=${postgresql}/bin/pg_config" - "--with-mysql=${libmysqlclient}/bin/mysql_config" + "--with-mysql=${mysql.connector-c}/bin/mysql_config" ]; nativeBuildInputs = [ autoreconfHook pkgconfig ]; buildInputs = [ - openssl log4cplus boost python3 libmysqlclient + openssl log4cplus boost python3 mysql.connector-c botan2 gmp bzip2 ]; diff --git a/pkgs/tools/networking/mailutils/default.nix b/pkgs/tools/networking/mailutils/default.nix index 40eeed7f05015..f507e4dc2872f 100644 --- a/pkgs/tools/networking/mailutils/default.nix +++ b/pkgs/tools/networking/mailutils/default.nix @@ -1,6 +1,6 @@ { stdenv, fetchurl, fetchpatch, autoreconfHook, dejagnu, gettext, pkgconfig , gdbm, pam, readline, ncurses, gnutls, guile, texinfo, gnum4, sasl, fribidi, nettools -, python, gss, libmysqlclient, system-sendmail }: +, python, gss, mysql, system-sendmail }: stdenv.mkDerivation rec { name = "${project}-${version}"; @@ -16,7 +16,7 @@ stdenv.mkDerivation rec { sed -i -e '/chown root:mail/d' \ -e 's/chmod [24]755/chmod 0755/' \ */Makefile{.in,.am} - sed -i 's:/usr/lib/mysql:${libmysqlclient}/lib/mysql:' configure.ac + sed -i 's:/usr/lib/mysql:${mysql.connector-c}/lib/mysql:' configure.ac sed -i 's/0\.18/0.19/' configure.ac sed -i -e 's:mysql/mysql.h:mysql.h:' \ -e 's:mysql/errmsg.h:errmsg.h:' \ @@ -29,7 +29,7 @@ stdenv.mkDerivation rec { buildInputs = [ gdbm pam readline ncurses gnutls guile texinfo gnum4 sasl fribidi nettools - gss libmysqlclient python + gss mysql.connector-c python ]; patches = [ @@ -62,7 +62,7 @@ stdenv.mkDerivation rec { (fetchurl { url = "${p}/weed.at"; sha256 = "1101xakhc99f5gb9cs3mmydn43ayli7b270pzbvh7f9rbvh0d0nh"; }) ]; - NIX_CFLAGS_COMPILE = "-L${libmysqlclient}/lib/mysql -I${libmysqlclient}/include/mysql"; + NIX_CFLAGS_COMPILE = "-L${mysql.connector-c}/lib/mysql -I${mysql.connector-c}/include/mysql"; checkInputs = [ dejagnu ]; doCheck = false; # fails 1 out of a bunch of tests, looks like a bug diff --git a/pkgs/tools/networking/maxscale/default.nix b/pkgs/tools/networking/maxscale/default.nix index d047646fa7195..32f6b11d77c53 100644 --- a/pkgs/tools/networking/maxscale/default.nix +++ b/pkgs/tools/networking/maxscale/default.nix @@ -1,5 +1,5 @@ { stdenv, fetchFromGitHub, cmake, pkgconfig, glibc -, bison2, curl, flex, gperftools, jansson, jemalloc, kerberos, lua, libmysqlclient +, bison2, curl, flex, gperftools, jansson, jemalloc, kerberos, lua, mariadb , ncurses, openssl, pcre, pcre2, perl, rabbitmq-c, sqlite, tcl , libaio, libedit, libtool, libui, libuuid, zlib }: @@ -18,7 +18,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ cmake pkgconfig ]; buildInputs = [ - bison2 curl flex gperftools jansson jemalloc kerberos lua libmysqlclient + bison2 curl flex gperftools jansson jemalloc kerberos lua mariadb.connector-c ncurses openssl pcre pcre2 perl rabbitmq-c sqlite tcl libaio libedit libtool libui libuuid zlib ]; @@ -63,7 +63,7 @@ stdenv.mkDerivation rec { postInstall = '' find $out/bin -type f -perm -0100 | while read f1; do patchelf \ - --set-rpath "$(patchelf --print-rpath $f1):${libmysqlclient}/lib/mariadb:$out/lib/maxscale" \ + --set-rpath "$(patchelf --print-rpath $f1):${mariadb.connector-c}/lib/mariadb:$out/lib/maxscale" \ --set-interpreter "$(cat ${stdenv.cc}/nix-support/dynamic-linker)" $f1 \ && patchelf --shrink-rpath $f1 done diff --git a/pkgs/tools/networking/modem-manager/default.nix b/pkgs/tools/networking/modem-manager/default.nix index fedc8d4b71d7f..b2644d0c2a496 100644 --- a/pkgs/tools/networking/modem-manager/default.nix +++ b/pkgs/tools/networking/modem-manager/default.nix @@ -32,6 +32,13 @@ stdenv.mkDerivation rec { doCheck = true; + postInstall = '' + # systemd in NixOS doesn't use `systemctl enable`, so we need to establish + # aliases ourselves. + ln -s $out/etc/systemd/system/ModemManager.service \ + $out/etc/systemd/system/dbus-org.freedesktop.ModemManager1.service + ''; + meta = with stdenv.lib; { description = "WWAN modem manager, part of NetworkManager"; homepage = https://www.freedesktop.org/wiki/Software/ModemManager/; diff --git a/pkgs/tools/networking/network-manager/default.nix b/pkgs/tools/networking/network-manager/default.nix index 490ebd0fa6bb0..5bc915caea650 100644 --- a/pkgs/tools/networking/network-manager/default.nix +++ b/pkgs/tools/networking/network-manager/default.nix @@ -97,6 +97,11 @@ in stdenv.mkDerivation rec { ''; postInstall = '' + # systemd in NixOS doesn't use `systemctl enable`, so we need to establish + # aliases ourselves. + ln -s $out/etc/systemd/system/NetworkManager-dispatcher.service $out/etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service + ln -s $out/etc/systemd/system/NetworkManager.service $out/etc/systemd/system/dbus-org.freedesktop.NetworkManager.service + # Add the legacy service name from before #51382 to prevent NetworkManager # from not starting back up: # TODO: remove this once 19.10 is released diff --git a/pkgs/tools/security/thc-hydra/default.nix b/pkgs/tools/security/thc-hydra/default.nix index 57deaaf0498c3..252d73b479b64 100644 --- a/pkgs/tools/security/thc-hydra/default.nix +++ b/pkgs/tools/security/thc-hydra/default.nix @@ -1,4 +1,4 @@ -{ stdenv, lib, fetchurl, zlib, openssl, ncurses, libidn, pcre, libssh, libmysqlclient, postgresql +{ stdenv, lib, fetchurl, zlib, openssl, ncurses, libidn, pcre, libssh, mysql, postgresql , withGUI ? false, makeWrapper, pkgconfig, gtk2 }: let @@ -23,7 +23,7 @@ in stdenv.mkDerivation rec { ''; nativeBuildInputs = lib.optionals withGUI [ pkgconfig makeWrapper ]; - buildInputs = [ zlib openssl ncurses libidn pcre libssh libmysqlclient postgresql ] + buildInputs = [ zlib openssl ncurses libidn pcre libssh mysql.connector-c postgresql ] ++ lib.optional withGUI gtk2; postInstall = lib.optionalString withGUI '' diff --git a/pkgs/tools/system/collectd/default.nix b/pkgs/tools/system/collectd/default.nix index 3e7e4e5969ab3..1df73e08d1e30 100644 --- a/pkgs/tools/system/collectd/default.nix +++ b/pkgs/tools/system/collectd/default.nix @@ -22,7 +22,7 @@ , libtool , lm_sensors , lvm2 -, libmysqlclient +, mysql , numactl , postgresql , protobufc @@ -63,7 +63,7 @@ stdenv.mkDerivation rec { libxml2 postgresql protobufc rrdtool varnish yajl jdk libtool python hiredis libmicrohttpd riemann_c_client mosquitto rdkafka mongoc - ] ++ stdenv.lib.optionals (libmysqlclient != null) [ libmysqlclient + ] ++ stdenv.lib.optionals (mysql != null) [ mysql.connector-c ] ++ stdenv.lib.optionals stdenv.isLinux [ iptables libatasmart libcredis libmodbus libsigrok lm_sensors lvm2 rabbitmq-c udev net_snmp libmnl diff --git a/pkgs/tools/system/rsyslog/default.nix b/pkgs/tools/system/rsyslog/default.nix index 34b7b7d908a8c..2899837f3f882 100644 --- a/pkgs/tools/system/rsyslog/default.nix +++ b/pkgs/tools/system/rsyslog/default.nix @@ -1,5 +1,5 @@ { stdenv, fetchurl, pkgconfig, autoreconfHook, libestr, json_c, zlib, pythonPackages, fastJson -, libkrb5 ? null, systemd ? null, jemalloc ? null, libmysqlclient ? null, postgresql ? null +, libkrb5 ? null, systemd ? null, jemalloc ? null, mysql ? null, postgresql ? null , libdbi ? null, net_snmp ? null, libuuid ? null, curl ? null, gnutls ? null , libgcrypt ? null, liblognorm ? null, openssl ? null, librelp ? null, libksi ? null , libgt ? null, liblogging ? null, libnet ? null, hadoop ? null, rdkafka ? null @@ -26,7 +26,7 @@ stdenv.mkDerivation rec { postgresql libdbi net_snmp libuuid curl gnutls libgcrypt liblognorm openssl librelp libgt libksi liblogging libnet hadoop rdkafka libmongo-client czmq rabbitmq-c hiredis mongoc - ] ++ stdenv.lib.optional (libmysqlclient != null) libmysqlclient + ] ++ stdenv.lib.optional (mysql != null) mysql.connector-c ++ stdenv.lib.optional stdenv.isLinux systemd; hardeningDisable = [ "format" ]; @@ -50,7 +50,7 @@ stdenv.mkDerivation rec { (mkFlag false "valgrind") (mkFlag false "diagtools") (mkFlag true "usertools") - (mkFlag (libmysqlclient != null) "mysql") + (mkFlag (mysql != null) "mysql") (mkFlag (postgresql != null) "pgsql") (mkFlag (libdbi != null) "libdbi") (mkFlag (net_snmp != null) "snmp") diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 38ca7129645a1..a837336740b18 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -189,6 +189,7 @@ mapAliases ({ libintlOrEmpty = stdenv.lib.optional (!stdenv.isLinux || stdenv.hostPlatform.libc != "glibc") gettext; # added 2018-03-14 libjson_rpc_cpp = libjson-rpc-cpp; # added 2017-02-28 liblapackWithoutAtlas = liblapack; # added 2018-11-05 + libmysql = mysql.connector-c; # added # 2017-12-28, this was a misnomer refering to libmysqlclient libqrencode = qrencode; # added 2019-01-01 librecad2 = librecad; # backwards compatibility alias, added 2015-10 libsysfs = sysfsutils; # added 2018-04-25 diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b521af8e78244..830b1505370f6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1966,7 +1966,7 @@ in libkrb5 = null; systemd = null; jemalloc = null; - libmysqlclient = null; + mysql = null; postgresql = null; libdbi = null; net_snmp = null; @@ -11710,7 +11710,7 @@ in libdbi = callPackage ../development/libraries/libdbi { }; libdbiDriversBase = libdbiDrivers.override { - libmysqlclient = null; + mysql = null; sqlite = null; }; @@ -12428,8 +12428,9 @@ in libwhereami = callPackage ../development/libraries/libwhereami { }; + giflib = giflib_5_1; giflib_4_1 = callPackage ../development/libraries/giflib/4.1.nix { }; - giflib = callPackage ../development/libraries/giflib { }; + giflib_5_1 = callPackage ../development/libraries/giflib/5.1.nix { }; libunarr = callPackage ../development/libraries/libunarr { }; @@ -13138,7 +13139,7 @@ in cups = if stdenv.isLinux then cups else null; # XXX: mariadb doesn't built on fbsd as of nov 2015 - libmysqlclient = if (!stdenv.isFreeBSD) then libmysqlclient else null; + mysql = if (!stdenv.isFreeBSD) then mysql else null; inherit (pkgs.darwin) libobjc; inherit (pkgs.darwin.apple_sdk.frameworks) ApplicationServices OpenGL Cocoa AGL; @@ -13897,7 +13898,7 @@ in unixODBC = callPackage ../development/libraries/unixODBC { }; - unixODBCDrivers = recurseIntoAttrs (callPackages ../development/libraries/unixODBCDrivers { }); + unixODBCDrivers = recurseIntoAttrs (callPackages ../development/libraries/unixODBCDrivers {}); ustr = callPackage ../development/libraries/ustr { }; @@ -14885,17 +14886,8 @@ in rpcbind = callPackage ../servers/rpcbind { }; - libmysqlclient = libmysqlclient_3_1; - libmysqlclient_3_1 = mariadb-connector-c_3_1; - mariadb-connector-c = mariadb-connector-c_3_1; - mariadb-connector-c_3_1 = callPackage ../servers/sql/mariadb/connector-c/3_1.nix { }; - - mariadb-galera = mariadb-galera_25; - mariadb-galera_25 = callPackage ../servers/sql/mariadb/galera/25.nix { - asio = asio_1_10; - }; - mariadb = callPackage ../servers/sql/mariadb { + asio = asio_1_10; # As per mariadb's cmake, "static jemalloc_pic.a can only be used up to jemalloc 4". # https://jira.mariadb.org/browse/MDEV-15034 jemalloc = jemalloc450.override ({ disableInitExecTls = true; }); @@ -24163,7 +24155,7 @@ in mnemonicode = callPackage ../misc/mnemonicode { }; mysql-workbench = callPackage ../applications/misc/mysql-workbench (let mysql = mysql57; in { - gdal = gdal.override {libmysqlclient = mysql // {lib = {dev = mysql;};};}; + gdal = gdal.override {mysql = mysql // {lib = {dev = mysql;};};}; mysql = mysql; pcre = pcre-cpp; }); -- cgit 1.4.1 From 22a216849bf82ec65e3de86b7ea30e9c6b11efa4 Mon Sep 17 00:00:00 2001 From: Vladimír Čunát Date: Sun, 22 Sep 2019 09:38:09 +0200 Subject: Re-Revert "Merge branch 'staging-next'" This reverts commit f8a8fc6c7c079de430fa528f688ddac781bcef16. --- doc/languages-frameworks/gnome.xml | 12 ++- .../modules/services/networking/networkmanager.nix | 5 ++ pkgs/applications/gis/grass/default.nix | 8 +- .../applications/graphics/gnome-photos/default.nix | 2 +- pkgs/applications/misc/mysql-workbench/default.nix | 4 +- pkgs/applications/office/kexi/default.nix | 4 +- pkgs/applications/office/libreoffice/default.nix | 4 +- pkgs/applications/office/libreoffice/still.nix | 4 +- .../science/electronics/kicad/default.nix | 2 +- pkgs/applications/science/math/glsurf/default.nix | 4 +- pkgs/applications/video/kodi/default.nix | 4 +- pkgs/build-support/setup-hooks/wrap-gapps-hook.sh | 26 +++--- pkgs/desktops/deepin/dde-daemon/default.nix | 2 +- .../gnome-3/apps/gnome-characters/default.nix | 2 +- .../gnome-3/extensions/gsconnect/default.nix | 4 +- pkgs/development/compilers/gerbil/build.nix | 8 +- pkgs/development/compilers/hhvm/default.nix | 4 +- pkgs/development/compilers/neko/default.nix | 4 +- pkgs/development/compilers/urweb/default.nix | 8 +- .../haskell-modules/configuration-nix.nix | 2 +- pkgs/development/interpreters/perl/sw_vers.patch | 2 +- pkgs/development/interpreters/php/default.nix | 8 +- pkgs/development/libraries/cppdb/default.nix | 6 +- pkgs/development/libraries/expat/default.nix | 6 +- pkgs/development/libraries/gdal/2.4.0.nix | 4 +- pkgs/development/libraries/gdal/default.nix | 4 +- pkgs/development/libraries/giflib/5.1.nix | 18 ---- pkgs/development/libraries/giflib/default.nix | 24 ++++++ pkgs/development/libraries/kdb/default.nix | 4 +- pkgs/development/libraries/libagar/default.nix | 6 +- .../libraries/libdbi-drivers/default.nix | 10 +-- pkgs/development/libraries/libgda/default.nix | 6 +- pkgs/development/libraries/libgdiplus/default.nix | 24 ++---- pkgs/development/libraries/librdf/redland.nix | 4 +- pkgs/development/libraries/opendbx/default.nix | 8 +- pkgs/development/libraries/openssl/default.nix | 8 +- pkgs/development/libraries/poco/default.nix | 6 +- pkgs/development/libraries/qt-3/default.nix | 6 +- pkgs/development/libraries/qt-4.x/4.8/default.nix | 6 +- pkgs/development/libraries/qt-5/modules/qtbase.nix | 12 +-- pkgs/development/libraries/tntdb/default.nix | 4 +- .../libraries/unixODBCDrivers/default.nix | 17 ++-- pkgs/development/libraries/wt/default.nix | 6 +- .../lisp-modules/quicklisp-to-nix-overrides.nix | 8 +- pkgs/development/lisp-modules/shell.nix | 4 +- pkgs/development/lua-modules/overrides.nix | 6 +- pkgs/development/ocaml-modules/mysql/default.nix | 4 +- .../development/perl-modules/DBD-mysql/default.nix | 4 +- pkgs/development/pure-modules/glpk/default.nix | 6 +- .../python-modules/cryptography/default.nix | 11 ++- .../python-modules/mysqlclient/default.nix | 6 +- .../python-modules/pyopenssl/default.nix | 3 +- pkgs/development/r-modules/default.nix | 4 +- .../ruby-modules/gem-config/default.nix | 6 +- pkgs/development/tools/misc/patchelf/default.nix | 19 ++++- pkgs/development/tools/misc/patchelf/unstable.nix | 26 +++--- pkgs/development/tools/misc/sysbench/default.nix | 4 +- pkgs/development/tools/tora/default.nix | 6 +- pkgs/games/zod/default.nix | 6 +- pkgs/os-specific/linux/firmware/fwupd/default.nix | 6 +- pkgs/os-specific/linux/kexectools/default.nix | 2 +- pkgs/servers/clickhouse/default.nix | 4 +- pkgs/servers/computing/slurm/default.nix | 4 +- pkgs/servers/freeradius/default.nix | 6 +- pkgs/servers/http/lighttpd/default.nix | 6 +- pkgs/servers/mail/dovecot/default.nix | 4 +- pkgs/servers/mail/exim/default.nix | 12 +-- pkgs/servers/mail/opensmtpd/extras.nix | 6 +- pkgs/servers/mail/postfix/default.nix | 6 +- pkgs/servers/monitoring/plugins/default.nix | 4 +- pkgs/servers/monitoring/zabbix/proxy.nix | 4 +- pkgs/servers/monitoring/zabbix/server.nix | 4 +- pkgs/servers/sql/mariadb/connector-c/3_1.nix | 6 ++ pkgs/servers/sql/mariadb/connector-c/default.nix | 54 ++++++++++++ pkgs/servers/sql/mariadb/default.nix | 98 ---------------------- pkgs/servers/sql/mariadb/galera/25.nix | 6 ++ pkgs/servers/sql/mariadb/galera/default.nix | 63 ++++++++++++++ pkgs/servers/uwsgi/default.nix | 4 +- pkgs/tools/backup/bareos/default.nix | 8 +- pkgs/tools/backup/mydumper/default.nix | 4 +- pkgs/tools/graphics/zbar/default.nix | 4 +- pkgs/tools/networking/kea/default.nix | 6 +- pkgs/tools/networking/mailutils/default.nix | 8 +- pkgs/tools/networking/maxscale/default.nix | 6 +- pkgs/tools/networking/modem-manager/default.nix | 7 -- pkgs/tools/networking/network-manager/default.nix | 5 -- pkgs/tools/security/thc-hydra/default.nix | 4 +- pkgs/tools/system/collectd/default.nix | 4 +- pkgs/tools/system/rsyslog/default.nix | 6 +- pkgs/top-level/aliases.nix | 1 - pkgs/top-level/all-packages.nix | 24 ++++-- 91 files changed, 441 insertions(+), 380 deletions(-) delete mode 100644 pkgs/development/libraries/giflib/5.1.nix create mode 100644 pkgs/development/libraries/giflib/default.nix create mode 100644 pkgs/servers/sql/mariadb/connector-c/3_1.nix create mode 100644 pkgs/servers/sql/mariadb/connector-c/default.nix create mode 100644 pkgs/servers/sql/mariadb/galera/25.nix create mode 100644 pkgs/servers/sql/mariadb/galera/default.nix (limited to 'doc') diff --git a/doc/languages-frameworks/gnome.xml b/doc/languages-frameworks/gnome.xml index 9e0f21a6c74fc..8b3151d5bf949 100644 --- a/doc/languages-frameworks/gnome.xml +++ b/doc/languages-frameworks/gnome.xml @@ -210,7 +210,7 @@ mkDerivation { dontWrapGApps = true; # Arguments to be passed to `makeWrapper`, only used by qt5’s mkDerivation - qtWrapperArgs [ + qtWrapperArgs = [ "\${gappsWrapperArgs[@]}" ]; } @@ -258,6 +258,16 @@ mkDerivation { + + + I need to wrap a binary outside bin and libexec directories. + + + + You can manually trigger the wrapping with wrapGApp in preFixup phase. It takes a path to a program as a first argument; the remaining arguments are passed directly to wrapProgram function. + + + diff --git a/nixos/modules/services/networking/networkmanager.nix b/nixos/modules/services/networking/networkmanager.nix index db4d0e328e2d1..db047e6d0b893 100644 --- a/nixos/modules/services/networking/networkmanager.nix +++ b/nixos/modules/services/networking/networkmanager.nix @@ -468,12 +468,16 @@ in { mkdir -m 700 -p /etc/ipsec.d mkdir -m 755 -p ${stateDirs} ''; + + aliases = [ "dbus-org.freedesktop.NetworkManager.service" ]; }; systemd.services.NetworkManager-wait-online = { wantedBy = [ "network-online.target" ]; }; + systemd.services.ModemManager.aliases = [ "dbus-org.freedesktop.ModemManager1.service" ]; + systemd.services.nm-setup-hostsdirs = mkIf dynamicHostsEnabled { wantedBy = [ "NetworkManager.service" ]; before = [ "NetworkManager.service" ]; @@ -495,6 +499,7 @@ in { # useful binaries for user-specified hooks path = [ pkgs.iproute pkgs.utillinux pkgs.coreutils ]; + aliases = [ "dbus-org.freedesktop.nm-dispatcher.service" ]; }; # Turn off NixOS' network management when networking is managed entirely by NetworkManager diff --git a/pkgs/applications/gis/grass/default.nix b/pkgs/applications/gis/grass/default.nix index 360d94d1b8250..562a5e616a324 100644 --- a/pkgs/applications/gis/grass/default.nix +++ b/pkgs/applications/gis/grass/default.nix @@ -1,6 +1,6 @@ { stdenv, fetchFromGitHub, flex, bison, pkgconfig, zlib, libtiff, libpng, fftw , cairo, readline, ffmpeg, makeWrapper, wxGTK30, netcdf, blas -, proj, gdal, geos, sqlite, postgresql, mysql, python2Packages, libLAS, proj-datumgrid +, proj, gdal, geos, sqlite, postgresql, libmysqlclient, python2Packages, libLAS, proj-datumgrid }: stdenv.mkDerivation rec { @@ -16,7 +16,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ pkgconfig ]; buildInputs = [ flex bison zlib proj gdal libtiff libpng fftw sqlite cairo proj - readline ffmpeg makeWrapper wxGTK30 netcdf geos postgresql mysql.connector-c blas + readline ffmpeg makeWrapper wxGTK30 netcdf geos postgresql libmysqlclient blas libLAS proj-datumgrid ] ++ (with python2Packages; [ python dateutil wxPython30 numpy ]); @@ -37,8 +37,8 @@ stdenv.mkDerivation rec { "--with-postgres-libs=${postgresql.lib}/lib/" # it complains about missing libmysqld but doesn't really seem to need it "--with-mysql" - "--with-mysql-includes=${mysql.connector-c}/include/mysql" - "--with-mysql-libs=${mysql.connector-c}/lib/mysql" + "--with-mysql-includes=${libmysqlclient}/include/mysql" + "--with-mysql-libs=${libmysqlclient}/lib/mysql" "--with-blas" "--with-liblas=${libLAS}/bin/liblas-config" ]; diff --git a/pkgs/applications/graphics/gnome-photos/default.nix b/pkgs/applications/graphics/gnome-photos/default.nix index f591dd5a60dd2..ea4cf986f3997 100644 --- a/pkgs/applications/graphics/gnome-photos/default.nix +++ b/pkgs/applications/graphics/gnome-photos/default.nix @@ -102,7 +102,7 @@ stdenv.mkDerivation rec { ''; postFixup = '' - wrapProgram "${placeholder "installedTests"}/libexec/installed-tests/gnome-photos/basic.py" "''${gappsWrapperArgs[@]}" + wrapGApp "${placeholder "installedTests"}/libexec/installed-tests/gnome-photos/basic.py" ''; passthru = { diff --git a/pkgs/applications/misc/mysql-workbench/default.nix b/pkgs/applications/misc/mysql-workbench/default.nix index 172f999223a88..135745feec315 100644 --- a/pkgs/applications/misc/mysql-workbench/default.nix +++ b/pkgs/applications/misc/mysql-workbench/default.nix @@ -85,8 +85,8 @@ in stdenv.mkDerivation rec { find -L "$out/bin" -type f -executable -print0 \ | while IFS= read -r -d ''' file; do if [[ "''${file}" != *-bin ]]; then - echo "Wrapping program ''${file}" - wrapProgram "''${file}" "''${gappsWrapperArgs[@]}" + echo "Wrapping program $file" + wrapGApp "$file" fi done ''; diff --git a/pkgs/applications/office/kexi/default.nix b/pkgs/applications/office/kexi/default.nix index 83515de49903f..8db7068f7cfa6 100644 --- a/pkgs/applications/office/kexi/default.nix +++ b/pkgs/applications/office/kexi/default.nix @@ -4,7 +4,7 @@ breeze-icons, karchive, kcodecs, kcompletion, kconfig, kconfigwidgets, kcoreaddons, kcrash, kguiaddons, ki18n, kiconthemes, kitemviews, kio, ktexteditor, ktextwidgets, kwidgetsaddons, kxmlgui, - kdb, kproperty, kreport, lcms2, mysql, marble, postgresql + kdb, kproperty, kreport, lcms2, libmysqlclient, marble, postgresql }: mkDerivation rec { @@ -23,7 +23,7 @@ mkDerivation rec { breeze-icons karchive kcodecs kcompletion kconfig kconfigwidgets kcoreaddons kcrash kguiaddons ki18n kiconthemes kitemviews kio ktexteditor ktextwidgets kwidgetsaddons kxmlgui - kdb kproperty kreport lcms2 mysql.connector-c marble postgresql + kdb kproperty kreport lcms2 libmysqlclient marble postgresql ]; propagatedUserEnvPkgs = [ kproperty ]; diff --git a/pkgs/applications/office/libreoffice/default.nix b/pkgs/applications/office/libreoffice/default.nix index f5f53e10496b1..a459302177b99 100644 --- a/pkgs/applications/office/libreoffice/default.nix +++ b/pkgs/applications/office/libreoffice/default.nix @@ -4,7 +4,7 @@ , bison, flex, zip, unzip, gtk3, gtk2, libmspack, getopt, file, cairo, which , icu, boost, jdk, ant, cups, xorg, libcmis, fontforge , openssl, gperf, cppunit, GConf, ORBit2, poppler, utillinux -, librsvg, gnome_vfs, libGLU_combined, bsh, CoinMP, libwps, libabw, mysql +, librsvg, gnome_vfs, libGLU_combined, bsh, CoinMP, libwps, libabw, libmysqlclient , autoconf, automake, openldap, bash, hunspell, librdf_redland, nss, nspr , libwpg, dbus-glib, qt4, clucene_core, libcdr, lcms, vigra , unixODBC, mdds, sane-backends, mythes, libexttextcat, libvisio @@ -361,7 +361,7 @@ in stdenv.mkDerivation rec { libmspack librdf_redland librsvg libsndfile libvisio libwpd libwpg libX11 libXaw libXext libXi libXinerama libxml2 libxslt libXtst libXdmcp libpthreadstubs libGLU_combined mythes gst_all_1.gstreamer - gst_all_1.gst-plugins-base glib mysql.connector-c + gst_all_1.gst-plugins-base glib libmysqlclient neon nspr nss openldap openssl ORBit2 pam perl pkgconfig poppler python3 sablotron sane-backends unzip vigra which zip zlib mdds bluez5 libcmis libwps libabw libzmf diff --git a/pkgs/applications/office/libreoffice/still.nix b/pkgs/applications/office/libreoffice/still.nix index eb774a309416c..4739d52655844 100644 --- a/pkgs/applications/office/libreoffice/still.nix +++ b/pkgs/applications/office/libreoffice/still.nix @@ -4,7 +4,7 @@ , bison, flex, zip, unzip, gtk3, gtk2, libmspack, getopt, file, cairo, which , icu, boost, jdk, ant, cups, xorg, libcmis, fontforge , openssl, gperf, cppunit, GConf, ORBit2, poppler, utillinux -, librsvg, gnome_vfs, libGLU_combined, bsh, CoinMP, libwps, libabw, mysql +, librsvg, gnome_vfs, libGLU_combined, bsh, CoinMP, libwps, libabw, libmysqlclient , autoconf, automake, openldap, bash, hunspell, librdf_redland, nss, nspr , libwpg, dbus-glib, qt4, clucene_core, libcdr, lcms, vigra , unixODBC, mdds, sane-backends, mythes, libexttextcat, libvisio @@ -358,7 +358,7 @@ in stdenv.mkDerivation rec { libmspack librdf_redland librsvg libsndfile libvisio libwpd libwpg libX11 libXaw libXext libXi libXinerama libxml2 libxslt libXtst libXdmcp libpthreadstubs libGLU_combined mythes gst_all_1.gstreamer - gst_all_1.gst-plugins-base glib mysql.connector-c + gst_all_1.gst-plugins-base glib libmysqlclient neon nspr nss openldap openssl ORBit2 pam perl poppler python3 sablotron sane-backends unzip vigra which zip zlib mdds bluez5 libcmis libwps libabw libzmf diff --git a/pkgs/applications/science/electronics/kicad/default.nix b/pkgs/applications/science/electronics/kicad/default.nix index f31dd0daa5c35..bd57e355c757f 100644 --- a/pkgs/applications/science/electronics/kicad/default.nix +++ b/pkgs/applications/science/electronics/kicad/default.nix @@ -107,7 +107,7 @@ in stdenv.mkDerivation rec { buildPythonPath "$out $pythonPath" gappsWrapperArgs+=(--set PYTHONPATH "$program_PYTHONPATH") - wrapProgram "$out/bin/kicad" "''${gappsWrapperArgs[@]}" + wrapGApp "$out/bin/kicad" ''; meta = { diff --git a/pkgs/applications/science/math/glsurf/default.nix b/pkgs/applications/science/math/glsurf/default.nix index 4de683cdce906..1cd5e364208a8 100644 --- a/pkgs/applications/science/math/glsurf/default.nix +++ b/pkgs/applications/science/math/glsurf/default.nix @@ -1,5 +1,5 @@ { stdenv, fetchurl, ocamlPackages, libGLU_combined, freeglut -, mysql, mpfr, gmp, libtiff, libjpeg, libpng, giflib +, libmysqlclient, mpfr, gmp, libtiff, libjpeg, libpng, giflib }: stdenv.mkDerivation { @@ -10,7 +10,7 @@ stdenv.mkDerivation { sha256 = "0w8xxfnw2snflz8wdr2ca9f5g91w5vbyp1hwlx1v7vg83d4bwqs7"; }; - buildInputs = [ freeglut libGLU_combined mysql.connector-c mpfr gmp + buildInputs = [ freeglut libGLU_combined libmysqlclient mpfr gmp libtiff libjpeg libpng giflib ] ++ (with ocamlPackages; [ ocaml findlib ocaml_mysql lablgl camlimages_4_0 mlgmpidl diff --git a/pkgs/applications/video/kodi/default.nix b/pkgs/applications/video/kodi/default.nix index 773c63b0036d1..7953cde241398 100644 --- a/pkgs/applications/video/kodi/default.nix +++ b/pkgs/applications/video/kodi/default.nix @@ -13,7 +13,7 @@ , libmpeg2, libsamplerate, libmad , libogg, libvorbis, flac, libxslt , lzo, libcdio, libmodplug, libass, libbluray -, sqlite, mysql, nasm, gnutls, libva, libdrm +, sqlite, libmysqlclient, nasm, gnutls, libva, libdrm , curl, bzip2, zip, unzip, glxinfo, xdpyinfo , libcec, libcec_platform, dcadec, libuuid , libcrossguid, libmicrohttpd @@ -161,7 +161,7 @@ in stdenv.mkDerivation { libmpeg2 libsamplerate libmad libogg libvorbis flac libxslt systemd lzo libcdio libmodplug libass libbluray - sqlite mysql.connector-c avahi lame + sqlite libmysqlclient avahi lame curl bzip2 zip unzip glxinfo xdpyinfo libcec libcec_platform dcadec libuuid libgcrypt libgpgerror libunistring diff --git a/pkgs/build-support/setup-hooks/wrap-gapps-hook.sh b/pkgs/build-support/setup-hooks/wrap-gapps-hook.sh index 906b1db9d10ee..717740f1f20f0 100644 --- a/pkgs/build-support/setup-hooks/wrap-gapps-hook.sh +++ b/pkgs/build-support/setup-hooks/wrap-gapps-hook.sh @@ -1,12 +1,19 @@ +# shellcheck shell=bash gappsWrapperArgs=() find_gio_modules() { - if [ -d "$1"/lib/gio/modules ] && [ -n "$(ls -A $1/lib/gio/modules)" ] ; then + if [ -d "$1/lib/gio/modules" ] && [ -n "$(ls -A "$1/lib/gio/modules")" ] ; then gappsWrapperArgs+=(--prefix GIO_EXTRA_MODULES : "$1/lib/gio/modules") fi } -addEnvHooks "$targetOffset" find_gio_modules +addEnvHooks "${targetOffset:?}" find_gio_modules + +wrapGApp() { + local program="$1" + shift 1 + wrapProgram "$program" "${gappsWrapperArgs[@]}" "$@" +} # Note: $gappsWrapperArgs still gets defined even if $dontWrapGApps is set. wrapGAppsHook() { @@ -26,20 +33,19 @@ wrapGAppsHook() { gappsWrapperArgs+=(--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH") fi - if [ -d "$prefix/share" ]; then + if [ -d "${prefix:?}/share" ]; then gappsWrapperArgs+=(--prefix XDG_DATA_DIRS : "$prefix/share") fi - if [ -d "$prefix/lib/gio/modules" ] && [ -n "$(ls -A $prefix/lib/gio/modules)" ] ; then + if [ -d "$prefix/lib/gio/modules" ] && [ -n "$(ls -A "$prefix/lib/gio/modules")" ] ; then gappsWrapperArgs+=(--prefix GIO_EXTRA_MODULES : "$prefix/lib/gio/modules") fi - for v in $wrapPrefixVariables GST_PLUGIN_SYSTEM_PATH_1_0 GI_TYPELIB_PATH GRL_PLUGIN_PATH; do - eval local dummy="\$$v" - gappsWrapperArgs+=(--prefix $v : "$dummy") + for v in ${wrapPrefixVariables:-} GST_PLUGIN_SYSTEM_PATH_1_0 GI_TYPELIB_PATH GRL_PLUGIN_PATH; do + gappsWrapperArgs+=(--prefix "$v" : "${!v}") done - if [[ -z "$dontWrapGApps" ]]; then + if [[ -z "${dontWrapGApps:-}" ]]; then targetDirsThatExist=() targetDirsRealPath=() @@ -52,7 +58,7 @@ wrapGAppsHook() { find "${targetDir}" -type f -executable -print0 \ | while IFS= read -r -d '' file; do echo "Wrapping program '${file}'" - wrapProgram "${file}" "${gappsWrapperArgs[@]}" + wrapGApp "${file}" done fi done @@ -71,7 +77,7 @@ wrapGAppsHook() { fi done echo "Wrapping link: '$linkPath'" - wrapProgram "${linkPath}" "${gappsWrapperArgs[@]}" + wrapGApp "${linkPath}" done fi fi diff --git a/pkgs/desktops/deepin/dde-daemon/default.nix b/pkgs/desktops/deepin/dde-daemon/default.nix index 19089a6b050e5..da217186e2768 100644 --- a/pkgs/desktops/deepin/dde-daemon/default.nix +++ b/pkgs/desktops/deepin/dde-daemon/default.nix @@ -115,7 +115,7 @@ buildGoPackage rec { postFixup = '' # wrapGAppsHook does not work with binaries outside of $out/bin or $out/libexec for binary in $out/lib/deepin-daemon/*; do - wrapProgram $binary "''${gappsWrapperArgs[@]}" + wrapGApp "$binary" done searchHardCodedPaths $out # debugging diff --git a/pkgs/desktops/gnome-3/apps/gnome-characters/default.nix b/pkgs/desktops/gnome-3/apps/gnome-characters/default.nix index ac1e9ee85c015..9e44573d2e387 100644 --- a/pkgs/desktops/gnome-3/apps/gnome-characters/default.nix +++ b/pkgs/desktops/gnome-3/apps/gnome-characters/default.nix @@ -64,7 +64,7 @@ stdenv.mkDerivation rec { sed -e $"2iimports.package._findEffectiveEntryPointName = () => \'$(basename $file)\' " \ -i $file - wrapProgram $file "''${gappsWrapperArgs[@]}" + wrapGApp "$file" done ''; diff --git a/pkgs/desktops/gnome-3/extensions/gsconnect/default.nix b/pkgs/desktops/gnome-3/extensions/gsconnect/default.nix index cff0db665bbae..cef00513df1c4 100644 --- a/pkgs/desktops/gnome-3/extensions/gsconnect/default.nix +++ b/pkgs/desktops/gnome-3/extensions/gsconnect/default.nix @@ -76,8 +76,8 @@ stdenv.mkDerivation rec { postFixup = '' # Let’s wrap the daemons for file in $out/share/gnome-shell/extensions/gsconnect@andyholmes.github.io/service/{{daemon,nativeMessagingHost}.js,components/folks.py}; do - echo "Wrapping program ''${file}" - wrapProgram "''${file}" "''${gappsWrapperArgs[@]}" + echo "Wrapping program $file" + wrapGApp "$file" done ''; diff --git a/pkgs/development/compilers/gerbil/build.nix b/pkgs/development/compilers/gerbil/build.nix index 9ef650c330fab..b5ccbca6f7e64 100644 --- a/pkgs/development/compilers/gerbil/build.nix +++ b/pkgs/development/compilers/gerbil/build.nix @@ -1,6 +1,6 @@ { stdenv, makeStaticLibraries, coreutils, rsync, bash, - openssl, zlib, sqlite, libxml2, libyaml, mysql, lmdb, leveldb, postgresql, + openssl, zlib, sqlite, libxml2, libyaml, libmysqlclient, lmdb, leveldb, postgresql, version, git-version, gambit, src }: # TODO: distinct packages for gerbil-release and gerbil-devel @@ -12,13 +12,13 @@ stdenv.mkDerivation rec { inherit src; # Use makeStaticLibraries to enable creation of statically linked binaries - buildInputs_libraries = [ openssl zlib sqlite libxml2 libyaml mysql.connector-c lmdb leveldb postgresql ]; + buildInputs_libraries = [ openssl zlib sqlite libxml2 libyaml libmysqlclient lmdb leveldb postgresql ]; buildInputs_staticLibraries = map makeStaticLibraries buildInputs_libraries; buildInputs = [ gambit rsync bash ] ++ buildInputs_libraries ++ buildInputs_staticLibraries; - NIX_CFLAGS_COMPILE = [ "-I${mysql.connector-c}/include/mysql" "-L${mysql.connector-c}/lib/mysql" ]; + NIX_CFLAGS_COMPILE = [ "-I${libmysqlclient}/include/mysql" "-L${libmysqlclient}/lib/mysql" ]; postPatch = '' echo '(define (gerbil-version-string) "v${git-version}")' > src/gerbil/runtime/gx-version.scm @@ -40,7 +40,7 @@ ZLIB=${makeStaticLibraries zlib}/lib/libz.a # SQLITE=${makeStaticLibraries sqlite}/lib/sqlite.a # MISSING! # LIBXML2=${makeStaticLibraries libxml2}/lib/libxml2.a # MISSING! # YAML=${makeStaticLibraries libyaml}/lib/libyaml.a # MISSING! -MYSQL=${makeStaticLibraries mysql.connector-c}/lib/mariadb/libmariadb.a +MYSQL=${makeStaticLibraries libmysqlclient}/lib/mariadb/libmariadb.a # LMDB=${makeStaticLibraries lmdb}/lib/mysql/libmysqlclient_r.a # MISSING! LEVELDB=${makeStaticLibraries lmdb}/lib/libleveldb.a EOF diff --git a/pkgs/development/compilers/hhvm/default.nix b/pkgs/development/compilers/hhvm/default.nix index 24e88f9ee2e2c..7066744bb54dd 100644 --- a/pkgs/development/compilers/hhvm/default.nix +++ b/pkgs/development/compilers/hhvm/default.nix @@ -2,7 +2,7 @@ , pcre, libevent, gd, curl, libxml2, icu, flex, bison, openssl, zlib, php , expat, libcap, oniguruma, libdwarf, libmcrypt, tbb, gperftools, glog, libkrb5 , bzip2, openldap, readline, libelf, uwimap, binutils, cyrus_sasl, pam, libpng -, libxslt, freetype, gdb, git, perl, mysql, gmp, libyaml, libedit +, libxslt, freetype, gdb, git, perl, libmysqlclient, gmp, libyaml, libedit , libvpx, imagemagick, fribidi, gperf, which, ocamlPackages }: @@ -19,7 +19,7 @@ stdenv.mkDerivation rec { }; buildInputs = - [ cmake pkgconfig boost libunwind mysql.connector-c libmemcached pcre gdb git perl + [ cmake pkgconfig boost libunwind libmysqlclient libmemcached pcre gdb git perl libevent gd curl libxml2 icu flex bison openssl zlib php expat libcap oniguruma libdwarf libmcrypt tbb gperftools bzip2 openldap readline libelf uwimap binutils cyrus_sasl pam glog libpng libxslt libkrb5 diff --git a/pkgs/development/compilers/neko/default.nix b/pkgs/development/compilers/neko/default.nix index 74ccaac388f26..79c4aacbed5b9 100644 --- a/pkgs/development/compilers/neko/default.nix +++ b/pkgs/development/compilers/neko/default.nix @@ -1,5 +1,5 @@ { stdenv, fetchurl, boehmgc, zlib, sqlite, pcre, cmake, pkgconfig -, git, apacheHttpd, apr, aprutil, mysql, mbedtls, openssl, pkgs, gtk2, libpthreadstubs +, git, apacheHttpd, apr, aprutil, libmysqlclient, mbedtls, openssl, pkgs, gtk2, libpthreadstubs }: stdenv.mkDerivation rec { @@ -14,7 +14,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ cmake pkgconfig git ]; buildInputs = [ boehmgc zlib sqlite pcre apacheHttpd apr aprutil - mysql.connector-c mbedtls openssl libpthreadstubs ] + libmysqlclient mbedtls openssl libpthreadstubs ] ++ stdenv.lib.optional stdenv.isLinux gtk2 ++ stdenv.lib.optionals stdenv.isDarwin [ pkgs.darwin.apple_sdk.frameworks.Security pkgs.darwin.apple_sdk.frameworks.Carbon]; diff --git a/pkgs/development/compilers/urweb/default.nix b/pkgs/development/compilers/urweb/default.nix index 01d4972a55d50..31381aac741d0 100644 --- a/pkgs/development/compilers/urweb/default.nix +++ b/pkgs/development/compilers/urweb/default.nix @@ -1,5 +1,5 @@ { stdenv, fetchurl, file, openssl, mlton -, mysql, postgresql, sqlite, gcc, icu +, libmysqlclient, postgresql, sqlite, gcc, icu }: stdenv.mkDerivation rec { @@ -11,7 +11,7 @@ stdenv.mkDerivation rec { sha256 = "1cl0x0sy7w1lazszc8q06q3wx0x0rczxh27vimrsw54s6s9y096s"; }; - buildInputs = [ openssl mlton mysql.connector-c postgresql sqlite icu ]; + buildInputs = [ openssl mlton libmysqlclient postgresql sqlite icu ]; prePatch = '' sed -e 's@/usr/bin/file@${file}/bin/file@g' -i configure @@ -21,13 +21,13 @@ stdenv.mkDerivation rec { preConfigure = '' export PGHEADER="${postgresql}/include/libpq-fe.h"; - export MSHEADER="${mysql.connector-c}/include/mysql/mysql.h"; + export MSHEADER="${libmysqlclient}/include/mysql/mysql.h"; export SQHEADER="${sqlite.dev}/include/sqlite3.h"; export CC="${gcc}/bin/gcc"; export CCARGS="-I$out/include \ -L${openssl.out}/lib \ - -L${mysql.connector-c}/lib \ + -L${libmysqlclient}/lib \ -L${postgresql.lib}/lib \ -L${sqlite.out}/lib"; ''; diff --git a/pkgs/development/haskell-modules/configuration-nix.nix b/pkgs/development/haskell-modules/configuration-nix.nix index 5db25686fc66d..91fdb1ece2767 100644 --- a/pkgs/development/haskell-modules/configuration-nix.nix +++ b/pkgs/development/haskell-modules/configuration-nix.nix @@ -53,7 +53,7 @@ self: super: builtins.intersectAttrs super { # Use the default version of mysql to build this package (which is actually mariadb). # test phase requires networking - mysql = dontCheck (super.mysql.override { mysql = pkgs.mysql.connector-c; }); + mysql = dontCheck (super.mysql.override { mysql = pkgs.libmysqlclient; }); # CUDA needs help finding the SDK headers and libraries. cuda = overrideCabal super.cuda (drv: { diff --git a/pkgs/development/interpreters/perl/sw_vers.patch b/pkgs/development/interpreters/perl/sw_vers.patch index 9d4cd75486e64..2e30dba929242 100644 --- a/pkgs/development/interpreters/perl/sw_vers.patch +++ b/pkgs/development/interpreters/perl/sw_vers.patch @@ -7,7 +7,7 @@ index afadf53..80b7533 100644 # "ProductVersion: 10.10.5" "10.10" # "ProductVersion: 10.11" "10.11" - prodvers=`sw_vers|awk '/^ProductVersion:/{print $2}'|awk -F. '{print $1"."$2}'` -+ prodvers="10.10" ++ prodvers="${MACOSX_DEPLOYMENT_TARGET:-10.12}" case "$prodvers" in 10.*) add_macosx_version_min ccflags $prodvers diff --git a/pkgs/development/interpreters/php/default.nix b/pkgs/development/interpreters/php/default.nix index 9a82868b7b3d3..508339d0da6b3 100644 --- a/pkgs/development/interpreters/php/default.nix +++ b/pkgs/development/interpreters/php/default.nix @@ -1,6 +1,6 @@ # pcre functionality is tested in nixos/tests/php-pcre.nix { lib, stdenv, fetchurl, autoconf, bison, libtool, pkgconfig, re2c -, mysql, libxml2, readline, zlib, curl, postgresql, gettext +, libmysqlclient, libxml2, readline, zlib, curl, postgresql, gettext , openssl, pcre, pcre2, sqlite, config, libjpeg, libpng, freetype , libxslt, libmcrypt, bzip2, icu, openldap, cyrus_sasl, libmhash, unixODBC , uwimap, pam, gmp, apacheHttpd, libiconv, systemd, libsodium, html-tidy, libargon2 @@ -64,7 +64,7 @@ let }: let - mysqlBuildInputs = optional (!mysqlndSupport) mysql.connector-c; + mysqlBuildInputs = optional (!mysqlndSupport) libmysqlclient; libmcrypt' = libmcrypt.override { disablePosixThreads = true; }; in stdenv.mkDerivation { @@ -149,9 +149,9 @@ let ++ optional postgresqlSupport "--with-pgsql=${postgresql}" ++ optional pdo_odbcSupport "--with-pdo-odbc=unixODBC,${unixODBC}" ++ optional pdo_pgsqlSupport "--with-pdo-pgsql=${postgresql}" - ++ optional pdo_mysqlSupport "--with-pdo-mysql=${if mysqlndSupport then "mysqlnd" else mysql.connector-c}" + ++ optional pdo_mysqlSupport "--with-pdo-mysql=${if mysqlndSupport then "mysqlnd" else libmysqlclient}" ++ optionals mysqliSupport [ - "--with-mysqli=${if mysqlndSupport then "mysqlnd" else "${mysql.connector-c}/bin/mysql_config"}" + "--with-mysqli=${if mysqlndSupport then "mysqlnd" else "${libmysqlclient}/bin/mysql_config"}" ] ++ optional ( pdo_mysqlSupport || mysqliSupport ) "--with-mysql-sock=/run/mysqld/mysqld.sock" ++ optional bcmathSupport "--enable-bcmath" diff --git a/pkgs/development/libraries/cppdb/default.nix b/pkgs/development/libraries/cppdb/default.nix index 737122c57bfe2..a21b3cc93faa0 100644 --- a/pkgs/development/libraries/cppdb/default.nix +++ b/pkgs/development/libraries/cppdb/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, cmake, sqlite, mysql, postgresql, unixODBC }: +{ stdenv, fetchurl, cmake, sqlite, libmysqlclient, postgresql, unixODBC }: stdenv.mkDerivation rec { pname = "cppdb"; @@ -11,10 +11,10 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; - buildInputs = [ cmake sqlite mysql.connector-c postgresql unixODBC ]; + buildInputs = [ cmake sqlite libmysqlclient postgresql unixODBC ]; cmakeFlags = [ "--no-warn-unused-cli" ]; - NIX_CFLAGS_COMPILE = [ "-I${mysql.connector-c}/include/mysql" "-L${mysql.connector-c}/lib/mysql" ]; + NIX_CFLAGS_COMPILE = [ "-I${libmysqlclient}/include/mysql" "-L${libmysqlclient}/lib/mysql" ]; meta = with stdenv.lib; { homepage = http://cppcms.com/sql/cppdb/; diff --git a/pkgs/development/libraries/expat/default.nix b/pkgs/development/libraries/expat/default.nix index ef2574019459d..bb86ac57832ad 100644 --- a/pkgs/development/libraries/expat/default.nix +++ b/pkgs/development/libraries/expat/default.nix @@ -1,11 +1,11 @@ { stdenv, fetchurl }: stdenv.mkDerivation rec { - name = "expat-2.2.7"; + name = "expat-2.2.8"; src = fetchurl { - url = "mirror://sourceforge/expat/${name}.tar.bz2"; - sha256 = "067cfhqwiswm4zynw7xaxl59mrrimaiyjhnn8byxma1i98pi1jfb"; + url = "https://github.com/libexpat/libexpat/releases/download/R_2_2_8/${name}.tar.xz"; + sha256 = "16vpj5mk3lps3x7fr8cs03rffx3ir4jilyqw0frayn6q94daijk1"; }; outputs = [ "out" "dev" ]; # TODO: fix referrers diff --git a/pkgs/development/libraries/gdal/2.4.0.nix b/pkgs/development/libraries/gdal/2.4.0.nix index baf847d4e0a28..d41b4c55f867d 100644 --- a/pkgs/development/libraries/gdal/2.4.0.nix +++ b/pkgs/development/libraries/gdal/2.4.0.nix @@ -1,5 +1,5 @@ { stdenv, fetchurl, fetchpatch, unzip, libjpeg, libtiff, zlib -, postgresql, mysql, libgeotiff, pythonPackages, proj, geos, openssl +, postgresql, libmysqlclient, libgeotiff, pythonPackages, proj, geos, openssl , libpng, sqlite, libspatialite, poppler, hdf4, qhull, giflib, expat , libiconv, libxml2 , netcdfSupport ? true, netcdf, hdf5, curl @@ -30,7 +30,7 @@ stdenv.mkDerivation rec { "--with-poppler=${poppler.dev}" # optional "--with-libz=${zlib.dev}" # optional "--with-pg=${postgresql}/bin/pg_config" - "--with-mysql=${mysql.connector-c or mysql}/bin/mysql_config" + "--with-mysql=${libmysqlclient}/bin/mysql_config" "--with-geotiff=${libgeotiff.dev}" "--with-sqlite3=${sqlite.dev}" "--with-spatialite=${libspatialite}" diff --git a/pkgs/development/libraries/gdal/default.nix b/pkgs/development/libraries/gdal/default.nix index 413d4e19dde75..bb53277075f13 100644 --- a/pkgs/development/libraries/gdal/default.nix +++ b/pkgs/development/libraries/gdal/default.nix @@ -1,5 +1,5 @@ { stdenv, fetchFromGitHub, fetchpatch, unzip, libjpeg, libtiff, zlib -, postgresql, mysql, libgeotiff, pythonPackages, proj, geos, openssl +, postgresql, libmysqlclient, libgeotiff, pythonPackages, proj, geos, openssl , libpng, sqlite, libspatialite, poppler, hdf4, qhull, giflib, expat , libiconv, libxml2, autoreconfHook , netcdfSupport ? true, netcdf, hdf5, curl @@ -38,7 +38,7 @@ stdenv.mkDerivation rec { "--with-poppler=${poppler.dev}" # optional "--with-libz=${zlib.dev}" # optional "--with-pg=${postgresql}/bin/pg_config" - "--with-mysql=${mysql.connector-c or mysql}/bin/mysql_config" + "--with-mysql=${libmysqlclient}/bin/mysql_config" "--with-geotiff=${libgeotiff}" "--with-sqlite3=${sqlite.dev}" "--with-spatialite=${libspatialite}" diff --git a/pkgs/development/libraries/giflib/5.1.nix b/pkgs/development/libraries/giflib/5.1.nix deleted file mode 100644 index fee760b3ea26f..0000000000000 --- a/pkgs/development/libraries/giflib/5.1.nix +++ /dev/null @@ -1,18 +0,0 @@ -{stdenv, fetchurl, xmlto, docbook_xml_dtd_412, docbook_xsl, libxml2 }: - -stdenv.mkDerivation { - name = "giflib-5.1.4"; - src = fetchurl { - url = mirror://sourceforge/giflib/giflib-5.1.4.tar.bz2; - sha256 = "1md83dip8rf29y40cm5r7nn19705f54iraz6545zhwa6y8zyq9yz"; - }; - - buildInputs = [ xmlto docbook_xml_dtd_412 docbook_xsl libxml2 ]; - meta = { - description = "A library for reading and writing gif images"; - platforms = stdenv.lib.platforms.unix; - license = stdenv.lib.licenses.mit; - maintainers = with stdenv.lib.maintainers; [ fuuzetsu ]; - branch = "5.1"; - }; -} diff --git a/pkgs/development/libraries/giflib/default.nix b/pkgs/development/libraries/giflib/default.nix new file mode 100644 index 0000000000000..d97477e3f3a50 --- /dev/null +++ b/pkgs/development/libraries/giflib/default.nix @@ -0,0 +1,24 @@ +{stdenv, fetchurl, xmlto, docbook_xml_dtd_412, docbook_xsl, libxml2 }: + +stdenv.mkDerivation rec { + name = "giflib-5.2.1"; + src = fetchurl { + url = "mirror://sourceforge/giflib/${name}.tar.gz"; + sha256 = "1gbrg03z1b6rlrvjyc6d41bc8j1bsr7rm8206gb1apscyii5bnii"; + }; + + postPatch = '' + substituteInPlace Makefile \ + --replace 'PREFIX = /usr/local' 'PREFIX = ${builtins.placeholder "out"}' + ''; + + buildInputs = [ xmlto docbook_xml_dtd_412 docbook_xsl libxml2 ]; + + meta = { + description = "A library for reading and writing gif images"; + platforms = stdenv.lib.platforms.unix; + license = stdenv.lib.licenses.mit; + maintainers = with stdenv.lib.maintainers; [ fuuzetsu ]; + branch = "5.2"; + }; +} diff --git a/pkgs/development/libraries/kdb/default.nix b/pkgs/development/libraries/kdb/default.nix index 4a403a19964e9..03eabc6447b43 100644 --- a/pkgs/development/libraries/kdb/default.nix +++ b/pkgs/development/libraries/kdb/default.nix @@ -1,7 +1,7 @@ { mkDerivation, lib, fetchurl, extra-cmake-modules, - qtbase, qttranslations, kcoreaddons, python2, sqlite, postgresql, mysql + qtbase, qttranslations, kcoreaddons, python2, sqlite, postgresql, libmysqlclient }: mkDerivation rec { @@ -15,7 +15,7 @@ mkDerivation rec { nativeBuildInputs = [ extra-cmake-modules ]; - buildInputs = [ qttranslations kcoreaddons python2 sqlite postgresql mysql.connector-c ]; + buildInputs = [ qttranslations kcoreaddons python2 sqlite postgresql libmysqlclient ]; propagatedBuildInputs = [ qtbase ]; diff --git a/pkgs/development/libraries/libagar/default.nix b/pkgs/development/libraries/libagar/default.nix index 48fb0f1153e78..630b17121587e 100644 --- a/pkgs/development/libraries/libagar/default.nix +++ b/pkgs/development/libraries/libagar/default.nix @@ -1,6 +1,6 @@ { stdenv, fetchurl, pkgconfig, libtool, perl, bsdbuild, gettext, mandoc , libpng, libjpeg, xlibsWrapper, libXinerama, freetype, SDL, libGLU_combined -, libsndfile, portaudio, mysql, fontconfig +, libsndfile, portaudio, libmysqlclient, fontconfig }: let srcs = import ./srcs.nix { inherit fetchurl; }; in @@ -20,7 +20,7 @@ stdenv.mkDerivation { "--with-gettext=${gettext}" "--with-jpeg=${libjpeg.dev}" "--with-gl=${libGLU_combined}" - "--with-mysql=${mysql.connector-c}" + "--with-mysql=${libmysqlclient}" "--with-manpages=yes" ]; @@ -29,7 +29,7 @@ stdenv.mkDerivation { nativeBuildInputs = [ pkgconfig libtool gettext ]; buildInputs = [ - bsdbuild perl xlibsWrapper libXinerama SDL libGLU_combined mysql.connector-c mandoc + bsdbuild perl xlibsWrapper libXinerama SDL libGLU_combined libmysqlclient mandoc freetype.dev libpng libjpeg.dev fontconfig portaudio libsndfile ]; diff --git a/pkgs/development/libraries/libdbi-drivers/default.nix b/pkgs/development/libraries/libdbi-drivers/default.nix index 99cd636b03b8e..52b8a32fab4a5 100644 --- a/pkgs/development/libraries/libdbi-drivers/default.nix +++ b/pkgs/development/libraries/libdbi-drivers/default.nix @@ -1,5 +1,5 @@ { stdenv, fetchurl, libdbi -, mysql ? null +, libmysqlclient ? null , sqlite ? null , postgresql ? null }: @@ -13,7 +13,7 @@ stdenv.mkDerivation rec { sha256 = "0m680h8cc4428xin4p733azysamzgzcmv4psjvraykrsaz6ymlj3"; }; - buildInputs = [ libdbi sqlite postgresql ] ++ optional (mysql != null) mysql.connector-c; + buildInputs = [ libdbi sqlite postgresql ] ++ optional (libmysqlclient != null) libmysqlclient; postPatch = '' sed -i '/SQLITE3_LIBS/ s/-lsqlite/-lsqlite3/' configure; @@ -26,10 +26,10 @@ stdenv.mkDerivation rec { "--enable-libdbi" "--with-dbi-incdir=${libdbi}/include" "--with-dbi-libdir=${libdbi}/lib" - ] ++ optionals (mysql != null) [ + ] ++ optionals (libmysqlclient != null) [ "--with-mysql" - "--with-mysql-incdir=${mysql.connector-c}/include/mysql" - "--with-mysql-libdir=${mysql.connector-c}/lib/mysql" + "--with-mysql-incdir=${libmysqlclient}/include/mysql" + "--with-mysql-libdir=${libmysqlclient}/lib/mysql" ] ++ optionals (sqlite != null) [ "--with-sqlite3" "--with-sqlite3-incdir=${sqlite.dev}/include/sqlite" diff --git a/pkgs/development/libraries/libgda/default.nix b/pkgs/development/libraries/libgda/default.nix index bb6402dc42872..270326079963d 100644 --- a/pkgs/development/libraries/libgda/default.nix +++ b/pkgs/development/libraries/libgda/default.nix @@ -1,10 +1,10 @@ { stdenv, fetchurl, pkgconfig, intltool, itstool, libxml2, gtk3, openssl, gnome3, gobject-introspection, vala, libgee , overrideCC, gcc6 -, mysqlSupport ? false, mysql ? null +, mysqlSupport ? false, libmysqlclient ? null , postgresSupport ? false, postgresql ? null }: -assert mysqlSupport -> mysql != null; +assert mysqlSupport -> libmysqlclient != null; assert postgresSupport -> postgresql != null; (if stdenv.isAarch64 then overrideCC stdenv gcc6 else stdenv).mkDerivation rec { @@ -25,7 +25,7 @@ assert postgresSupport -> postgresql != null; nativeBuildInputs = [ pkgconfig intltool itstool libxml2 gobject-introspection vala ]; buildInputs = with stdenv.lib; [ gtk3 openssl libgee ] - ++ optional (mysqlSupport) mysql.connector-c + ++ optional (mysqlSupport) libmysqlclient ++ optional (postgresSupport) postgresql; passthru = { diff --git a/pkgs/development/libraries/libgdiplus/default.nix b/pkgs/development/libraries/libgdiplus/default.nix index 9ba3cdbd09aac..ca65c3fdf8c21 100644 --- a/pkgs/development/libraries/libgdiplus/default.nix +++ b/pkgs/development/libraries/libgdiplus/default.nix @@ -2,33 +2,19 @@ , libtiff, giflib, libjpeg, libpng , libXrender, libexif, autoreconfHook, fetchpatch }: -stdenv.mkDerivation { - name = "libgdiplus-5.6.1"; +stdenv.mkDerivation rec { + pname = "libgdiplus"; + version = "6.0.2"; src = fetchFromGitHub { owner = "mono"; repo = "libgdiplus"; - rev = "5.6.1"; - sha256 = "023xf3l2s0mxcdbl2viglzrkhx3lwcrpm66fiq7cfdqz80d4vsj2"; + rev = version; + sha256 = "07a3n7i35mn5j2djah64by785b1hzy8ckk1pz0xwvk716yzb7sxg"; }; NIX_LDFLAGS = "-lgif"; - patches = [ # Series of patches cherry-picked from master, all fixes various sigsegv (or required by other patch) - (fetchpatch { - url = "https://github.com/mono/libgdiplus/commit/d33a2580a94701ff33abe28c22881d6173be57d0.patch"; - sha256 = "0rr54jylscn4icqjprqhwrncyr92r0d7kmfrrq3myskplpqv1c11"; - }) - (fetchpatch { - url ="https://github.com/mono/libgdiplus/commit/aa6aa53906935572f52f519fe4ab9ebedc051d08.patch"; - sha256 = "1wg0avm8qv5cb4vk80baflfzszm6q7ydhn89c3h6kq68hg6zsf1f"; - }) - (fetchpatch { - url = "https://github.com/mono/libgdiplus/commit/81e45a1d5a3ac3cf035bcc3fabb2859818b6cc04.patch"; - sha256 = "07wmc88cd1lqifs5x6npryni65jyy9gi8lgr2i1lb7v0fhvlyswg"; - }) - ]; - hardeningDisable = [ "format" ]; nativeBuildInputs = [ autoreconfHook pkgconfig ]; diff --git a/pkgs/development/libraries/librdf/redland.nix b/pkgs/development/libraries/librdf/redland.nix index 30d8d8a94e9d5..8835490187d1d 100644 --- a/pkgs/development/libraries/librdf/redland.nix +++ b/pkgs/development/libraries/librdf/redland.nix @@ -1,6 +1,6 @@ { stdenv, fetchurl, pkgconfig, openssl, libxslt, perl , curl, pcre, libxml2, librdf_rasqal, gmp -, mysql, withMysql ? false +, libmysqlclient, withMysql ? false , postgresql, withPostgresql ? false , sqlite, withSqlite ? true , db, withBdb ? false @@ -17,7 +17,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ perl pkgconfig ]; buildInputs = [ openssl libxslt curl pcre libxml2 gmp ] - ++ stdenv.lib.optional withMysql mysql.connector-c + ++ stdenv.lib.optional withMysql libmysqlclient ++ stdenv.lib.optional withSqlite sqlite ++ stdenv.lib.optional withPostgresql postgresql ++ stdenv.lib.optional withBdb db; diff --git a/pkgs/development/libraries/opendbx/default.nix b/pkgs/development/libraries/opendbx/default.nix index f954aaf72457e..16ec6a5c11032 100644 --- a/pkgs/development/libraries/opendbx/default.nix +++ b/pkgs/development/libraries/opendbx/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, readline, mysql, postgresql, sqlite }: +{ stdenv, fetchurl, readline, libmysqlclient, postgresql, sqlite }: stdenv.mkDerivation rec { name = "opendbx-1.4.6"; @@ -9,12 +9,12 @@ stdenv.mkDerivation rec { }; preConfigure = '' - export CPPFLAGS="-I${mysql.connector-c}/include/mysql" - export LDFLAGS="-L${mysql.connector-c}/lib/mysql -L${postgresql}/lib" + export CPPFLAGS="-I${libmysqlclient}/include/mysql" + export LDFLAGS="-L${libmysqlclient}/lib/mysql -L${postgresql}/lib" configureFlagsArray=(--with-backends="mysql pgsql sqlite3") ''; - buildInputs = [ readline mysql.connector-c postgresql sqlite ]; + buildInputs = [ readline libmysqlclient postgresql sqlite ]; meta = with stdenv.lib; { description = "Extremely lightweight but extensible database access library written in C"; diff --git a/pkgs/development/libraries/openssl/default.nix b/pkgs/development/libraries/openssl/default.nix index 03082eab09178..0b026ae75f4e1 100644 --- a/pkgs/development/libraries/openssl/default.nix +++ b/pkgs/development/libraries/openssl/default.nix @@ -127,8 +127,8 @@ let in { openssl_1_0_2 = common { - version = "1.0.2s"; - sha256 = "15mbmg8hf7s12vr3v2bdc0pi9y4pdbnsxhzk4fyyap42jaa5rgfa"; + version = "1.0.2t"; + sha256 = "1g67ra0ph7gpz6fgvv1i96d792jmd6ymci5kk53vbikszr74djql"; patches = [ ./1.0.2/nix-ssl-cert-file.patch @@ -139,8 +139,8 @@ in { }; openssl_1_1 = common { - version = "1.1.1c"; - sha256 = "142c7zdlz06hjrrvinb9f276czc78bnkyhd9xma621qmmmwk1yzn"; + version = "1.1.1d"; + sha256 = "1whinyw402z3b9xlb3qaxv4b9sk4w1bgh9k0y8df1z4x3yy92fhy"; patches = [ ./1.1/nix-ssl-cert-file.patch diff --git a/pkgs/development/libraries/poco/default.nix b/pkgs/development/libraries/poco/default.nix index c19e343f19aec..e69ed0236f486 100644 --- a/pkgs/development/libraries/poco/default.nix +++ b/pkgs/development/libraries/poco/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, cmake, pkgconfig, zlib, pcre, expat, sqlite, openssl, unixODBC, mysql }: +{ stdenv, fetchurl, cmake, pkgconfig, zlib, pcre, expat, sqlite, openssl, unixODBC, libmysqlclient }: stdenv.mkDerivation rec { pname = "poco"; @@ -12,9 +12,9 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ cmake pkgconfig ]; - buildInputs = [ zlib pcre expat sqlite openssl unixODBC mysql.connector-c ]; + buildInputs = [ zlib pcre expat sqlite openssl unixODBC libmysqlclient ]; - MYSQL_DIR = mysql.connector-c; + MYSQL_DIR = libmysqlclient; MYSQL_INCLUDE_DIR = "${MYSQL_DIR}/include/mysql"; cmakeFlags = [ diff --git a/pkgs/development/libraries/qt-3/default.nix b/pkgs/development/libraries/qt-3/default.nix index 3b3f406485c7d..a46dcec031283 100644 --- a/pkgs/development/libraries/qt-3/default.nix +++ b/pkgs/development/libraries/qt-3/default.nix @@ -5,7 +5,7 @@ , xineramaSupport ? true, libXinerama ? null , cursorSupport ? true, libXcursor ? null , threadSupport ? true -, mysqlSupport ? false, mysql ? null +, mysqlSupport ? false, libmysqlclient ? null , libGLSupported ? stdenv.lib.elem stdenv.hostPlatform.system stdenv.lib.platforms.mesaPlatforms , openglSupport ? stdenv.lib.elem stdenv.hostPlatform.system stdenv.lib.platforms.mesaPlatforms , libGLU_combined ? null, libXmu ? null @@ -16,7 +16,7 @@ assert xftSupport -> libXft != null; assert xrenderSupport -> xftSupport && libXrender != null; assert xrandrSupport -> libXrandr != null; assert cursorSupport -> libXcursor != null; -assert mysqlSupport -> mysql != null; +assert mysqlSupport -> libmysqlclient != null; assert openglSupport -> libGLU_combined != null && libXmu != null; stdenv.mkDerivation { @@ -62,7 +62,7 @@ stdenv.mkDerivation { ] ++ stdenv.lib.optionals cursorSupport [ "-L${libXcursor.out}/lib -I${libXcursor.dev}/include" ] ++ stdenv.lib.optionals mysqlSupport [ - "-qt-sql-mysql" "-L${mysql.connector-c}/lib/mysql" "-I${mysql.connector-c}/include/mysql" + "-qt-sql-mysql" "-L${libmysqlclient}/lib/mysql" "-I${libmysqlclient}/include/mysql" ] ++ stdenv.lib.optionals xftSupport [ "-L${libXft.out}/lib" "-I${libXft.dev}/include" "-L${libXft.freetype.out}/lib" "-I${libXft.freetype.dev}/include" diff --git a/pkgs/development/libraries/qt-4.x/4.8/default.nix b/pkgs/development/libraries/qt-4.x/4.8/default.nix index b5a10e8f11a75..7c7f8f51de7dd 100644 --- a/pkgs/development/libraries/qt-4.x/4.8/default.nix +++ b/pkgs/development/libraries/qt-4.x/4.8/default.nix @@ -2,7 +2,7 @@ , libXrender, libXinerama, libXcursor, libXv, libXext , libXfixes, libXrandr, libSM, freetype, fontconfig, zlib, libjpeg, libpng , libmng, which, libGLU, openssl, dbus, cups, pkgconfig -, libtiff, glib, icu, mysql, postgresql, sqlite, perl, coreutils, libXi +, libtiff, glib, icu, libmysqlclient, postgresql, sqlite, perl, coreutils, libXi , buildMultimedia ? stdenv.isLinux, alsaLib, gstreamer, gst-plugins-base , buildWebkit ? (stdenv.isLinux || stdenv.isDarwin) , libGLSupported ? stdenv.lib.elem stdenv.hostPlatform.system stdenv.lib.platforms.mesaPlatforms @@ -166,7 +166,7 @@ stdenv.mkDerivation rec { (mk (!stdenv.isFreeBSD) "opengl") "-xrender" "-xrandr" "-xinerama" "-xcursor" "-xinput" "-xfixes" "-fontconfig" "-qdbus" (mk (cups != null) "cups") "-glib" "-dbus-linked" "-openssl-linked" - "-${if mysql != null then "plugin" else "no"}-sql-mysql" "-system-sqlite" + "-${if libmysqlclient != null then "plugin" else "no"}-sql-mysql" "-system-sqlite" "-exceptions" "-xmlpatterns" @@ -192,7 +192,7 @@ stdenv.mkDerivation rec { buildInputs = [ cups # Qt dlopen's libcups instead of linking to it postgresql sqlite libjpeg libmng libtiff icu ] - ++ lib.optionals (mysql != null) [ mysql.connector-c ] + ++ lib.optionals (libmysqlclient != null) [ libmysqlclient ] ++ lib.optionals gtkStyle [ gtk2 gdk-pixbuf ] ++ lib.optionals stdenv.isDarwin [ ApplicationServices OpenGL Cocoa AGL libcxx libobjc ]; diff --git a/pkgs/development/libraries/qt-5/modules/qtbase.nix b/pkgs/development/libraries/qt-5/modules/qtbase.nix index e2c71a77062eb..8119513618b24 100644 --- a/pkgs/development/libraries/qt-5/modules/qtbase.nix +++ b/pkgs/development/libraries/qt-5/modules/qtbase.nix @@ -14,7 +14,7 @@ zlib, # optional dependencies - cups ? null, mysql ? null, postgresql ? null, + cups ? null, libmysqlclient ? null, postgresql ? null, withGtk3 ? false, dconf ? null, gtk3 ? null, # options @@ -80,7 +80,7 @@ stdenv.mkDerivation { ) ++ lib.optional developerBuild gdb ++ lib.optional (cups != null) cups - ++ lib.optional (mysql != null) mysql.connector-c + ++ lib.optional (libmysqlclient != null) libmysqlclient ++ lib.optional (postgresql != null) postgresql; nativeBuildInputs = @@ -285,7 +285,7 @@ stdenv.mkDerivation { "-L" "${openssl.out}/lib" "-I" "${openssl.dev}/include" "-system-sqlite" - ''-${if mysql != null then "plugin" else "no"}-sql-mysql'' + ''-${if libmysqlclient != null then "plugin" else "no"}-sql-mysql'' ''-${if postgresql != null then "plugin" else "no"}-sql-psql'' "-make libs" @@ -349,9 +349,9 @@ stdenv.mkDerivation { "-L" "${cups.lib}/lib" "-I" "${cups.dev}/include" ] - ++ lib.optionals (mysql != null) [ - "-L" "${mysql.out}/lib" - "-I" "${mysql.out}/include" + ++ lib.optionals (libmysqlclient != null) [ + "-L" "${libmysqlclient}/lib" + "-I" "${libmysqlclient}/include" ] ); diff --git a/pkgs/development/libraries/tntdb/default.nix b/pkgs/development/libraries/tntdb/default.nix index 13b4e6b97a9a1..2d6ae3f18cad8 100644 --- a/pkgs/development/libraries/tntdb/default.nix +++ b/pkgs/development/libraries/tntdb/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, cxxtools, postgresql, mysql, sqlite, zlib, openssl }: +{ stdenv, fetchurl, cxxtools, postgresql, libmysqlclient, sqlite, zlib, openssl }: stdenv.mkDerivation rec { pname = "tntdb"; @@ -9,7 +9,7 @@ stdenv.mkDerivation rec { sha256 = "0js79dbvkic30bzw1pf26m64vs2ssw2sbj55w1dc0sy69dlv4fh9"; }; - buildInputs = [ cxxtools postgresql mysql.connector-c sqlite zlib openssl ]; + buildInputs = [ cxxtools postgresql libmysqlclient sqlite zlib openssl ]; enableParallelBuilding = true; diff --git a/pkgs/development/libraries/unixODBCDrivers/default.nix b/pkgs/development/libraries/unixODBCDrivers/default.nix index b9aa1696d4878..44e7ed17f0c67 100644 --- a/pkgs/development/libraries/unixODBCDrivers/default.nix +++ b/pkgs/development/libraries/unixODBCDrivers/default.nix @@ -1,4 +1,4 @@ -{ fetchurl, stdenv, unixODBC, cmake, postgresql, mysql, mariadb, sqlite, zlib, libxml2, dpkg, lib, kerberos, curl, libuuid, autoPatchelfHook }: +{ fetchurl, stdenv, unixODBC, cmake, postgresql, mysql, libmysqlclient, sqlite, zlib, libxml2, dpkg, lib, openssl, kerberos, curl, libuuid, autoPatchelfHook }: # I haven't done any parameter tweaking.. So the defaults provided here might be bad @@ -29,18 +29,23 @@ mariadb = stdenv.mkDerivation rec { pname = "mariadb-connector-odbc"; - version = "2.0.10"; + version = "3.1.2"; src = fetchurl { - url = "https://downloads.mariadb.org/interstitial/connector-odbc-${version}/src/${pname}-${version}-ga-src.tar.gz"; - sha256 = "0b6ximy0dg0xhqbrm1l7pn8hjapgpmddi67kh54h6i9cq9hqfdvz"; + url = "https://downloads.mariadb.org/interstitial/connector-odbc-${version}/${pname}-${version}-ga-src.tar.gz"; + sha256 = "0iibly2mbqijqyq4pzpb6dh40clqhvqrhgnj8knm4bw3nlksd0d5"; }; nativeBuildInputs = [ cmake ]; - buildInputs = [ unixODBC mariadb.connector-c ]; + buildInputs = [ unixODBC libmysqlclient openssl ]; cmakeFlags = [ - "-DMARIADB_INCLUDE_DIR=${mariadb.connector-c}/include/mariadb" + "-DWITH_OPENSSL=ON" + ]; + + NIX_CFLAGS_COMPILE = [ + "-I${libmysqlclient}/include/mysql" + "-L${libmysqlclient}/lib/mysql" ]; passthru = { diff --git a/pkgs/development/libraries/wt/default.nix b/pkgs/development/libraries/wt/default.nix index 319b0effc5788..31fa104fb059d 100644 --- a/pkgs/development/libraries/wt/default.nix +++ b/pkgs/development/libraries/wt/default.nix @@ -1,5 +1,5 @@ { stdenv, fetchFromGitHub, cmake, boost, pkgconfig, doxygen, qt48Full, libharu -, pango, fcgi, firebird, mysql, postgresql, graphicsmagick, glew, openssl +, pango, fcgi, firebird, libmysqlclient, postgresql, graphicsmagick, glew, openssl , pcre, harfbuzz }: @@ -22,7 +22,7 @@ let nativeBuildInputs = [ pkgconfig ]; buildInputs = [ cmake boost doxygen qt48Full libharu - pango fcgi firebird mysql.connector-c postgresql graphicsmagick glew + pango fcgi firebird libmysqlclient postgresql graphicsmagick glew openssl pcre ]; @@ -30,7 +30,7 @@ let "-DWT_WRASTERIMAGE_IMPLEMENTATION=GraphicsMagick" "-DWT_CPP_11_MODE=-std=c++11" "-DGM_PREFIX=${graphicsmagick}" - "-DMYSQL_PREFIX=${mysql.connector-c}" + "-DMYSQL_PREFIX=${libmysqlclient}" "-DHARFBUZZ_INCLUDE_DIR=${harfbuzz.dev}/include" "--no-warn-unused-cli" ]; diff --git a/pkgs/development/lisp-modules/quicklisp-to-nix-overrides.nix b/pkgs/development/lisp-modules/quicklisp-to-nix-overrides.nix index 052bfb1194987..acc98215af01c 100644 --- a/pkgs/development/lisp-modules/quicklisp-to-nix-overrides.nix +++ b/pkgs/development/lisp-modules/quicklisp-to-nix-overrides.nix @@ -53,11 +53,11 @@ in cl-async-ssl = addNativeLibs [pkgs.openssl (import ./openssl-lib-marked.nix)]; cl-async-test = addNativeLibs [pkgs.openssl]; clsql = x: { - propagatedBuildInputs = with pkgs; [mysql.connector-c postgresql sqlite zlib]; + propagatedBuildInputs = with pkgs; [libmysqlclient postgresql sqlite zlib]; overrides = y: (x.overrides y) // { preConfigure = ((x.overrides y).preConfigure or "") + '' - export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${pkgs.mysql.connector-c}/include/mysql" - export NIX_LDFLAGS="$NIX_LDFLAGS -L${pkgs.mysql.connector-c}/lib/mysql" + export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${pkgs.libmysqlclient}/include/mysql" + export NIX_LDFLAGS="$NIX_LDFLAGS -L${pkgs.libmysqlclient}/lib/mysql" ''; }; }; @@ -77,7 +77,7 @@ $out/lib/common-lisp/query-fs" }; }; cffi = addNativeLibs [pkgs.libffi]; - cl-mysql = addNativeLibs [pkgs.mysql]; + cl-mysql = addNativeLibs [pkgs.libmysqlclient]; cl-ppcre-template = x: { overrides = y: (x.overrides y) // { postPatch = '' diff --git a/pkgs/development/lisp-modules/shell.nix b/pkgs/development/lisp-modules/shell.nix index b3d50b2fb0757..4a1f9ded56c87 100644 --- a/pkgs/development/lisp-modules/shell.nix +++ b/pkgs/development/lisp-modules/shell.nix @@ -6,11 +6,11 @@ self = rec { env = buildEnv { name = name; paths = buildInputs; }; buildInputs = [ gcc stdenv - openssl fuse libuv mysql.connector-c libfixposix libev sqlite + openssl fuse libuv libmysqlclient libfixposix libev sqlite freetds lispPackages.quicklisp-to-nix lispPackages.quicklisp-to-nix-system-info ]; CPATH = "${libfixposix}/include"; - LD_LIBRARY_PATH = "${openssl.out}/lib:${fuse}/lib:${libuv}/lib:${libev}/lib:${mysql.connector-c}/lib:${mysql.connector-c}/lib/mysql:${postgresql.lib}/lib:${sqlite.out}/lib:${libfixposix}/lib:${freetds}/lib:${openssl_lib_marked}/lib"; + LD_LIBRARY_PATH = "${openssl.out}/lib:${fuse}/lib:${libuv}/lib:${libev}/lib:${libmysqlclient}/lib:${libmysqlclient}/lib/mysql:${postgresql.lib}/lib:${sqlite.out}/lib:${libfixposix}/lib:${freetds}/lib:${openssl_lib_marked}/lib"; }; in stdenv.mkDerivation self diff --git a/pkgs/development/lua-modules/overrides.nix b/pkgs/development/lua-modules/overrides.nix index 233503c2eca86..41dae8347eede 100644 --- a/pkgs/development/lua-modules/overrides.nix +++ b/pkgs/development/lua-modules/overrides.nix @@ -154,12 +154,12 @@ with super; luadbi-mysql = super.luadbi-mysql.override({ extraVariables = '' -- Can't just be /include and /lib, unfortunately needs the trailing 'mysql' - MYSQL_INCDIR='${pkgs.mysql.connector-c}/include/mysql'; - MYSQL_LIBDIR='${pkgs.mysql.connector-c}/lib/mysql'; + MYSQL_INCDIR='${pkgs.libmysqlclient}/include/mysql'; + MYSQL_LIBDIR='${pkgs.libmysqlclient}/lib/mysql'; ''; buildInputs = [ pkgs.mysql.client - pkgs.mysql.connector-c + pkgs.libmysqlclient ]; }); diff --git a/pkgs/development/ocaml-modules/mysql/default.nix b/pkgs/development/ocaml-modules/mysql/default.nix index 1986f7e48f69e..9be5ebf8a7bc9 100644 --- a/pkgs/development/ocaml-modules/mysql/default.nix +++ b/pkgs/development/ocaml-modules/mysql/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, fetchpatch, ocaml, findlib, mysql }: +{ stdenv, fetchurl, fetchpatch, ocaml, findlib, libmysqlclient }: # TODO: la versione stabile da' un errore di compilazione dovuto a # qualche cambiamento negli header .h @@ -26,7 +26,7 @@ stdenv.mkDerivation rec { createFindlibDestdir = true; - propagatedBuildInputs = [ mysql.connector-c ]; + propagatedBuildInputs = [ libmysqlclient ]; patches = [ (fetchpatch { diff --git a/pkgs/development/perl-modules/DBD-mysql/default.nix b/pkgs/development/perl-modules/DBD-mysql/default.nix index 6eed57c4e7c67..eb53933960322 100644 --- a/pkgs/development/perl-modules/DBD-mysql/default.nix +++ b/pkgs/development/perl-modules/DBD-mysql/default.nix @@ -1,4 +1,4 @@ -{ fetchurl, buildPerlPackage, DBI, DevelChecklib, mysql }: +{ fetchurl, buildPerlPackage, DBI, DevelChecklib, libmysqlclient }: buildPerlPackage { pname = "DBD-mysql"; @@ -9,7 +9,7 @@ buildPerlPackage { sha256 = "0y4djb048i09dk19av7mzfb3khr72vw11p3ayw2p82jsy4gm8j2g"; }; - buildInputs = [ mysql.connector-c DevelChecklib ] ; + buildInputs = [ libmysqlclient DevelChecklib ] ; propagatedBuildInputs = [ DBI ]; doCheck = false; diff --git a/pkgs/development/pure-modules/glpk/default.nix b/pkgs/development/pure-modules/glpk/default.nix index 7b615928da9aa..34d12f1471fb1 100644 --- a/pkgs/development/pure-modules/glpk/default.nix +++ b/pkgs/development/pure-modules/glpk/default.nix @@ -1,5 +1,5 @@ { lib, stdenv, fetchurl, - pkgconfig, pure, glpk, gmp, libtool, mysql, libiodbc }: + pkgconfig, pure, glpk, gmp, libtool, libmysqlclient, libiodbc }: stdenv.mkDerivation rec { baseName = "glpk"; @@ -12,13 +12,13 @@ stdenv.mkDerivation rec { }; glpkWithExtras = lib.overrideDerivation glpk (attrs: { - propagatedBuildInputs = [ gmp libtool mysql.connector-c libiodbc ]; + propagatedBuildInputs = [ gmp libtool libmysqlclient libiodbc ]; CPPFLAGS = "-I${gmp.dev}/include"; preConfigure = '' substituteInPlace configure \ - --replace /usr/include/mysql ${mysql.connector-c}/include/mysql + --replace /usr/include/mysql ${libmysqlclient}/include/mysql ''; configureFlags = [ "--enable-dl" "--enable-odbc" diff --git a/pkgs/development/python-modules/cryptography/default.nix b/pkgs/development/python-modules/cryptography/default.nix index 6b20b4b570a33..2a5d4fa475738 100644 --- a/pkgs/development/python-modules/cryptography/default.nix +++ b/pkgs/development/python-modules/cryptography/default.nix @@ -1,6 +1,7 @@ { stdenv , buildPythonPackage , fetchPypi +, fetchpatch , openssl , cryptography_vectors , darwin @@ -49,10 +50,18 @@ buildPythonPackage rec { pytz ]; + # remove when https://github.com/pyca/cryptography/issues/4998 is fixed checkPhase = '' - py.test --disable-pytest-warnings tests + py.test --disable-pytest-warnings tests -k 'not load_ecdsa_no_named_curve' ''; + patches = [ + (fetchpatch { + url = "https://github.com/pyca/cryptography/commit/e575e3d482f976c4a1f3203d63ea0f5007a49a2a.patch"; + sha256 = "0vg9prqsizd6gzh5j7lscsfxzxlhz7pacvzhgqmj1vhdhjwbblcp"; + }) + ]; + # IOKit's dependencies are inconsistent between OSX versions, so this is the best we # can do until nix 1.11's release __impureHostDeps = [ "/usr/lib" ]; diff --git a/pkgs/development/python-modules/mysqlclient/default.nix b/pkgs/development/python-modules/mysqlclient/default.nix index 488f6f9a7bb54..b37f191286e4c 100644 --- a/pkgs/development/python-modules/mysqlclient/default.nix +++ b/pkgs/development/python-modules/mysqlclient/default.nix @@ -1,15 +1,15 @@ -{ stdenv, buildPythonPackage, fetchPypi, mysql }: +{ stdenv, buildPythonPackage, fetchPypi, libmysqlclient }: buildPythonPackage rec { pname = "mysqlclient"; version = "1.4.4"; nativeBuildInputs = [ - mysql.connector-c + libmysqlclient ]; buildInputs = [ - mysql.connector-c + libmysqlclient ]; # Tests need a MySQL database diff --git a/pkgs/development/python-modules/pyopenssl/default.nix b/pkgs/development/python-modules/pyopenssl/default.nix index ec17b77ba200f..018463ead5464 100644 --- a/pkgs/development/python-modules/pyopenssl/default.nix +++ b/pkgs/development/python-modules/pyopenssl/default.nix @@ -9,6 +9,7 @@ , pretend , flaky , glibcLocales +, six }: with stdenv.lib; @@ -84,7 +85,7 @@ buildPythonPackage rec { doCheck = !stdenv.isDarwin; nativeBuildInputs = [ openssl ]; - propagatedBuildInputs = [ cryptography pyasn1 idna ]; + propagatedBuildInputs = [ cryptography pyasn1 idna six ]; checkInputs = [ pytest pretend flaky glibcLocales ]; } diff --git a/pkgs/development/r-modules/default.nix b/pkgs/development/r-modules/default.nix index 1616eacffc651..cef7f0aecf260 100644 --- a/pkgs/development/r-modules/default.nix +++ b/pkgs/development/r-modules/default.nix @@ -325,7 +325,7 @@ let rmatio = [ pkgs.zlib.dev ]; Rmpfr = [ pkgs.gmp pkgs.mpfr.dev ]; Rmpi = [ pkgs.openmpi ]; - RMySQL = [ pkgs.zlib pkgs.mysql.connector-c pkgs.openssl.dev ]; + RMySQL = [ pkgs.zlib pkgs.libmysqlclient pkgs.openssl.dev ]; RNetCDF = [ pkgs.netcdf pkgs.udunits ]; RODBCext = [ pkgs.libiodbc ]; RODBC = [ pkgs.libiodbc ]; @@ -810,7 +810,7 @@ let }); RMySQL = old.RMySQL.overrideDerivation (attrs: { - MYSQL_DIR=pkgs.mysql.connector-c; + MYSQL_DIR="${pkgs.libmysqlclient}"; preConfigure = '' patchShebangs configure ''; diff --git a/pkgs/development/ruby-modules/gem-config/default.nix b/pkgs/development/ruby-modules/gem-config/default.nix index a03e40e8097cf..157e15e375f64 100644 --- a/pkgs/development/ruby-modules/gem-config/default.nix +++ b/pkgs/development/ruby-modules/gem-config/default.nix @@ -20,7 +20,7 @@ { lib, fetchurl, writeScript, ruby, kerberos, libxml2, libxslt, python, stdenv, which , libiconv, postgresql, v8_3_16_14, clang, sqlite, zlib, imagemagick , pkgconfig , ncurses, xapian, gpgme, utillinux, tzdata, icu, libffi -, cmake, libssh2, openssl, mysql, darwin, git, perl, pcre, gecode_3, curl +, cmake, libssh2, openssl, libmysqlclient, darwin, git, perl, pcre, gecode_3, curl , msgpack, qt59, libsodium, snappy, libossp_uuid, lxc, libpcap, xorg, gtk2, buildRubyGem , cairo, re2, rake, gobject-introspection, gdk-pixbuf, zeromq, czmq, graphicsmagick, libcxx , file, libvirt, glib, vips, taglib, libopus, linux-pam, libidn, protobuf, fribidi, harfbuzz @@ -349,11 +349,11 @@ in }; mysql = attrs: { - buildInputs = [ mysql.connector-c zlib openssl ]; + buildInputs = [ libmysqlclient zlib openssl ]; }; mysql2 = attrs: { - buildInputs = [ mysql.connector-c zlib openssl ]; + buildInputs = [ libmysqlclient zlib openssl ]; }; ncursesw = attrs: { diff --git a/pkgs/development/tools/misc/patchelf/default.nix b/pkgs/development/tools/misc/patchelf/default.nix index 77d03f299f4a5..db8bb4f424356 100644 --- a/pkgs/development/tools/misc/patchelf/default.nix +++ b/pkgs/development/tools/misc/patchelf/default.nix @@ -1,16 +1,27 @@ -{ stdenv, fetchurl }: +{ stdenv, fetchurl, autoreconfHook }: stdenv.mkDerivation rec { - name = "patchelf-0.9"; + name = "patchelf-${version}"; + version = "0.10"; src = fetchurl { url = "https://nixos.org/releases/patchelf/${name}/${name}.tar.bz2"; - sha256 = "a0f65c1ba148890e9f2f7823f4bedf7ecad5417772f64f994004f59a39014f83"; + sha256 = "1wzwvnlyf853hw9zgqq5522bvf8gqadk8icgqa41a5n7593csw7n"; }; + # Drop test that fails on musl (?) + postPatch = stdenv.lib.optionalString stdenv.hostPlatform.isMusl '' + substituteInPlace tests/Makefile.am \ + --replace "set-rpath-library.sh" "" + ''; + setupHook = [ ./setup-hook.sh ]; - doCheck = false; # fails 8 out of 24 tests, problems when loading libc.so.6 + nativeBuildInputs = [ autoreconfHook ]; + buildInputs = [ ]; + + # if not Musl, fails 8 out of 25 tests, problems when loading libc.so.6 + doCheck = stdenv.hostPlatform.isMusl; meta = with stdenv.lib; { homepage = https://nixos.org/patchelf.html; diff --git a/pkgs/development/tools/misc/patchelf/unstable.nix b/pkgs/development/tools/misc/patchelf/unstable.nix index c673bd261098a..f5ff1c74bcc9d 100644 --- a/pkgs/development/tools/misc/patchelf/unstable.nix +++ b/pkgs/development/tools/misc/patchelf/unstable.nix @@ -1,24 +1,18 @@ -{ stdenv, fetchFromGitHub, autoreconfHook }: +{ stdenv, fetchurl, autoreconfHook }: stdenv.mkDerivation rec { - pname = "patchelf"; - version = "0.10-pre-20190328"; + name = "patchelf-${version}"; + version = "0.10"; - src = fetchFromGitHub { - owner = "NixOS"; - repo = "patchelf"; - rev = "e1e39f3639e39360ceebb2f7ed533cede4623070"; - sha256 = "09q1b1yqfzg1ih51v7qjh55vxfdbd8x5anycl8sfz6qy107wr02k"; + src = fetchurl { + url = "https://nixos.org/releases/patchelf/${name}/${name}.tar.bz2"; + sha256 = "1wzwvnlyf853hw9zgqq5522bvf8gqadk8icgqa41a5n7593csw7n"; }; # Drop test that fails on musl (?) postPatch = stdenv.lib.optionalString stdenv.hostPlatform.isMusl '' substituteInPlace tests/Makefile.am \ --replace "set-rpath-library.sh" "" - '' + - # extend version identifier to more informative than "0.10". - '' - echo -n ${version} > version ''; setupHook = [ ./setup-hook.sh ]; @@ -28,11 +22,11 @@ stdenv.mkDerivation rec { doCheck = !stdenv.isDarwin; - meta = { + meta = with stdenv.lib; { homepage = https://nixos.org/patchelf.html; - license = "GPL"; + license = licenses.gpl3; description = "A small utility to modify the dynamic linker and RPATH of ELF executables"; - maintainers = [ stdenv.lib.maintainers.eelco ]; - platforms = stdenv.lib.platforms.all; + maintainers = [ maintainers.eelco ]; + platforms = platforms.all; }; } diff --git a/pkgs/development/tools/misc/sysbench/default.nix b/pkgs/development/tools/misc/sysbench/default.nix index e2d507ab80134..8076925f29b02 100644 --- a/pkgs/development/tools/misc/sysbench/default.nix +++ b/pkgs/development/tools/misc/sysbench/default.nix @@ -1,11 +1,11 @@ -{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, vim, mysql +{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, vim, libmysqlclient , libaio }: stdenv.mkDerivation { name = "sysbench-1.0.17"; nativeBuildInputs = [ autoreconfHook pkgconfig ]; - buildInputs = [ vim mysql.connector-c libaio ]; + buildInputs = [ vim libmysqlclient libaio ]; src = fetchFromGitHub { owner = "akopytov"; diff --git a/pkgs/development/tools/tora/default.nix b/pkgs/development/tools/tora/default.nix index 74f1f22426f9a..931c00ecce588 100644 --- a/pkgs/development/tools/tora/default.nix +++ b/pkgs/development/tools/tora/default.nix @@ -1,5 +1,5 @@ { mkDerivation, lib, fetchFromGitHub, cmake, extra-cmake-modules, makeWrapper -, boost, doxygen, openssl, mysql, postgresql, graphviz, loki +, boost, doxygen, openssl, libmysqlclient, postgresql, graphviz, loki , qscintilla, qtbase, qttools }: mkDerivation { @@ -16,7 +16,7 @@ mkDerivation { nativeBuildInputs = [ cmake extra-cmake-modules makeWrapper qttools ]; buildInputs = [ - boost doxygen graphviz loki mysql.connector-c openssl postgresql qscintilla qtbase + boost doxygen graphviz loki libmysqlclient openssl postgresql qscintilla qtbase ]; preConfigure = '' @@ -47,7 +47,7 @@ mkDerivation { "-lssl" ]; - NIX_CFLAGS_COMPILE = [ "-L${mysql.connector-c}/lib/mysql" "-I${mysql.connector-c}/include/mysql" ]; + NIX_CFLAGS_COMPILE = [ "-L${libmysqlclient}/lib/mysql" "-I${libmysqlclient}/include/mysql" ]; qtWrapperArgs = [ ''--prefix PATH : ${lib.getBin graphviz}/bin'' diff --git a/pkgs/games/zod/default.nix b/pkgs/games/zod/default.nix index c14eda2968e02..888b7bd3d6aab 100644 --- a/pkgs/games/zod/default.nix +++ b/pkgs/games/zod/default.nix @@ -1,5 +1,5 @@ { fetchurl, stdenv, unrar, unzip, SDL, SDL_image, SDL_ttf, SDL_mixer -, mysql, makeWrapper }: +, libmysqlclient, makeWrapper }: stdenv.mkDerivation { name = "zod-engine-2011-03-18"; @@ -24,9 +24,9 @@ stdenv.mkDerivation { sourceRoot=`pwd`/src ''; - buildInputs = [ unrar unzip SDL SDL_image SDL_ttf SDL_mixer mysql.connector-c makeWrapper ]; + buildInputs = [ unrar unzip SDL SDL_image SDL_ttf SDL_mixer libmysqlclient makeWrapper ]; - NIX_LDFLAGS = "-L${mysql.connector-c}/lib/mysql"; + NIX_LDFLAGS = "-L${libmysqlclient}/lib/mysql"; installPhase = '' mkdir -p $out/bin $out/share/zod diff --git a/pkgs/os-specific/linux/firmware/fwupd/default.nix b/pkgs/os-specific/linux/firmware/fwupd/default.nix index 9fdf9ca0bc156..75144799d014d 100644 --- a/pkgs/os-specific/linux/firmware/fwupd/default.nix +++ b/pkgs/os-specific/linux/firmware/fwupd/default.nix @@ -237,9 +237,9 @@ stdenv.mkDerivation rec { postFixup = '' find -L "$out/bin" "$out/libexec" -type f -executable -print0 \ | while IFS= read -r -d ''' file; do - if [[ "''${file}" != *.efi ]]; then - echo "Wrapping program ''${file}" - wrapProgram "''${file}" "''${gappsWrapperArgs[@]}" + if [[ "$file" != *.efi ]]; then + echo "Wrapping program $file" + wrapGApp "$file" fi done ''; diff --git a/pkgs/os-specific/linux/kexectools/default.nix b/pkgs/os-specific/linux/kexectools/default.nix index d6fd7346f4f5c..4e9007c73625a 100644 --- a/pkgs/os-specific/linux/kexectools/default.nix +++ b/pkgs/os-specific/linux/kexectools/default.nix @@ -18,7 +18,7 @@ stdenv.mkDerivation rec { depsBuildBuild = [ buildPackages.stdenv.cc ]; buildInputs = [ zlib ]; - patches = stdenv.lib.optionals stdenv.hostPlatform.isi686 [ + patches = [ # fix build on i686 # See: https://src.fedoraproject.org/rpms/kexec-tools/c/cb1e5463b5298b064e9b6c86ad6fe3505fec9298 (fetchpatch { diff --git a/pkgs/servers/clickhouse/default.nix b/pkgs/servers/clickhouse/default.nix index e48dec7d20c8c..ab2d44577c0d2 100644 --- a/pkgs/servers/clickhouse/default.nix +++ b/pkgs/servers/clickhouse/default.nix @@ -1,6 +1,6 @@ { stdenv, fetchFromGitHub, cmake, libtool , boost, capnproto, cctz, clang-unwrapped, double-conversion, gperftools, icu -, libcpuid, libxml2, lld, llvm, lz4 , mysql, openssl, poco, re2, rdkafka +, libcpuid, libxml2, lld, llvm, lz4 , libmysqlclient, openssl, poco, re2, rdkafka , readline, sparsehash, unixODBC, zstd, ninja, jemalloc, brotli, protobuf, xxHash }: @@ -18,7 +18,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ cmake libtool ninja ]; buildInputs = [ boost capnproto cctz clang-unwrapped double-conversion gperftools icu - libcpuid libxml2 lld llvm lz4 mysql.connector-c openssl poco re2 rdkafka + libcpuid libxml2 lld llvm lz4 libmysqlclient openssl poco re2 rdkafka readline sparsehash unixODBC zstd jemalloc brotli protobuf xxHash ]; diff --git a/pkgs/servers/computing/slurm/default.nix b/pkgs/servers/computing/slurm/default.nix index c448e4936f64d..93e1a31abb17a 100644 --- a/pkgs/servers/computing/slurm/default.nix +++ b/pkgs/servers/computing/slurm/default.nix @@ -1,6 +1,6 @@ { stdenv, fetchFromGitHub, pkgconfig, libtool, curl , python, munge, perl, pam, openssl, zlib -, ncurses, mysql, gtk2, lua, hwloc, numactl +, ncurses, libmysqlclient, gtk2, lua, hwloc, numactl , readline, freeipmi, libssh2, xorg, lz4 # enable internal X11 support via libssh2 , enableX11 ? true @@ -35,7 +35,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ pkgconfig libtool ]; buildInputs = [ curl python munge perl pam openssl zlib - mysql.connector-c ncurses gtk2 lz4 + libmysqlclient ncurses gtk2 lz4 lua hwloc numactl readline freeipmi ] ++ stdenv.lib.optionals enableX11 [ libssh2 xorg.xauth ]; diff --git a/pkgs/servers/freeradius/default.nix b/pkgs/servers/freeradius/default.nix index 6c6eb2b0c0910..eeea3298ecdc7 100644 --- a/pkgs/servers/freeradius/default.nix +++ b/pkgs/servers/freeradius/default.nix @@ -13,7 +13,7 @@ , withMemcached ? false , hiredis , withRedis ? false -, mysql +, libmysqlclient , withMysql ? false , json_c , withJson ? false @@ -31,7 +31,7 @@ assert withPcap -> libpcap != null; assert withCap -> libcap != null; assert withMemcached -> libmemcached != null; assert withRedis -> hiredis != null; -assert withMysql -> mysql != null; +assert withMysql -> libmysqlclient != null; assert withYubikey -> libyubikey != null; assert withCollectd -> collectd != null; assert withRest -> curl != null && withJson; @@ -59,7 +59,7 @@ stdenv.mkDerivation rec { ++ optional withCap libcap ++ optional withMemcached libmemcached ++ optional withRedis hiredis - ++ optional withMysql mysql.connector-c + ++ optional withMysql libmysqlclient ++ optional withJson json_c ++ optional withYubikey libyubikey ++ optional withCollectd collectd diff --git a/pkgs/servers/http/lighttpd/default.nix b/pkgs/servers/http/lighttpd/default.nix index 7dacb997d4704..f67bc5b004526 100644 --- a/pkgs/servers/http/lighttpd/default.nix +++ b/pkgs/servers/http/lighttpd/default.nix @@ -1,6 +1,6 @@ { stdenv, buildPackages, fetchurl, pkgconfig, pcre, libxml2, zlib, bzip2, which, file , openssl, enableMagnet ? false, lua5_1 ? null -, enableMysql ? false, mysql ? null +, enableMysql ? false, libmysqlclient ? null , enableLdap ? false, openldap ? null , enableWebDAV ? false, sqlite ? null, libuuid ? null , enableExtendedAttrs ? false, attr ? null @@ -8,7 +8,7 @@ }: assert enableMagnet -> lua5_1 != null; -assert enableMysql -> mysql != null; +assert enableMysql -> libmysqlclient != null; assert enableLdap -> openldap != null; assert enableWebDAV -> sqlite != null; assert enableWebDAV -> libuuid != null; @@ -33,7 +33,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ pkgconfig ]; buildInputs = [ pcre pcre.dev libxml2 zlib bzip2 which file openssl ] ++ stdenv.lib.optional enableMagnet lua5_1 - ++ stdenv.lib.optional enableMysql mysql.connector-c + ++ stdenv.lib.optional enableMysql libmysqlclient ++ stdenv.lib.optional enableLdap openldap ++ stdenv.lib.optional enableWebDAV sqlite ++ stdenv.lib.optional enableWebDAV libuuid; diff --git a/pkgs/servers/mail/dovecot/default.nix b/pkgs/servers/mail/dovecot/default.nix index e3afd1f987986..4104b0443ff0d 100644 --- a/pkgs/servers/mail/dovecot/default.nix +++ b/pkgs/servers/mail/dovecot/default.nix @@ -3,7 +3,7 @@ , clucene_core_2, icu, openldap, libsodium, libstemmer, cyrus_sasl , nixosTests # Auth modules -, withMySQL ? false, mysql +, withMySQL ? false, libmysqlclient , withPgSQL ? false, postgresql , withSQLite ? true, sqlite }: @@ -15,7 +15,7 @@ stdenv.mkDerivation rec { buildInputs = [ openssl bzip2 zlib lz4 clucene_core_2 icu openldap libsodium libstemmer cyrus_sasl.dev ] ++ lib.optionals (stdenv.isLinux) [ systemd pam libcap inotify-tools ] - ++ lib.optional withMySQL mysql.connector-c + ++ lib.optional withMySQL libmysqlclient ++ lib.optional withPgSQL postgresql ++ lib.optional withSQLite sqlite; diff --git a/pkgs/servers/mail/exim/default.nix b/pkgs/servers/mail/exim/default.nix index fcafd5817d4ed..96c8ad4a383ed 100644 --- a/pkgs/servers/mail/exim/default.nix +++ b/pkgs/servers/mail/exim/default.nix @@ -1,6 +1,6 @@ { coreutils, db, fetchurl, openssl, pcre, perl, pkgconfig, stdenv , enableLDAP ? false, openldap -, enableMySQL ? false, mysql, zlib +, enableMySQL ? false, libmysqlclient, zlib , enableAuthDovecot ? false, dovecot , enablePAM ? false, pam , enableSPF ? true, libspf2 @@ -17,7 +17,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ pkgconfig ]; buildInputs = [ coreutils db openssl perl pcre ] ++ stdenv.lib.optional enableLDAP openldap - ++ stdenv.lib.optionals enableMySQL [ mysql.connector-c zlib ] + ++ stdenv.lib.optionals enableMySQL [ libmysqlclient zlib ] ++ stdenv.lib.optional enableAuthDovecot dovecot ++ stdenv.lib.optional enablePAM pam ++ stdenv.lib.optional enableSPF libspf2; @@ -53,10 +53,10 @@ stdenv.mkDerivation rec { ''} ${stdenv.lib.optionalString enableMySQL '' s:^# \(LOOKUP_MYSQL=yes\)$:\1: - s:^# \(LOOKUP_MYSQL_PC=mysql.connector-c\)$:\1: - s:^\(LOOKUP_LIBS\)=\(.*\):\1=\2 -lmysqlclient -L${mysql.connector-c}/lib/mysql -lssl -ldl -lm -lpthread -lz: - s:^# \(LOOKUP_LIBS\)=.*:\1=-lmysqlclient -L${mysql.connector-c}/lib/mysql -lssl -ldl -lm -lpthread -lz: - s:^# \(LOOKUP_INCLUDE\)=.*:\1=-I${mysql.connector-c}/include/mysql/: + s:^# \(LOOKUP_MYSQL_PC=libmysqlclient\)$:\1: + s:^\(LOOKUP_LIBS\)=\(.*\):\1=\2 -lmysqlclient -L${libmysqlclient}/lib/mysql -lssl -ldl -lm -lpthread -lz: + s:^# \(LOOKUP_LIBS\)=.*:\1=-lmysqlclient -L${libmysqlclient}/lib/mysql -lssl -ldl -lm -lpthread -lz: + s:^# \(LOOKUP_INCLUDE\)=.*:\1=-I${libmysqlclient}/include/mysql/: ''} ${stdenv.lib.optionalString enableAuthDovecot '' s:^# \(AUTH_DOVECOT\)=.*:\1=yes: diff --git a/pkgs/servers/mail/opensmtpd/extras.nix b/pkgs/servers/mail/opensmtpd/extras.nix index 71b27facbab67..f7ed6382a7be5 100644 --- a/pkgs/servers/mail/opensmtpd/extras.nix +++ b/pkgs/servers/mail/opensmtpd/extras.nix @@ -1,5 +1,5 @@ { stdenv, fetchurl, openssl, libevent, libasr, - python2, pkgconfig, lua5, perl, mysql, postgresql, sqlite, hiredis, + python2, pkgconfig, lua5, perl, libmysqlclient, postgresql, sqlite, hiredis, enablePython ? true, enableLua ? true, enablePerl ? true, @@ -20,7 +20,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ pkgconfig ]; buildInputs = [ openssl libevent - libasr python2 lua5 perl mysql.connector-c postgresql sqlite hiredis ]; + libasr python2 lua5 perl libmysqlclient postgresql sqlite hiredis ]; configureFlags = [ "--sysconfdir=/etc" @@ -80,7 +80,7 @@ stdenv.mkDerivation rec { stdenv.lib.optional enableRedis "-I${hiredis}/include/hiredis -lhiredis" ++ stdenv.lib.optional enableMysql - "-L${mysql.connector-c}/lib/mysql"; + "-L${libmysqlclient}/lib/mysql"; meta = with stdenv.lib; { homepage = https://www.opensmtpd.org/; diff --git a/pkgs/servers/mail/postfix/default.nix b/pkgs/servers/mail/postfix/default.nix index 39845f12f03cd..b299d212a185f 100644 --- a/pkgs/servers/mail/postfix/default.nix +++ b/pkgs/servers/mail/postfix/default.nix @@ -3,7 +3,7 @@ , buildPackages , withLDAP ? true, openldap , withPgSQL ? false, postgresql -, withMySQL ? false, mysql +, withMySQL ? false, libmysqlclient , withSQLite ? false, sqlite }: @@ -12,7 +12,7 @@ let "-DUSE_TLS" "-DUSE_SASL_AUTH" "-DUSE_CYRUS_SASL" "-I${cyrus_sasl.dev}/include/sasl" "-DHAS_DB_BYPASS_MAKEDEFS_CHECK" ] ++ lib.optional withPgSQL "-DHAS_PGSQL" - ++ lib.optionals withMySQL [ "-DHAS_MYSQL" "-I${mysql.connector-c}/include/mysql" "-L${mysql.connector-c}/lib/mysql" ] + ++ lib.optionals withMySQL [ "-DHAS_MYSQL" "-I${libmysqlclient}/include/mysql" "-L${libmysqlclient}/lib/mysql" ] ++ lib.optional withSQLite "-DHAS_SQLITE" ++ lib.optionals withLDAP ["-DHAS_LDAP" "-DUSE_LDAP_SASL"]); auxlibs = lib.concatStringsSep " " ([ @@ -36,7 +36,7 @@ in stdenv.mkDerivation rec { nativeBuildInputs = [ makeWrapper m4 ]; buildInputs = [ db openssl cyrus_sasl icu libnsl pcre ] ++ lib.optional withPgSQL postgresql - ++ lib.optional withMySQL mysql.connector-c + ++ lib.optional withMySQL libmysqlclient ++ lib.optional withSQLite sqlite ++ lib.optional withLDAP openldap; diff --git a/pkgs/servers/monitoring/plugins/default.nix b/pkgs/servers/monitoring/plugins/default.nix index 9f23cc3e54c38..62f40b59d374a 100644 --- a/pkgs/servers/monitoring/plugins/default.nix +++ b/pkgs/servers/monitoring/plugins/default.nix @@ -1,6 +1,6 @@ { stdenv, fetchFromGitHub, fetchpatch, autoreconfHook , coreutils, gnugrep, gnused, lm_sensors, net_snmp, openssh, openssl, perl -, dnsutils, libdbi, mysql, zlib, openldap, procps +, dnsutils, libdbi, libmysqlclient, zlib, openldap, procps , runtimeShell }: with stdenv.lib; @@ -48,7 +48,7 @@ in stdenv.mkDerivation { ''; # !!! make openssh a runtime dependency only - buildInputs = [ dnsutils libdbi mysql net_snmp openldap openssh openssl perl procps zlib ]; + buildInputs = [ dnsutils libdbi libmysqlclient net_snmp openldap openssh openssl perl procps zlib ]; nativeBuildInputs = [ autoreconfHook ]; diff --git a/pkgs/servers/monitoring/zabbix/proxy.nix b/pkgs/servers/monitoring/zabbix/proxy.nix index 48b72dc0590d1..53932af6a18f7 100644 --- a/pkgs/servers/monitoring/zabbix/proxy.nix +++ b/pkgs/servers/monitoring/zabbix/proxy.nix @@ -3,7 +3,7 @@ , snmpSupport ? true, net_snmp , sshSupport ? true, libssh2 , sqliteSupport ? false, sqlite -, mysqlSupport ? false, mysql +, mysqlSupport ? false, libmysqlclient , postgresqlSupport ? false, postgresql }: @@ -37,7 +37,7 @@ in ++ optional snmpSupport net_snmp ++ optional sqliteSupport sqlite ++ optional sshSupport libssh2 - ++ optional mysqlSupport mysql.connector-c + ++ optional mysqlSupport libmysqlclient ++ optional postgresqlSupport postgresql; configureFlags = [ diff --git a/pkgs/servers/monitoring/zabbix/server.nix b/pkgs/servers/monitoring/zabbix/server.nix index 51ca38e8cfc89..ac5dcca901d5c 100644 --- a/pkgs/servers/monitoring/zabbix/server.nix +++ b/pkgs/servers/monitoring/zabbix/server.nix @@ -4,7 +4,7 @@ , odbcSupport ? true, unixODBC , snmpSupport ? true, net_snmp , sshSupport ? true, libssh2 -, mysqlSupport ? false, mysql +, mysqlSupport ? false, libmysqlclient , postgresqlSupport ? false, postgresql }: @@ -40,7 +40,7 @@ in ++ optional ldapSupport openldap ++ optional snmpSupport net_snmp ++ optional sshSupport libssh2 - ++ optional mysqlSupport mysql.connector-c + ++ optional mysqlSupport libmysqlclient ++ optional postgresqlSupport postgresql; configureFlags = [ diff --git a/pkgs/servers/sql/mariadb/connector-c/3_1.nix b/pkgs/servers/sql/mariadb/connector-c/3_1.nix new file mode 100644 index 0000000000000..c8bc4858f7198 --- /dev/null +++ b/pkgs/servers/sql/mariadb/connector-c/3_1.nix @@ -0,0 +1,6 @@ +{ callPackage, ... } @ args: + +callPackage ./. (args // { + version = "3.1.2"; + sha256 = "0pgz8m8d39mvj9wnjll6c83xvdl2h24273b3dkx0g5pxj7ga4shm"; +}) diff --git a/pkgs/servers/sql/mariadb/connector-c/default.nix b/pkgs/servers/sql/mariadb/connector-c/default.nix new file mode 100644 index 0000000000000..0e03026854017 --- /dev/null +++ b/pkgs/servers/sql/mariadb/connector-c/default.nix @@ -0,0 +1,54 @@ +{ stdenv, fetchurl, cmake +, curl, openssl, zlib +, libiconv +, version, sha256, ... +}: + +with stdenv.lib; + +stdenv.mkDerivation { + pname = "mariadb-connector-c"; + inherit version; + + src = fetchurl { + urls = [ + "https://downloads.mariadb.org/f/connector-c-${version}/mariadb-connector-c-${version}-src.tar.gz" + "https://downloads.mariadb.com/Connectors/c/connector-c-${version}/mariadb-connector-c-${version}-src.tar.gz" + ]; + inherit sha256; + }; + + cmakeFlags = [ + "-DWITH_EXTERNAL_ZLIB=ON" + "-DMYSQL_UNIX_ADDR=/run/mysqld/mysqld.sock" + "-DWITH_CURL=ON" + ]; + + # The cmake setup-hook uses $out/lib by default, this is not the case here. + preConfigure = optionalString stdenv.isDarwin '' + cmakeFlagsArray+=("-DCMAKE_INSTALL_NAME_DIR=$out/lib/mariadb") + ''; + + nativeBuildInputs = [ cmake ]; + propagatedBuildInputs = [ curl openssl zlib ]; + buildInputs = [ libiconv ]; + + enableParallelBuilding = true; + + postFixup = '' + ln -sv mariadb_config $out/bin/mysql_config + ln -sv mariadb $out/lib/mysql + ln -sv mariadb $out/include/mysql + ln -sv libmariadbclient.a $out/lib/mariadb/libmysqlclient.a + ln -sv libmariadbclient.a $out/lib/mariadb/libmysqlclient_r.a + ln -sv libmariadb.so $out/lib/mariadb/libmysqlclient.so + ln -sv libmariadb.so $out/lib/mariadb/libmysqlclient_r.so + ''; + + meta = { + description = "Client library that can be used to connect to MySQL or MariaDB"; + license = licenses.lgpl21; + maintainers = with maintainers; [ globin ]; + platforms = platforms.all; + }; +} diff --git a/pkgs/servers/sql/mariadb/default.nix b/pkgs/servers/sql/mariadb/default.nix index 15553055457c8..2352d7c1088d8 100644 --- a/pkgs/servers/sql/mariadb/default.nix +++ b/pkgs/servers/sql/mariadb/default.nix @@ -18,13 +18,6 @@ mytopEnv = perl.withPackages (p: with p; [ DataDumper DBDmysql DBI TermReadKey ] mariadb = server // { inherit client; # MariaDB Client server = server; # MariaDB Server - inherit connector-c; # libmysqlclient.so - inherit galera; -}; - -galeraLibs = buildEnv { - name = "galera-lib-inputs-united"; - paths = [ openssl.out boost check ]; }; common = rec { # attributes common to both builds @@ -218,95 +211,4 @@ server = stdenv.mkDerivation (common // { CXXFLAGS = optionalString stdenv.isi686 "-fpermissive"; }); - -connector-c = stdenv.mkDerivation rec { - pname = "mariadb-connector-c"; - version = "2.3.7"; - - src = fetchurl { - url = "https://downloads.mariadb.org/interstitial/connector-c-${version}/mariadb-connector-c-${version}-src.tar.gz/from/http%3A//nyc2.mirrors.digitalocean.com/mariadb/"; - sha256 = "13izi35vvxhiwl2dsnqrz75ciisy2s2k30giv7hrm01qlwnmiycl"; - name = "mariadb-connector-c-${version}-src.tar.gz"; - }; - - # outputs = [ "dev" "out" ]; FIXME: cmake variables don't allow that < 3.0 - cmakeFlags = [ - "-DWITH_EXTERNAL_ZLIB=ON" - "-DMYSQL_UNIX_ADDR=/run/mysqld/mysqld.sock" - ]; - - # The cmake setup-hook uses $out/lib by default, this is not the case here. - preConfigure = stdenv.lib.optionalString stdenv.isDarwin '' - cmakeFlagsArray+=("-DCMAKE_INSTALL_NAME_DIR=$out/lib/mariadb") - ''; - - nativeBuildInputs = [ cmake ]; - propagatedBuildInputs = [ openssl zlib ]; - buildInputs = [ libiconv ]; - - enableParallelBuilding = true; - - postFixup = '' - ln -sv mariadb_config $out/bin/mysql_config - ln -sv mariadb $out/lib/mysql - ln -sv mariadb $out/include/mysql - ''; - - meta = with stdenv.lib; { - description = "Client library that can be used to connect to MySQL or MariaDB"; - license = licenses.lgpl21; - maintainers = with maintainers; [ globin ]; - platforms = platforms.all; - }; -}; - -galera = stdenv.mkDerivation rec { - pname = "mariadb-galera"; - version = "25.3.26"; - - src = fetchFromGitHub { - owner = "codership"; - repo = "galera"; - rev = "release_${version}"; - sha256 = "0fs0c1px9lknf1a5wwb12z1hj7j7b6hsfjddggikvkdkrnr2xs1f"; - fetchSubmodules = true; - }; - - buildInputs = [ asio boost check openssl scons ]; - - postPatch = '' - substituteInPlace SConstruct \ - --replace "boost_library_path = '''" "boost_library_path = '${boost}/lib'" - ''; - - preConfigure = '' - export CPPFLAGS="-I${asio}/include -I${boost.dev}/include -I${check}/include -I${openssl.dev}/include" - export LIBPATH="${galeraLibs}/lib" - ''; - - sconsFlags = "ssl=1 system_asio=0 strict_build_flags=0"; - - installPhase = '' - # copied with modifications from scripts/packages/freebsd.sh - GALERA_LICENSE_DIR="$share/licenses/${pname}-${version}" - install -d $out/{bin,lib/galera,share/doc/galera,$GALERA_LICENSE_DIR} - install -m 555 "garb/garbd" "$out/bin/garbd" - install -m 444 "libgalera_smm.so" "$out/lib/galera/libgalera_smm.so" - install -m 444 "scripts/packages/README" "$out/share/doc/galera/" - install -m 444 "scripts/packages/README-MySQL" "$out/share/doc/galera/" - install -m 444 "scripts/packages/freebsd/LICENSE" "$out/$GALERA_LICENSE_DIR" - install -m 444 "LICENSE" "$out/$GALERA_LICENSE_DIR/GPLv2" - install -m 444 "asio/LICENSE_1_0.txt" "$out/$GALERA_LICENSE_DIR/LICENSE.asio" - install -m 444 "www.evanjones.ca/LICENSE" "$out/$GALERA_LICENSE_DIR/LICENSE.crc32c" - install -m 444 "chromium/LICENSE" "$out/$GALERA_LICENSE_DIR/LICENSE.chromium" - ''; - - meta = { - description = "Galera 3 wsrep provider library"; - homepage = http://galeracluster.com/; - license = licenses.lgpl2; - maintainers = with maintainers; [ izorkin ]; - platforms = platforms.all; - }; -}; in mariadb diff --git a/pkgs/servers/sql/mariadb/galera/25.nix b/pkgs/servers/sql/mariadb/galera/25.nix new file mode 100644 index 0000000000000..2772d60e398b7 --- /dev/null +++ b/pkgs/servers/sql/mariadb/galera/25.nix @@ -0,0 +1,6 @@ +{ callPackage, ... } @ args: + +callPackage ./. (args // { + version = "25.3.27"; + sha256 = "143kzj0fmak1gdww4qkqmmliw8klxm6mwk5531748swlwm6gqr5q"; +}) diff --git a/pkgs/servers/sql/mariadb/galera/default.nix b/pkgs/servers/sql/mariadb/galera/default.nix new file mode 100644 index 0000000000000..263a21983e26b --- /dev/null +++ b/pkgs/servers/sql/mariadb/galera/default.nix @@ -0,0 +1,63 @@ +{ stdenv, fetchFromGitHub, buildEnv +, asio, boost, check, openssl, scons +, version, sha256, ... +}: + +let + pname = "mariadb-galera"; + galeraLibs = buildEnv { + name = "galera-lib-inputs-united"; + paths = [ openssl.out boost check ]; + }; + +in stdenv.mkDerivation { + inherit pname; + inherit version; + + src = fetchFromGitHub { + owner = "codership"; + repo = "galera"; + rev = "release_${version}"; + inherit sha256; + fetchSubmodules = true; + }; + + buildInputs = [ asio boost check openssl scons ]; + + postPatch = '' + substituteInPlace SConstruct \ + --replace "boost_library_path = '''" "boost_library_path = '${boost}/lib'" + ''; + + preConfigure = '' + export CPPFLAGS="-I${asio}/include -I${boost.dev}/include -I${check}/include -I${openssl.dev}/include" + export LIBPATH="${galeraLibs}/lib" + ''; + + sconsFlags = "ssl=1 system_asio=1 strict_build_flags=0"; + + enableParallelBuilding = true; + + installPhase = '' + # copied with modifications from scripts/packages/freebsd.sh + GALERA_LICENSE_DIR="$share/licenses/${pname}" + install -d $out/{bin,lib/galera,share/doc/galera,$GALERA_LICENSE_DIR} + install -m 555 "garb/garbd" "$out/bin/garbd" + install -m 444 "libgalera_smm.so" "$out/lib/galera/libgalera_smm.so" + install -m 444 "scripts/packages/README" "$out/share/doc/galera/" + install -m 444 "scripts/packages/README-MySQL" "$out/share/doc/galera/" + install -m 444 "scripts/packages/freebsd/LICENSE" "$out/$GALERA_LICENSE_DIR" + install -m 444 "LICENSE" "$out/$GALERA_LICENSE_DIR/GPLv2" + install -m 444 "asio/LICENSE_1_0.txt" "$out/$GALERA_LICENSE_DIR/LICENSE.asio" + install -m 444 "www.evanjones.ca/LICENSE" "$out/$GALERA_LICENSE_DIR/LICENSE.crc32c" + install -m 444 "chromium/LICENSE" "$out/$GALERA_LICENSE_DIR/LICENSE.chromium" + ''; + + meta = with stdenv.lib; { + description = "Galera 3 wsrep provider library"; + homepage = http://galeracluster.com/; + license = licenses.lgpl2; + maintainers = with maintainers; [ izorkin ]; + platforms = platforms.all; + }; +} diff --git a/pkgs/servers/uwsgi/default.nix b/pkgs/servers/uwsgi/default.nix index 85fa6cd800634..556c44b61a754 100644 --- a/pkgs/servers/uwsgi/default.nix +++ b/pkgs/servers/uwsgi/default.nix @@ -4,7 +4,7 @@ , pam, withPAM ? stdenv.isLinux , systemd, withSystemd ? stdenv.isLinux , python2, python3, ncurses -, ruby, php-embed, mysql +, ruby, php-embed, libmysqlclient }: let pythonPlugin = pkg : lib.nameValuePair "python${if pkg.isPy2 then "2" else "3"}" { @@ -34,7 +34,7 @@ let pythonPlugin = pkg : lib.nameValuePair "python${if pkg.isPy2 then "2" else " # usage: https://uwsgi-docs.readthedocs.io/en/latest/PHP.html#running-php-apps-with-nginx path = "plugins/php"; inputs = [ php-embed ] ++ php-embed.buildInputs; - NIX_CFLAGS_LINK = [ "-L${mysql.connector-c}/lib/mysql" ]; + NIX_CFLAGS_LINK = [ "-L${libmysqlclient}/lib/mysql" ]; }) ]; diff --git a/pkgs/tools/backup/bareos/default.nix b/pkgs/tools/backup/bareos/default.nix index 79ae1e50ca2b6..949e45de5e11e 100644 --- a/pkgs/tools/backup/bareos/default.nix +++ b/pkgs/tools/backup/bareos/default.nix @@ -1,10 +1,10 @@ { stdenv, fetchFromGitHub, pkgconfig, nettools, gettext, flex , readline ? null, openssl ? null, python2 ? null, ncurses ? null, rocksdb -, sqlite ? null, postgresql ? null, mysql ? null, zlib ? null, lzo ? null +, sqlite ? null, postgresql ? null, libmysqlclient ? null, zlib ? null, lzo ? null , jansson ? null, acl ? null, glusterfs ? null, libceph ? null, libcap ? null }: -assert sqlite != null || postgresql != null || mysql != null; +assert sqlite != null || postgresql != null || libmysqlclient != null; with stdenv.lib; let @@ -25,7 +25,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ pkgconfig ]; buildInputs = [ nettools gettext readline openssl python2 flex ncurses sqlite postgresql - mysql.connector-c zlib lzo jansson acl glusterfs libceph libcap rocksdb + libmysqlclient zlib lzo jansson acl glusterfs libceph libcap rocksdb ]; postPatch = '' @@ -55,7 +55,7 @@ stdenv.mkDerivation rec { ++ optional (openssl != null) "--with-openssl=${openssl.dev}" ++ optional (sqlite != null) "--with-sqlite3=${sqlite.dev}" ++ optional (postgresql != null) "--with-postgresql=${postgresql}" - ++ optional (mysql != null) "--with-mysql=${mysql.connector-c}" + ++ optional (libmysqlclient != null) "--with-mysql=${libmysqlclient}" ++ optional (zlib != null) "--with-zlib=${zlib.dev}" ++ optional (lzo != null) "--with-lzo=${lzo}" ++ optional (jansson != null) "--with-jansson=${jansson}" diff --git a/pkgs/tools/backup/mydumper/default.nix b/pkgs/tools/backup/mydumper/default.nix index 5538b45c5f1b7..7160e7f195034 100644 --- a/pkgs/tools/backup/mydumper/default.nix +++ b/pkgs/tools/backup/mydumper/default.nix @@ -1,5 +1,5 @@ { stdenv, fetchFromGitHub, cmake, pkgconfig -, glib, zlib, pcre, mysql, libressl }: +, glib, zlib, pcre, libmysqlclient, libressl }: stdenv.mkDerivation rec { version = "0.9.5"; @@ -14,7 +14,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ cmake pkgconfig ]; - buildInputs = [ glib zlib pcre mysql.connector-c libressl ]; + buildInputs = [ glib zlib pcre libmysqlclient libressl ]; meta = with stdenv.lib; { description = ''High-perfomance MySQL backup tool''; diff --git a/pkgs/tools/graphics/zbar/default.nix b/pkgs/tools/graphics/zbar/default.nix index 6423a84badc6e..687c4832e4765 100644 --- a/pkgs/tools/graphics/zbar/default.nix +++ b/pkgs/tools/graphics/zbar/default.nix @@ -8,6 +8,7 @@ , qtbase , qtx11extras , wrapQtAppsHook +, wrapGAppsHook , gtk3 , xmlto , docbook_xsl @@ -36,6 +37,7 @@ stdenv.mkDerivation rec { autoreconfHook docbook_xsl wrapQtAppsHook + wrapGAppsHook ]; buildInputs = [ @@ -71,7 +73,7 @@ stdenv.mkDerivation rec { dontWrapGApps = true; postFixup = lib.optionalString enableVideo '' - wrapProgram "$out/bin/zbarcam-gtk" "''${gappsWrapperArgs[@]}" + wrapGApp "$out/bin/zbarcam-gtk" wrapQtApp "$out/bin/zbarcam-qt" ''; diff --git a/pkgs/tools/networking/kea/default.nix b/pkgs/tools/networking/kea/default.nix index bc35a25cfde8d..3986cadd08a58 100644 --- a/pkgs/tools/networking/kea/default.nix +++ b/pkgs/tools/networking/kea/default.nix @@ -1,5 +1,5 @@ { stdenv, fetchurl, autoreconfHook, pkgconfig, openssl, botan2, log4cplus -, boost, python3, postgresql, mysql, gmp, bzip2 }: +, boost, python3, postgresql, libmysqlclient, gmp, bzip2 }: stdenv.mkDerivation rec { pname = "kea"; @@ -20,12 +20,12 @@ stdenv.mkDerivation rec { configureFlags = [ "--localstatedir=/var" "--with-pgsql=${postgresql}/bin/pg_config" - "--with-mysql=${mysql.connector-c}/bin/mysql_config" + "--with-mysql=${libmysqlclient}/bin/mysql_config" ]; nativeBuildInputs = [ autoreconfHook pkgconfig ]; buildInputs = [ - openssl log4cplus boost python3 mysql.connector-c + openssl log4cplus boost python3 libmysqlclient botan2 gmp bzip2 ]; diff --git a/pkgs/tools/networking/mailutils/default.nix b/pkgs/tools/networking/mailutils/default.nix index f507e4dc2872f..40eeed7f05015 100644 --- a/pkgs/tools/networking/mailutils/default.nix +++ b/pkgs/tools/networking/mailutils/default.nix @@ -1,6 +1,6 @@ { stdenv, fetchurl, fetchpatch, autoreconfHook, dejagnu, gettext, pkgconfig , gdbm, pam, readline, ncurses, gnutls, guile, texinfo, gnum4, sasl, fribidi, nettools -, python, gss, mysql, system-sendmail }: +, python, gss, libmysqlclient, system-sendmail }: stdenv.mkDerivation rec { name = "${project}-${version}"; @@ -16,7 +16,7 @@ stdenv.mkDerivation rec { sed -i -e '/chown root:mail/d' \ -e 's/chmod [24]755/chmod 0755/' \ */Makefile{.in,.am} - sed -i 's:/usr/lib/mysql:${mysql.connector-c}/lib/mysql:' configure.ac + sed -i 's:/usr/lib/mysql:${libmysqlclient}/lib/mysql:' configure.ac sed -i 's/0\.18/0.19/' configure.ac sed -i -e 's:mysql/mysql.h:mysql.h:' \ -e 's:mysql/errmsg.h:errmsg.h:' \ @@ -29,7 +29,7 @@ stdenv.mkDerivation rec { buildInputs = [ gdbm pam readline ncurses gnutls guile texinfo gnum4 sasl fribidi nettools - gss mysql.connector-c python + gss libmysqlclient python ]; patches = [ @@ -62,7 +62,7 @@ stdenv.mkDerivation rec { (fetchurl { url = "${p}/weed.at"; sha256 = "1101xakhc99f5gb9cs3mmydn43ayli7b270pzbvh7f9rbvh0d0nh"; }) ]; - NIX_CFLAGS_COMPILE = "-L${mysql.connector-c}/lib/mysql -I${mysql.connector-c}/include/mysql"; + NIX_CFLAGS_COMPILE = "-L${libmysqlclient}/lib/mysql -I${libmysqlclient}/include/mysql"; checkInputs = [ dejagnu ]; doCheck = false; # fails 1 out of a bunch of tests, looks like a bug diff --git a/pkgs/tools/networking/maxscale/default.nix b/pkgs/tools/networking/maxscale/default.nix index 32f6b11d77c53..d047646fa7195 100644 --- a/pkgs/tools/networking/maxscale/default.nix +++ b/pkgs/tools/networking/maxscale/default.nix @@ -1,5 +1,5 @@ { stdenv, fetchFromGitHub, cmake, pkgconfig, glibc -, bison2, curl, flex, gperftools, jansson, jemalloc, kerberos, lua, mariadb +, bison2, curl, flex, gperftools, jansson, jemalloc, kerberos, lua, libmysqlclient , ncurses, openssl, pcre, pcre2, perl, rabbitmq-c, sqlite, tcl , libaio, libedit, libtool, libui, libuuid, zlib }: @@ -18,7 +18,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ cmake pkgconfig ]; buildInputs = [ - bison2 curl flex gperftools jansson jemalloc kerberos lua mariadb.connector-c + bison2 curl flex gperftools jansson jemalloc kerberos lua libmysqlclient ncurses openssl pcre pcre2 perl rabbitmq-c sqlite tcl libaio libedit libtool libui libuuid zlib ]; @@ -63,7 +63,7 @@ stdenv.mkDerivation rec { postInstall = '' find $out/bin -type f -perm -0100 | while read f1; do patchelf \ - --set-rpath "$(patchelf --print-rpath $f1):${mariadb.connector-c}/lib/mariadb:$out/lib/maxscale" \ + --set-rpath "$(patchelf --print-rpath $f1):${libmysqlclient}/lib/mariadb:$out/lib/maxscale" \ --set-interpreter "$(cat ${stdenv.cc}/nix-support/dynamic-linker)" $f1 \ && patchelf --shrink-rpath $f1 done diff --git a/pkgs/tools/networking/modem-manager/default.nix b/pkgs/tools/networking/modem-manager/default.nix index b2644d0c2a496..fedc8d4b71d7f 100644 --- a/pkgs/tools/networking/modem-manager/default.nix +++ b/pkgs/tools/networking/modem-manager/default.nix @@ -32,13 +32,6 @@ stdenv.mkDerivation rec { doCheck = true; - postInstall = '' - # systemd in NixOS doesn't use `systemctl enable`, so we need to establish - # aliases ourselves. - ln -s $out/etc/systemd/system/ModemManager.service \ - $out/etc/systemd/system/dbus-org.freedesktop.ModemManager1.service - ''; - meta = with stdenv.lib; { description = "WWAN modem manager, part of NetworkManager"; homepage = https://www.freedesktop.org/wiki/Software/ModemManager/; diff --git a/pkgs/tools/networking/network-manager/default.nix b/pkgs/tools/networking/network-manager/default.nix index 5bc915caea650..490ebd0fa6bb0 100644 --- a/pkgs/tools/networking/network-manager/default.nix +++ b/pkgs/tools/networking/network-manager/default.nix @@ -97,11 +97,6 @@ in stdenv.mkDerivation rec { ''; postInstall = '' - # systemd in NixOS doesn't use `systemctl enable`, so we need to establish - # aliases ourselves. - ln -s $out/etc/systemd/system/NetworkManager-dispatcher.service $out/etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service - ln -s $out/etc/systemd/system/NetworkManager.service $out/etc/systemd/system/dbus-org.freedesktop.NetworkManager.service - # Add the legacy service name from before #51382 to prevent NetworkManager # from not starting back up: # TODO: remove this once 19.10 is released diff --git a/pkgs/tools/security/thc-hydra/default.nix b/pkgs/tools/security/thc-hydra/default.nix index 252d73b479b64..57deaaf0498c3 100644 --- a/pkgs/tools/security/thc-hydra/default.nix +++ b/pkgs/tools/security/thc-hydra/default.nix @@ -1,4 +1,4 @@ -{ stdenv, lib, fetchurl, zlib, openssl, ncurses, libidn, pcre, libssh, mysql, postgresql +{ stdenv, lib, fetchurl, zlib, openssl, ncurses, libidn, pcre, libssh, libmysqlclient, postgresql , withGUI ? false, makeWrapper, pkgconfig, gtk2 }: let @@ -23,7 +23,7 @@ in stdenv.mkDerivation rec { ''; nativeBuildInputs = lib.optionals withGUI [ pkgconfig makeWrapper ]; - buildInputs = [ zlib openssl ncurses libidn pcre libssh mysql.connector-c postgresql ] + buildInputs = [ zlib openssl ncurses libidn pcre libssh libmysqlclient postgresql ] ++ lib.optional withGUI gtk2; postInstall = lib.optionalString withGUI '' diff --git a/pkgs/tools/system/collectd/default.nix b/pkgs/tools/system/collectd/default.nix index 1df73e08d1e30..3e7e4e5969ab3 100644 --- a/pkgs/tools/system/collectd/default.nix +++ b/pkgs/tools/system/collectd/default.nix @@ -22,7 +22,7 @@ , libtool , lm_sensors , lvm2 -, mysql +, libmysqlclient , numactl , postgresql , protobufc @@ -63,7 +63,7 @@ stdenv.mkDerivation rec { libxml2 postgresql protobufc rrdtool varnish yajl jdk libtool python hiredis libmicrohttpd riemann_c_client mosquitto rdkafka mongoc - ] ++ stdenv.lib.optionals (mysql != null) [ mysql.connector-c + ] ++ stdenv.lib.optionals (libmysqlclient != null) [ libmysqlclient ] ++ stdenv.lib.optionals stdenv.isLinux [ iptables libatasmart libcredis libmodbus libsigrok lm_sensors lvm2 rabbitmq-c udev net_snmp libmnl diff --git a/pkgs/tools/system/rsyslog/default.nix b/pkgs/tools/system/rsyslog/default.nix index 2899837f3f882..34b7b7d908a8c 100644 --- a/pkgs/tools/system/rsyslog/default.nix +++ b/pkgs/tools/system/rsyslog/default.nix @@ -1,5 +1,5 @@ { stdenv, fetchurl, pkgconfig, autoreconfHook, libestr, json_c, zlib, pythonPackages, fastJson -, libkrb5 ? null, systemd ? null, jemalloc ? null, mysql ? null, postgresql ? null +, libkrb5 ? null, systemd ? null, jemalloc ? null, libmysqlclient ? null, postgresql ? null , libdbi ? null, net_snmp ? null, libuuid ? null, curl ? null, gnutls ? null , libgcrypt ? null, liblognorm ? null, openssl ? null, librelp ? null, libksi ? null , libgt ? null, liblogging ? null, libnet ? null, hadoop ? null, rdkafka ? null @@ -26,7 +26,7 @@ stdenv.mkDerivation rec { postgresql libdbi net_snmp libuuid curl gnutls libgcrypt liblognorm openssl librelp libgt libksi liblogging libnet hadoop rdkafka libmongo-client czmq rabbitmq-c hiredis mongoc - ] ++ stdenv.lib.optional (mysql != null) mysql.connector-c + ] ++ stdenv.lib.optional (libmysqlclient != null) libmysqlclient ++ stdenv.lib.optional stdenv.isLinux systemd; hardeningDisable = [ "format" ]; @@ -50,7 +50,7 @@ stdenv.mkDerivation rec { (mkFlag false "valgrind") (mkFlag false "diagtools") (mkFlag true "usertools") - (mkFlag (mysql != null) "mysql") + (mkFlag (libmysqlclient != null) "mysql") (mkFlag (postgresql != null) "pgsql") (mkFlag (libdbi != null) "libdbi") (mkFlag (net_snmp != null) "snmp") diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index a837336740b18..38ca7129645a1 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -189,7 +189,6 @@ mapAliases ({ libintlOrEmpty = stdenv.lib.optional (!stdenv.isLinux || stdenv.hostPlatform.libc != "glibc") gettext; # added 2018-03-14 libjson_rpc_cpp = libjson-rpc-cpp; # added 2017-02-28 liblapackWithoutAtlas = liblapack; # added 2018-11-05 - libmysql = mysql.connector-c; # added # 2017-12-28, this was a misnomer refering to libmysqlclient libqrencode = qrencode; # added 2019-01-01 librecad2 = librecad; # backwards compatibility alias, added 2015-10 libsysfs = sysfsutils; # added 2018-04-25 diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2bd09af6ac34c..0b232a97bdb1d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1966,7 +1966,7 @@ in libkrb5 = null; systemd = null; jemalloc = null; - mysql = null; + libmysqlclient = null; postgresql = null; libdbi = null; net_snmp = null; @@ -11712,7 +11712,7 @@ in libdbi = callPackage ../development/libraries/libdbi { }; libdbiDriversBase = libdbiDrivers.override { - mysql = null; + libmysqlclient = null; sqlite = null; }; @@ -12430,9 +12430,8 @@ in libwhereami = callPackage ../development/libraries/libwhereami { }; - giflib = giflib_5_1; giflib_4_1 = callPackage ../development/libraries/giflib/4.1.nix { }; - giflib_5_1 = callPackage ../development/libraries/giflib/5.1.nix { }; + giflib = callPackage ../development/libraries/giflib { }; libunarr = callPackage ../development/libraries/libunarr { }; @@ -13141,7 +13140,7 @@ in cups = if stdenv.isLinux then cups else null; # XXX: mariadb doesn't built on fbsd as of nov 2015 - mysql = if (!stdenv.isFreeBSD) then mysql else null; + libmysqlclient = if (!stdenv.isFreeBSD) then libmysqlclient else null; inherit (pkgs.darwin) libobjc; inherit (pkgs.darwin.apple_sdk.frameworks) ApplicationServices OpenGL Cocoa AGL; @@ -13900,7 +13899,7 @@ in unixODBC = callPackage ../development/libraries/unixODBC { }; - unixODBCDrivers = recurseIntoAttrs (callPackages ../development/libraries/unixODBCDrivers {}); + unixODBCDrivers = recurseIntoAttrs (callPackages ../development/libraries/unixODBCDrivers { }); ustr = callPackage ../development/libraries/ustr { }; @@ -14888,8 +14887,17 @@ in rpcbind = callPackage ../servers/rpcbind { }; - mariadb = callPackage ../servers/sql/mariadb { + libmysqlclient = libmysqlclient_3_1; + libmysqlclient_3_1 = mariadb-connector-c_3_1; + mariadb-connector-c = mariadb-connector-c_3_1; + mariadb-connector-c_3_1 = callPackage ../servers/sql/mariadb/connector-c/3_1.nix { }; + + mariadb-galera = mariadb-galera_25; + mariadb-galera_25 = callPackage ../servers/sql/mariadb/galera/25.nix { asio = asio_1_10; + }; + + mariadb = callPackage ../servers/sql/mariadb { # As per mariadb's cmake, "static jemalloc_pic.a can only be used up to jemalloc 4". # https://jira.mariadb.org/browse/MDEV-15034 jemalloc = jemalloc450.override ({ disableInitExecTls = true; }); @@ -24157,7 +24165,7 @@ in mnemonicode = callPackage ../misc/mnemonicode { }; mysql-workbench = callPackage ../applications/misc/mysql-workbench (let mysql = mysql57; in { - gdal = gdal.override {mysql = mysql // {lib = {dev = mysql;};};}; + gdal = gdal.override {libmysqlclient = mysql // {lib = {dev = mysql;};};}; mysql = mysql; pcre = pcre-cpp; }); -- cgit 1.4.1 From f8d67ec135de10ac16fcc0c1623c911a4783775f Mon Sep 17 00:00:00 2001 From: zimbatm Date: Sat, 24 Aug 2019 14:29:47 +0200 Subject: buildRustPackage: add verifyCargoDeps option One issue with cargoSha256 is that it's hard to detect when it needs to be updated or not. It's possible to upgrade a package and forget to update cargoSha256 and run with old versions of the program or libraries. This commit introduces `verifyCargoDeps` which, when enabled, will check that the Cargo.lock is not out of date in the cargoDeps by comparing it with the package source. --- doc/languages-frameworks/rust.section.md | 4 ++++ pkgs/build-support/rust/default.nix | 19 +++++++++++++++++++ pkgs/build-support/rust/fetchcargo.nix | 18 +++++++++++++++++- 3 files changed, 40 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/languages-frameworks/rust.section.md b/doc/languages-frameworks/rust.section.md index 2d9338f2e89bf..83b7b159bd63d 100644 --- a/doc/languages-frameworks/rust.section.md +++ b/doc/languages-frameworks/rust.section.md @@ -43,6 +43,7 @@ rustPlatform.buildRustPackage rec { }; cargoSha256 = "0q68qyl2h6i0qsz82z840myxlnjay8p1w5z7hfyr8fqp7wgwa9cx"; + verifyCargoDeps = true; meta = with stdenv.lib; { description = "A fast line-oriented regex search tool, similar to ag and ack"; @@ -64,6 +65,9 @@ When the `Cargo.lock`, provided by upstream, is not in sync with the added in `cargoPatches` will also be prepended to the patches in `patches` at build-time. +When `verifyCargoDeps` is set to `true`, the build will also verify that the +`cargoSha256` is not out of date by comparing the `Cargo.lock` file in both the `cargoDeps` and `src`. Note that this option changes the value of `cargoSha256` since it also copies the `Cargo.lock` in it. To avoid breaking backward-compatibility this option is not enabled by default but hopefully will be in the future. + ## Compiling Rust crates using Nix instead of Cargo ### Simple operation diff --git a/pkgs/build-support/rust/default.nix b/pkgs/build-support/rust/default.nix index 4634d32f6aced..27601e481c681 100644 --- a/pkgs/build-support/rust/default.nix +++ b/pkgs/build-support/rust/default.nix @@ -13,6 +13,9 @@ , cargoUpdateHook ? "" , cargoDepsHook ? "" , cargoBuildFlags ? [] +, # Set to true to verify if the cargo dependencies are up to date. + # This will change the value of cargoSha256. + verifyCargoDeps ? false , buildType ? "release" , meta ? {} @@ -26,6 +29,7 @@ let cargoDeps = if cargoVendorDir == null then fetchcargo { inherit name src srcs sourceRoot cargoUpdateHook; + copyLockfile = verifyCargoDeps; patches = cargoPatches; sha256 = cargoSha256; } @@ -95,6 +99,21 @@ stdenv.mkDerivation (args // { unset cargoDepsCopy export RUST_LOG=${logLevel} + '' + stdenv.lib.optionalString verifyCargoDeps '' + if ! diff source/Cargo.lock $cargoDeps/Cargo.lock ; then + echo + echo "ERROR: cargoSha256 is out of date." + echo + echo "Cargo.lock is not the same in $cargoDeps." + echo + echo "To fix the issue:" + echo '1. Use "1111111111111111111111111111111111111111111111111111" as the cargoSha256 value' + echo "2. Build the derivation and wait it to fail with a hash mismatch" + echo "3. Copy the 'got: sha256:' value back into the cargoSha256 field" + echo + + exit 1 + fi '' + (args.postUnpack or ""); configurePhase = args.configurePhase or '' diff --git a/pkgs/build-support/rust/fetchcargo.nix b/pkgs/build-support/rust/fetchcargo.nix index bc80db0947b06..a515ce9c6eb59 100644 --- a/pkgs/build-support/rust/fetchcargo.nix +++ b/pkgs/build-support/rust/fetchcargo.nix @@ -17,7 +17,16 @@ let cargo-vendor-normalise = stdenv.mkDerivation { preferLocalBuild = true; }; in -{ name ? "cargo-deps", src, srcs, patches, sourceRoot, sha256, cargoUpdateHook ? "" }: +{ name ? "cargo-deps" +, src +, srcs +, patches +, sourceRoot +, sha256 +, cargoUpdateHook ? "" +, # whenever to also include the Cargo.lock in the output + copyLockfile ? false +}: stdenv.mkDerivation { name = "${name}-vendor"; nativeBuildInputs = [ cacert git cargo-vendor-normalise cargo ]; @@ -37,6 +46,9 @@ stdenv.mkDerivation { exit 1 fi + # Keep the original around for copyLockfile + cp Cargo.lock Cargo.lock.orig + export CARGO_HOME=$(mktemp -d cargo-home.XXX) CARGO_CONFIG=$(mktemp cargo-config.XXXX) @@ -52,6 +64,10 @@ stdenv.mkDerivation { if ! cmp $CARGO_CONFIG ${./fetchcargo-default-config.toml} > /dev/null; then install -D $CARGO_CONFIG $out/.cargo/config; fi; + + '' + stdenv.lib.optionalString copyLockfile '' + # add the Cargo.lock to allow hash invalidation + cp Cargo.lock.orig $out/Cargo.lock ''; outputHashAlgo = "sha256"; -- cgit 1.4.1 From 0ce30f8c67db15ae312f1e27f9228468bbdbb528 Mon Sep 17 00:00:00 2001 From: Thomas Depierre Date: Sun, 6 Oct 2019 23:55:51 +0200 Subject: doc/beam: rebar3-open is now removed (#70523) --- doc/languages-frameworks/beam.xml | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'doc') diff --git a/doc/languages-frameworks/beam.xml b/doc/languages-frameworks/beam.xml index 65f28d0a2d3b4..74c595cc89b47 100644 --- a/doc/languages-frameworks/beam.xml +++ b/doc/languages-frameworks/beam.xml @@ -55,20 +55,7 @@ Rebar3 - By default, Rebar3 wants to manage its own dependencies. This is perfectly acceptable in the normal, non-Nix setup, but in the Nix world, it is not. To rectify this, we provide two versions of Rebar3: - - - - rebar3: patched to remove the ability to download anything. When not running it via nix-shell or nix-build, it's probably not going to work as desired. - - - - - rebar3-open: the normal, unmodified Rebar3. It should work exactly as would any other version of Rebar3. Any Erlang package should rely on rebar3 instead. See . - - - + We provide a version of Rebar3, which is the normal, unmodified Rebar3, under rebar3. We also provide a helper to fetch Rebar3 dependencies from a lockfile under fetchRebar3Deps. -- cgit 1.4.1 From 1f7b1cf5813fc7cb75dbe438b9aa35a3000bfca9 Mon Sep 17 00:00:00 2001 From: Anders Riutta Date: Mon, 14 Oct 2019 01:54:01 -0700 Subject: doc/python: clarify python nix tooling efforts @garbas and @seppeljordan, are these updates correct? I removed `offlinehacker/pypi2nix` as an unmaintained ancestor of the current repo `nix-community/pypi2nix`. It appears @garbas forked `offlinehacker/pypi2nix` to `garbas/pypi2nix` and then handed off maintainership to @seppeljordan, transferring the repo to `nix-community/pypi2nix`. --- doc/languages-frameworks/python.section.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'doc') diff --git a/doc/languages-frameworks/python.section.md b/doc/languages-frameworks/python.section.md index 88dc42ebc6c23..4b18a9139d8ec 100644 --- a/doc/languages-frameworks/python.section.md +++ b/doc/languages-frameworks/python.section.md @@ -850,9 +850,8 @@ Note: There is a boolean value `lib.inNixShell` set to `true` if nix-shell is in Packages inside nixpkgs are written by hand. However many tools exist in community to help save time. No tool is preferred at the moment. -- [python2nix](https://github.com/proger/python2nix) by Vladimir Kirillov -- [pypi2nix](https://github.com/garbas/pypi2nix) by Rok Garbas -- [pypi2nix](https://github.com/offlinehacker/pypi2nix) by Jaka Hudoklin +- [pypi2nix](https://github.com/nix-community/pypi2nix): Generate Nix expressions for your Python project. Note that [sharing derivations from pypi2nix with nixpkgs is possible but not encouraged](https://github.com/nix-community/pypi2nix/issues/222#issuecomment-443497376). +- [python2nix](https://github.com/proger/python2nix) by Vladimir Kirillov. ### Deterministic builds -- cgit 1.4.1 From 3a90d58a44914a52a567586e3c0c3f67e3c28aaf Mon Sep 17 00:00:00 2001 From: Danny Bautista Date: Tue, 15 Oct 2019 09:52:31 -0400 Subject: Fix typos in the Nixpkgs Manual. (#70775) --- doc/configuration.xml | 2 +- doc/stdenv.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'doc') diff --git a/doc/configuration.xml b/doc/configuration.xml index cb660452d8286..a68ae739f52e7 100644 --- a/doc/configuration.xml +++ b/doc/configuration.xml @@ -45,7 +45,7 @@ However, this does not allow unfree software for individual users. Their configurations are managed separately. - A user's of nixpkgs configuration is stored in a user-specific configuration file located at ~/.config/nixpkgs/config.nix. For example: + A user's nixpkgs configuration is stored in a user-specific configuration file located at ~/.config/nixpkgs/config.nix. For example: { allowUnfree = true; diff --git a/doc/stdenv.xml b/doc/stdenv.xml index 5495ce29ce314..0b59f90eb490f 100644 --- a/doc/stdenv.xml +++ b/doc/stdenv.xml @@ -1692,7 +1692,7 @@ someVar=$(stripHash $name) - Convenience function for makeWrapper that automatically creates a sane wrapper file It takes all the same arguments as makeWrapper, except for --argv0. + Convenience function for makeWrapper that automatically creates a sane wrapper file. It takes all the same arguments as makeWrapper, except for --argv0. It cannot be applied multiple times, since it will overwrite the wrapper file. @@ -1869,7 +1869,7 @@ addEnvHooks "$hostOffset" myBashFunction - Here are some more packages that provide a setup hook. Since the list of hooks is extensible, this is not an exhaustive list the mechanism is only to be used as a last resort, it might cover most uses. + Here are some more packages that provide a setup hook. Since the list of hooks is extensible, this is not an exhaustive list. The mechanism is only to be used as a last resort, so it might cover most uses. -- cgit 1.4.1 From 5b324c18255847fb1298799f23bffd0c4cf5bb59 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 17 Oct 2019 19:43:07 +0200 Subject: Remove references to the nixpkgs-channels repo Channel branches are now provided in the nixpkgs repo. Issue #71176. --- README.md | 4 +--- doc/introduction.chapter.md | 4 ++-- doc/reviewing-contributions.xml | 9 +-------- nixos/doc/manual/development/sources.xml | 19 +++++++++---------- 4 files changed, 13 insertions(+), 23 deletions(-) (limited to 'doc') diff --git a/README.md b/README.md index 49550f8fe7a9f..15ef4048d9007 100644 --- a/README.md +++ b/README.md @@ -51,9 +51,7 @@ system, [Hydra](https://hydra.nixos.org/). Artifacts successfully built with Hydra are published to cache at https://cache.nixos.org/. When successful build and test criteria are met, the Nixpkgs expressions are distributed via [Nix -channels](https://nixos.org/nix/manual/#sec-channels). The channels -are provided via a read-only mirror of the Nixpkgs repository called -[nixpkgs-channels](https://github.com/NixOS/nixpkgs-channels). +channels](https://nixos.org/nix/manual/#sec-channels). # Contributing diff --git a/doc/introduction.chapter.md b/doc/introduction.chapter.md index 6abdc2714e2c7..713c7181a3a03 100644 --- a/doc/introduction.chapter.md +++ b/doc/introduction.chapter.md @@ -47,5 +47,5 @@ which also builds binary packages from the Nix expressions in Nixpkgs for The binaries are made available via a [binary cache](https://cache.nixos.org). The current Nix expressions of the channels are available in the -[`nixpkgs-channels`](https://github.com/NixOS/nixpkgs-channels) repository, -which has branches corresponding to the available channels. +[`nixpkgs`](https://github.com/NixOS/nixpkgs) repository in branches +that correspond to the channel names (e.g. `nixos-19.09-small`). diff --git a/doc/reviewing-contributions.xml b/doc/reviewing-contributions.xml index 5a14684f9b1e2..02606569297c0 100644 --- a/doc/reviewing-contributions.xml +++ b/doc/reviewing-contributions.xml @@ -115,19 +115,12 @@ It is possible to rebase the changes on nixos-unstable or nixpkgs-unstable for easier review by running the following commands from a nixpkgs clone. -$ git remote add channels https://github.com/NixOS/nixpkgs-channels.git -$ git fetch channels nixos-unstable +$ git fetch origin nixos-unstable $ git fetch origin pull/PRNUMBER/head $ git rebase --onto nixos-unstable BASEBRANCH FETCH_HEAD - - - This should be done only once to be able to fetch channel branches from the nixpkgs-channels repository. - - Fetching the nixos-unstable branch. diff --git a/nixos/doc/manual/development/sources.xml b/nixos/doc/manual/development/sources.xml index 3c30c782746df..b333ccabb420a 100644 --- a/nixos/doc/manual/development/sources.xml +++ b/nixos/doc/manual/development/sources.xml @@ -13,17 +13,16 @@ $ git clone https://github.com/NixOS/nixpkgs $ cd nixpkgs -$ git remote add channels https://github.com/NixOS/nixpkgs-channels -$ git remote update channels +$ git remote update origin This will check out the latest Nixpkgs sources to ./nixpkgs the NixOS sources to ./nixpkgs/nixos. (The NixOS source tree lives in a - subdirectory of the Nixpkgs repository.) The remote - channels refers to a read-only repository that tracks the - Nixpkgs/NixOS channels (see for more + subdirectory of the Nixpkgs repository.) The + nixpkgs repository has branches that correspond + to each Nixpkgs/NixOS channel (see for more information about channels). Thus, the Git branch - channels/nixos-17.03 will contain the latest built and + origin/nixos-17.03 will contain the latest built and tested version available in the nixos-17.03 channel. @@ -40,15 +39,15 @@ Or, to base your local branch on the latest version available in a NixOS channel: -$ git remote update channels -$ git checkout -b local channels/nixos-17.03 +$ git remote update origin +$ git checkout -b local origin/nixos-17.03 (Replace nixos-17.03 with the name of the channel you want to use.) You can use git merge or git rebase to keep your local branch in sync with the channel, e.g. -$ git remote update channels -$ git merge channels/nixos-17.03 +$ git remote update origin +$ git merge origin/nixos-17.03 You can use git cherry-pick to copy commits from your local branch to the upstream branch. -- cgit 1.4.1 From 95dfbe2d632b71a72634d2d65e3f738f500ee5ce Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Sun, 20 Oct 2019 12:17:58 +0200 Subject: doc: organize chapters into parts, and reduce toc depth Reorganize the chapters into parts and reduce the TOC depth to make the TOC useful again. The top-level TOC is very brief, but that is fine because every part will have its own TOC. Section titles of languages/frameworks are also simplified to just the name of the language/framework. --- doc/contributing-to-documentation.xml | 30 ++++++++++++++++++ doc/contributing.xml | 30 ------------------ doc/doc-support/parameters.xml | 2 +- doc/languages-frameworks/emscripten.section.md | 2 +- doc/languages-frameworks/haskell.section.md | 2 +- doc/languages-frameworks/idris.section.md | 2 +- doc/languages-frameworks/index.xml | 2 +- doc/languages-frameworks/node.section.md | 4 +-- doc/languages-frameworks/r.section.md | 4 +-- doc/languages-frameworks/rust.section.md | 2 +- doc/languages-frameworks/vim.section.md | 2 +- doc/manual.xml | 44 ++++++++++++++++---------- doc/platform-notes.xml | 2 +- doc/reviewing-contributions.xml | 2 +- 14 files changed, 71 insertions(+), 59 deletions(-) create mode 100644 doc/contributing-to-documentation.xml delete mode 100644 doc/contributing.xml (limited to 'doc') diff --git a/doc/contributing-to-documentation.xml b/doc/contributing-to-documentation.xml new file mode 100644 index 0000000000000..b0266043775fb --- /dev/null +++ b/doc/contributing-to-documentation.xml @@ -0,0 +1,30 @@ + + Contributing to this documentation + + The DocBook sources of the Nixpkgs manual are in the doc subdirectory of the Nixpkgs repository. + + + You can quickly check your edits with make: + + +$ cd /path/to/nixpkgs/doc +$ nix-shell +[nix-shell]$ make + + + If you experience problems, run make debug to help understand the docbook errors. + + + After making modifications to the manual, it's important to build it before committing. You can do that as follows: + +$ cd /path/to/nixpkgs/doc +$ nix-shell +[nix-shell]$ make clean +[nix-shell]$ nix-build . + + If the build succeeds, the manual will be in ./result/share/doc/nixpkgs/manual.html. + + diff --git a/doc/contributing.xml b/doc/contributing.xml deleted file mode 100644 index b0266043775fb..0000000000000 --- a/doc/contributing.xml +++ /dev/null @@ -1,30 +0,0 @@ - - Contributing to this documentation - - The DocBook sources of the Nixpkgs manual are in the doc subdirectory of the Nixpkgs repository. - - - You can quickly check your edits with make: - - -$ cd /path/to/nixpkgs/doc -$ nix-shell -[nix-shell]$ make - - - If you experience problems, run make debug to help understand the docbook errors. - - - After making modifications to the manual, it's important to build it before committing. You can do that as follows: - -$ cd /path/to/nixpkgs/doc -$ nix-shell -[nix-shell]$ make clean -[nix-shell]$ nix-build . - - If the build succeeds, the manual will be in ./result/share/doc/nixpkgs/manual.html. - - diff --git a/doc/doc-support/parameters.xml b/doc/doc-support/parameters.xml index bc13e2b70dec9..e4b33e66ee4dd 100644 --- a/doc/doc-support/parameters.xml +++ b/doc/doc-support/parameters.xml @@ -8,7 +8,7 @@ - + diff --git a/doc/languages-frameworks/emscripten.section.md b/doc/languages-frameworks/emscripten.section.md index 24c49ec1409c2..80e1094809ade 100644 --- a/doc/languages-frameworks/emscripten.section.md +++ b/doc/languages-frameworks/emscripten.section.md @@ -1,4 +1,4 @@ -# User's Guide to Emscripten in Nixpkgs +# Emscripten [Emscripten](https://github.com/kripken/emscripten): An LLVM-to-JavaScript Compiler diff --git a/doc/languages-frameworks/haskell.section.md b/doc/languages-frameworks/haskell.section.md index 48d22831cd9b0..1e677450aa192 100644 --- a/doc/languages-frameworks/haskell.section.md +++ b/doc/languages-frameworks/haskell.section.md @@ -3,7 +3,7 @@ title: User's Guide for Haskell in Nixpkgs author: Peter Simons date: 2015-06-01 --- -# User's Guide to the Haskell Infrastructure +# Haskell ## How to install Haskell packages diff --git a/doc/languages-frameworks/idris.section.md b/doc/languages-frameworks/idris.section.md index e88015f08e3f8..8d7962d7fb9b2 100644 --- a/doc/languages-frameworks/idris.section.md +++ b/doc/languages-frameworks/idris.section.md @@ -1,4 +1,4 @@ -# Idris packages +# Idris ## Installing Idris diff --git a/doc/languages-frameworks/index.xml b/doc/languages-frameworks/index.xml index cd0b48adb14ab..86076085799e5 100644 --- a/doc/languages-frameworks/index.xml +++ b/doc/languages-frameworks/index.xml @@ -1,7 +1,7 @@ - Support for specific programming languages and frameworks + Languages and frameworks The standard build environment makes it easy to build typical Autotools-based packages with very little code. Any other kind of package can be accomodated by overriding the appropriate phases of stdenv. However, there are specialised functions in Nixpkgs to easily build packages for other programming languages, such as Perl or Haskell. These are described in this chapter. diff --git a/doc/languages-frameworks/node.section.md b/doc/languages-frameworks/node.section.md index c6dce04c7b8b0..4dc95fc1dd98f 100644 --- a/doc/languages-frameworks/node.section.md +++ b/doc/languages-frameworks/node.section.md @@ -1,5 +1,5 @@ -Node.js packages -================ +Node.js +======= The `pkgs/development/node-packages` folder contains a generated collection of [NPM packages](https://npmjs.com/) that can be installed with the Nix package manager. diff --git a/doc/languages-frameworks/r.section.md b/doc/languages-frameworks/r.section.md index c8f02bd147806..d4e1617779ce4 100644 --- a/doc/languages-frameworks/r.section.md +++ b/doc/languages-frameworks/r.section.md @@ -1,5 +1,5 @@ -R packages -========== +R += ## Installation diff --git a/doc/languages-frameworks/rust.section.md b/doc/languages-frameworks/rust.section.md index 83b7b159bd63d..31f1abd197b59 100644 --- a/doc/languages-frameworks/rust.section.md +++ b/doc/languages-frameworks/rust.section.md @@ -4,7 +4,7 @@ author: Matthias Beyer date: 2017-03-05 --- -# User's Guide to the Rust Infrastructure +# Rust To install the rust compiler and cargo put diff --git a/doc/languages-frameworks/vim.section.md b/doc/languages-frameworks/vim.section.md index 537e7b93e5230..05a23d26cf2f7 100644 --- a/doc/languages-frameworks/vim.section.md +++ b/doc/languages-frameworks/vim.section.md @@ -3,7 +3,7 @@ title: User's Guide for Vim in Nixpkgs author: Marc Weber date: 2016-06-25 --- -# User's Guide to Vim Plugins/Addons/Bundles/Scripts in Nixpkgs +# Vim Both Neovim and Vim can be configured to include your favorite plugins and additional libraries. diff --git a/doc/manual.xml b/doc/manual.xml index ab845e1a10866..7015e18d1e97b 100644 --- a/doc/manual.xml +++ b/doc/manual.xml @@ -6,20 +6,32 @@ - - - - - - - - - - - - - - - - + + Using Nixpkgs + + + + + + Standard environment + + + + + + + + Languages, frameworks and packages + + + + + + Contributing to Nixpkgs + + + + + + diff --git a/doc/platform-notes.xml b/doc/platform-notes.xml index d8d7692fc9a76..5a266fdc0eea0 100644 --- a/doc/platform-notes.xml +++ b/doc/platform-notes.xml @@ -1,6 +1,6 @@ + xml:id="chap-platform-notes"> Platform Notes
Darwin (macOS) diff --git a/doc/reviewing-contributions.xml b/doc/reviewing-contributions.xml index 5a14684f9b1e2..c6fb625678150 100644 --- a/doc/reviewing-contributions.xml +++ b/doc/reviewing-contributions.xml @@ -2,7 +2,7 @@ xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude" version="5.0" - xml:id="sec-reviewing-contributions"> + xml:id="chap-reviewing-contributions"> Reviewing contributions -- cgit 1.4.1 From 115018ff15528f51235a8ac45c4261b7bd6a8173 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Sun, 20 Oct 2019 12:37:45 +0200 Subject: doc: merge package notes and package-specific notes Maybe there was an idea behind this separation, but looking at the contents I don't see any reason for these being separate. --- doc/languages-frameworks/index.xml | 4 +- doc/manual.xml | 1 - doc/package-notes.xml | 351 +++++++++++++++++++++++++++++++++++ doc/package-specific-user-notes.xml | 357 ------------------------------------ 4 files changed, 353 insertions(+), 360 deletions(-) delete mode 100644 doc/package-specific-user-notes.xml (limited to 'doc') diff --git a/doc/languages-frameworks/index.xml b/doc/languages-frameworks/index.xml index 86076085799e5..9364c764bbf9f 100644 --- a/doc/languages-frameworks/index.xml +++ b/doc/languages-frameworks/index.xml @@ -9,6 +9,8 @@ + + @@ -27,6 +29,4 @@ - - diff --git a/doc/manual.xml b/doc/manual.xml index 7015e18d1e97b..1083af3cdd841 100644 --- a/doc/manual.xml +++ b/doc/manual.xml @@ -23,7 +23,6 @@ Languages, frameworks and packages - diff --git a/doc/package-notes.xml b/doc/package-notes.xml index 770b277cd9098..84b7e232eab60 100644 --- a/doc/package-notes.xml +++ b/doc/package-notes.xml @@ -419,4 +419,355 @@ stdenv.mkDerivation {
+
+ OpenGL + + + Packages that use OpenGL have NixOS desktop as their primary target. The current solution for loading the GPU-specific drivers is based on libglvnd and looks for the driver implementation in LD_LIBRARY_PATH. If you are using a non-NixOS GNU/Linux/X11 desktop with free software video drivers, consider launching OpenGL-dependent programs from Nixpkgs with Nixpkgs versions of libglvnd and mesa_drivers in LD_LIBRARY_PATH. For proprietary video drivers you might have luck with also adding the corresponding video driver package. + +
+
+ Locales + + + To allow simultaneous use of packages linked against different versions of glibc with different locale archive formats Nixpkgs patches glibc to rely on LOCALE_ARCHIVE environment variable. + + + + On non-NixOS distributions this variable is obviously not set. This can cause regressions in language support or even crashes in some Nixpkgs-provided programs. The simplest way to mitigate this problem is exporting the LOCALE_ARCHIVE variable pointing to ${glibcLocales}/lib/locale/locale-archive. The drawback (and the reason this is not the default) is the relatively large (a hundred MiB) size of the full set of locales. It is possible to build a custom set of locales by overriding parameters allLocales and locales of the package. + +
+
+ Emacs + +
+ Configuring Emacs + + + The Emacs package comes with some extra helpers to make it easier to configure. emacsWithPackages allows you to manage packages from ELPA. This means that you will not have to install that packages from within Emacs. For instance, if you wanted to use company, counsel, flycheck, ivy, magit, projectile, and use-package you could use this as a ~/.config/nixpkgs/config.nix override: + + + +{ + packageOverrides = pkgs: with pkgs; { + myEmacs = emacsWithPackages (epkgs: (with epkgs.melpaStablePackages; [ + company + counsel + flycheck + ivy + magit + projectile + use-package + ])); + } +} + + + + You can install it like any other packages via nix-env -iA myEmacs. However, this will only install those packages. It will not configure them for us. To do this, we need to provide a configuration file. Luckily, it is possible to do this from within Nix! By modifying the above example, we can make Emacs load a custom config file. The key is to create a package that provide a default.el file in /share/emacs/site-start/. Emacs knows to load this file automatically when it starts. + + + +{ + packageOverrides = pkgs: with pkgs; rec { + myEmacsConfig = writeText "default.el" '' +;; initialize package + +(require 'package) +(package-initialize 'noactivate) +(eval-when-compile + (require 'use-package)) + +;; load some packages + +(use-package company + :bind ("<C-tab>" . company-complete) + :diminish company-mode + :commands (company-mode global-company-mode) + :defer 1 + :config + (global-company-mode)) + +(use-package counsel + :commands (counsel-descbinds) + :bind (([remap execute-extended-command] . counsel-M-x) + ("C-x C-f" . counsel-find-file) + ("C-c g" . counsel-git) + ("C-c j" . counsel-git-grep) + ("C-c k" . counsel-ag) + ("C-x l" . counsel-locate) + ("M-y" . counsel-yank-pop))) + +(use-package flycheck + :defer 2 + :config (global-flycheck-mode)) + +(use-package ivy + :defer 1 + :bind (("C-c C-r" . ivy-resume) + ("C-x C-b" . ivy-switch-buffer) + :map ivy-minibuffer-map + ("C-j" . ivy-call)) + :diminish ivy-mode + :commands ivy-mode + :config + (ivy-mode 1)) + +(use-package magit + :defer + :if (executable-find "git") + :bind (("C-x g" . magit-status) + ("C-x G" . magit-dispatch-popup)) + :init + (setq magit-completing-read-function 'ivy-completing-read)) + +(use-package projectile + :commands projectile-mode + :bind-keymap ("C-c p" . projectile-command-map) + :defer 5 + :config + (projectile-global-mode)) + ''; + myEmacs = emacsWithPackages (epkgs: (with epkgs.melpaStablePackages; [ + (runCommand "default.el" {} '' +mkdir -p $out/share/emacs/site-lisp +cp ${myEmacsConfig} $out/share/emacs/site-lisp/default.el +'') + company + counsel + flycheck + ivy + magit + projectile + use-package + ])); + }; +} + + + + This provides a fairly full Emacs start file. It will load in addition to the user's presonal config. You can always disable it by passing -q to the Emacs command. + + + + Sometimes emacsWithPackages is not enough, as this package set has some priorities imposed on packages (with the lowest priority assigned to Melpa Unstable, and the highest for packages manually defined in pkgs/top-level/emacs-packages.nix). But you can't control this priorities when some package is installed as a dependency. You can override it on per-package-basis, providing all the required dependencies manually - but it's tedious and there is always a possibility that an unwanted dependency will sneak in through some other package. To completely override such a package you can use overrideScope'. + + + +overrides = self: super: rec { + haskell-mode = self.melpaPackages.haskell-mode; + ... +}; +((emacsPackagesGen emacs).overrideScope' overrides).emacsWithPackages (p: with p; [ + # here both these package will use haskell-mode of our own choice + ghc-mod + dante +]) + +
+
+
+ DLib + + + DLib is a modern, C++-based toolkit which provides several machine learning algorithms. + + +
+ Compiling without AVX support + + + Especially older CPUs don't support AVX (Advanced Vector Extensions) instructions that are used by DLib to optimize their algorithms. + + + + On the affected hardware errors like Illegal instruction will occur. In those cases AVX support needs to be disabled: +self: super: { + dlib = super.dlib.override { avxSupport = false; }; +} + +
+
+
+ Unfree software + + + All users of Nixpkgs are free software users, and many users (and developers) of Nixpkgs want to limit and tightly control their exposure to unfree software. At the same time, many users need (or want) to run some specific pieces of proprietary software. Nixpkgs includes some expressions for unfree software packages. By default unfree software cannot be installed and doesn’t show up in searches. To allow installing unfree software in a single Nix invocation one can export NIXPKGS_ALLOW_UNFREE=1. For a persistent solution, users can set allowUnfree in the Nixpkgs configuration. + + + + Fine-grained control is possible by defining allowUnfreePredicate function in config; it takes the mkDerivation parameter attrset and returns true for unfree packages that should be allowed. + +
+
+ Steam + +
+ Steam in Nix + + + Steam is distributed as a .deb file, for now only as an i686 package (the amd64 package only has documentation). When unpacked, it has a script called steam that in Ubuntu (their target distro) would go to /usr/bin . When run for the first time, this script copies some files to the user's home, which include another script that is the ultimate responsible for launching the steam binary, which is also in $HOME. + + + + Nix problems and constraints: + + + + We don't have /bin/bash and many scripts point there. Similarly for /usr/bin/python . + + + + + We don't have the dynamic loader in /lib . + + + + + The steam.sh script in $HOME can not be patched, as it is checked and rewritten by steam. + + + + + The steam binary cannot be patched, it's also checked. + + + + + + + The current approach to deploy Steam in NixOS is composing a FHS-compatible chroot environment, as documented here. This allows us to have binaries in the expected paths without disrupting the system, and to avoid patching them to work in a non FHS environment. + +
+ +
+ How to play + + + For 64-bit systems it's important to have +hardware.opengl.driSupport32Bit = true; + in your /etc/nixos/configuration.nix. You'll also need +hardware.pulseaudio.support32Bit = true; + if you are using PulseAudio - this will enable 32bit ALSA apps integration. To use the Steam controller or other Steam supported controllers such as the DualShock 4 or Nintendo Switch Pro, you need to add +hardware.steam-hardware.enable = true; + to your configuration. + +
+ +
+ Troubleshooting + + + + + + Steam fails to start. What do I do? + + + + Try to run +strace steam + to see what is causing steam to fail. + + + + + + Using the FOSS Radeon or nouveau (nvidia) drivers + + + + + + The newStdcpp parameter was removed since NixOS 17.09 and should not be needed anymore. + + + + + Steam ships statically linked with a version of libcrypto that conflics with the one dynamically loaded by radeonsi_dri.so. If you get the error +steam.sh: line 713: 7842 Segmentation fault (core dumped) + have a look at this pull request. + + + + + + + + Java + + + + + + There is no java in steam chrootenv by default. If you get a message like +/home/foo/.local/share/Steam/SteamApps/common/towns/towns.sh: line 1: java: command not found + You need to add + steam.override { withJava = true; }; + to your configuration. + + + + + + + +
+ +
+ steam-run + + + The FHS-compatible chroot used for steam can also be used to run other linux games that expect a FHS environment. To do it, add +pkgs.(steam.override { + nativeOnly = true; + newStdcpp = true; + }).run + to your configuration, rebuild, and run the game with +steam-run ./foo + +
+
+
+ Citrix Receiver & Citrix Workspace App + + + + + Please note that the citrix_receiver package has been deprecated since its development was discontinued by upstream and has been replaced by the citrix workspace app. + + + Citrix Receiver and Citrix Workspace App are a remote desktop viewers which provide access to XenDesktop installations. + + +
+ Basic usage + + + The tarball archive needs to be downloaded manually as the license agreements of the vendor for Citrix Receiver or Citrix Workspace need to be accepted first. Then run nix-prefetch-url file://$PWD/linuxx64-$version.tar.gz. With the archive available in the store the package can be built and installed with Nix. + + + + Caution with <command>nix-shell</command> installs + + It's recommended to install Citrix Receiver and/or Citrix Workspace using nix-env -i or globally to ensure that the .desktop files are installed properly into $XDG_CONFIG_DIRS. Otherwise it won't be possible to open .ica files automatically from the browser to start a Citrix connection. + + +
+ +
+ Custom certificates + + + The Citrix Workspace App in nixpkgs trust several certificates from the Mozilla database by default. However several companies using Citrix might require their own corporate certificate. On distros with imperative packaging these certs can be stored easily in $ICAROOT, however this directory is a store path in nixpkgs. In order to work around this issue the package provides a simple mechanism to add custom certificates without rebuilding the entire package using symlinkJoin: + + { config.allowUnfree = true; }; +let extraCerts = [ ./custom-cert-1.pem ./custom-cert-2.pem /* ... */ ]; in +citrix_workspace.override { + inherit extraCerts; +}]]> + + +
+
diff --git a/doc/package-specific-user-notes.xml b/doc/package-specific-user-notes.xml deleted file mode 100644 index a3ee42dc7fa0f..0000000000000 --- a/doc/package-specific-user-notes.xml +++ /dev/null @@ -1,357 +0,0 @@ - - Package-specific usage notes - - These chapters includes some notes that apply to specific packages and should answer some of the frequently asked questions related to Nixpkgs use. Some useful information related to package use can be found in package-specific development notes. - -
- OpenGL - - - Packages that use OpenGL have NixOS desktop as their primary target. The current solution for loading the GPU-specific drivers is based on libglvnd and looks for the driver implementation in LD_LIBRARY_PATH. If you are using a non-NixOS GNU/Linux/X11 desktop with free software video drivers, consider launching OpenGL-dependent programs from Nixpkgs with Nixpkgs versions of libglvnd and mesa_drivers in LD_LIBRARY_PATH. For proprietary video drivers you might have luck with also adding the corresponding video driver package. - -
-
- Locales - - - To allow simultaneous use of packages linked against different versions of glibc with different locale archive formats Nixpkgs patches glibc to rely on LOCALE_ARCHIVE environment variable. - - - - On non-NixOS distributions this variable is obviously not set. This can cause regressions in language support or even crashes in some Nixpkgs-provided programs. The simplest way to mitigate this problem is exporting the LOCALE_ARCHIVE variable pointing to ${glibcLocales}/lib/locale/locale-archive. The drawback (and the reason this is not the default) is the relatively large (a hundred MiB) size of the full set of locales. It is possible to build a custom set of locales by overriding parameters allLocales and locales of the package. - -
-
- Emacs - -
- Configuring Emacs - - - The Emacs package comes with some extra helpers to make it easier to configure. emacsWithPackages allows you to manage packages from ELPA. This means that you will not have to install that packages from within Emacs. For instance, if you wanted to use company, counsel, flycheck, ivy, magit, projectile, and use-package you could use this as a ~/.config/nixpkgs/config.nix override: - - - -{ - packageOverrides = pkgs: with pkgs; { - myEmacs = emacsWithPackages (epkgs: (with epkgs.melpaStablePackages; [ - company - counsel - flycheck - ivy - magit - projectile - use-package - ])); - } -} - - - - You can install it like any other packages via nix-env -iA myEmacs. However, this will only install those packages. It will not configure them for us. To do this, we need to provide a configuration file. Luckily, it is possible to do this from within Nix! By modifying the above example, we can make Emacs load a custom config file. The key is to create a package that provide a default.el file in /share/emacs/site-start/. Emacs knows to load this file automatically when it starts. - - - -{ - packageOverrides = pkgs: with pkgs; rec { - myEmacsConfig = writeText "default.el" '' -;; initialize package - -(require 'package) -(package-initialize 'noactivate) -(eval-when-compile - (require 'use-package)) - -;; load some packages - -(use-package company - :bind ("<C-tab>" . company-complete) - :diminish company-mode - :commands (company-mode global-company-mode) - :defer 1 - :config - (global-company-mode)) - -(use-package counsel - :commands (counsel-descbinds) - :bind (([remap execute-extended-command] . counsel-M-x) - ("C-x C-f" . counsel-find-file) - ("C-c g" . counsel-git) - ("C-c j" . counsel-git-grep) - ("C-c k" . counsel-ag) - ("C-x l" . counsel-locate) - ("M-y" . counsel-yank-pop))) - -(use-package flycheck - :defer 2 - :config (global-flycheck-mode)) - -(use-package ivy - :defer 1 - :bind (("C-c C-r" . ivy-resume) - ("C-x C-b" . ivy-switch-buffer) - :map ivy-minibuffer-map - ("C-j" . ivy-call)) - :diminish ivy-mode - :commands ivy-mode - :config - (ivy-mode 1)) - -(use-package magit - :defer - :if (executable-find "git") - :bind (("C-x g" . magit-status) - ("C-x G" . magit-dispatch-popup)) - :init - (setq magit-completing-read-function 'ivy-completing-read)) - -(use-package projectile - :commands projectile-mode - :bind-keymap ("C-c p" . projectile-command-map) - :defer 5 - :config - (projectile-global-mode)) - ''; - myEmacs = emacsWithPackages (epkgs: (with epkgs.melpaStablePackages; [ - (runCommand "default.el" {} '' -mkdir -p $out/share/emacs/site-lisp -cp ${myEmacsConfig} $out/share/emacs/site-lisp/default.el -'') - company - counsel - flycheck - ivy - magit - projectile - use-package - ])); - }; -} - - - - This provides a fairly full Emacs start file. It will load in addition to the user's presonal config. You can always disable it by passing -q to the Emacs command. - - - - Sometimes emacsWithPackages is not enough, as this package set has some priorities imposed on packages (with the lowest priority assigned to Melpa Unstable, and the highest for packages manually defined in pkgs/top-level/emacs-packages.nix). But you can't control this priorities when some package is installed as a dependency. You can override it on per-package-basis, providing all the required dependencies manually - but it's tedious and there is always a possibility that an unwanted dependency will sneak in through some other package. To completely override such a package you can use overrideScope'. - - - -overrides = self: super: rec { - haskell-mode = self.melpaPackages.haskell-mode; - ... -}; -((emacsPackagesGen emacs).overrideScope' overrides).emacsWithPackages (p: with p; [ - # here both these package will use haskell-mode of our own choice - ghc-mod - dante -]) - -
-
-
- DLib - - - DLib is a modern, C++-based toolkit which provides several machine learning algorithms. - - -
- Compiling without AVX support - - - Especially older CPUs don't support AVX (Advanced Vector Extensions) instructions that are used by DLib to optimize their algorithms. - - - - On the affected hardware errors like Illegal instruction will occur. In those cases AVX support needs to be disabled: -self: super: { - dlib = super.dlib.override { avxSupport = false; }; -} - -
-
-
- Unfree software - - - All users of Nixpkgs are free software users, and many users (and developers) of Nixpkgs want to limit and tightly control their exposure to unfree software. At the same time, many users need (or want) to run some specific pieces of proprietary software. Nixpkgs includes some expressions for unfree software packages. By default unfree software cannot be installed and doesn’t show up in searches. To allow installing unfree software in a single Nix invocation one can export NIXPKGS_ALLOW_UNFREE=1. For a persistent solution, users can set allowUnfree in the Nixpkgs configuration. - - - - Fine-grained control is possible by defining allowUnfreePredicate function in config; it takes the mkDerivation parameter attrset and returns true for unfree packages that should be allowed. - -
-
- Steam - -
- Steam in Nix - - - Steam is distributed as a .deb file, for now only as an i686 package (the amd64 package only has documentation). When unpacked, it has a script called steam that in Ubuntu (their target distro) would go to /usr/bin . When run for the first time, this script copies some files to the user's home, which include another script that is the ultimate responsible for launching the steam binary, which is also in $HOME. - - - - Nix problems and constraints: - - - - We don't have /bin/bash and many scripts point there. Similarly for /usr/bin/python . - - - - - We don't have the dynamic loader in /lib . - - - - - The steam.sh script in $HOME can not be patched, as it is checked and rewritten by steam. - - - - - The steam binary cannot be patched, it's also checked. - - - - - - - The current approach to deploy Steam in NixOS is composing a FHS-compatible chroot environment, as documented here. This allows us to have binaries in the expected paths without disrupting the system, and to avoid patching them to work in a non FHS environment. - -
- -
- How to play - - - For 64-bit systems it's important to have -hardware.opengl.driSupport32Bit = true; - in your /etc/nixos/configuration.nix. You'll also need -hardware.pulseaudio.support32Bit = true; - if you are using PulseAudio - this will enable 32bit ALSA apps integration. To use the Steam controller or other Steam supported controllers such as the DualShock 4 or Nintendo Switch Pro, you need to add -hardware.steam-hardware.enable = true; - to your configuration. - -
- -
- Troubleshooting - - - - - - Steam fails to start. What do I do? - - - - Try to run -strace steam - to see what is causing steam to fail. - - - - - - Using the FOSS Radeon or nouveau (nvidia) drivers - - - - - - The newStdcpp parameter was removed since NixOS 17.09 and should not be needed anymore. - - - - - Steam ships statically linked with a version of libcrypto that conflics with the one dynamically loaded by radeonsi_dri.so. If you get the error -steam.sh: line 713: 7842 Segmentation fault (core dumped) - have a look at this pull request. - - - - - - - - Java - - - - - - There is no java in steam chrootenv by default. If you get a message like -/home/foo/.local/share/Steam/SteamApps/common/towns/towns.sh: line 1: java: command not found - You need to add - steam.override { withJava = true; }; - to your configuration. - - - - - - - -
- -
- steam-run - - - The FHS-compatible chroot used for steam can also be used to run other linux games that expect a FHS environment. To do it, add -pkgs.(steam.override { - nativeOnly = true; - newStdcpp = true; - }).run - to your configuration, rebuild, and run the game with -steam-run ./foo - -
-
-
- Citrix Receiver & Citrix Workspace App - - - - - Please note that the citrix_receiver package has been deprecated since its development was discontinued by upstream and has been replaced by the citrix workspace app. - - - Citrix Receiver and Citrix Workspace App are a remote desktop viewers which provide access to XenDesktop installations. - - -
- Basic usage - - - The tarball archive needs to be downloaded manually as the license agreements of the vendor for Citrix Receiver or Citrix Workspace need to be accepted first. Then run nix-prefetch-url file://$PWD/linuxx64-$version.tar.gz. With the archive available in the store the package can be built and installed with Nix. - - - - Caution with <command>nix-shell</command> installs - - It's recommended to install Citrix Receiver and/or Citrix Workspace using nix-env -i or globally to ensure that the .desktop files are installed properly into $XDG_CONFIG_DIRS. Otherwise it won't be possible to open .ica files automatically from the browser to start a Citrix connection. - - -
- -
- Custom certificates - - - The Citrix Workspace App in nixpkgs trust several certificates from the Mozilla database by default. However several companies using Citrix might require their own corporate certificate. On distros with imperative packaging these certs can be stored easily in $ICAROOT, however this directory is a store path in nixpkgs. In order to work around this issue the package provides a simple mechanism to add custom certificates without rebuilding the entire package using symlinkJoin: - - { config.allowUnfree = true; }; -let extraCerts = [ ./custom-cert-1.pem ./custom-cert-2.pem /* ... */ ]; in -citrix_workspace.override { - inherit extraCerts; -}]]> - - -
-
-
-- cgit 1.4.1 From efb55d2a42e1b047c65b1d125cc955df84f8e0af Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Sun, 20 Oct 2019 13:14:30 +0200 Subject: doc: split packages part into xml file per package --- doc/manual.xml | 2 +- doc/package-notes.xml | 773 ----------------------------------------- doc/packages/citrix.xml | 44 +++ doc/packages/dlib.xml | 24 ++ doc/packages/eclipse.xml | 72 ++++ doc/packages/elm.xml | 17 + doc/packages/emacs.xml | 131 +++++++ doc/packages/ibus.xml | 57 +++ doc/packages/index.xml | 23 ++ doc/packages/kakoune.xml | 14 + doc/packages/linux.xml | 85 +++++ doc/packages/locales.xml | 13 + doc/packages/nginx.xml | 25 ++ doc/packages/opengl.xml | 9 + doc/packages/shell-helpers.xml | 25 ++ doc/packages/steam.xml | 131 +++++++ doc/packages/unfree.xml | 13 + doc/packages/weechat.xml | 85 +++++ doc/packages/xorg.xml | 34 ++ 19 files changed, 803 insertions(+), 774 deletions(-) delete mode 100644 doc/package-notes.xml create mode 100644 doc/packages/citrix.xml create mode 100644 doc/packages/dlib.xml create mode 100644 doc/packages/eclipse.xml create mode 100644 doc/packages/elm.xml create mode 100644 doc/packages/emacs.xml create mode 100644 doc/packages/ibus.xml create mode 100644 doc/packages/index.xml create mode 100644 doc/packages/kakoune.xml create mode 100644 doc/packages/linux.xml create mode 100644 doc/packages/locales.xml create mode 100644 doc/packages/nginx.xml create mode 100644 doc/packages/opengl.xml create mode 100644 doc/packages/shell-helpers.xml create mode 100644 doc/packages/steam.xml create mode 100644 doc/packages/unfree.xml create mode 100644 doc/packages/weechat.xml create mode 100644 doc/packages/xorg.xml (limited to 'doc') diff --git a/doc/manual.xml b/doc/manual.xml index 1083af3cdd841..001a5f3eca539 100644 --- a/doc/manual.xml +++ b/doc/manual.xml @@ -23,7 +23,7 @@ Languages, frameworks and packages - + Contributing to Nixpkgs diff --git a/doc/package-notes.xml b/doc/package-notes.xml deleted file mode 100644 index 84b7e232eab60..0000000000000 --- a/doc/package-notes.xml +++ /dev/null @@ -1,773 +0,0 @@ - - Package Notes - - This chapter contains information about how to use and maintain the Nix expressions for a number of specific packages, such as the Linux kernel or X.org. - - -
- Linux kernel - - - The Nix expressions to build the Linux kernel are in pkgs/os-specific/linux/kernel. - - - - The function that builds the kernel has an argument kernelPatches which should be a list of {name, patch, extraConfig} attribute sets, where name is the name of the patch (which is included in the kernel’s meta.description attribute), patch is the patch itself (possibly compressed), and extraConfig (optional) is a string specifying extra options to be concatenated to the kernel configuration file (.config). - - - - The kernel derivation exports an attribute features specifying whether optional functionality is or isn’t enabled. This is used in NixOS to implement kernel-specific behaviour. For instance, if the kernel has the iwlwifi feature (i.e. has built-in support for Intel wireless chipsets), then NixOS doesn’t have to build the external iwlwifi package: - -modulesTree = [kernel] - ++ pkgs.lib.optional (!kernel.features ? iwlwifi) kernelPackages.iwlwifi - ++ ...; - - - - - How to add a new (major) version of the Linux kernel to Nixpkgs: - - - - Copy the old Nix expression (e.g. linux-2.6.21.nix) to the new one (e.g. linux-2.6.22.nix) and update it. - - - - - Add the new kernel to all-packages.nix (e.g., create an attribute kernel_2_6_22). - - - - - Now we’re going to update the kernel configuration. First unpack the kernel. Then for each supported platform (i686, x86_64, uml) do the following: - - - - Make an copy from the old config (e.g. config-2.6.21-i686-smp) to the new one (e.g. config-2.6.22-i686-smp). - - - - - Copy the config file for this platform (e.g. config-2.6.22-i686-smp) to .config in the kernel source tree. - - - - - Run make oldconfig ARCH={i386,x86_64,um} and answer all questions. (For the uml configuration, also add SHELL=bash.) Make sure to keep the configuration consistent between platforms (i.e. don’t enable some feature on i686 and disable it on x86_64). - - - - - If needed you can also run make menuconfig: - -$ nix-env -i ncurses -$ export NIX_CFLAGS_LINK=-lncurses -$ make menuconfig ARCH=arch - - - - - Copy .config over the new config file (e.g. config-2.6.22-i686-smp). - - - - - - - - Test building the kernel: nix-build -A kernel_2_6_22. If it compiles, ship it! For extra credit, try booting NixOS with it. - - - - - It may be that the new kernel requires updating the external kernel modules and kernel-dependent packages listed in the linuxPackagesFor function in all-packages.nix (such as the NVIDIA drivers, AUFS, etc.). If the updated packages aren’t backwards compatible with older kernels, you may need to keep the older versions around. - - - - -
- -
- X.org - - - The Nix expressions for the X.org packages reside in pkgs/servers/x11/xorg/default.nix. This file is automatically generated from lists of tarballs in an X.org release. As such it should not be modified directly; rather, you should modify the lists, the generator script or the file pkgs/servers/x11/xorg/overrides.nix, in which you can override or add to the derivations produced by the generator. - - - - The generator is invoked as follows: - -$ cd pkgs/servers/x11/xorg -$ cat tarballs-7.5.list extra.list old.list \ - | perl ./generate-expr-from-tarballs.pl - - For each of the tarballs in the .list files, the script downloads it, unpacks it, and searches its configure.ac and *.pc.in files for dependencies. This information is used to generate default.nix. The generator caches downloaded tarballs between runs. Pay close attention to the NOT FOUND: name messages at the end of the run, since they may indicate missing dependencies. (Some might be optional dependencies, however.) - - - - A file like tarballs-7.5.list contains all tarballs in a X.org release. It can be generated like this: - -$ export i="mirror://xorg/X11R7.4/src/everything/" -$ cat $(PRINT_PATH=1 nix-prefetch-url $i | tail -n 1) \ - | perl -e 'while (<>) { if (/(href|HREF)="([^"]*.bz2)"/) { print "$ENV{'i'}$2\n"; }; }' \ - | sort > tarballs-7.4.list - - extra.list contains libraries that aren’t part of X.org proper, but are closely related to it, such as libxcb. old.list contains some packages that were removed from X.org, but are still needed by some people or by other packages (such as imake). - - - - If the expression for a package requires derivation attributes that the generator cannot figure out automatically (say, patches or a postInstall hook), you should modify pkgs/servers/x11/xorg/overrides.nix. - -
- - - - - -
- Eclipse - - - The Nix expressions related to the Eclipse platform and IDE are in pkgs/applications/editors/eclipse. - - - - Nixpkgs provides a number of packages that will install Eclipse in its various forms. These range from the bare-bones Eclipse Platform to the more fully featured Eclipse SDK or Scala-IDE packages and multiple version are often available. It is possible to list available Eclipse packages by issuing the command: - -$ nix-env -f '<nixpkgs>' -qaP -A eclipses --description - - Once an Eclipse variant is installed it can be run using the eclipse command, as expected. From within Eclipse it is then possible to install plugins in the usual manner by either manually specifying an Eclipse update site or by installing the Marketplace Client plugin and using it to discover and install other plugins. This installation method provides an Eclipse installation that closely resemble a manually installed Eclipse. - - - - If you prefer to install plugins in a more declarative manner then Nixpkgs also offer a number of Eclipse plugins that can be installed in an Eclipse environment. This type of environment is created using the function eclipseWithPlugins found inside the nixpkgs.eclipses attribute set. This function takes as argument { eclipse, plugins ? [], jvmArgs ? [] } where eclipse is a one of the Eclipse packages described above, plugins is a list of plugin derivations, and jvmArgs is a list of arguments given to the JVM running the Eclipse. For example, say you wish to install the latest Eclipse Platform with the popular Eclipse Color Theme plugin and also allow Eclipse to use more RAM. You could then add - -packageOverrides = pkgs: { - myEclipse = with pkgs.eclipses; eclipseWithPlugins { - eclipse = eclipse-platform; - jvmArgs = [ "-Xmx2048m" ]; - plugins = [ plugins.color-theme ]; - }; -} - - to your Nixpkgs configuration (~/.config/nixpkgs/config.nix) and install it by running nix-env -f '<nixpkgs>' -iA myEclipse and afterward run Eclipse as usual. It is possible to find out which plugins are available for installation using eclipseWithPlugins by running - -$ nix-env -f '<nixpkgs>' -qaP -A eclipses.plugins --description - - - - - If there is a need to install plugins that are not available in Nixpkgs then it may be possible to define these plugins outside Nixpkgs using the buildEclipseUpdateSite and buildEclipsePlugin functions found in the nixpkgs.eclipses.plugins attribute set. Use the buildEclipseUpdateSite function to install a plugin distributed as an Eclipse update site. This function takes { name, src } as argument where src indicates the Eclipse update site archive. All Eclipse features and plugins within the downloaded update site will be installed. When an update site archive is not available then the buildEclipsePlugin function can be used to install a plugin that consists of a pair of feature and plugin JARs. This function takes an argument { name, srcFeature, srcPlugin } where srcFeature and srcPlugin are the feature and plugin JARs, respectively. - - - - Expanding the previous example with two plugins using the above functions we have - -packageOverrides = pkgs: { - myEclipse = with pkgs.eclipses; eclipseWithPlugins { - eclipse = eclipse-platform; - jvmArgs = [ "-Xmx2048m" ]; - plugins = [ - plugins.color-theme - (plugins.buildEclipsePlugin { - name = "myplugin1-1.0"; - srcFeature = fetchurl { - url = "http://…/features/myplugin1.jar"; - sha256 = "123…"; - }; - srcPlugin = fetchurl { - url = "http://…/plugins/myplugin1.jar"; - sha256 = "123…"; - }; - }); - (plugins.buildEclipseUpdateSite { - name = "myplugin2-1.0"; - src = fetchurl { - stripRoot = false; - url = "http://…/myplugin2.zip"; - sha256 = "123…"; - }; - }); - ]; - }; -} - - -
-
- Elm - - - To start a development environment do nix-shell -p elmPackages.elm elmPackages.elm-format - - - - To update Elm compiler, see nixpkgs/pkgs/development/compilers/elm/README.md. - - - - To package Elm applications, read about elm2nix. - -
-
- Kakoune - - - Kakoune can be built to autoload plugins: -(kakoune.override { - configure = { - plugins = with pkgs.kakounePlugins; [ parinfer-rust ]; - }; -}) - -
-
- Interactive shell helpers - - - Some packages provide the shell integration to be more useful. But unlike other systems, nix doesn't have a standard share directory location. This is why a bunch PACKAGE-share scripts are shipped that print the location of the corresponding shared folder. Current list of such packages is as following: - - - - autojump: autojump-share - - - - - fzf: fzf-share - - - - E.g. autojump can then used in the .bashrc like this: - - source "$(autojump-share)/autojump.bash" - - -
-
- Weechat - - - Weechat can be configured to include your choice of plugins, reducing its closure size from the default configuration which includes all available plugins. To make use of this functionality, install an expression that overrides its configuration such as -weechat.override {configure = {availablePlugins, ...}: { - plugins = with availablePlugins; [ python perl ]; - } -} - If the configure function returns an attrset without the plugins attribute, availablePlugins will be used automatically. - - - - The plugins currently available are python, perl, ruby, guile, tcl and lua. - - - - The python and perl plugins allows the addition of extra libraries. For instance, the inotify.py script in weechat-scripts requires D-Bus or libnotify, and the fish.py script requires pycrypto. To use these scripts, use the plugin's withPackages attribute: -weechat.override { configure = {availablePlugins, ...}: { - plugins = with availablePlugins; [ - (python.withPackages (ps: with ps; [ pycrypto python-dbus ])) - ]; - }; -} - - - - - In order to also keep all default plugins installed, it is possible to use the following method: -weechat.override { configure = { availablePlugins, ... }: { - plugins = builtins.attrValues (availablePlugins // { - python = availablePlugins.python.withPackages (ps: with ps; [ pycrypto python-dbus ]); - }); -}; } - - - - - WeeChat allows to set defaults on startup using the --run-command. The configure method can be used to pass commands to the program: -weechat.override { - configure = { availablePlugins, ... }: { - init = '' - /set foo bar - /server add freenode chat.freenode.org - ''; - }; -} - Further values can be added to the list of commands when running weechat --run-command "your-commands". - - - - Additionally it's possible to specify scripts to be loaded when starting weechat. These will be loaded before the commands from init: -weechat.override { - configure = { availablePlugins, ... }: { - scripts = with pkgs.weechatScripts; [ - weechat-xmpp weechat-matrix-bridge wee-slack - ]; - init = '' - /set plugins.var.python.jabber.key "val" - '': - }; -} - - - - In nixpkgs there's a subpackage which contains derivations for WeeChat scripts. Such derivations expect a passthru.scripts attribute which contains a list of all scripts inside the store path. Furthermore all scripts have to live in $out/share. An exemplary derivation looks like this: -{ stdenv, fetchurl }: - -stdenv.mkDerivation { - name = "exemplary-weechat-script"; - src = fetchurl { - url = "https://scripts.tld/your-scripts.tar.gz"; - sha256 = "..."; - }; - passthru.scripts = [ "foo.py" "bar.lua" ]; - installPhase = '' - mkdir $out/share - cp foo.py $out/share - cp bar.lua $out/share - ''; -} - -
-
- ibus-engines.typing-booster - - - This package is an ibus-based completion method to speed up typing. - - -
- Activating the engine - - - IBus needs to be configured accordingly to activate typing-booster. The configuration depends on the desktop manager in use. For detailed instructions, please refer to the upstream docs. - - - - On NixOS you need to explicitly enable ibus with given engines before customizing your desktop to use typing-booster. This can be achieved using the ibus module: -{ pkgs, ... }: { - i18n.inputMethod = { - enabled = "ibus"; - ibus.engines = with pkgs.ibus-engines; [ typing-booster ]; - }; -} - -
- -
- Using custom hunspell dictionaries - - - The IBus engine is based on hunspell to support completion in many languages. By default the dictionaries de-de, en-us, fr-moderne es-es, it-it, sv-se and sv-fi are in use. To add another dictionary, the package can be overridden like this: -ibus-engines.typing-booster.override { - langs = [ "de-at" "en-gb" ]; -} - - - - Note: each language passed to langs must be an attribute name in pkgs.hunspellDicts. - -
- -
- Built-in emoji picker - - - The ibus-engines.typing-booster package contains a program named emoji-picker. To display all emojis correctly, a special font such as noto-fonts-emoji is needed: - - - - On NixOS it can be installed using the following expression: -{ pkgs, ... }: { - fonts.fonts = with pkgs; [ noto-fonts-emoji ]; -} - -
-
-
- Nginx - - - Nginx is a reverse proxy and lightweight webserver. - - -
- ETags on static files served from the Nix store - - - HTTP has a couple different mechanisms for caching to prevent clients from having to download the same content repeatedly if a resource has not changed since the last time it was requested. When nginx is used as a server for static files, it implements the caching mechanism based on the Last-Modified response header automatically; unfortunately, it works by using filesystem timestamps to determine the value of the Last-Modified header. This doesn't give the desired behavior when the file is in the Nix store, because all file timestamps are set to 0 (for reasons related to build reproducibility). - - - - Fortunately, HTTP supports an alternative (and more effective) caching mechanism: the ETag response header. The value of the ETag header specifies some identifier for the particular content that the server is sending (e.g. a hash). When a client makes a second request for the same resource, it sends that value back in an If-None-Match header. If the ETag value is unchanged, then the server does not need to resend the content. - - - - As of NixOS 19.09, the nginx package in Nixpkgs is patched such that when nginx serves a file out of /nix/store, the hash in the store path is used as the ETag header in the HTTP response, thus providing proper caching functionality. This happens automatically; you do not need to do modify any configuration to get this behavior. - -
-
-
- OpenGL - - - Packages that use OpenGL have NixOS desktop as their primary target. The current solution for loading the GPU-specific drivers is based on libglvnd and looks for the driver implementation in LD_LIBRARY_PATH. If you are using a non-NixOS GNU/Linux/X11 desktop with free software video drivers, consider launching OpenGL-dependent programs from Nixpkgs with Nixpkgs versions of libglvnd and mesa_drivers in LD_LIBRARY_PATH. For proprietary video drivers you might have luck with also adding the corresponding video driver package. - -
-
- Locales - - - To allow simultaneous use of packages linked against different versions of glibc with different locale archive formats Nixpkgs patches glibc to rely on LOCALE_ARCHIVE environment variable. - - - - On non-NixOS distributions this variable is obviously not set. This can cause regressions in language support or even crashes in some Nixpkgs-provided programs. The simplest way to mitigate this problem is exporting the LOCALE_ARCHIVE variable pointing to ${glibcLocales}/lib/locale/locale-archive. The drawback (and the reason this is not the default) is the relatively large (a hundred MiB) size of the full set of locales. It is possible to build a custom set of locales by overriding parameters allLocales and locales of the package. - -
-
- Emacs - -
- Configuring Emacs - - - The Emacs package comes with some extra helpers to make it easier to configure. emacsWithPackages allows you to manage packages from ELPA. This means that you will not have to install that packages from within Emacs. For instance, if you wanted to use company, counsel, flycheck, ivy, magit, projectile, and use-package you could use this as a ~/.config/nixpkgs/config.nix override: - - - -{ - packageOverrides = pkgs: with pkgs; { - myEmacs = emacsWithPackages (epkgs: (with epkgs.melpaStablePackages; [ - company - counsel - flycheck - ivy - magit - projectile - use-package - ])); - } -} - - - - You can install it like any other packages via nix-env -iA myEmacs. However, this will only install those packages. It will not configure them for us. To do this, we need to provide a configuration file. Luckily, it is possible to do this from within Nix! By modifying the above example, we can make Emacs load a custom config file. The key is to create a package that provide a default.el file in /share/emacs/site-start/. Emacs knows to load this file automatically when it starts. - - - -{ - packageOverrides = pkgs: with pkgs; rec { - myEmacsConfig = writeText "default.el" '' -;; initialize package - -(require 'package) -(package-initialize 'noactivate) -(eval-when-compile - (require 'use-package)) - -;; load some packages - -(use-package company - :bind ("<C-tab>" . company-complete) - :diminish company-mode - :commands (company-mode global-company-mode) - :defer 1 - :config - (global-company-mode)) - -(use-package counsel - :commands (counsel-descbinds) - :bind (([remap execute-extended-command] . counsel-M-x) - ("C-x C-f" . counsel-find-file) - ("C-c g" . counsel-git) - ("C-c j" . counsel-git-grep) - ("C-c k" . counsel-ag) - ("C-x l" . counsel-locate) - ("M-y" . counsel-yank-pop))) - -(use-package flycheck - :defer 2 - :config (global-flycheck-mode)) - -(use-package ivy - :defer 1 - :bind (("C-c C-r" . ivy-resume) - ("C-x C-b" . ivy-switch-buffer) - :map ivy-minibuffer-map - ("C-j" . ivy-call)) - :diminish ivy-mode - :commands ivy-mode - :config - (ivy-mode 1)) - -(use-package magit - :defer - :if (executable-find "git") - :bind (("C-x g" . magit-status) - ("C-x G" . magit-dispatch-popup)) - :init - (setq magit-completing-read-function 'ivy-completing-read)) - -(use-package projectile - :commands projectile-mode - :bind-keymap ("C-c p" . projectile-command-map) - :defer 5 - :config - (projectile-global-mode)) - ''; - myEmacs = emacsWithPackages (epkgs: (with epkgs.melpaStablePackages; [ - (runCommand "default.el" {} '' -mkdir -p $out/share/emacs/site-lisp -cp ${myEmacsConfig} $out/share/emacs/site-lisp/default.el -'') - company - counsel - flycheck - ivy - magit - projectile - use-package - ])); - }; -} - - - - This provides a fairly full Emacs start file. It will load in addition to the user's presonal config. You can always disable it by passing -q to the Emacs command. - - - - Sometimes emacsWithPackages is not enough, as this package set has some priorities imposed on packages (with the lowest priority assigned to Melpa Unstable, and the highest for packages manually defined in pkgs/top-level/emacs-packages.nix). But you can't control this priorities when some package is installed as a dependency. You can override it on per-package-basis, providing all the required dependencies manually - but it's tedious and there is always a possibility that an unwanted dependency will sneak in through some other package. To completely override such a package you can use overrideScope'. - - - -overrides = self: super: rec { - haskell-mode = self.melpaPackages.haskell-mode; - ... -}; -((emacsPackagesGen emacs).overrideScope' overrides).emacsWithPackages (p: with p; [ - # here both these package will use haskell-mode of our own choice - ghc-mod - dante -]) - -
-
-
- DLib - - - DLib is a modern, C++-based toolkit which provides several machine learning algorithms. - - -
- Compiling without AVX support - - - Especially older CPUs don't support AVX (Advanced Vector Extensions) instructions that are used by DLib to optimize their algorithms. - - - - On the affected hardware errors like Illegal instruction will occur. In those cases AVX support needs to be disabled: -self: super: { - dlib = super.dlib.override { avxSupport = false; }; -} - -
-
-
- Unfree software - - - All users of Nixpkgs are free software users, and many users (and developers) of Nixpkgs want to limit and tightly control their exposure to unfree software. At the same time, many users need (or want) to run some specific pieces of proprietary software. Nixpkgs includes some expressions for unfree software packages. By default unfree software cannot be installed and doesn’t show up in searches. To allow installing unfree software in a single Nix invocation one can export NIXPKGS_ALLOW_UNFREE=1. For a persistent solution, users can set allowUnfree in the Nixpkgs configuration. - - - - Fine-grained control is possible by defining allowUnfreePredicate function in config; it takes the mkDerivation parameter attrset and returns true for unfree packages that should be allowed. - -
-
- Steam - -
- Steam in Nix - - - Steam is distributed as a .deb file, for now only as an i686 package (the amd64 package only has documentation). When unpacked, it has a script called steam that in Ubuntu (their target distro) would go to /usr/bin . When run for the first time, this script copies some files to the user's home, which include another script that is the ultimate responsible for launching the steam binary, which is also in $HOME. - - - - Nix problems and constraints: - - - - We don't have /bin/bash and many scripts point there. Similarly for /usr/bin/python . - - - - - We don't have the dynamic loader in /lib . - - - - - The steam.sh script in $HOME can not be patched, as it is checked and rewritten by steam. - - - - - The steam binary cannot be patched, it's also checked. - - - - - - - The current approach to deploy Steam in NixOS is composing a FHS-compatible chroot environment, as documented here. This allows us to have binaries in the expected paths without disrupting the system, and to avoid patching them to work in a non FHS environment. - -
- -
- How to play - - - For 64-bit systems it's important to have -hardware.opengl.driSupport32Bit = true; - in your /etc/nixos/configuration.nix. You'll also need -hardware.pulseaudio.support32Bit = true; - if you are using PulseAudio - this will enable 32bit ALSA apps integration. To use the Steam controller or other Steam supported controllers such as the DualShock 4 or Nintendo Switch Pro, you need to add -hardware.steam-hardware.enable = true; - to your configuration. - -
- -
- Troubleshooting - - - - - - Steam fails to start. What do I do? - - - - Try to run -strace steam - to see what is causing steam to fail. - - - - - - Using the FOSS Radeon or nouveau (nvidia) drivers - - - - - - The newStdcpp parameter was removed since NixOS 17.09 and should not be needed anymore. - - - - - Steam ships statically linked with a version of libcrypto that conflics with the one dynamically loaded by radeonsi_dri.so. If you get the error -steam.sh: line 713: 7842 Segmentation fault (core dumped) - have a look at this pull request. - - - - - - - - Java - - - - - - There is no java in steam chrootenv by default. If you get a message like -/home/foo/.local/share/Steam/SteamApps/common/towns/towns.sh: line 1: java: command not found - You need to add - steam.override { withJava = true; }; - to your configuration. - - - - - - - -
- -
- steam-run - - - The FHS-compatible chroot used for steam can also be used to run other linux games that expect a FHS environment. To do it, add -pkgs.(steam.override { - nativeOnly = true; - newStdcpp = true; - }).run - to your configuration, rebuild, and run the game with -steam-run ./foo - -
-
-
- Citrix Receiver & Citrix Workspace App - - - - - Please note that the citrix_receiver package has been deprecated since its development was discontinued by upstream and has been replaced by the citrix workspace app. - - - Citrix Receiver and Citrix Workspace App are a remote desktop viewers which provide access to XenDesktop installations. - - -
- Basic usage - - - The tarball archive needs to be downloaded manually as the license agreements of the vendor for Citrix Receiver or Citrix Workspace need to be accepted first. Then run nix-prefetch-url file://$PWD/linuxx64-$version.tar.gz. With the archive available in the store the package can be built and installed with Nix. - - - - Caution with <command>nix-shell</command> installs - - It's recommended to install Citrix Receiver and/or Citrix Workspace using nix-env -i or globally to ensure that the .desktop files are installed properly into $XDG_CONFIG_DIRS. Otherwise it won't be possible to open .ica files automatically from the browser to start a Citrix connection. - - -
- -
- Custom certificates - - - The Citrix Workspace App in nixpkgs trust several certificates from the Mozilla database by default. However several companies using Citrix might require their own corporate certificate. On distros with imperative packaging these certs can be stored easily in $ICAROOT, however this directory is a store path in nixpkgs. In order to work around this issue the package provides a simple mechanism to add custom certificates without rebuilding the entire package using symlinkJoin: - - { config.allowUnfree = true; }; -let extraCerts = [ ./custom-cert-1.pem ./custom-cert-2.pem /* ... */ ]; in -citrix_workspace.override { - inherit extraCerts; -}]]> - - -
-
-
diff --git a/doc/packages/citrix.xml b/doc/packages/citrix.xml new file mode 100644 index 0000000000000..bc685f97932d4 --- /dev/null +++ b/doc/packages/citrix.xml @@ -0,0 +1,44 @@ +
+ Citrix Workspace + + + + + Please note that the citrix_receiver package has been deprecated since its development was discontinued by upstream and has been replaced by the citrix workspace app. + + + Citrix Receiver and Citrix Workspace App are a remote desktop viewers which provide access to XenDesktop installations. + + +
+ Basic usage + + + The tarball archive needs to be downloaded manually as the license agreements of the vendor for Citrix Receiver or Citrix Workspace need to be accepted first. Then run nix-prefetch-url file://$PWD/linuxx64-$version.tar.gz. With the archive available in the store the package can be built and installed with Nix. + + + + Caution with <command>nix-shell</command> installs + + It's recommended to install Citrix Receiver and/or Citrix Workspace using nix-env -i or globally to ensure that the .desktop files are installed properly into $XDG_CONFIG_DIRS. Otherwise it won't be possible to open .ica files automatically from the browser to start a Citrix connection. + + +
+ +
+ Custom certificates + + + The Citrix Workspace App in nixpkgs trust several certificates from the Mozilla database by default. However several companies using Citrix might require their own corporate certificate. On distros with imperative packaging these certs can be stored easily in $ICAROOT, however this directory is a store path in nixpkgs. In order to work around this issue the package provides a simple mechanism to add custom certificates without rebuilding the entire package using symlinkJoin: + + { config.allowUnfree = true; }; +let extraCerts = [ ./custom-cert-1.pem ./custom-cert-2.pem /* ... */ ]; in +citrix_workspace.override { + inherit extraCerts; +}]]> + + +
+
\ No newline at end of file diff --git a/doc/packages/dlib.xml b/doc/packages/dlib.xml new file mode 100644 index 0000000000000..98c211cf9df79 --- /dev/null +++ b/doc/packages/dlib.xml @@ -0,0 +1,24 @@ +
+ DLib + + + DLib is a modern, C++-based toolkit which provides several machine learning algorithms. + + +
+ Compiling without AVX support + + + Especially older CPUs don't support AVX (Advanced Vector Extensions) instructions that are used by DLib to optimize their algorithms. + + + + On the affected hardware errors like Illegal instruction will occur. In those cases AVX support needs to be disabled: +self: super: { + dlib = super.dlib.override { avxSupport = false; }; +} + +
+
\ No newline at end of file diff --git a/doc/packages/eclipse.xml b/doc/packages/eclipse.xml new file mode 100644 index 0000000000000..968c58d3b5bb0 --- /dev/null +++ b/doc/packages/eclipse.xml @@ -0,0 +1,72 @@ +
+ Eclipse + + + The Nix expressions related to the Eclipse platform and IDE are in pkgs/applications/editors/eclipse. + + + + Nixpkgs provides a number of packages that will install Eclipse in its various forms. These range from the bare-bones Eclipse Platform to the more fully featured Eclipse SDK or Scala-IDE packages and multiple version are often available. It is possible to list available Eclipse packages by issuing the command: + +$ nix-env -f '<nixpkgs>' -qaP -A eclipses --description + + Once an Eclipse variant is installed it can be run using the eclipse command, as expected. From within Eclipse it is then possible to install plugins in the usual manner by either manually specifying an Eclipse update site or by installing the Marketplace Client plugin and using it to discover and install other plugins. This installation method provides an Eclipse installation that closely resemble a manually installed Eclipse. + + + + If you prefer to install plugins in a more declarative manner then Nixpkgs also offer a number of Eclipse plugins that can be installed in an Eclipse environment. This type of environment is created using the function eclipseWithPlugins found inside the nixpkgs.eclipses attribute set. This function takes as argument { eclipse, plugins ? [], jvmArgs ? [] } where eclipse is a one of the Eclipse packages described above, plugins is a list of plugin derivations, and jvmArgs is a list of arguments given to the JVM running the Eclipse. For example, say you wish to install the latest Eclipse Platform with the popular Eclipse Color Theme plugin and also allow Eclipse to use more RAM. You could then add + +packageOverrides = pkgs: { + myEclipse = with pkgs.eclipses; eclipseWithPlugins { + eclipse = eclipse-platform; + jvmArgs = [ "-Xmx2048m" ]; + plugins = [ plugins.color-theme ]; + }; +} + + to your Nixpkgs configuration (~/.config/nixpkgs/config.nix) and install it by running nix-env -f '<nixpkgs>' -iA myEclipse and afterward run Eclipse as usual. It is possible to find out which plugins are available for installation using eclipseWithPlugins by running + +$ nix-env -f '<nixpkgs>' -qaP -A eclipses.plugins --description + + + + + If there is a need to install plugins that are not available in Nixpkgs then it may be possible to define these plugins outside Nixpkgs using the buildEclipseUpdateSite and buildEclipsePlugin functions found in the nixpkgs.eclipses.plugins attribute set. Use the buildEclipseUpdateSite function to install a plugin distributed as an Eclipse update site. This function takes { name, src } as argument where src indicates the Eclipse update site archive. All Eclipse features and plugins within the downloaded update site will be installed. When an update site archive is not available then the buildEclipsePlugin function can be used to install a plugin that consists of a pair of feature and plugin JARs. This function takes an argument { name, srcFeature, srcPlugin } where srcFeature and srcPlugin are the feature and plugin JARs, respectively. + + + + Expanding the previous example with two plugins using the above functions we have + +packageOverrides = pkgs: { + myEclipse = with pkgs.eclipses; eclipseWithPlugins { + eclipse = eclipse-platform; + jvmArgs = [ "-Xmx2048m" ]; + plugins = [ + plugins.color-theme + (plugins.buildEclipsePlugin { + name = "myplugin1-1.0"; + srcFeature = fetchurl { + url = "http://…/features/myplugin1.jar"; + sha256 = "123…"; + }; + srcPlugin = fetchurl { + url = "http://…/plugins/myplugin1.jar"; + sha256 = "123…"; + }; + }); + (plugins.buildEclipseUpdateSite { + name = "myplugin2-1.0"; + src = fetchurl { + stripRoot = false; + url = "http://…/myplugin2.zip"; + sha256 = "123…"; + }; + }); + ]; + }; +} + + +
\ No newline at end of file diff --git a/doc/packages/elm.xml b/doc/packages/elm.xml new file mode 100644 index 0000000000000..8ee0528526544 --- /dev/null +++ b/doc/packages/elm.xml @@ -0,0 +1,17 @@ +
+ Elm + + + To start a development environment do nix-shell -p elmPackages.elm elmPackages.elm-format + + + + To update Elm compiler, see nixpkgs/pkgs/development/compilers/elm/README.md. + + + + To package Elm applications, read about elm2nix. + +
\ No newline at end of file diff --git a/doc/packages/emacs.xml b/doc/packages/emacs.xml new file mode 100644 index 0000000000000..a9a26882c9cd3 --- /dev/null +++ b/doc/packages/emacs.xml @@ -0,0 +1,131 @@ +
+ Emacs + +
+ Configuring Emacs + + + The Emacs package comes with some extra helpers to make it easier to configure. emacsWithPackages allows you to manage packages from ELPA. This means that you will not have to install that packages from within Emacs. For instance, if you wanted to use company, counsel, flycheck, ivy, magit, projectile, and use-package you could use this as a ~/.config/nixpkgs/config.nix override: + + + +{ + packageOverrides = pkgs: with pkgs; { + myEmacs = emacsWithPackages (epkgs: (with epkgs.melpaStablePackages; [ + company + counsel + flycheck + ivy + magit + projectile + use-package + ])); + } +} + + + + You can install it like any other packages via nix-env -iA myEmacs. However, this will only install those packages. It will not configure them for us. To do this, we need to provide a configuration file. Luckily, it is possible to do this from within Nix! By modifying the above example, we can make Emacs load a custom config file. The key is to create a package that provide a default.el file in /share/emacs/site-start/. Emacs knows to load this file automatically when it starts. + + + +{ + packageOverrides = pkgs: with pkgs; rec { + myEmacsConfig = writeText "default.el" '' +;; initialize package + +(require 'package) +(package-initialize 'noactivate) +(eval-when-compile + (require 'use-package)) + +;; load some packages + +(use-package company + :bind ("<C-tab>" . company-complete) + :diminish company-mode + :commands (company-mode global-company-mode) + :defer 1 + :config + (global-company-mode)) + +(use-package counsel + :commands (counsel-descbinds) + :bind (([remap execute-extended-command] . counsel-M-x) + ("C-x C-f" . counsel-find-file) + ("C-c g" . counsel-git) + ("C-c j" . counsel-git-grep) + ("C-c k" . counsel-ag) + ("C-x l" . counsel-locate) + ("M-y" . counsel-yank-pop))) + +(use-package flycheck + :defer 2 + :config (global-flycheck-mode)) + +(use-package ivy + :defer 1 + :bind (("C-c C-r" . ivy-resume) + ("C-x C-b" . ivy-switch-buffer) + :map ivy-minibuffer-map + ("C-j" . ivy-call)) + :diminish ivy-mode + :commands ivy-mode + :config + (ivy-mode 1)) + +(use-package magit + :defer + :if (executable-find "git") + :bind (("C-x g" . magit-status) + ("C-x G" . magit-dispatch-popup)) + :init + (setq magit-completing-read-function 'ivy-completing-read)) + +(use-package projectile + :commands projectile-mode + :bind-keymap ("C-c p" . projectile-command-map) + :defer 5 + :config + (projectile-global-mode)) + ''; + myEmacs = emacsWithPackages (epkgs: (with epkgs.melpaStablePackages; [ + (runCommand "default.el" {} '' +mkdir -p $out/share/emacs/site-lisp +cp ${myEmacsConfig} $out/share/emacs/site-lisp/default.el +'') + company + counsel + flycheck + ivy + magit + projectile + use-package + ])); + }; +} + + + + This provides a fairly full Emacs start file. It will load in addition to the user's presonal config. You can always disable it by passing -q to the Emacs command. + + + + Sometimes emacsWithPackages is not enough, as this package set has some priorities imposed on packages (with the lowest priority assigned to Melpa Unstable, and the highest for packages manually defined in pkgs/top-level/emacs-packages.nix). But you can't control this priorities when some package is installed as a dependency. You can override it on per-package-basis, providing all the required dependencies manually - but it's tedious and there is always a possibility that an unwanted dependency will sneak in through some other package. To completely override such a package you can use overrideScope'. + + + +overrides = self: super: rec { + haskell-mode = self.melpaPackages.haskell-mode; + ... +}; +((emacsPackagesGen emacs).overrideScope' overrides).emacsWithPackages (p: with p; [ + # here both these package will use haskell-mode of our own choice + ghc-mod + dante +]) + +
+
\ No newline at end of file diff --git a/doc/packages/ibus.xml b/doc/packages/ibus.xml new file mode 100644 index 0000000000000..561d4d2eabdc8 --- /dev/null +++ b/doc/packages/ibus.xml @@ -0,0 +1,57 @@ +
+ ibus-engines.typing-booster + + + This package is an ibus-based completion method to speed up typing. + + +
+ Activating the engine + + + IBus needs to be configured accordingly to activate typing-booster. The configuration depends on the desktop manager in use. For detailed instructions, please refer to the upstream docs. + + + + On NixOS you need to explicitly enable ibus with given engines before customizing your desktop to use typing-booster. This can be achieved using the ibus module: +{ pkgs, ... }: { + i18n.inputMethod = { + enabled = "ibus"; + ibus.engines = with pkgs.ibus-engines; [ typing-booster ]; + }; +} + +
+ +
+ Using custom hunspell dictionaries + + + The IBus engine is based on hunspell to support completion in many languages. By default the dictionaries de-de, en-us, fr-moderne es-es, it-it, sv-se and sv-fi are in use. To add another dictionary, the package can be overridden like this: +ibus-engines.typing-booster.override { + langs = [ "de-at" "en-gb" ]; +} + + + + Note: each language passed to langs must be an attribute name in pkgs.hunspellDicts. + +
+ +
+ Built-in emoji picker + + + The ibus-engines.typing-booster package contains a program named emoji-picker. To display all emojis correctly, a special font such as noto-fonts-emoji is needed: + + + + On NixOS it can be installed using the following expression: +{ pkgs, ... }: { + fonts.fonts = with pkgs; [ noto-fonts-emoji ]; +} + +
+
\ No newline at end of file diff --git a/doc/packages/index.xml b/doc/packages/index.xml new file mode 100644 index 0000000000000..9f3f58a8d9031 --- /dev/null +++ b/doc/packages/index.xml @@ -0,0 +1,23 @@ + + Packages + + This chapter contains information about how to use and maintain the Nix expressions for a number of specific packages, such as the Linux kernel or X.org. + + + + + + + + + + + + + + + + + diff --git a/doc/packages/kakoune.xml b/doc/packages/kakoune.xml new file mode 100644 index 0000000000000..fd40dad7ca876 --- /dev/null +++ b/doc/packages/kakoune.xml @@ -0,0 +1,14 @@ +
+ Kakoune + + + Kakoune can be built to autoload plugins: +(kakoune.override { + configure = { + plugins = with pkgs.kakounePlugins; [ parinfer-rust ]; + }; +}) + +
\ No newline at end of file diff --git a/doc/packages/linux.xml b/doc/packages/linux.xml new file mode 100644 index 0000000000000..3adfacb6e457e --- /dev/null +++ b/doc/packages/linux.xml @@ -0,0 +1,85 @@ +
+ Linux kernel + + + The Nix expressions to build the Linux kernel are in pkgs/os-specific/linux/kernel. + + + + The function that builds the kernel has an argument kernelPatches which should be a list of {name, patch, extraConfig} attribute sets, where name is the name of the patch (which is included in the kernel’s meta.description attribute), patch is the patch itself (possibly compressed), and extraConfig (optional) is a string specifying extra options to be concatenated to the kernel configuration file (.config). + + + + The kernel derivation exports an attribute features specifying whether optional functionality is or isn’t enabled. This is used in NixOS to implement kernel-specific behaviour. For instance, if the kernel has the iwlwifi feature (i.e. has built-in support for Intel wireless chipsets), then NixOS doesn’t have to build the external iwlwifi package: + +modulesTree = [kernel] + ++ pkgs.lib.optional (!kernel.features ? iwlwifi) kernelPackages.iwlwifi + ++ ...; + + + + + How to add a new (major) version of the Linux kernel to Nixpkgs: + + + + Copy the old Nix expression (e.g. linux-2.6.21.nix) to the new one (e.g. linux-2.6.22.nix) and update it. + + + + + Add the new kernel to all-packages.nix (e.g., create an attribute kernel_2_6_22). + + + + + Now we’re going to update the kernel configuration. First unpack the kernel. Then for each supported platform (i686, x86_64, uml) do the following: + + + + Make an copy from the old config (e.g. config-2.6.21-i686-smp) to the new one (e.g. config-2.6.22-i686-smp). + + + + + Copy the config file for this platform (e.g. config-2.6.22-i686-smp) to .config in the kernel source tree. + + + + + Run make oldconfig ARCH={i386,x86_64,um} and answer all questions. (For the uml configuration, also add SHELL=bash.) Make sure to keep the configuration consistent between platforms (i.e. don’t enable some feature on i686 and disable it on x86_64). + + + + + If needed you can also run make menuconfig: + +$ nix-env -i ncurses +$ export NIX_CFLAGS_LINK=-lncurses +$ make menuconfig ARCH=arch + + + + + Copy .config over the new config file (e.g. config-2.6.22-i686-smp). + + + + + + + + Test building the kernel: nix-build -A kernel_2_6_22. If it compiles, ship it! For extra credit, try booting NixOS with it. + + + + + It may be that the new kernel requires updating the external kernel modules and kernel-dependent packages listed in the linuxPackagesFor function in all-packages.nix (such as the NVIDIA drivers, AUFS, etc.). If the updated packages aren’t backwards compatible with older kernels, you may need to keep the older versions around. + + + + +
\ No newline at end of file diff --git a/doc/packages/locales.xml b/doc/packages/locales.xml new file mode 100644 index 0000000000000..15954495e2177 --- /dev/null +++ b/doc/packages/locales.xml @@ -0,0 +1,13 @@ +
+ Locales + + + To allow simultaneous use of packages linked against different versions of glibc with different locale archive formats Nixpkgs patches glibc to rely on LOCALE_ARCHIVE environment variable. + + + + On non-NixOS distributions this variable is obviously not set. This can cause regressions in language support or even crashes in some Nixpkgs-provided programs. The simplest way to mitigate this problem is exporting the LOCALE_ARCHIVE variable pointing to ${glibcLocales}/lib/locale/locale-archive. The drawback (and the reason this is not the default) is the relatively large (a hundred MiB) size of the full set of locales. It is possible to build a custom set of locales by overriding parameters allLocales and locales of the package. + +
\ No newline at end of file diff --git a/doc/packages/nginx.xml b/doc/packages/nginx.xml new file mode 100644 index 0000000000000..921a6add2a0ae --- /dev/null +++ b/doc/packages/nginx.xml @@ -0,0 +1,25 @@ +
+ Nginx + + + Nginx is a reverse proxy and lightweight webserver. + + +
+ ETags on static files served from the Nix store + + + HTTP has a couple different mechanisms for caching to prevent clients from having to download the same content repeatedly if a resource has not changed since the last time it was requested. When nginx is used as a server for static files, it implements the caching mechanism based on the Last-Modified response header automatically; unfortunately, it works by using filesystem timestamps to determine the value of the Last-Modified header. This doesn't give the desired behavior when the file is in the Nix store, because all file timestamps are set to 0 (for reasons related to build reproducibility). + + + + Fortunately, HTTP supports an alternative (and more effective) caching mechanism: the ETag response header. The value of the ETag header specifies some identifier for the particular content that the server is sending (e.g. a hash). When a client makes a second request for the same resource, it sends that value back in an If-None-Match header. If the ETag value is unchanged, then the server does not need to resend the content. + + + + As of NixOS 19.09, the nginx package in Nixpkgs is patched such that when nginx serves a file out of /nix/store, the hash in the store path is used as the ETag header in the HTTP response, thus providing proper caching functionality. This happens automatically; you do not need to do modify any configuration to get this behavior. + +
+
\ No newline at end of file diff --git a/doc/packages/opengl.xml b/doc/packages/opengl.xml new file mode 100644 index 0000000000000..fcb624736b092 --- /dev/null +++ b/doc/packages/opengl.xml @@ -0,0 +1,9 @@ +
+ OpenGL + + + Packages that use OpenGL have NixOS desktop as their primary target. The current solution for loading the GPU-specific drivers is based on libglvnd and looks for the driver implementation in LD_LIBRARY_PATH. If you are using a non-NixOS GNU/Linux/X11 desktop with free software video drivers, consider launching OpenGL-dependent programs from Nixpkgs with Nixpkgs versions of libglvnd and mesa_drivers in LD_LIBRARY_PATH. For proprietary video drivers you might have luck with also adding the corresponding video driver package. + +
\ No newline at end of file diff --git a/doc/packages/shell-helpers.xml b/doc/packages/shell-helpers.xml new file mode 100644 index 0000000000000..53416ce7e171d --- /dev/null +++ b/doc/packages/shell-helpers.xml @@ -0,0 +1,25 @@ +
+ Interactive shell helpers + + + Some packages provide the shell integration to be more useful. But unlike other systems, nix doesn't have a standard share directory location. This is why a bunch PACKAGE-share scripts are shipped that print the location of the corresponding shared folder. Current list of such packages is as following: + + + + autojump: autojump-share + + + + + fzf: fzf-share + + + + E.g. autojump can then used in the .bashrc like this: + + source "$(autojump-share)/autojump.bash" + + +
\ No newline at end of file diff --git a/doc/packages/steam.xml b/doc/packages/steam.xml new file mode 100644 index 0000000000000..413247ee46854 --- /dev/null +++ b/doc/packages/steam.xml @@ -0,0 +1,131 @@ +
+ Steam + +
+ Steam in Nix + + + Steam is distributed as a .deb file, for now only as an i686 package (the amd64 package only has documentation). When unpacked, it has a script called steam that in Ubuntu (their target distro) would go to /usr/bin . When run for the first time, this script copies some files to the user's home, which include another script that is the ultimate responsible for launching the steam binary, which is also in $HOME. + + + + Nix problems and constraints: + + + + We don't have /bin/bash and many scripts point there. Similarly for /usr/bin/python . + + + + + We don't have the dynamic loader in /lib . + + + + + The steam.sh script in $HOME can not be patched, as it is checked and rewritten by steam. + + + + + The steam binary cannot be patched, it's also checked. + + + + + + + The current approach to deploy Steam in NixOS is composing a FHS-compatible chroot environment, as documented here. This allows us to have binaries in the expected paths without disrupting the system, and to avoid patching them to work in a non FHS environment. + +
+ +
+ How to play + + + For 64-bit systems it's important to have +hardware.opengl.driSupport32Bit = true; + in your /etc/nixos/configuration.nix. You'll also need +hardware.pulseaudio.support32Bit = true; + if you are using PulseAudio - this will enable 32bit ALSA apps integration. To use the Steam controller or other Steam supported controllers such as the DualShock 4 or Nintendo Switch Pro, you need to add +hardware.steam-hardware.enable = true; + to your configuration. + +
+ +
+ Troubleshooting + + + + + + Steam fails to start. What do I do? + + + + Try to run +strace steam + to see what is causing steam to fail. + + + + + + Using the FOSS Radeon or nouveau (nvidia) drivers + + + + + + The newStdcpp parameter was removed since NixOS 17.09 and should not be needed anymore. + + + + + Steam ships statically linked with a version of libcrypto that conflics with the one dynamically loaded by radeonsi_dri.so. If you get the error +steam.sh: line 713: 7842 Segmentation fault (core dumped) + have a look at this pull request. + + + + + + + + Java + + + + + + There is no java in steam chrootenv by default. If you get a message like +/home/foo/.local/share/Steam/SteamApps/common/towns/towns.sh: line 1: java: command not found + You need to add + steam.override { withJava = true; }; + to your configuration. + + + + + + + +
+ +
+ steam-run + + + The FHS-compatible chroot used for steam can also be used to run other linux games that expect a FHS environment. To do it, add +pkgs.(steam.override { + nativeOnly = true; + newStdcpp = true; + }).run + to your configuration, rebuild, and run the game with +steam-run ./foo + +
+
\ No newline at end of file diff --git a/doc/packages/unfree.xml b/doc/packages/unfree.xml new file mode 100644 index 0000000000000..b2d8402005e90 --- /dev/null +++ b/doc/packages/unfree.xml @@ -0,0 +1,13 @@ +
+ Unfree software + + + All users of Nixpkgs are free software users, and many users (and developers) of Nixpkgs want to limit and tightly control their exposure to unfree software. At the same time, many users need (or want) to run some specific pieces of proprietary software. Nixpkgs includes some expressions for unfree software packages. By default unfree software cannot be installed and doesn’t show up in searches. To allow installing unfree software in a single Nix invocation one can export NIXPKGS_ALLOW_UNFREE=1. For a persistent solution, users can set allowUnfree in the Nixpkgs configuration. + + + + Fine-grained control is possible by defining allowUnfreePredicate function in config; it takes the mkDerivation parameter attrset and returns true for unfree packages that should be allowed. + +
\ No newline at end of file diff --git a/doc/packages/weechat.xml b/doc/packages/weechat.xml new file mode 100644 index 0000000000000..aeb240d904b52 --- /dev/null +++ b/doc/packages/weechat.xml @@ -0,0 +1,85 @@ +
+ Weechat + + + Weechat can be configured to include your choice of plugins, reducing its closure size from the default configuration which includes all available plugins. To make use of this functionality, install an expression that overrides its configuration such as +weechat.override {configure = {availablePlugins, ...}: { + plugins = with availablePlugins; [ python perl ]; + } +} + If the configure function returns an attrset without the plugins attribute, availablePlugins will be used automatically. + + + + The plugins currently available are python, perl, ruby, guile, tcl and lua. + + + + The python and perl plugins allows the addition of extra libraries. For instance, the inotify.py script in weechat-scripts requires D-Bus or libnotify, and the fish.py script requires pycrypto. To use these scripts, use the plugin's withPackages attribute: +weechat.override { configure = {availablePlugins, ...}: { + plugins = with availablePlugins; [ + (python.withPackages (ps: with ps; [ pycrypto python-dbus ])) + ]; + }; +} + + + + + In order to also keep all default plugins installed, it is possible to use the following method: +weechat.override { configure = { availablePlugins, ... }: { + plugins = builtins.attrValues (availablePlugins // { + python = availablePlugins.python.withPackages (ps: with ps; [ pycrypto python-dbus ]); + }); +}; } + + + + + WeeChat allows to set defaults on startup using the --run-command. The configure method can be used to pass commands to the program: +weechat.override { + configure = { availablePlugins, ... }: { + init = '' + /set foo bar + /server add freenode chat.freenode.org + ''; + }; +} + Further values can be added to the list of commands when running weechat --run-command "your-commands". + + + + Additionally it's possible to specify scripts to be loaded when starting weechat. These will be loaded before the commands from init: +weechat.override { + configure = { availablePlugins, ... }: { + scripts = with pkgs.weechatScripts; [ + weechat-xmpp weechat-matrix-bridge wee-slack + ]; + init = '' + /set plugins.var.python.jabber.key "val" + '': + }; +} + + + + In nixpkgs there's a subpackage which contains derivations for WeeChat scripts. Such derivations expect a passthru.scripts attribute which contains a list of all scripts inside the store path. Furthermore all scripts have to live in $out/share. An exemplary derivation looks like this: +{ stdenv, fetchurl }: + +stdenv.mkDerivation { + name = "exemplary-weechat-script"; + src = fetchurl { + url = "https://scripts.tld/your-scripts.tar.gz"; + sha256 = "..."; + }; + passthru.scripts = [ "foo.py" "bar.lua" ]; + installPhase = '' + mkdir $out/share + cp foo.py $out/share + cp bar.lua $out/share + ''; +} + +
\ No newline at end of file diff --git a/doc/packages/xorg.xml b/doc/packages/xorg.xml new file mode 100644 index 0000000000000..4526121687fc2 --- /dev/null +++ b/doc/packages/xorg.xml @@ -0,0 +1,34 @@ +
+ X.org + + + The Nix expressions for the X.org packages reside in pkgs/servers/x11/xorg/default.nix. This file is automatically generated from lists of tarballs in an X.org release. As such it should not be modified directly; rather, you should modify the lists, the generator script or the file pkgs/servers/x11/xorg/overrides.nix, in which you can override or add to the derivations produced by the generator. + + + + The generator is invoked as follows: + +$ cd pkgs/servers/x11/xorg +$ cat tarballs-7.5.list extra.list old.list \ + | perl ./generate-expr-from-tarballs.pl + + For each of the tarballs in the .list files, the script downloads it, unpacks it, and searches its configure.ac and *.pc.in files for dependencies. This information is used to generate default.nix. The generator caches downloaded tarballs between runs. Pay close attention to the NOT FOUND: name messages at the end of the run, since they may indicate missing dependencies. (Some might be optional dependencies, however.) + + + + A file like tarballs-7.5.list contains all tarballs in a X.org release. It can be generated like this: + +$ export i="mirror://xorg/X11R7.4/src/everything/" +$ cat $(PRINT_PATH=1 nix-prefetch-url $i | tail -n 1) \ + | perl -e 'while (<>) { if (/(href|HREF)="([^"]*.bz2)"/) { print "$ENV{'i'}$2\n"; }; }' \ + | sort > tarballs-7.4.list + + extra.list contains libraries that aren’t part of X.org proper, but are closely related to it, such as libxcb. old.list contains some packages that were removed from X.org, but are still needed by some people or by other packages (such as imake). + + + + If the expression for a package requires derivation attributes that the generator cannot figure out automatically (say, patches or a postInstall hook), you should modify pkgs/servers/x11/xorg/overrides.nix. + +
\ No newline at end of file -- cgit 1.4.1 From 16d733bbe58baa9e4dfd1912d13d7fdc59268212 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Sun, 20 Oct 2019 13:34:32 +0200 Subject: doc: move fetchers and trivial builders under builders --- doc/builders/fetchers.xml | 148 +++++++++++++++++++++++++++++++++++++ doc/builders/trivial-builders.xml | 79 ++++++++++++++++++++ doc/functions.xml | 2 - doc/functions/fetchers.xml | 148 ------------------------------------- doc/functions/trivial-builders.xml | 79 -------------------- doc/manual.xml | 4 +- 6 files changed, 230 insertions(+), 230 deletions(-) create mode 100644 doc/builders/fetchers.xml create mode 100644 doc/builders/trivial-builders.xml delete mode 100644 doc/functions/fetchers.xml delete mode 100644 doc/functions/trivial-builders.xml (limited to 'doc') diff --git a/doc/builders/fetchers.xml b/doc/builders/fetchers.xml new file mode 100644 index 0000000000000..6f8990e8d16ce --- /dev/null +++ b/doc/builders/fetchers.xml @@ -0,0 +1,148 @@ + + Fetchers + + + When using Nix, you will frequently need to download source code and other files from the internet. Nixpkgs comes with a few helper functions that allow you to fetch fixed-output derivations in a structured way. + + + + The two fetcher primitives are fetchurl and fetchzip. Both of these have two required arguments, a URL and a hash. The hash is typically sha256, although many more hash algorithms are supported. Nixpkgs contributors are currently recommended to use sha256. This hash will be used by Nix to identify your source. A typical usage of fetchurl is provided below. + + + + + + The main difference between fetchurl and fetchzip is in how they store the contents. fetchurl will store the unaltered contents of the URL within the Nix store. fetchzip on the other hand will decompress the archive for you, making files and directories directly accessible in the future. fetchzip can only be used with archives. Despite the name, fetchzip is not limited to .zip files and can also be used with any tarball. + + + + fetchpatch works very similarly to fetchurl with the same arguments expected. It expects patch files as a source and and performs normalization on them before computing the checksum. For example it will remove comments or other unstable parts that are sometimes added by version control systems and can change over time. + + + + Other fetcher functions allow you to add source code directly from a VCS such as subversion or git. These are mostly straightforward names based on the name of the command used with the VCS system. Because they give you a working repository, they act most like fetchzip. + + + + + + fetchsvn + + + + Used with Subversion. Expects url to a Subversion directory, rev, and sha256. + + + + + + fetchgit + + + + Used with Git. Expects url to a Git repo, rev, and sha256. rev in this case can be full the git commit id (SHA1 hash) or a tag name like refs/tags/v1.0. + + + + + + fetchfossil + + + + Used with Fossil. Expects url to a Fossil archive, rev, and sha256. + + + + + + fetchcvs + + + + Used with CVS. Expects cvsRoot, tag, and sha256. + + + + + + fetchhg + + + + Used with Mercurial. Expects url, rev, and sha256. + + + + + + + A number of fetcher functions wrap part of fetchurl and fetchzip. They are mainly convenience functions intended for commonly used destinations of source code in Nixpkgs. These wrapper fetchers are listed below. + + + + + + fetchFromGitHub + + + + fetchFromGitHub expects four arguments. owner is a string corresponding to the GitHub user or organization that controls this repository. repo corresponds to the name of the software repository. These are located at the top of every GitHub HTML page as owner/repo. rev corresponds to the Git commit hash or tag (e.g v1.0) that will be downloaded from Git. Finally, sha256 corresponds to the hash of the extracted directory. Again, other hash algorithms are also available but sha256 is currently preferred. + + + + + + fetchFromGitLab + + + + This is used with GitLab repositories. The arguments expected are very similar to fetchFromGitHub above. + + + + + + fetchFromBitbucket + + + + This is used with BitBucket repositories. The arguments expected are very similar to fetchFromGitHub above. + + + + + + fetchFromSavannah + + + + This is used with Savannah repositories. The arguments expected are very similar to fetchFromGitHub above. + + + + + + fetchFromRepoOrCz + + + + This is used with repo.or.cz repositories. The arguments expected are very similar to fetchFromGitHub above. + + + + + diff --git a/doc/builders/trivial-builders.xml b/doc/builders/trivial-builders.xml new file mode 100644 index 0000000000000..c99425620b160 --- /dev/null +++ b/doc/builders/trivial-builders.xml @@ -0,0 +1,79 @@ + + Trivial builders + + + Nixpkgs provides a couple of functions that help with building derivations. The most important one, stdenv.mkDerivation, has already been documented above. The following functions wrap stdenv.mkDerivation, making it easier to use in certain cases. + + + + + + runCommand + + + + This takes three arguments, name, env, and buildCommand. name is just the name that Nix will append to the store path in the same way that stdenv.mkDerivation uses its name attribute. env is an attribute set specifying environment variables that will be set for this derivation. These attributes are then passed to the wrapped stdenv.mkDerivation. buildCommand specifies the commands that will be run to create this derivation. Note that you will need to create $out for Nix to register the command as successful. + + + An example of using runCommand is provided below. + + +(import <nixpkgs> {}).runCommand "my-example" {} '' + echo My example command is running + + mkdir $out + + echo I can write data to the Nix store > $out/message + + echo I can also run basic commands like: + + echo ls + ls + + echo whoami + whoami + + echo date + date +'' + + + + + + runCommandCC + + + + This works just like runCommand. The only difference is that it also provides a C compiler in buildCommand’s environment. To minimize your dependencies, you should only use this if you are sure you will need a C compiler as part of running your command. + + + + + + writeTextFile, writeText, writeTextDir, writeScript, writeScriptBin + + + + These functions write text to the Nix store. This is useful for creating scripts from Nix expressions. writeTextFile takes an attribute set and expects two arguments, name and text. name corresponds to the name used in the Nix store path. text will be the contents of the file. You can also set executable to true to make this file have the executable bit set. + + + Many more commands wrap writeTextFile including writeText, writeTextDir, writeScript, and writeScriptBin. These are convenience functions over writeTextFile. + + + + + + symlinkJoin + + + + This can be used to put many derivations into the same directory structure. It works by creating a new derivation and adding symlinks to each of the paths listed. It expects two arguments, name, and paths. name is the name used in the Nix store path for the created derivation. paths is a list of paths that will be symlinked. These paths can be to Nix store derivations or any other subdirectory contained within. + + + + + diff --git a/doc/functions.xml b/doc/functions.xml index 3e126e6b13970..81aef5f3a8306 100644 --- a/doc/functions.xml +++ b/doc/functions.xml @@ -10,8 +10,6 @@ - - diff --git a/doc/functions/fetchers.xml b/doc/functions/fetchers.xml deleted file mode 100644 index 369c1fb153eb6..0000000000000 --- a/doc/functions/fetchers.xml +++ /dev/null @@ -1,148 +0,0 @@ -
- Fetcher functions - - - When using Nix, you will frequently need to download source code and other files from the internet. Nixpkgs comes with a few helper functions that allow you to fetch fixed-output derivations in a structured way. - - - - The two fetcher primitives are fetchurl and fetchzip. Both of these have two required arguments, a URL and a hash. The hash is typically sha256, although many more hash algorithms are supported. Nixpkgs contributors are currently recommended to use sha256. This hash will be used by Nix to identify your source. A typical usage of fetchurl is provided below. - - - - - - The main difference between fetchurl and fetchzip is in how they store the contents. fetchurl will store the unaltered contents of the URL within the Nix store. fetchzip on the other hand will decompress the archive for you, making files and directories directly accessible in the future. fetchzip can only be used with archives. Despite the name, fetchzip is not limited to .zip files and can also be used with any tarball. - - - - fetchpatch works very similarly to fetchurl with the same arguments expected. It expects patch files as a source and and performs normalization on them before computing the checksum. For example it will remove comments or other unstable parts that are sometimes added by version control systems and can change over time. - - - - Other fetcher functions allow you to add source code directly from a VCS such as subversion or git. These are mostly straightforward names based on the name of the command used with the VCS system. Because they give you a working repository, they act most like fetchzip. - - - - - - fetchsvn - - - - Used with Subversion. Expects url to a Subversion directory, rev, and sha256. - - - - - - fetchgit - - - - Used with Git. Expects url to a Git repo, rev, and sha256. rev in this case can be full the git commit id (SHA1 hash) or a tag name like refs/tags/v1.0. - - - - - - fetchfossil - - - - Used with Fossil. Expects url to a Fossil archive, rev, and sha256. - - - - - - fetchcvs - - - - Used with CVS. Expects cvsRoot, tag, and sha256. - - - - - - fetchhg - - - - Used with Mercurial. Expects url, rev, and sha256. - - - - - - - A number of fetcher functions wrap part of fetchurl and fetchzip. They are mainly convenience functions intended for commonly used destinations of source code in Nixpkgs. These wrapper fetchers are listed below. - - - - - - fetchFromGitHub - - - - fetchFromGitHub expects four arguments. owner is a string corresponding to the GitHub user or organization that controls this repository. repo corresponds to the name of the software repository. These are located at the top of every GitHub HTML page as owner/repo. rev corresponds to the Git commit hash or tag (e.g v1.0) that will be downloaded from Git. Finally, sha256 corresponds to the hash of the extracted directory. Again, other hash algorithms are also available but sha256 is currently preferred. - - - - - - fetchFromGitLab - - - - This is used with GitLab repositories. The arguments expected are very similar to fetchFromGitHub above. - - - - - - fetchFromBitbucket - - - - This is used with BitBucket repositories. The arguments expected are very similar to fetchFromGitHub above. - - - - - - fetchFromSavannah - - - - This is used with Savannah repositories. The arguments expected are very similar to fetchFromGitHub above. - - - - - - fetchFromRepoOrCz - - - - This is used with repo.or.cz repositories. The arguments expected are very similar to fetchFromGitHub above. - - - - -
diff --git a/doc/functions/trivial-builders.xml b/doc/functions/trivial-builders.xml deleted file mode 100644 index ae9f3a1b255d5..0000000000000 --- a/doc/functions/trivial-builders.xml +++ /dev/null @@ -1,79 +0,0 @@ -
- Trivial builders - - - Nixpkgs provides a couple of functions that help with building derivations. The most important one, stdenv.mkDerivation, has already been documented above. The following functions wrap stdenv.mkDerivation, making it easier to use in certain cases. - - - - - - runCommand - - - - This takes three arguments, name, env, and buildCommand. name is just the name that Nix will append to the store path in the same way that stdenv.mkDerivation uses its name attribute. env is an attribute set specifying environment variables that will be set for this derivation. These attributes are then passed to the wrapped stdenv.mkDerivation. buildCommand specifies the commands that will be run to create this derivation. Note that you will need to create $out for Nix to register the command as successful. - - - An example of using runCommand is provided below. - - -(import <nixpkgs> {}).runCommand "my-example" {} '' - echo My example command is running - - mkdir $out - - echo I can write data to the Nix store > $out/message - - echo I can also run basic commands like: - - echo ls - ls - - echo whoami - whoami - - echo date - date -'' - - - - - - runCommandCC - - - - This works just like runCommand. The only difference is that it also provides a C compiler in buildCommand’s environment. To minimize your dependencies, you should only use this if you are sure you will need a C compiler as part of running your command. - - - - - - writeTextFile, writeText, writeTextDir, writeScript, writeScriptBin - - - - These functions write text to the Nix store. This is useful for creating scripts from Nix expressions. writeTextFile takes an attribute set and expects two arguments, name and text. name corresponds to the name used in the Nix store path. text will be the contents of the file. You can also set executable to true to make this file have the executable bit set. - - - Many more commands wrap writeTextFile including writeText, writeTextDir, writeScript, and writeScriptBin. These are convenience functions over writeTextFile. - - - - - - symlinkJoin - - - - This can be used to put many derivations into the same directory structure. It works by creating a new derivation and adding symlinks to each of the paths listed. It expects two arguments, name, and paths. name is the name used in the Nix store path for the created derivation. paths is a list of paths that will be symlinked. These paths can be to Nix store derivations or any other subdirectory contained within. - - - - -
diff --git a/doc/manual.xml b/doc/manual.xml index 001a5f3eca539..d0ded1e2e1673 100644 --- a/doc/manual.xml +++ b/doc/manual.xml @@ -21,7 +21,9 @@
- Languages, frameworks and packages + Builders + + -- cgit 1.4.1 From 9d54ea9b2d5a4fab5d6702081ad8ceacb71360d1 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Mon, 21 Oct 2019 10:57:56 +0200 Subject: doc: move image builders into new images chapter --- doc/builders/images.xml | 12 + doc/builders/images/appimagetools.xml | 102 ++++++ doc/builders/images/dockertools.xml | 484 +++++++++++++++++++++++++++ doc/builders/images/ocitools.xml | 62 ++++ doc/builders/images/snap/example-firefox.nix | 28 ++ doc/builders/images/snap/example-hello.nix | 12 + doc/builders/images/snaptools.xml | 59 ++++ doc/functions.xml | 4 - doc/functions/appimagetools.xml | 102 ------ doc/functions/dockertools.xml | 484 --------------------------- doc/functions/ocitools.xml | 62 ---- doc/functions/snap/example-firefox.nix | 28 -- doc/functions/snap/example-hello.nix | 12 - doc/functions/snaptools.xml | 59 ---- doc/manual.xml | 1 + 15 files changed, 760 insertions(+), 751 deletions(-) create mode 100644 doc/builders/images.xml create mode 100644 doc/builders/images/appimagetools.xml create mode 100644 doc/builders/images/dockertools.xml create mode 100644 doc/builders/images/ocitools.xml create mode 100644 doc/builders/images/snap/example-firefox.nix create mode 100644 doc/builders/images/snap/example-hello.nix create mode 100644 doc/builders/images/snaptools.xml delete mode 100644 doc/functions/appimagetools.xml delete mode 100644 doc/functions/dockertools.xml delete mode 100644 doc/functions/ocitools.xml delete mode 100644 doc/functions/snap/example-firefox.nix delete mode 100644 doc/functions/snap/example-hello.nix delete mode 100644 doc/functions/snaptools.xml (limited to 'doc') diff --git a/doc/builders/images.xml b/doc/builders/images.xml new file mode 100644 index 0000000000000..5e042a8ada80a --- /dev/null +++ b/doc/builders/images.xml @@ -0,0 +1,12 @@ + + Images + + This chapter describes tools for creating various types of images. + + + + + + diff --git a/doc/builders/images/appimagetools.xml b/doc/builders/images/appimagetools.xml new file mode 100644 index 0000000000000..37e4251cda2ea --- /dev/null +++ b/doc/builders/images/appimagetools.xml @@ -0,0 +1,102 @@ +
+ pkgs.appimageTools + + + pkgs.appimageTools is a set of functions for extracting and wrapping AppImage files. They are meant to be used if traditional packaging from source is infeasible, or it would take too long. To quickly run an AppImage file, pkgs.appimage-run can be used as well. + + + + + The appimageTools API is unstable and may be subject to backwards-incompatible changes in the future. + + + +
+ AppImage formats + + + There are different formats for AppImages, see the specification for details. + + + + + + Type 1 images are ISO 9660 files that are also ELF executables. + + + + + Type 2 images are ELF executables with an appended filesystem. + + + + + + They can be told apart with file -k: + + + +$ file -k type1.AppImage +type1.AppImage: ELF 64-bit LSB executable, x86-64, version 1 (SYSV) ISO 9660 CD-ROM filesystem data 'AppImage' (Lepton 3.x), scale 0-0, +spot sensor temperature 0.000000, unit celsius, color scheme 0, calibration: offset 0.000000, slope 0.000000, dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.18, BuildID[sha1]=d629f6099d2344ad82818172add1d38c5e11bc6d, stripped\012- data + +$ file -k type2.AppImage +type2.AppImage: ELF 64-bit LSB executable, x86-64, version 1 (SYSV) (Lepton 3.x), scale 232-60668, spot sensor temperature -4.187500, color scheme 15, show scale bar, calibration: offset -0.000000, slope 0.000000 (Lepton 2.x), scale 4111-45000, spot sensor temperature 412442.250000, color scheme 3, minimum point enabled, calibration: offset -75402534979642766821519867692934234112.000000, slope 5815371847733706829839455140374904832.000000, dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.18, BuildID[sha1]=79dcc4e55a61c293c5e19edbd8d65b202842579f, stripped\012- data + + + + Note how the type 1 AppImage is described as an ISO 9660 CD-ROM filesystem, and the type 2 AppImage is not. + +
+ +
+ Wrapping + + + Depending on the type of AppImage you're wrapping, you'll have to use wrapType1 or wrapType2. + + + +appimageTools.wrapType2 { # or wrapType1 + name = "patchwork"; + src = fetchurl { + url = https://github.com/ssbc/patchwork/releases/download/v3.11.4/Patchwork-3.11.4-linux-x86_64.AppImage; + sha256 = "1blsprpkvm0ws9b96gb36f0rbf8f5jgmw4x6dsb1kswr4ysf591s"; + }; + extraPkgs = pkgs: with pkgs; [ ]; +} + + + + + name specifies the name of the resulting image. + + + + + src specifies the AppImage file to extract. + + + + + extraPkgs allows you to pass a function to include additional packages inside the FHS environment your AppImage is going to run in. There are a few ways to learn which dependencies an application needs: + + + + Looking through the extracted AppImage files, reading its scripts and running patchelf and ldd on its executables. This can also be done in appimage-run, by setting APPIMAGE_DEBUG_EXEC=bash. + + + + + Running strace -vfefile on the wrapped executable, looking for libraries that can't be found. + + + + + + +
+
diff --git a/doc/builders/images/dockertools.xml b/doc/builders/images/dockertools.xml new file mode 100644 index 0000000000000..2243453c3e972 --- /dev/null +++ b/doc/builders/images/dockertools.xml @@ -0,0 +1,484 @@ +
+ pkgs.dockerTools + + + pkgs.dockerTools is a set of functions for creating and manipulating Docker images according to the Docker Image Specification v1.2.0 . Docker itself is not used to perform any of the operations done by these functions. + + + + + The dockerTools API is unstable and may be subject to backwards-incompatible changes in the future. + + + +
+ buildImage + + + This function is analogous to the docker build command, in that it can be used to build a Docker-compatible repository tarball containing a single image with one or multiple layers. As such, the result is suitable for being loaded in Docker with docker load. + + + + The parameters of buildImage with relative example values are described below: + + + + Docker build + +buildImage { + name = "redis"; + tag = "latest"; + + fromImage = someBaseImage; + fromImageName = null; + fromImageTag = "latest"; + + contents = pkgs.redis; + runAsRoot = '' + #!${pkgs.runtimeShell} + mkdir -p /data + ''; + + config = { + Cmd = [ "/bin/redis-server" ]; + WorkingDir = "/data"; + Volumes = { + "/data" = {}; + }; + }; +} + + + + + The above example will build a Docker image redis/latest from the given base image. Loading and running this image in Docker results in redis-server being started automatically. + + + + + + name specifies the name of the resulting image. This is the only required argument for buildImage. + + + + + tag specifies the tag of the resulting image. By default it's null, which indicates that the nix output hash will be used as tag. + + + + + fromImage is the repository tarball containing the base image. It must be a valid Docker image, such as exported by docker save. By default it's null, which can be seen as equivalent to FROM scratch of a Dockerfile. + + + + + fromImageName can be used to further specify the base image within the repository, in case it contains multiple images. By default it's null, in which case buildImage will peek the first image available in the repository. + + + + + fromImageTag can be used to further specify the tag of the base image within the repository, in case an image contains multiple tags. By default it's null, in which case buildImage will peek the first tag available for the base image. + + + + + contents is a derivation that will be copied in the new layer of the resulting image. This can be similarly seen as ADD contents/ / in a Dockerfile. By default it's null. + + + + + runAsRoot is a bash script that will run as root in an environment that overlays the existing layers of the base image with the new resulting layer, including the previously copied contents derivation. This can be similarly seen as RUN ... in a Dockerfile. + + + Using this parameter requires the kvm device to be available. + + + + + + + config is used to specify the configuration of the containers that will be started off the built image in Docker. The available options are listed in the Docker Image Specification v1.2.0 . + + + + + + After the new layer has been created, its closure (to which contents, config and runAsRoot contribute) will be copied in the layer itself. Only new dependencies that are not already in the existing layers will be copied. + + + + At the end of the process, only one new single layer will be produced and added to the resulting image. + + + + The resulting repository will only list the single image image/tag. In the case of it would be redis/latest. + + + + It is possible to inspect the arguments with which an image was built using its buildArgs attribute. + + + + + If you see errors similar to getProtocolByName: does not exist (no such protocol name: tcp) you may need to add pkgs.iana-etc to contents. + + + + + + If you see errors similar to Error_Protocol ("certificate has unknown CA",True,UnknownCa) you may need to add pkgs.cacert to contents. + + + + + Impurely Defining a Docker Layer's Creation Date + + By default buildImage will use a static date of one second past the UNIX Epoch. This allows buildImage to produce binary reproducible images. When listing images with docker images, the newly created images will be listed like this: + + + + You can break binary reproducibility but have a sorted, meaningful CREATED column by setting created to now. + + + + and now the Docker CLI will display a reasonable date and sort the images as expected: + + however, the produced images will not be binary reproducible. + + +
+ +
+ buildLayeredImage + + + Create a Docker image with many of the store paths being on their own layer to improve sharing between images. + + + + + + name + + + + The name of the resulting image. + + + + + + tag optional + + + + Tag of the generated image. + + + Default: the output path's hash + + + + + + contents optional + + + + Top level paths in the container. Either a single derivation, or a list of derivations. + + + Default: [] + + + + + + config optional + + + + Run-time configuration of the container. A full list of the options are available at in the Docker Image Specification v1.2.0 . + + + Default: {} + + + + + + created optional + + + + Date and time the layers were created. Follows the same now exception supported by buildImage. + + + Default: 1970-01-01T00:00:01Z + + + + + + maxLayers optional + + + + Maximum number of layers to create. + + + Default: 100 + + + Maximum: 125 + + + + + + extraCommands optional + + + + Shell commands to run while building the final layer, without access to most of the layer contents. Changes to this layer are "on top" of all the other layers, so can create additional directories and files. + + + + + +
+ Behavior of <varname>contents</varname> in the final image + + + Each path directly listed in contents will have a symlink in the root of the image. + + + + For example: + + will create symlinks for all the paths in the hello package: + /nix/store/h1zb1padqbbb7jicsvkmrym3r6snphxg-hello-2.10/bin/hello +/share/info/hello.info -> /nix/store/h1zb1padqbbb7jicsvkmrym3r6snphxg-hello-2.10/share/info/hello.info +/share/locale/bg/LC_MESSAGES/hello.mo -> /nix/store/h1zb1padqbbb7jicsvkmrym3r6snphxg-hello-2.10/share/locale/bg/LC_MESSAGES/hello.mo +]]> + +
+ +
+ Automatic inclusion of <varname>config</varname> references + + + The closure of config is automatically included in the closure of the final image. + + + + This allows you to make very simple Docker images with very little code. This container will start up and run hello: + + +
+ +
+ Adjusting <varname>maxLayers</varname> + + + Increasing the maxLayers increases the number of layers which have a chance to be shared between different images. + + + + Modern Docker installations support up to 128 layers, however older versions support as few as 42. + + + + If the produced image will not be extended by other Docker builds, it is safe to set maxLayers to 128. However it will be impossible to extend the image further. + + + + The first (maxLayers-2) most "popular" paths will have their own individual layers, then layer #maxLayers-1 will contain all the remaining "unpopular" paths, and finally layer #maxLayers will contain the Image configuration. + + + + Docker's Layers are not inherently ordered, they are content-addressable and are not explicitly layered until they are composed in to an Image. + +
+
+ +
+ pullImage + + + This function is analogous to the docker pull command, in that it can be used to pull a Docker image from a Docker registry. By default Docker Hub is used to pull images. + + + + Its parameters are described in the example below: + + + + Docker pull + +pullImage { + imageName = "nixos/nix"; + imageDigest = "sha256:20d9485b25ecfd89204e843a962c1bd70e9cc6858d65d7f5fadc340246e2116b"; + finalImageName = "nix"; + finalImageTag = "1.11"; + sha256 = "0mqjy3zq2v6rrhizgb9nvhczl87lcfphq9601wcprdika2jz7qh8"; + os = "linux"; + arch = "x86_64"; +} + + + + + + + imageName specifies the name of the image to be downloaded, which can also include the registry namespace (e.g. nixos). This argument is required. + + + + + imageDigest specifies the digest of the image to be downloaded. This argument is required. + + + + + finalImageName, if specified, this is the name of the image to be created. Note it is never used to fetch the image since we prefer to rely on the immutable digest ID. By default it's equal to imageName. + + + + + finalImageTag, if specified, this is the tag of the image to be created. Note it is never used to fetch the image since we prefer to rely on the immutable digest ID. By default it's latest. + + + + + sha256 is the checksum of the whole fetched image. This argument is required. + + + + + os, if specified, is the operating system of the fetched image. By default it's linux. + + + + + arch, if specified, is the cpu architecture of the fetched image. By default it's x86_64. + + + + + + nix-prefetch-docker command can be used to get required image parameters: + +$ nix run nixpkgs.nix-prefetch-docker -c nix-prefetch-docker --image-name mysql --image-tag 5 + + Since a given imageName may transparently refer to a manifest list of images which support multiple architectures and/or operating systems, you can supply the and arguments to specify exactly which image you want. By default it will match the OS and architecture of the host the command is run on. + +$ nix-prefetch-docker --image-name mysql --image-tag 5 --arch x86_64 --os linux + + Desired image name and tag can be set using and arguments: + +$ nix-prefetch-docker --image-name mysql --image-tag 5 --final-image-name eu.gcr.io/my-project/mysql --final-image-tag prod + + +
+ +
+ exportImage + + + This function is analogous to the docker export command, in that it can be used to flatten a Docker image that contains multiple layers. It is in fact the result of the merge of all the layers of the image. As such, the result is suitable for being imported in Docker with docker import. + + + + + Using this function requires the kvm device to be available. + + + + + The parameters of exportImage are the following: + + + + Docker export + +exportImage { + fromImage = someLayeredImage; + fromImageName = null; + fromImageTag = null; + + name = someLayeredImage.name; +} + + + + + The parameters relative to the base image have the same synopsis as described in , except that fromImage is the only required argument in this case. + + + + The name argument is the name of the derivation output, which defaults to fromImage.name. + +
+ +
+ shadowSetup + + + This constant string is a helper for setting up the base files for managing users and groups, only if such files don't exist already. It is suitable for being used in a runAsRoot script for cases like in the example below: + + + + Shadow base files + +buildImage { + name = "shadow-basic"; + + runAsRoot = '' + #!${pkgs.runtimeShell} + ${shadowSetup} + groupadd -r redis + useradd -r -g redis redis + mkdir /data + chown redis:redis /data + ''; +} + + + + + Creating base files like /etc/passwd or /etc/login.defs is necessary for shadow-utils to manipulate users and groups. + +
+
diff --git a/doc/builders/images/ocitools.xml b/doc/builders/images/ocitools.xml new file mode 100644 index 0000000000000..f61075b242f8a --- /dev/null +++ b/doc/builders/images/ocitools.xml @@ -0,0 +1,62 @@ +
+ pkgs.ociTools + + + pkgs.ociTools is a set of functions for creating containers according to the OCI container specification v1.0.0. Beyond that it makes no assumptions about the container runner you choose to use to run the created container. + + +
+ buildContainer + + + This function creates a simple OCI container that runs a single command inside of it. An OCI container consists of a config.json and a rootfs directory.The nix store of the container will contain all referenced dependencies of the given command. + + + + The parameters of buildContainer with an example value are described below: + + + + Build Container + +buildContainer { + args = [ (with pkgs; writeScript "run.sh" '' + #!${bash}/bin/bash + ${coreutils}/bin/exec ${bash}/bin/bash + '').outPath ]; + + mounts = { + "/data" = { + type = "none"; + source = "/var/lib/mydata"; + options = [ "bind" ]; + }; + }; + + readonly = false; +} + + + + + + args specifies a set of arguments to run inside the container. This is the only required argument for buildContainer. All referenced packages inside the derivation will be made available inside the container + + + + + mounts specifies additional mount points chosen by the user. By default only a minimal set of necessary filesystems are mounted into the container (e.g procfs, cgroupfs) + + + + + readonly makes the container's rootfs read-only if it is set to true. The default value is false false. + + + + +
+
diff --git a/doc/builders/images/snap/example-firefox.nix b/doc/builders/images/snap/example-firefox.nix new file mode 100644 index 0000000000000..d58c98a65a2e7 --- /dev/null +++ b/doc/builders/images/snap/example-firefox.nix @@ -0,0 +1,28 @@ +let + inherit (import { }) snapTools firefox; +in snapTools.makeSnap { + meta = { + name = "nix-example-firefox"; + summary = firefox.meta.description; + architectures = [ "amd64" ]; + apps.nix-example-firefox = { + command = "${firefox}/bin/firefox"; + plugs = [ + "pulseaudio" + "camera" + "browser-support" + "avahi-observe" + "cups-control" + "desktop" + "desktop-legacy" + "gsettings" + "home" + "network" + "mount-observe" + "removable-media" + "x11" + ]; + }; + confinement = "strict"; + }; +} diff --git a/doc/builders/images/snap/example-hello.nix b/doc/builders/images/snap/example-hello.nix new file mode 100644 index 0000000000000..123da80c54775 --- /dev/null +++ b/doc/builders/images/snap/example-hello.nix @@ -0,0 +1,12 @@ +let + inherit (import { }) snapTools hello; +in snapTools.makeSnap { + meta = { + name = "hello"; + summary = hello.meta.description; + description = hello.meta.longDescription; + architectures = [ "amd64" ]; + confinement = "strict"; + apps.hello.command = "${hello}/bin/hello"; + }; +} diff --git a/doc/builders/images/snaptools.xml b/doc/builders/images/snaptools.xml new file mode 100644 index 0000000000000..422fcfa37d885 --- /dev/null +++ b/doc/builders/images/snaptools.xml @@ -0,0 +1,59 @@ +
+ pkgs.snapTools + + + pkgs.snapTools is a set of functions for creating Snapcraft images. Snap and Snapcraft is not used to perform these operations. + + +
+ The makeSnap Function + + + makeSnap takes a single named argument, meta. This argument mirrors the upstream snap.yaml format exactly. + + + + The base should not be be specified, as makeSnap will force set it. + + + + Currently, makeSnap does not support creating GUI stubs. + +
+ +
+ Build a Hello World Snap + + + Making a Hello World Snap + + The following expression packages GNU Hello as a Snapcraft snap. + + + + nix-build this expression and install it with snap install ./result --dangerous. hello will now be the Snapcraft version of the package. + + +
+ +
+ Build a Hello World Snap + + + Making a Graphical Snap + + Graphical programs require many more integrations with the host. This example uses Firefox as an example, because it is one of the most complicated programs we could package. + + + + nix-build this expression and install it with snap install ./result --dangerous. nix-example-firefox will now be the Snapcraft version of the Firefox package. + + + The specific meaning behind plugs can be looked up in the Snapcraft interface documentation. + + +
+
diff --git a/doc/functions.xml b/doc/functions.xml index 81aef5f3a8306..29b27d7d0dea8 100644 --- a/doc/functions.xml +++ b/doc/functions.xml @@ -12,10 +12,6 @@ - - - -
diff --git a/doc/functions/appimagetools.xml b/doc/functions/appimagetools.xml deleted file mode 100644 index 37e4251cda2ea..0000000000000 --- a/doc/functions/appimagetools.xml +++ /dev/null @@ -1,102 +0,0 @@ -
- pkgs.appimageTools - - - pkgs.appimageTools is a set of functions for extracting and wrapping AppImage files. They are meant to be used if traditional packaging from source is infeasible, or it would take too long. To quickly run an AppImage file, pkgs.appimage-run can be used as well. - - - - - The appimageTools API is unstable and may be subject to backwards-incompatible changes in the future. - - - -
- AppImage formats - - - There are different formats for AppImages, see the specification for details. - - - - - - Type 1 images are ISO 9660 files that are also ELF executables. - - - - - Type 2 images are ELF executables with an appended filesystem. - - - - - - They can be told apart with file -k: - - - -$ file -k type1.AppImage -type1.AppImage: ELF 64-bit LSB executable, x86-64, version 1 (SYSV) ISO 9660 CD-ROM filesystem data 'AppImage' (Lepton 3.x), scale 0-0, -spot sensor temperature 0.000000, unit celsius, color scheme 0, calibration: offset 0.000000, slope 0.000000, dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.18, BuildID[sha1]=d629f6099d2344ad82818172add1d38c5e11bc6d, stripped\012- data - -$ file -k type2.AppImage -type2.AppImage: ELF 64-bit LSB executable, x86-64, version 1 (SYSV) (Lepton 3.x), scale 232-60668, spot sensor temperature -4.187500, color scheme 15, show scale bar, calibration: offset -0.000000, slope 0.000000 (Lepton 2.x), scale 4111-45000, spot sensor temperature 412442.250000, color scheme 3, minimum point enabled, calibration: offset -75402534979642766821519867692934234112.000000, slope 5815371847733706829839455140374904832.000000, dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.18, BuildID[sha1]=79dcc4e55a61c293c5e19edbd8d65b202842579f, stripped\012- data - - - - Note how the type 1 AppImage is described as an ISO 9660 CD-ROM filesystem, and the type 2 AppImage is not. - -
- -
- Wrapping - - - Depending on the type of AppImage you're wrapping, you'll have to use wrapType1 or wrapType2. - - - -appimageTools.wrapType2 { # or wrapType1 - name = "patchwork"; - src = fetchurl { - url = https://github.com/ssbc/patchwork/releases/download/v3.11.4/Patchwork-3.11.4-linux-x86_64.AppImage; - sha256 = "1blsprpkvm0ws9b96gb36f0rbf8f5jgmw4x6dsb1kswr4ysf591s"; - }; - extraPkgs = pkgs: with pkgs; [ ]; -} - - - - - name specifies the name of the resulting image. - - - - - src specifies the AppImage file to extract. - - - - - extraPkgs allows you to pass a function to include additional packages inside the FHS environment your AppImage is going to run in. There are a few ways to learn which dependencies an application needs: - - - - Looking through the extracted AppImage files, reading its scripts and running patchelf and ldd on its executables. This can also be done in appimage-run, by setting APPIMAGE_DEBUG_EXEC=bash. - - - - - Running strace -vfefile on the wrapped executable, looking for libraries that can't be found. - - - - - - -
-
diff --git a/doc/functions/dockertools.xml b/doc/functions/dockertools.xml deleted file mode 100644 index 2243453c3e972..0000000000000 --- a/doc/functions/dockertools.xml +++ /dev/null @@ -1,484 +0,0 @@ -
- pkgs.dockerTools - - - pkgs.dockerTools is a set of functions for creating and manipulating Docker images according to the Docker Image Specification v1.2.0 . Docker itself is not used to perform any of the operations done by these functions. - - - - - The dockerTools API is unstable and may be subject to backwards-incompatible changes in the future. - - - -
- buildImage - - - This function is analogous to the docker build command, in that it can be used to build a Docker-compatible repository tarball containing a single image with one or multiple layers. As such, the result is suitable for being loaded in Docker with docker load. - - - - The parameters of buildImage with relative example values are described below: - - - - Docker build - -buildImage { - name = "redis"; - tag = "latest"; - - fromImage = someBaseImage; - fromImageName = null; - fromImageTag = "latest"; - - contents = pkgs.redis; - runAsRoot = '' - #!${pkgs.runtimeShell} - mkdir -p /data - ''; - - config = { - Cmd = [ "/bin/redis-server" ]; - WorkingDir = "/data"; - Volumes = { - "/data" = {}; - }; - }; -} - - - - - The above example will build a Docker image redis/latest from the given base image. Loading and running this image in Docker results in redis-server being started automatically. - - - - - - name specifies the name of the resulting image. This is the only required argument for buildImage. - - - - - tag specifies the tag of the resulting image. By default it's null, which indicates that the nix output hash will be used as tag. - - - - - fromImage is the repository tarball containing the base image. It must be a valid Docker image, such as exported by docker save. By default it's null, which can be seen as equivalent to FROM scratch of a Dockerfile. - - - - - fromImageName can be used to further specify the base image within the repository, in case it contains multiple images. By default it's null, in which case buildImage will peek the first image available in the repository. - - - - - fromImageTag can be used to further specify the tag of the base image within the repository, in case an image contains multiple tags. By default it's null, in which case buildImage will peek the first tag available for the base image. - - - - - contents is a derivation that will be copied in the new layer of the resulting image. This can be similarly seen as ADD contents/ / in a Dockerfile. By default it's null. - - - - - runAsRoot is a bash script that will run as root in an environment that overlays the existing layers of the base image with the new resulting layer, including the previously copied contents derivation. This can be similarly seen as RUN ... in a Dockerfile. - - - Using this parameter requires the kvm device to be available. - - - - - - - config is used to specify the configuration of the containers that will be started off the built image in Docker. The available options are listed in the Docker Image Specification v1.2.0 . - - - - - - After the new layer has been created, its closure (to which contents, config and runAsRoot contribute) will be copied in the layer itself. Only new dependencies that are not already in the existing layers will be copied. - - - - At the end of the process, only one new single layer will be produced and added to the resulting image. - - - - The resulting repository will only list the single image image/tag. In the case of it would be redis/latest. - - - - It is possible to inspect the arguments with which an image was built using its buildArgs attribute. - - - - - If you see errors similar to getProtocolByName: does not exist (no such protocol name: tcp) you may need to add pkgs.iana-etc to contents. - - - - - - If you see errors similar to Error_Protocol ("certificate has unknown CA",True,UnknownCa) you may need to add pkgs.cacert to contents. - - - - - Impurely Defining a Docker Layer's Creation Date - - By default buildImage will use a static date of one second past the UNIX Epoch. This allows buildImage to produce binary reproducible images. When listing images with docker images, the newly created images will be listed like this: - - - - You can break binary reproducibility but have a sorted, meaningful CREATED column by setting created to now. - - - - and now the Docker CLI will display a reasonable date and sort the images as expected: - - however, the produced images will not be binary reproducible. - - -
- -
- buildLayeredImage - - - Create a Docker image with many of the store paths being on their own layer to improve sharing between images. - - - - - - name - - - - The name of the resulting image. - - - - - - tag optional - - - - Tag of the generated image. - - - Default: the output path's hash - - - - - - contents optional - - - - Top level paths in the container. Either a single derivation, or a list of derivations. - - - Default: [] - - - - - - config optional - - - - Run-time configuration of the container. A full list of the options are available at in the Docker Image Specification v1.2.0 . - - - Default: {} - - - - - - created optional - - - - Date and time the layers were created. Follows the same now exception supported by buildImage. - - - Default: 1970-01-01T00:00:01Z - - - - - - maxLayers optional - - - - Maximum number of layers to create. - - - Default: 100 - - - Maximum: 125 - - - - - - extraCommands optional - - - - Shell commands to run while building the final layer, without access to most of the layer contents. Changes to this layer are "on top" of all the other layers, so can create additional directories and files. - - - - - -
- Behavior of <varname>contents</varname> in the final image - - - Each path directly listed in contents will have a symlink in the root of the image. - - - - For example: - - will create symlinks for all the paths in the hello package: - /nix/store/h1zb1padqbbb7jicsvkmrym3r6snphxg-hello-2.10/bin/hello -/share/info/hello.info -> /nix/store/h1zb1padqbbb7jicsvkmrym3r6snphxg-hello-2.10/share/info/hello.info -/share/locale/bg/LC_MESSAGES/hello.mo -> /nix/store/h1zb1padqbbb7jicsvkmrym3r6snphxg-hello-2.10/share/locale/bg/LC_MESSAGES/hello.mo -]]> - -
- -
- Automatic inclusion of <varname>config</varname> references - - - The closure of config is automatically included in the closure of the final image. - - - - This allows you to make very simple Docker images with very little code. This container will start up and run hello: - - -
- -
- Adjusting <varname>maxLayers</varname> - - - Increasing the maxLayers increases the number of layers which have a chance to be shared between different images. - - - - Modern Docker installations support up to 128 layers, however older versions support as few as 42. - - - - If the produced image will not be extended by other Docker builds, it is safe to set maxLayers to 128. However it will be impossible to extend the image further. - - - - The first (maxLayers-2) most "popular" paths will have their own individual layers, then layer #maxLayers-1 will contain all the remaining "unpopular" paths, and finally layer #maxLayers will contain the Image configuration. - - - - Docker's Layers are not inherently ordered, they are content-addressable and are not explicitly layered until they are composed in to an Image. - -
-
- -
- pullImage - - - This function is analogous to the docker pull command, in that it can be used to pull a Docker image from a Docker registry. By default Docker Hub is used to pull images. - - - - Its parameters are described in the example below: - - - - Docker pull - -pullImage { - imageName = "nixos/nix"; - imageDigest = "sha256:20d9485b25ecfd89204e843a962c1bd70e9cc6858d65d7f5fadc340246e2116b"; - finalImageName = "nix"; - finalImageTag = "1.11"; - sha256 = "0mqjy3zq2v6rrhizgb9nvhczl87lcfphq9601wcprdika2jz7qh8"; - os = "linux"; - arch = "x86_64"; -} - - - - - - - imageName specifies the name of the image to be downloaded, which can also include the registry namespace (e.g. nixos). This argument is required. - - - - - imageDigest specifies the digest of the image to be downloaded. This argument is required. - - - - - finalImageName, if specified, this is the name of the image to be created. Note it is never used to fetch the image since we prefer to rely on the immutable digest ID. By default it's equal to imageName. - - - - - finalImageTag, if specified, this is the tag of the image to be created. Note it is never used to fetch the image since we prefer to rely on the immutable digest ID. By default it's latest. - - - - - sha256 is the checksum of the whole fetched image. This argument is required. - - - - - os, if specified, is the operating system of the fetched image. By default it's linux. - - - - - arch, if specified, is the cpu architecture of the fetched image. By default it's x86_64. - - - - - - nix-prefetch-docker command can be used to get required image parameters: - -$ nix run nixpkgs.nix-prefetch-docker -c nix-prefetch-docker --image-name mysql --image-tag 5 - - Since a given imageName may transparently refer to a manifest list of images which support multiple architectures and/or operating systems, you can supply the and arguments to specify exactly which image you want. By default it will match the OS and architecture of the host the command is run on. - -$ nix-prefetch-docker --image-name mysql --image-tag 5 --arch x86_64 --os linux - - Desired image name and tag can be set using and arguments: - -$ nix-prefetch-docker --image-name mysql --image-tag 5 --final-image-name eu.gcr.io/my-project/mysql --final-image-tag prod - - -
- -
- exportImage - - - This function is analogous to the docker export command, in that it can be used to flatten a Docker image that contains multiple layers. It is in fact the result of the merge of all the layers of the image. As such, the result is suitable for being imported in Docker with docker import. - - - - - Using this function requires the kvm device to be available. - - - - - The parameters of exportImage are the following: - - - - Docker export - -exportImage { - fromImage = someLayeredImage; - fromImageName = null; - fromImageTag = null; - - name = someLayeredImage.name; -} - - - - - The parameters relative to the base image have the same synopsis as described in , except that fromImage is the only required argument in this case. - - - - The name argument is the name of the derivation output, which defaults to fromImage.name. - -
- -
- shadowSetup - - - This constant string is a helper for setting up the base files for managing users and groups, only if such files don't exist already. It is suitable for being used in a runAsRoot script for cases like in the example below: - - - - Shadow base files - -buildImage { - name = "shadow-basic"; - - runAsRoot = '' - #!${pkgs.runtimeShell} - ${shadowSetup} - groupadd -r redis - useradd -r -g redis redis - mkdir /data - chown redis:redis /data - ''; -} - - - - - Creating base files like /etc/passwd or /etc/login.defs is necessary for shadow-utils to manipulate users and groups. - -
-
diff --git a/doc/functions/ocitools.xml b/doc/functions/ocitools.xml deleted file mode 100644 index f61075b242f8a..0000000000000 --- a/doc/functions/ocitools.xml +++ /dev/null @@ -1,62 +0,0 @@ -
- pkgs.ociTools - - - pkgs.ociTools is a set of functions for creating containers according to the OCI container specification v1.0.0. Beyond that it makes no assumptions about the container runner you choose to use to run the created container. - - -
- buildContainer - - - This function creates a simple OCI container that runs a single command inside of it. An OCI container consists of a config.json and a rootfs directory.The nix store of the container will contain all referenced dependencies of the given command. - - - - The parameters of buildContainer with an example value are described below: - - - - Build Container - -buildContainer { - args = [ (with pkgs; writeScript "run.sh" '' - #!${bash}/bin/bash - ${coreutils}/bin/exec ${bash}/bin/bash - '').outPath ]; - - mounts = { - "/data" = { - type = "none"; - source = "/var/lib/mydata"; - options = [ "bind" ]; - }; - }; - - readonly = false; -} - - - - - - args specifies a set of arguments to run inside the container. This is the only required argument for buildContainer. All referenced packages inside the derivation will be made available inside the container - - - - - mounts specifies additional mount points chosen by the user. By default only a minimal set of necessary filesystems are mounted into the container (e.g procfs, cgroupfs) - - - - - readonly makes the container's rootfs read-only if it is set to true. The default value is false false. - - - - -
-
diff --git a/doc/functions/snap/example-firefox.nix b/doc/functions/snap/example-firefox.nix deleted file mode 100644 index d58c98a65a2e7..0000000000000 --- a/doc/functions/snap/example-firefox.nix +++ /dev/null @@ -1,28 +0,0 @@ -let - inherit (import { }) snapTools firefox; -in snapTools.makeSnap { - meta = { - name = "nix-example-firefox"; - summary = firefox.meta.description; - architectures = [ "amd64" ]; - apps.nix-example-firefox = { - command = "${firefox}/bin/firefox"; - plugs = [ - "pulseaudio" - "camera" - "browser-support" - "avahi-observe" - "cups-control" - "desktop" - "desktop-legacy" - "gsettings" - "home" - "network" - "mount-observe" - "removable-media" - "x11" - ]; - }; - confinement = "strict"; - }; -} diff --git a/doc/functions/snap/example-hello.nix b/doc/functions/snap/example-hello.nix deleted file mode 100644 index 123da80c54775..0000000000000 --- a/doc/functions/snap/example-hello.nix +++ /dev/null @@ -1,12 +0,0 @@ -let - inherit (import { }) snapTools hello; -in snapTools.makeSnap { - meta = { - name = "hello"; - summary = hello.meta.description; - description = hello.meta.longDescription; - architectures = [ "amd64" ]; - confinement = "strict"; - apps.hello.command = "${hello}/bin/hello"; - }; -} diff --git a/doc/functions/snaptools.xml b/doc/functions/snaptools.xml deleted file mode 100644 index 422fcfa37d885..0000000000000 --- a/doc/functions/snaptools.xml +++ /dev/null @@ -1,59 +0,0 @@ -
- pkgs.snapTools - - - pkgs.snapTools is a set of functions for creating Snapcraft images. Snap and Snapcraft is not used to perform these operations. - - -
- The makeSnap Function - - - makeSnap takes a single named argument, meta. This argument mirrors the upstream snap.yaml format exactly. - - - - The base should not be be specified, as makeSnap will force set it. - - - - Currently, makeSnap does not support creating GUI stubs. - -
- -
- Build a Hello World Snap - - - Making a Hello World Snap - - The following expression packages GNU Hello as a Snapcraft snap. - - - - nix-build this expression and install it with snap install ./result --dangerous. hello will now be the Snapcraft version of the package. - - -
- -
- Build a Hello World Snap - - - Making a Graphical Snap - - Graphical programs require many more integrations with the host. This example uses Firefox as an example, because it is one of the most complicated programs we could package. - - - - nix-build this expression and install it with snap install ./result --dangerous. nix-example-firefox will now be the Snapcraft version of the Firefox package. - - - The specific meaning behind plugs can be looked up in the Snapcraft interface documentation. - - -
-
diff --git a/doc/manual.xml b/doc/manual.xml index d0ded1e2e1673..525373a342729 100644 --- a/doc/manual.xml +++ b/doc/manual.xml @@ -24,6 +24,7 @@ Builders + -- cgit 1.4.1 From 24b1ef51337cc8267955eedda818cfccb222f2ea Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Mon, 21 Oct 2019 11:19:46 +0200 Subject: doc: move overrides into separate chapter --- doc/functions.xml | 1 - doc/functions/overrides.xml | 151 -------------------------------------------- doc/manual.xml | 1 + doc/overrides.xml | 151 ++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 152 insertions(+), 152 deletions(-) delete mode 100644 doc/functions/overrides.xml create mode 100644 doc/overrides.xml (limited to 'doc') diff --git a/doc/functions.xml b/doc/functions.xml index 29b27d7d0dea8..970367870eed6 100644 --- a/doc/functions.xml +++ b/doc/functions.xml @@ -7,7 +7,6 @@ The nixpkgs repository has several utility functions to manipulate Nix expressions.
- diff --git a/doc/functions/overrides.xml b/doc/functions/overrides.xml deleted file mode 100644 index 4ba4283c6094d..0000000000000 --- a/doc/functions/overrides.xml +++ /dev/null @@ -1,151 +0,0 @@ -
- Overriding - - - Sometimes one wants to override parts of nixpkgs, e.g. derivation attributes, the results of derivations. - - - - These functions are used to make changes to packages, returning only single packages. Overlays, on the other hand, can be used to combine the overridden packages across the entire package set of Nixpkgs. - - -
- <pkg>.override - - - The function override is usually available for all the derivations in the nixpkgs expression (pkgs). - - - - It is used to override the arguments passed to a function. - - - - Example usages: -pkgs.foo.override { arg1 = val1; arg2 = val2; ... } - - -import pkgs.path { overlays = [ (self: super: { - foo = super.foo.override { barSupport = true ; }; - })]}; - - -mypkg = pkgs.callPackage ./mypkg.nix { - mydep = pkgs.mydep.override { ... }; - } - - - - - In the first example, pkgs.foo is the result of a function call with some default arguments, usually a derivation. Using pkgs.foo.override will call the same function with the given new arguments. - -
- -
- <pkg>.overrideAttrs - - - The function overrideAttrs allows overriding the attribute set passed to a stdenv.mkDerivation call, producing a new derivation based on the original one. This function is available on all derivations produced by the stdenv.mkDerivation function, which is most packages in the nixpkgs expression pkgs. - - - - Example usage: - -helloWithDebug = pkgs.hello.overrideAttrs (oldAttrs: rec { - separateDebugInfo = true; -}); - - - - - In the above example, the separateDebugInfo attribute is overridden to be true, thus building debug info for helloWithDebug, while all other attributes will be retained from the original hello package. - - - - The argument oldAttrs is conventionally used to refer to the attr set originally passed to stdenv.mkDerivation. - - - - - Note that separateDebugInfo is processed only by the stdenv.mkDerivation function, not the generated, raw Nix derivation. Thus, using overrideDerivation will not work in this case, as it overrides only the attributes of the final derivation. It is for this reason that overrideAttrs should be preferred in (almost) all cases to overrideDerivation, i.e. to allow using stdenv.mkDerivation to process input arguments, as well as the fact that it is easier to use (you can use the same attribute names you see in your Nix code, instead of the ones generated (e.g. buildInputs vs nativeBuildInputs), and it involves less typing). - - -
- -
- <pkg>.overrideDerivation - - - - You should prefer overrideAttrs in almost all cases, see its documentation for the reasons why. overrideDerivation is not deprecated and will continue to work, but is less nice to use and does not have as many abilities as overrideAttrs. - - - - - - Do not use this function in Nixpkgs as it evaluates a Derivation before modifying it, which breaks package abstraction and removes error-checking of function arguments. In addition, this evaluation-per-function application incurs a performance penalty, which can become a problem if many overrides are used. It is only intended for ad-hoc customisation, such as in ~/.config/nixpkgs/config.nix. - - - - - The function overrideDerivation creates a new derivation based on an existing one by overriding the original's attributes with the attribute set produced by the specified function. This function is available on all derivations defined using the makeOverridable function. Most standard derivation-producing functions, such as stdenv.mkDerivation, are defined using this function, which means most packages in the nixpkgs expression, pkgs, have this function. - - - - Example usage: - -mySed = pkgs.gnused.overrideDerivation (oldAttrs: { - name = "sed-4.2.2-pre"; - src = fetchurl { - url = ftp://alpha.gnu.org/gnu/sed/sed-4.2.2-pre.tar.bz2; - sha256 = "11nq06d131y4wmf3drm0yk502d2xc6n5qy82cg88rb9nqd2lj41k"; - }; - patches = []; -}); - - - - - In the above example, the name, src, and patches of the derivation will be overridden, while all other attributes will be retained from the original derivation. - - - - The argument oldAttrs is used to refer to the attribute set of the original derivation. - - - - - A package's attributes are evaluated *before* being modified by the overrideDerivation function. For example, the name attribute reference in url = "mirror://gnu/hello/${name}.tar.gz"; is filled-in *before* the overrideDerivation function modifies the attribute set. This means that overriding the name attribute, in this example, *will not* change the value of the url attribute. Instead, we need to override both the name *and* url attributes. - - -
- -
- lib.makeOverridable - - - The function lib.makeOverridable is used to make the result of a function easily customizable. This utility only makes sense for functions that accept an argument set and return an attribute set. - - - - Example usage: - -f = { a, b }: { result = a+b; }; -c = lib.makeOverridable f { a = 1; b = 2; }; - - - - - The variable c is the value of the f function applied with some default arguments. Hence the value of c.result is 3, in this example. - - - - The variable c however also has some additional functions, like c.override which can be used to override the default arguments. In this example the value of (c.override { a = 4; }).result is 6. - -
-
diff --git a/doc/manual.xml b/doc/manual.xml index 525373a342729..31c507178a8a6 100644 --- a/doc/manual.xml +++ b/doc/manual.xml @@ -10,6 +10,7 @@ Using Nixpkgs + diff --git a/doc/overrides.xml b/doc/overrides.xml new file mode 100644 index 0000000000000..991e13a1b8289 --- /dev/null +++ b/doc/overrides.xml @@ -0,0 +1,151 @@ + + Overriding + + + Sometimes one wants to override parts of nixpkgs, e.g. derivation attributes, the results of derivations. + + + + These functions are used to make changes to packages, returning only single packages. Overlays, on the other hand, can be used to combine the overridden packages across the entire package set of Nixpkgs. + + +
+ <pkg>.override + + + The function override is usually available for all the derivations in the nixpkgs expression (pkgs). + + + + It is used to override the arguments passed to a function. + + + + Example usages: +pkgs.foo.override { arg1 = val1; arg2 = val2; ... } + + +import pkgs.path { overlays = [ (self: super: { + foo = super.foo.override { barSupport = true ; }; + })]}; + + +mypkg = pkgs.callPackage ./mypkg.nix { + mydep = pkgs.mydep.override { ... }; + } + + + + + In the first example, pkgs.foo is the result of a function call with some default arguments, usually a derivation. Using pkgs.foo.override will call the same function with the given new arguments. + +
+ +
+ <pkg>.overrideAttrs + + + The function overrideAttrs allows overriding the attribute set passed to a stdenv.mkDerivation call, producing a new derivation based on the original one. This function is available on all derivations produced by the stdenv.mkDerivation function, which is most packages in the nixpkgs expression pkgs. + + + + Example usage: + +helloWithDebug = pkgs.hello.overrideAttrs (oldAttrs: rec { + separateDebugInfo = true; +}); + + + + + In the above example, the separateDebugInfo attribute is overridden to be true, thus building debug info for helloWithDebug, while all other attributes will be retained from the original hello package. + + + + The argument oldAttrs is conventionally used to refer to the attr set originally passed to stdenv.mkDerivation. + + + + + Note that separateDebugInfo is processed only by the stdenv.mkDerivation function, not the generated, raw Nix derivation. Thus, using overrideDerivation will not work in this case, as it overrides only the attributes of the final derivation. It is for this reason that overrideAttrs should be preferred in (almost) all cases to overrideDerivation, i.e. to allow using stdenv.mkDerivation to process input arguments, as well as the fact that it is easier to use (you can use the same attribute names you see in your Nix code, instead of the ones generated (e.g. buildInputs vs nativeBuildInputs), and it involves less typing). + + +
+ +
+ <pkg>.overrideDerivation + + + + You should prefer overrideAttrs in almost all cases, see its documentation for the reasons why. overrideDerivation is not deprecated and will continue to work, but is less nice to use and does not have as many abilities as overrideAttrs. + + + + + + Do not use this function in Nixpkgs as it evaluates a Derivation before modifying it, which breaks package abstraction and removes error-checking of function arguments. In addition, this evaluation-per-function application incurs a performance penalty, which can become a problem if many overrides are used. It is only intended for ad-hoc customisation, such as in ~/.config/nixpkgs/config.nix. + + + + + The function overrideDerivation creates a new derivation based on an existing one by overriding the original's attributes with the attribute set produced by the specified function. This function is available on all derivations defined using the makeOverridable function. Most standard derivation-producing functions, such as stdenv.mkDerivation, are defined using this function, which means most packages in the nixpkgs expression, pkgs, have this function. + + + + Example usage: + +mySed = pkgs.gnused.overrideDerivation (oldAttrs: { + name = "sed-4.2.2-pre"; + src = fetchurl { + url = ftp://alpha.gnu.org/gnu/sed/sed-4.2.2-pre.tar.bz2; + sha256 = "11nq06d131y4wmf3drm0yk502d2xc6n5qy82cg88rb9nqd2lj41k"; + }; + patches = []; +}); + + + + + In the above example, the name, src, and patches of the derivation will be overridden, while all other attributes will be retained from the original derivation. + + + + The argument oldAttrs is used to refer to the attribute set of the original derivation. + + + + + A package's attributes are evaluated *before* being modified by the overrideDerivation function. For example, the name attribute reference in url = "mirror://gnu/hello/${name}.tar.gz"; is filled-in *before* the overrideDerivation function modifies the attribute set. This means that overriding the name attribute, in this example, *will not* change the value of the url attribute. Instead, we need to override both the name *and* url attributes. + + +
+ +
+ lib.makeOverridable + + + The function lib.makeOverridable is used to make the result of a function easily customizable. This utility only makes sense for functions that accept an argument set and return an attribute set. + + + + Example usage: + +f = { a, b }: { result = a+b; }; +c = lib.makeOverridable f { a = 1; b = 2; }; + + + + + The variable c is the value of the f function applied with some default arguments. Hence the value of c.result is 3, in this example. + + + + The variable c however also has some additional functions, like c.override which can be used to override the default arguments. In this example the value of (c.override { a = 4; }).result is 6. + +
+
-- cgit 1.4.1 From 2b9713c2815aafaa410acca8600da5dbf7ca6821 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Mon, 21 Oct 2019 11:39:46 +0200 Subject: doc: move fhs and mkShell under builders/special In my opinion Functions should only contain pure functions. These are both meant to provide derivations so I put them under Builders. Don't know exactly *where* to put them so "special" it is... --- doc/builders/special.xml | 12 +++ doc/builders/special/fhs-environments.xml | 122 ++++++++++++++++++++++++++++++ doc/builders/special/mkshell.xml | 24 ++++++ doc/functions.xml | 2 - doc/functions/fhs-environments.xml | 122 ------------------------------ doc/functions/shell.xml | 24 ------ doc/manual.xml | 1 + 7 files changed, 159 insertions(+), 148 deletions(-) create mode 100644 doc/builders/special.xml create mode 100644 doc/builders/special/fhs-environments.xml create mode 100644 doc/builders/special/mkshell.xml delete mode 100644 doc/functions/fhs-environments.xml delete mode 100644 doc/functions/shell.xml (limited to 'doc') diff --git a/doc/builders/special.xml b/doc/builders/special.xml new file mode 100644 index 0000000000000..56d98f025278e --- /dev/null +++ b/doc/builders/special.xml @@ -0,0 +1,12 @@ + + Special builders + + This chapter describes several special builders. + + + + + + diff --git a/doc/builders/special/fhs-environments.xml b/doc/builders/special/fhs-environments.xml new file mode 100644 index 0000000000000..e7b81e97a23f9 --- /dev/null +++ b/doc/builders/special/fhs-environments.xml @@ -0,0 +1,122 @@ +
+ buildFHSUserEnv + + + buildFHSUserEnv provides a way to build and run FHS-compatible lightweight sandboxes. It creates an isolated root with bound /nix/store, so its footprint in terms of disk space needed is quite small. This allows one to run software which is hard or unfeasible to patch for NixOS -- 3rd-party source trees with FHS assumptions, games distributed as tarballs, software with integrity checking and/or external self-updated binaries. It uses Linux namespaces feature to create temporary lightweight environments which are destroyed after all child processes exit, without root user rights requirement. Accepted arguments are: + + + + + + name + + + + Environment name. + + + + + + targetPkgs + + + + Packages to be installed for the main host's architecture (i.e. x86_64 on x86_64 installations). Along with libraries binaries are also installed. + + + + + + multiPkgs + + + + Packages to be installed for all architectures supported by a host (i.e. i686 and x86_64 on x86_64 installations). Only libraries are installed by default. + + + + + + extraBuildCommands + + + + Additional commands to be executed for finalizing the directory structure. + + + + + + extraBuildCommandsMulti + + + + Like extraBuildCommands, but executed only on multilib architectures. + + + + + + extraOutputsToInstall + + + + Additional derivation outputs to be linked for both target and multi-architecture packages. + + + + + + extraInstallCommands + + + + Additional commands to be executed for finalizing the derivation with runner script. + + + + + + runScript + + + + A command that would be executed inside the sandbox and passed all the command line arguments. It defaults to bash. + + + + + + + One can create a simple environment using a shell.nix like that: + + + {} }: + +(pkgs.buildFHSUserEnv { + name = "simple-x11-env"; + targetPkgs = pkgs: (with pkgs; + [ udev + alsaLib + ]) ++ (with pkgs.xorg; + [ libX11 + libXcursor + libXrandr + ]); + multiPkgs = pkgs: (with pkgs; + [ udev + alsaLib + ]); + runScript = "bash"; +}).env +]]> + + + Running nix-shell would then drop you into a shell with these libraries and binaries available. You can use this to run closed-source applications which expect FHS structure without hassles: simply change runScript to the application path, e.g. ./bin/start.sh -- relative paths are supported. + +
diff --git a/doc/builders/special/mkshell.xml b/doc/builders/special/mkshell.xml new file mode 100644 index 0000000000000..cef65d06b8823 --- /dev/null +++ b/doc/builders/special/mkshell.xml @@ -0,0 +1,24 @@ +
+ pkgs.mkShell + + + pkgs.mkShell is a special kind of derivation that is only useful when using it combined with nix-shell. It will in fact fail to instantiate when invoked with nix-build. + + +
+ Usage + + {} }: +pkgs.mkShell { + # this will make all the build inputs from hello and gnutar + # available to the shell environment + inputsFrom = with pkgs; [ hello gnutar ]; + buildInputs = [ pkgs.gnumake ]; +} +]]> +
+
diff --git a/doc/functions.xml b/doc/functions.xml index 970367870eed6..5a9240ec800e2 100644 --- a/doc/functions.xml +++ b/doc/functions.xml @@ -9,8 +9,6 @@ - - diff --git a/doc/functions/fhs-environments.xml b/doc/functions/fhs-environments.xml deleted file mode 100644 index e7b81e97a23f9..0000000000000 --- a/doc/functions/fhs-environments.xml +++ /dev/null @@ -1,122 +0,0 @@ -
- buildFHSUserEnv - - - buildFHSUserEnv provides a way to build and run FHS-compatible lightweight sandboxes. It creates an isolated root with bound /nix/store, so its footprint in terms of disk space needed is quite small. This allows one to run software which is hard or unfeasible to patch for NixOS -- 3rd-party source trees with FHS assumptions, games distributed as tarballs, software with integrity checking and/or external self-updated binaries. It uses Linux namespaces feature to create temporary lightweight environments which are destroyed after all child processes exit, without root user rights requirement. Accepted arguments are: - - - - - - name - - - - Environment name. - - - - - - targetPkgs - - - - Packages to be installed for the main host's architecture (i.e. x86_64 on x86_64 installations). Along with libraries binaries are also installed. - - - - - - multiPkgs - - - - Packages to be installed for all architectures supported by a host (i.e. i686 and x86_64 on x86_64 installations). Only libraries are installed by default. - - - - - - extraBuildCommands - - - - Additional commands to be executed for finalizing the directory structure. - - - - - - extraBuildCommandsMulti - - - - Like extraBuildCommands, but executed only on multilib architectures. - - - - - - extraOutputsToInstall - - - - Additional derivation outputs to be linked for both target and multi-architecture packages. - - - - - - extraInstallCommands - - - - Additional commands to be executed for finalizing the derivation with runner script. - - - - - - runScript - - - - A command that would be executed inside the sandbox and passed all the command line arguments. It defaults to bash. - - - - - - - One can create a simple environment using a shell.nix like that: - - - {} }: - -(pkgs.buildFHSUserEnv { - name = "simple-x11-env"; - targetPkgs = pkgs: (with pkgs; - [ udev - alsaLib - ]) ++ (with pkgs.xorg; - [ libX11 - libXcursor - libXrandr - ]); - multiPkgs = pkgs: (with pkgs; - [ udev - alsaLib - ]); - runScript = "bash"; -}).env -]]> - - - Running nix-shell would then drop you into a shell with these libraries and binaries available. You can use this to run closed-source applications which expect FHS structure without hassles: simply change runScript to the application path, e.g. ./bin/start.sh -- relative paths are supported. - -
diff --git a/doc/functions/shell.xml b/doc/functions/shell.xml deleted file mode 100644 index cef65d06b8823..0000000000000 --- a/doc/functions/shell.xml +++ /dev/null @@ -1,24 +0,0 @@ -
- pkgs.mkShell - - - pkgs.mkShell is a special kind of derivation that is only useful when using it combined with nix-shell. It will in fact fail to instantiate when invoked with nix-build. - - -
- Usage - - {} }: -pkgs.mkShell { - # this will make all the build inputs from hello and gnutar - # available to the shell environment - inputsFrom = with pkgs; [ hello gnutar ]; - buildInputs = [ pkgs.gnumake ]; -} -]]> -
-
diff --git a/doc/manual.xml b/doc/manual.xml index 31c507178a8a6..de2c70eaf3529 100644 --- a/doc/manual.xml +++ b/doc/manual.xml @@ -25,6 +25,7 @@ Builders + -- cgit 1.4.1 From 3265f554ca6078b571f979ea733ae83786ed0ec9 Mon Sep 17 00:00:00 2001 From: Stig Otnes Kolstad Date: Thu, 24 Oct 2019 02:50:28 +0200 Subject: doc: fix tiny typo --- doc/languages-frameworks/python.section.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/languages-frameworks/python.section.md b/doc/languages-frameworks/python.section.md index 4b18a9139d8ec..02bff8666e29e 100644 --- a/doc/languages-frameworks/python.section.md +++ b/doc/languages-frameworks/python.section.md @@ -593,7 +593,7 @@ as the interpreter unless overridden otherwise. All parameters from `stdenv.mkDerivation` function are still supported. The following are specific to `buildPythonPackage`: * `catchConflicts ? true`: If `true`, abort package build if a package name appears more than once in dependency tree. Default is `true`. -* `disabled` ? false: If `true`, package is not build for the particular Python interpreter version. +* `disabled` ? false: If `true`, package is not built for the particular Python interpreter version. * `dontWrapPythonPrograms ? false`: Skip wrapping of python programs. * `permitUserSite ? false`: Skip setting the `PYTHONNOUSERSITE` environment variable in wrapped programs. * `installFlags ? []`: A list of strings. Arguments to be passed to `pip install`. To pass options to `python setup.py install`, use `--install-option`. E.g., `installFlags=["--install-option='--cpp_implementation'"]`. -- cgit 1.4.1 From 8ee774042711dcb499881f5597ee627cd7c39ff7 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Mon, 28 Oct 2019 11:40:40 +0100 Subject: nixpkgs manual: various improvements in introduction - rename to preface to be inline with NixOS manual - refer to other manuals - use https - change example channel to 19.09 --- doc/introduction.chapter.md | 51 -------------------------------------------- doc/manual.xml | 2 +- doc/preface.chapter.md | 52 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 53 insertions(+), 52 deletions(-) delete mode 100644 doc/introduction.chapter.md create mode 100644 doc/preface.chapter.md (limited to 'doc') diff --git a/doc/introduction.chapter.md b/doc/introduction.chapter.md deleted file mode 100644 index 713c7181a3a03..0000000000000 --- a/doc/introduction.chapter.md +++ /dev/null @@ -1,51 +0,0 @@ ---- -title: Introduction -author: Frederik Rietdijk -date: 2015-11-25 ---- - -# Introduction - -The Nix Packages collection (Nixpkgs) is a set of thousands of packages for the -[Nix package manager](http://nixos.org/nix/), released under a -[permissive MIT/X11 license](https://github.com/NixOS/nixpkgs/blob/master/COPYING). -Packages are available for several platforms, and can be used with the Nix -package manager on most GNU/Linux distributions as well as NixOS. - -This manual primarily describes how to write packages for the Nix Packages collection -(Nixpkgs). Thus it’s mainly for packagers and developers who want to add packages to -Nixpkgs. If you like to learn more about the Nix package manager and the Nix -expression language, then you are kindly referred to the [Nix manual](http://nixos.org/nix/manual/). - -## Overview of Nixpkgs - -Nix expressions describe how to build packages from source and are collected in -the [nixpkgs repository](https://github.com/NixOS/nixpkgs). Also included in the -collection are Nix expressions for -[NixOS modules](http://nixos.org/nixos/manual/index.html#sec-writing-modules). -With these expressions the Nix package manager can build binary packages. - -Packages, including the Nix packages collection, are distributed through -[channels](http://nixos.org/nix/manual/#sec-channels). The collection is -distributed for users of Nix on non-NixOS distributions through the channel -`nixpkgs`. Users of NixOS generally use one of the `nixos-*` channels, e.g. -`nixos-16.03`, which includes all packages and modules for the stable NixOS -16.03. Stable NixOS releases are generally only given -security updates. More up to date packages and modules are available via the -`nixos-unstable` channel. - -Both `nixos-unstable` and `nixpkgs` follow the `master` branch of the Nixpkgs -repository, although both do lag the `master` branch by generally -[a couple of days](http://howoldis.herokuapp.com/). Updates to a channel are -distributed as soon as all tests for that channel pass, e.g. -[this table](http://hydra.nixos.org/job/nixpkgs/trunk/unstable#tabs-constituents) -shows the status of tests for the `nixpkgs` channel. - -The tests are conducted by a cluster called [Hydra](http://nixos.org/hydra/), -which also builds binary packages from the Nix expressions in Nixpkgs for -`x86_64-linux`, `i686-linux` and `x86_64-darwin`. -The binaries are made available via a [binary cache](https://cache.nixos.org). - -The current Nix expressions of the channels are available in the -[`nixpkgs`](https://github.com/NixOS/nixpkgs) repository in branches -that correspond to the channel names (e.g. `nixos-19.09-small`). diff --git a/doc/manual.xml b/doc/manual.xml index de2c70eaf3529..f9a5e56275f9a 100644 --- a/doc/manual.xml +++ b/doc/manual.xml @@ -5,7 +5,7 @@ Version - + Using Nixpkgs diff --git a/doc/preface.chapter.md b/doc/preface.chapter.md new file mode 100644 index 0000000000000..88ca5e2e3cec5 --- /dev/null +++ b/doc/preface.chapter.md @@ -0,0 +1,52 @@ +--- +title: Preface +author: Frederik Rietdijk +date: 2015-11-25 +--- + +# Preface + +The Nix Packages collection (Nixpkgs) is a set of thousands of packages for the +[Nix package manager](https://nixos.org/nix/), released under a +[permissive MIT/X11 license](https://github.com/NixOS/nixpkgs/blob/master/COPYING). +Packages are available for several platforms, and can be used with the Nix +package manager on most GNU/Linux distributions as well as [NixOS](https://nixos.org/nixos). + +This manual primarily describes how to write packages for the Nix Packages collection +(Nixpkgs). Thus it’s mainly for packagers and developers who want to add packages to +Nixpkgs. If you like to learn more about the Nix package manager and the Nix +expression language, then you are kindly referred to the [Nix manual](https://nixos.org/nix/manual/). +The NixOS distribution is documented in the [NixOS manual](https://nixos.org/nixos/manual/). + +## Overview of Nixpkgs + +Nix expressions describe how to build packages from source and are collected in +the [nixpkgs repository](https://github.com/NixOS/nixpkgs). Also included in the +collection are Nix expressions for +[NixOS modules](https://nixos.org/nixos/manual/index.html#sec-writing-modules). +With these expressions the Nix package manager can build binary packages. + +Packages, including the Nix packages collection, are distributed through +[channels](https://nixos.org/nix/manual/#sec-channels). The collection is +distributed for users of Nix on non-NixOS distributions through the channel +`nixpkgs`. Users of NixOS generally use one of the `nixos-*` channels, e.g. +`nixos-19.09`, which includes all packages and modules for the stable NixOS +19.09. Stable NixOS releases are generally only given +security updates. More up to date packages and modules are available via the +`nixos-unstable` channel. + +Both `nixos-unstable` and `nixpkgs` follow the `master` branch of the Nixpkgs +repository, although both do lag the `master` branch by generally +[a couple of days](https://howoldis.herokuapp.com/). Updates to a channel are +distributed as soon as all tests for that channel pass, e.g. +[this table](https://hydra.nixos.org/job/nixpkgs/trunk/unstable#tabs-constituents) +shows the status of tests for the `nixpkgs` channel. + +The tests are conducted by a cluster called [Hydra](http://nixos.org/hydra/), +which also builds binary packages from the Nix expressions in Nixpkgs for +`x86_64-linux`, `i686-linux` and `x86_64-darwin`. +The binaries are made available via a [binary cache](https://cache.nixos.org). + +The current Nix expressions of the channels are available in the +[`nixpkgs`](https://github.com/NixOS/nixpkgs) repository in branches +that correspond to the channel names (e.g. `nixos-19.09-small`). -- cgit 1.4.1 From ddbf4c1bac20f6061d4b42a901545eaf345067df Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Wed, 30 Oct 2019 10:27:47 +0100 Subject: nixpkgs manual: move contributing chapters into one folder --- doc/coding-conventions.xml | 903 --------------------- doc/contributing-to-documentation.xml | 30 - doc/contributing/coding-conventions.xml | 903 +++++++++++++++++++++ doc/contributing/contributing-to-documentation.xml | 30 + doc/contributing/quick-start.xml | 153 ++++ doc/contributing/reviewing-contributions.xml | 536 ++++++++++++ doc/contributing/submitting-changes.xml | 429 ++++++++++ doc/manual.xml | 10 +- doc/quick-start.xml | 153 ---- doc/reviewing-contributions.xml | 536 ------------ doc/submitting-changes.xml | 429 ---------- 11 files changed, 2056 insertions(+), 2056 deletions(-) delete mode 100644 doc/coding-conventions.xml delete mode 100644 doc/contributing-to-documentation.xml create mode 100644 doc/contributing/coding-conventions.xml create mode 100644 doc/contributing/contributing-to-documentation.xml create mode 100644 doc/contributing/quick-start.xml create mode 100644 doc/contributing/reviewing-contributions.xml create mode 100644 doc/contributing/submitting-changes.xml delete mode 100644 doc/quick-start.xml delete mode 100644 doc/reviewing-contributions.xml delete mode 100644 doc/submitting-changes.xml (limited to 'doc') diff --git a/doc/coding-conventions.xml b/doc/coding-conventions.xml deleted file mode 100644 index 799f1479467a5..0000000000000 --- a/doc/coding-conventions.xml +++ /dev/null @@ -1,903 +0,0 @@ - - Coding conventions -
- Syntax - - - - - Use 2 spaces of indentation per indentation level in Nix expressions, 4 spaces in shell scripts. - - - - - Do not use tab characters, i.e. configure your editor to use soft tabs. For instance, use (setq-default indent-tabs-mode nil) in Emacs. Everybody has different tab settings so it’s asking for trouble. - - - - - Use lowerCamelCase for variable names, not UpperCamelCase. Note, this rule does not apply to package attribute names, which instead follow the rules in . - - - - - Function calls with attribute set arguments are written as - -foo { - arg = ...; -} - - not - -foo -{ - arg = ...; -} - - Also fine is - -foo { arg = ...; } - - if it's a short call. - - - - - In attribute sets or lists that span multiple lines, the attribute names or list elements should be aligned: - -# A long list. -list = [ - elem1 - elem2 - elem3 -]; - -# A long attribute set. -attrs = { - attr1 = short_expr; - attr2 = - if true then big_expr else big_expr; -}; - -# Combined -listOfAttrs = [ - { - attr1 = 3; - attr2 = "fff"; - } - { - attr1 = 5; - attr2 = "ggg"; - } -]; - - - - - - Short lists or attribute sets can be written on one line: - -# A short list. -list = [ elem1 elem2 elem3 ]; - -# A short set. -attrs = { x = 1280; y = 1024; }; - - - - - - Breaking in the middle of a function argument can give hard-to-read code, like - -someFunction { x = 1280; - y = 1024; } otherArg - yetAnotherArg - - (especially if the argument is very large, spanning multiple lines). - - - Better: - -someFunction - { x = 1280; y = 1024; } - otherArg - yetAnotherArg - - or - -let res = { x = 1280; y = 1024; }; -in someFunction res otherArg yetAnotherArg - - - - - - The bodies of functions, asserts, and withs are not indented to prevent a lot of superfluous indentation levels, i.e. - -{ arg1, arg2 }: -assert system == "i686-linux"; -stdenv.mkDerivation { ... - - not - -{ arg1, arg2 }: - assert system == "i686-linux"; - stdenv.mkDerivation { ... - - - - - - Function formal arguments are written as: - -{ arg1, arg2, arg3 }: - - but if they don't fit on one line they're written as: - -{ arg1, arg2, arg3 -, arg4, ... -, # Some comment... - argN -}: - - - - - - Functions should list their expected arguments as precisely as possible. That is, write - -{ stdenv, fetchurl, perl }: ... - - instead of - -args: with args; ... - - or - -{ stdenv, fetchurl, perl, ... }: ... - - - - For functions that are truly generic in the number of arguments (such as wrappers around mkDerivation) that have some required arguments, you should write them using an @-pattern: - -{ stdenv, doCoverageAnalysis ? false, ... } @ args: - -stdenv.mkDerivation (args // { - ... if doCoverageAnalysis then "bla" else "" ... -}) - - instead of - -args: - -args.stdenv.mkDerivation (args // { - ... if args ? doCoverageAnalysis && args.doCoverageAnalysis then "bla" else "" ... -}) - - - - -
-
- Package naming - - - The key words must, must not, required, shall, shall not, should, should not, recommended, may, and optional in this section are to be interpreted as described in RFC 2119. Only emphasized words are to be interpreted in this way. - - - - In Nixpkgs, there are generally three different names associated with a package: - - - - The name attribute of the derivation (excluding the version part). This is what most users see, in particular when using nix-env. - - - - - The variable name used for the instantiated package in all-packages.nix, and when passing it as a dependency to other functions. Typically this is called the package attribute name. This is what Nix expression authors see. It can also be used when installing using nix-env -iA. - - - - - The filename for (the directory containing) the Nix expression. - - - - Most of the time, these are the same. For instance, the package e2fsprogs has a name attribute "e2fsprogs-version", is bound to the variable name e2fsprogs in all-packages.nix, and the Nix expression is in pkgs/os-specific/linux/e2fsprogs/default.nix. - - - - There are a few naming guidelines: - - - - The name attribute should be identical to the upstream package name. - - - - - The name attribute must not contain uppercase letters — e.g., "mplayer-1.0rc2" instead of "MPlayer-1.0rc2". - - - - - The version part of the name attribute must start with a digit (following a dash) — e.g., "hello-0.3.1rc2". - - - - - If a package is not a release but a commit from a repository, then the version part of the name must be the date of that (fetched) commit. The date must be in "YYYY-MM-DD" format. Also append "unstable" to the name - e.g., "pkgname-unstable-2014-09-23". - - - - - Dashes in the package name should be preserved in new variable names, rather than converted to underscores or camel cased — e.g., http-parser instead of http_parser or httpParser. The hyphenated style is preferred in all three package names. - - - - - If there are multiple versions of a package, this should be reflected in the variable names in all-packages.nix, e.g. json-c-0-9 and json-c-0-11. If there is an obvious “default” version, make an attribute like json-c = json-c-0-9;. See also - - - - -
-
- File naming and organisation - - - Names of files and directories should be in lowercase, with dashes between words — not in camel case. For instance, it should be all-packages.nix, not allPackages.nix or AllPackages.nix. - - -
- Hierarchy - - - Each package should be stored in its own directory somewhere in the pkgs/ tree, i.e. in pkgs/category/subcategory/.../pkgname. Below are some rules for picking the right category for a package. Many packages fall under several categories; what matters is the primary purpose of a package. For example, the libxml2 package builds both a library and some tools; but it’s a library foremost, so it goes under pkgs/development/libraries. - - - - When in doubt, consider refactoring the pkgs/ tree, e.g. creating new categories or splitting up an existing category. - - - - - - If it’s used to support software development: - - - - - - If it’s a library used by other packages: - - - - development/libraries (e.g. libxml2) - - - - - - If it’s a compiler: - - - - development/compilers (e.g. gcc) - - - - - - If it’s an interpreter: - - - - development/interpreters (e.g. guile) - - - - - - If it’s a (set of) development tool(s): - - - - - - If it’s a parser generator (including lexers): - - - - development/tools/parsing (e.g. bison, flex) - - - - - - If it’s a build manager: - - - - development/tools/build-managers (e.g. gnumake) - - - - - - Else: - - - - development/tools/misc (e.g. binutils) - - - - - - - - - Else: - - - - development/misc - - - - - - - - - If it’s a (set of) tool(s): - - - - (A tool is a relatively small program, especially one intended to be used non-interactively.) - - - - - If it’s for networking: - - - - tools/networking (e.g. wget) - - - - - - If it’s for text processing: - - - - tools/text (e.g. diffutils) - - - - - - If it’s a system utility, i.e., something related or essential to the operation of a system: - - - - tools/system (e.g. cron) - - - - - - If it’s an archiver (which may include a compression function): - - - - tools/archivers (e.g. zip, tar) - - - - - - If it’s a compression program: - - - - tools/compression (e.g. gzip, bzip2) - - - - - - If it’s a security-related program: - - - - tools/security (e.g. nmap, gnupg) - - - - - - Else: - - - - tools/misc - - - - - - - - - If it’s a shell: - - - - shells (e.g. bash) - - - - - - If it’s a server: - - - - - - If it’s a web server: - - - - servers/http (e.g. apache-httpd) - - - - - - If it’s an implementation of the X Windowing System: - - - - servers/x11 (e.g. xorg — this includes the client libraries and programs) - - - - - - Else: - - - - servers/misc - - - - - - - - - If it’s a desktop environment: - - - - desktops (e.g. kde, gnome, enlightenment) - - - - - - If it’s a window manager: - - - - applications/window-managers (e.g. awesome, stumpwm) - - - - - - If it’s an application: - - - - A (typically large) program with a distinct user interface, primarily used interactively. - - - - - If it’s a version management system: - - - - applications/version-management (e.g. subversion) - - - - - - If it’s for video playback / editing: - - - - applications/video (e.g. vlc) - - - - - - If it’s for graphics viewing / editing: - - - - applications/graphics (e.g. gimp) - - - - - - If it’s for networking: - - - - - - If it’s a mailreader: - - - - applications/networking/mailreaders (e.g. thunderbird) - - - - - - If it’s a newsreader: - - - - applications/networking/newsreaders (e.g. pan) - - - - - - If it’s a web browser: - - - - applications/networking/browsers (e.g. firefox) - - - - - - Else: - - - - applications/networking/misc - - - - - - - - - Else: - - - - applications/misc - - - - - - - - - If it’s data (i.e., does not have a straight-forward executable semantics): - - - - - - If it’s a font: - - - - data/fonts - - - - - - If it’s related to SGML/XML processing: - - - - - - If it’s an XML DTD: - - - - data/sgml+xml/schemas/xml-dtd (e.g. docbook) - - - - - - If it’s an XSLT stylesheet: - - - - (Okay, these are executable...) - - - data/sgml+xml/stylesheets/xslt (e.g. docbook-xsl) - - - - - - - - - - - - If it’s a game: - - - - games - - - - - - Else: - - - - misc - - - - -
- -
- Versioning - - - Because every version of a package in Nixpkgs creates a potential maintenance burden, old versions of a package should not be kept unless there is a good reason to do so. For instance, Nixpkgs contains several versions of GCC because other packages don’t build with the latest version of GCC. Other examples are having both the latest stable and latest pre-release version of a package, or to keep several major releases of an application that differ significantly in functionality. - - - - If there is only one version of a package, its Nix expression should be named e2fsprogs/default.nix. If there are multiple versions, this should be reflected in the filename, e.g. e2fsprogs/1.41.8.nix and e2fsprogs/1.41.9.nix. The version in the filename should leave out unnecessary detail. For instance, if we keep the latest Firefox 2.0.x and 3.5.x versions in Nixpkgs, they should be named firefox/2.0.nix and firefox/3.5.nix, respectively (which, at a given point, might contain versions 2.0.0.20 and 3.5.4). If a version requires many auxiliary files, you can use a subdirectory for each version, e.g. firefox/2.0/default.nix and firefox/3.5/default.nix. - - - - All versions of a package must be included in all-packages.nix to make sure that they evaluate correctly. - -
-
-
- Fetching Sources - - - There are multiple ways to fetch a package source in nixpkgs. The general guideline is that you should package reproducible sources with a high degree of availability. Right now there is only one fetcher which has mirroring support and that is fetchurl. Note that you should also prefer protocols which have a corresponding proxy environment variable. - - - - You can find many source fetch helpers in pkgs/build-support/fetch*. - - - - In the file pkgs/top-level/all-packages.nix you can find fetch helpers, these have names on the form fetchFrom*. The intention of these are to provide snapshot fetches but using the same api as some of the version controlled fetchers from pkgs/build-support/. As an example going from bad to good: - - - - Bad: Uses git:// which won't be proxied. - -src = fetchgit { - url = "git://github.com/NixOS/nix.git"; - rev = "1f795f9f44607cc5bec70d1300150bfefcef2aae"; - sha256 = "1cw5fszffl5pkpa6s6wjnkiv6lm5k618s32sp60kvmvpy7a2v9kg"; -} - - - - - - Better: This is ok, but an archive fetch will still be faster. - -src = fetchgit { - url = "https://github.com/NixOS/nix.git"; - rev = "1f795f9f44607cc5bec70d1300150bfefcef2aae"; - sha256 = "1cw5fszffl5pkpa6s6wjnkiv6lm5k618s32sp60kvmvpy7a2v9kg"; -} - - - - - - Best: Fetches a snapshot archive and you get the rev you want. - -src = fetchFromGitHub { - owner = "NixOS"; - repo = "nix"; - rev = "1f795f9f44607cc5bec70d1300150bfefcef2aae"; - sha256 = "1i2yxndxb6yc9l6c99pypbd92lfq5aac4klq7y2v93c9qvx2cgpc"; -} - - Find the value to put as sha256 by running nix run -f '<nixpkgs>' nix-prefetch-github -c nix-prefetch-github --rev 1f795f9f44607cc5bec70d1300150bfefcef2aae NixOS nix or nix-prefetch-url --unpack https://github.com/NixOS/nix/archive/1f795f9f44607cc5bec70d1300150bfefcef2aae.tar.gz. - - - - -
-
- Obtaining source hash - - - Preferred source hash type is sha256. There are several ways to get it. - - - - - - Prefetch URL (with nix-prefetch-XXX URL, where XXX is one of url, git, hg, cvs, bzr, svn). Hash is printed to stdout. - - - - - Prefetch by package source (with nix-prefetch-url '<nixpkgs>' -A PACKAGE.src, where PACKAGE is package attribute name). Hash is printed to stdout. - - - This works well when you've upgraded existing package version and want to find out new hash, but is useless if package can't be accessed by attribute or package has multiple sources (.srcs, architecture-dependent sources, etc). - - - - - Upstream provided hash: use it when upstream provides sha256 or sha512 (when upstream provides md5, don't use it, compute sha256 instead). - - - A little nuance is that nix-prefetch-* tools produce hash encoded with base32, but upstream usually provides hexadecimal (base16) encoding. Fetchers understand both formats. Nixpkgs does not standardize on any one format. - - - You can convert between formats with nix-hash, for example: - -$ nix-hash --type sha256 --to-base32 HASH - - - - - - Extracting hash from local source tarball can be done with sha256sum. Use nix-prefetch-url file:///path/to/tarball if you want base32 hash. - - - - - Fake hash: set fake hash in package expression, perform build and extract correct hash from error Nix prints. - - - For package updates it is enough to change one symbol to make hash fake. For new packages, you can use lib.fakeSha256, lib.fakeSha512 or any other fake hash. - - - This is last resort method when reconstructing source URL is non-trivial and nix-prefetch-url -A isn't applicable (for example, one of kodi dependencies). The easiest way then would be replace hash with a fake one and rebuild. Nix build will fail and error message will contain desired hash. - - - - This method has security problems. Check below for details. - - - - - -
- Obtaining hashes securely - - - Let's say Man-in-the-Middle (MITM) sits close to your network. Then instead of fetching source you can fetch malware, and instead of source hash you get hash of malware. Here are security considerations for this scenario: - - - - - - http:// URLs are not secure to prefetch hash from; - - - - - hashes from upstream (in method 3) should be obtained via secure protocol; - - - - - https:// URLs are secure in methods 1, 2, 3; - - - - - https:// URLs are not secure in method 5. When obtaining hashes with fake hash method, TLS checks are disabled. So refetch source hash from several different networks to exclude MITM scenario. Alternatively, use fake hash method to make Nix error, but instead of extracting hash from error, extract https:// URL and prefetch it with method 1. - - - -
-
-
- Patches - - - Patches available online should be retrieved using fetchpatch. - - - - -patches = [ - (fetchpatch { - name = "fix-check-for-using-shared-freetype-lib.patch"; - url = "http://git.ghostscript.com/?p=ghostpdl.git;a=patch;h=8f5d285"; - sha256 = "1f0k043rng7f0rfl9hhb89qzvvksqmkrikmm38p61yfx51l325xr"; - }) -]; - - - - - Otherwise, you can add a .patch file to the nixpkgs repository. In the interest of keeping our maintenance burden to a minimum, only patches that are unique to nixpkgs should be added in this way. - - - - -patches = [ ./0001-changes.patch ]; - - - - - If you do need to do create this sort of patch file, one way to do so is with git: - - - - Move to the root directory of the source code you're patching. - -$ cd the/program/source - - - - - If a git repository is not already present, create one and stage all of the source files. - -$ git init -$ git add . - - - - - Edit some files to make whatever changes need to be included in the patch. - - - - - Use git to create a diff, and pipe the output to a patch file: - -$ git diff > nixpkgs/pkgs/the/package/0001-changes.patch - - - - -
-
diff --git a/doc/contributing-to-documentation.xml b/doc/contributing-to-documentation.xml deleted file mode 100644 index b0266043775fb..0000000000000 --- a/doc/contributing-to-documentation.xml +++ /dev/null @@ -1,30 +0,0 @@ - - Contributing to this documentation - - The DocBook sources of the Nixpkgs manual are in the doc subdirectory of the Nixpkgs repository. - - - You can quickly check your edits with make: - - -$ cd /path/to/nixpkgs/doc -$ nix-shell -[nix-shell]$ make - - - If you experience problems, run make debug to help understand the docbook errors. - - - After making modifications to the manual, it's important to build it before committing. You can do that as follows: - -$ cd /path/to/nixpkgs/doc -$ nix-shell -[nix-shell]$ make clean -[nix-shell]$ nix-build . - - If the build succeeds, the manual will be in ./result/share/doc/nixpkgs/manual.html. - - diff --git a/doc/contributing/coding-conventions.xml b/doc/contributing/coding-conventions.xml new file mode 100644 index 0000000000000..799f1479467a5 --- /dev/null +++ b/doc/contributing/coding-conventions.xml @@ -0,0 +1,903 @@ + + Coding conventions +
+ Syntax + + + + + Use 2 spaces of indentation per indentation level in Nix expressions, 4 spaces in shell scripts. + + + + + Do not use tab characters, i.e. configure your editor to use soft tabs. For instance, use (setq-default indent-tabs-mode nil) in Emacs. Everybody has different tab settings so it’s asking for trouble. + + + + + Use lowerCamelCase for variable names, not UpperCamelCase. Note, this rule does not apply to package attribute names, which instead follow the rules in . + + + + + Function calls with attribute set arguments are written as + +foo { + arg = ...; +} + + not + +foo +{ + arg = ...; +} + + Also fine is + +foo { arg = ...; } + + if it's a short call. + + + + + In attribute sets or lists that span multiple lines, the attribute names or list elements should be aligned: + +# A long list. +list = [ + elem1 + elem2 + elem3 +]; + +# A long attribute set. +attrs = { + attr1 = short_expr; + attr2 = + if true then big_expr else big_expr; +}; + +# Combined +listOfAttrs = [ + { + attr1 = 3; + attr2 = "fff"; + } + { + attr1 = 5; + attr2 = "ggg"; + } +]; + + + + + + Short lists or attribute sets can be written on one line: + +# A short list. +list = [ elem1 elem2 elem3 ]; + +# A short set. +attrs = { x = 1280; y = 1024; }; + + + + + + Breaking in the middle of a function argument can give hard-to-read code, like + +someFunction { x = 1280; + y = 1024; } otherArg + yetAnotherArg + + (especially if the argument is very large, spanning multiple lines). + + + Better: + +someFunction + { x = 1280; y = 1024; } + otherArg + yetAnotherArg + + or + +let res = { x = 1280; y = 1024; }; +in someFunction res otherArg yetAnotherArg + + + + + + The bodies of functions, asserts, and withs are not indented to prevent a lot of superfluous indentation levels, i.e. + +{ arg1, arg2 }: +assert system == "i686-linux"; +stdenv.mkDerivation { ... + + not + +{ arg1, arg2 }: + assert system == "i686-linux"; + stdenv.mkDerivation { ... + + + + + + Function formal arguments are written as: + +{ arg1, arg2, arg3 }: + + but if they don't fit on one line they're written as: + +{ arg1, arg2, arg3 +, arg4, ... +, # Some comment... + argN +}: + + + + + + Functions should list their expected arguments as precisely as possible. That is, write + +{ stdenv, fetchurl, perl }: ... + + instead of + +args: with args; ... + + or + +{ stdenv, fetchurl, perl, ... }: ... + + + + For functions that are truly generic in the number of arguments (such as wrappers around mkDerivation) that have some required arguments, you should write them using an @-pattern: + +{ stdenv, doCoverageAnalysis ? false, ... } @ args: + +stdenv.mkDerivation (args // { + ... if doCoverageAnalysis then "bla" else "" ... +}) + + instead of + +args: + +args.stdenv.mkDerivation (args // { + ... if args ? doCoverageAnalysis && args.doCoverageAnalysis then "bla" else "" ... +}) + + + + +
+
+ Package naming + + + The key words must, must not, required, shall, shall not, should, should not, recommended, may, and optional in this section are to be interpreted as described in RFC 2119. Only emphasized words are to be interpreted in this way. + + + + In Nixpkgs, there are generally three different names associated with a package: + + + + The name attribute of the derivation (excluding the version part). This is what most users see, in particular when using nix-env. + + + + + The variable name used for the instantiated package in all-packages.nix, and when passing it as a dependency to other functions. Typically this is called the package attribute name. This is what Nix expression authors see. It can also be used when installing using nix-env -iA. + + + + + The filename for (the directory containing) the Nix expression. + + + + Most of the time, these are the same. For instance, the package e2fsprogs has a name attribute "e2fsprogs-version", is bound to the variable name e2fsprogs in all-packages.nix, and the Nix expression is in pkgs/os-specific/linux/e2fsprogs/default.nix. + + + + There are a few naming guidelines: + + + + The name attribute should be identical to the upstream package name. + + + + + The name attribute must not contain uppercase letters — e.g., "mplayer-1.0rc2" instead of "MPlayer-1.0rc2". + + + + + The version part of the name attribute must start with a digit (following a dash) — e.g., "hello-0.3.1rc2". + + + + + If a package is not a release but a commit from a repository, then the version part of the name must be the date of that (fetched) commit. The date must be in "YYYY-MM-DD" format. Also append "unstable" to the name - e.g., "pkgname-unstable-2014-09-23". + + + + + Dashes in the package name should be preserved in new variable names, rather than converted to underscores or camel cased — e.g., http-parser instead of http_parser or httpParser. The hyphenated style is preferred in all three package names. + + + + + If there are multiple versions of a package, this should be reflected in the variable names in all-packages.nix, e.g. json-c-0-9 and json-c-0-11. If there is an obvious “default” version, make an attribute like json-c = json-c-0-9;. See also + + + + +
+
+ File naming and organisation + + + Names of files and directories should be in lowercase, with dashes between words — not in camel case. For instance, it should be all-packages.nix, not allPackages.nix or AllPackages.nix. + + +
+ Hierarchy + + + Each package should be stored in its own directory somewhere in the pkgs/ tree, i.e. in pkgs/category/subcategory/.../pkgname. Below are some rules for picking the right category for a package. Many packages fall under several categories; what matters is the primary purpose of a package. For example, the libxml2 package builds both a library and some tools; but it’s a library foremost, so it goes under pkgs/development/libraries. + + + + When in doubt, consider refactoring the pkgs/ tree, e.g. creating new categories or splitting up an existing category. + + + + + + If it’s used to support software development: + + + + + + If it’s a library used by other packages: + + + + development/libraries (e.g. libxml2) + + + + + + If it’s a compiler: + + + + development/compilers (e.g. gcc) + + + + + + If it’s an interpreter: + + + + development/interpreters (e.g. guile) + + + + + + If it’s a (set of) development tool(s): + + + + + + If it’s a parser generator (including lexers): + + + + development/tools/parsing (e.g. bison, flex) + + + + + + If it’s a build manager: + + + + development/tools/build-managers (e.g. gnumake) + + + + + + Else: + + + + development/tools/misc (e.g. binutils) + + + + + + + + + Else: + + + + development/misc + + + + + + + + + If it’s a (set of) tool(s): + + + + (A tool is a relatively small program, especially one intended to be used non-interactively.) + + + + + If it’s for networking: + + + + tools/networking (e.g. wget) + + + + + + If it’s for text processing: + + + + tools/text (e.g. diffutils) + + + + + + If it’s a system utility, i.e., something related or essential to the operation of a system: + + + + tools/system (e.g. cron) + + + + + + If it’s an archiver (which may include a compression function): + + + + tools/archivers (e.g. zip, tar) + + + + + + If it’s a compression program: + + + + tools/compression (e.g. gzip, bzip2) + + + + + + If it’s a security-related program: + + + + tools/security (e.g. nmap, gnupg) + + + + + + Else: + + + + tools/misc + + + + + + + + + If it’s a shell: + + + + shells (e.g. bash) + + + + + + If it’s a server: + + + + + + If it’s a web server: + + + + servers/http (e.g. apache-httpd) + + + + + + If it’s an implementation of the X Windowing System: + + + + servers/x11 (e.g. xorg — this includes the client libraries and programs) + + + + + + Else: + + + + servers/misc + + + + + + + + + If it’s a desktop environment: + + + + desktops (e.g. kde, gnome, enlightenment) + + + + + + If it’s a window manager: + + + + applications/window-managers (e.g. awesome, stumpwm) + + + + + + If it’s an application: + + + + A (typically large) program with a distinct user interface, primarily used interactively. + + + + + If it’s a version management system: + + + + applications/version-management (e.g. subversion) + + + + + + If it’s for video playback / editing: + + + + applications/video (e.g. vlc) + + + + + + If it’s for graphics viewing / editing: + + + + applications/graphics (e.g. gimp) + + + + + + If it’s for networking: + + + + + + If it’s a mailreader: + + + + applications/networking/mailreaders (e.g. thunderbird) + + + + + + If it’s a newsreader: + + + + applications/networking/newsreaders (e.g. pan) + + + + + + If it’s a web browser: + + + + applications/networking/browsers (e.g. firefox) + + + + + + Else: + + + + applications/networking/misc + + + + + + + + + Else: + + + + applications/misc + + + + + + + + + If it’s data (i.e., does not have a straight-forward executable semantics): + + + + + + If it’s a font: + + + + data/fonts + + + + + + If it’s related to SGML/XML processing: + + + + + + If it’s an XML DTD: + + + + data/sgml+xml/schemas/xml-dtd (e.g. docbook) + + + + + + If it’s an XSLT stylesheet: + + + + (Okay, these are executable...) + + + data/sgml+xml/stylesheets/xslt (e.g. docbook-xsl) + + + + + + + + + + + + If it’s a game: + + + + games + + + + + + Else: + + + + misc + + + + +
+ +
+ Versioning + + + Because every version of a package in Nixpkgs creates a potential maintenance burden, old versions of a package should not be kept unless there is a good reason to do so. For instance, Nixpkgs contains several versions of GCC because other packages don’t build with the latest version of GCC. Other examples are having both the latest stable and latest pre-release version of a package, or to keep several major releases of an application that differ significantly in functionality. + + + + If there is only one version of a package, its Nix expression should be named e2fsprogs/default.nix. If there are multiple versions, this should be reflected in the filename, e.g. e2fsprogs/1.41.8.nix and e2fsprogs/1.41.9.nix. The version in the filename should leave out unnecessary detail. For instance, if we keep the latest Firefox 2.0.x and 3.5.x versions in Nixpkgs, they should be named firefox/2.0.nix and firefox/3.5.nix, respectively (which, at a given point, might contain versions 2.0.0.20 and 3.5.4). If a version requires many auxiliary files, you can use a subdirectory for each version, e.g. firefox/2.0/default.nix and firefox/3.5/default.nix. + + + + All versions of a package must be included in all-packages.nix to make sure that they evaluate correctly. + +
+
+
+ Fetching Sources + + + There are multiple ways to fetch a package source in nixpkgs. The general guideline is that you should package reproducible sources with a high degree of availability. Right now there is only one fetcher which has mirroring support and that is fetchurl. Note that you should also prefer protocols which have a corresponding proxy environment variable. + + + + You can find many source fetch helpers in pkgs/build-support/fetch*. + + + + In the file pkgs/top-level/all-packages.nix you can find fetch helpers, these have names on the form fetchFrom*. The intention of these are to provide snapshot fetches but using the same api as some of the version controlled fetchers from pkgs/build-support/. As an example going from bad to good: + + + + Bad: Uses git:// which won't be proxied. + +src = fetchgit { + url = "git://github.com/NixOS/nix.git"; + rev = "1f795f9f44607cc5bec70d1300150bfefcef2aae"; + sha256 = "1cw5fszffl5pkpa6s6wjnkiv6lm5k618s32sp60kvmvpy7a2v9kg"; +} + + + + + + Better: This is ok, but an archive fetch will still be faster. + +src = fetchgit { + url = "https://github.com/NixOS/nix.git"; + rev = "1f795f9f44607cc5bec70d1300150bfefcef2aae"; + sha256 = "1cw5fszffl5pkpa6s6wjnkiv6lm5k618s32sp60kvmvpy7a2v9kg"; +} + + + + + + Best: Fetches a snapshot archive and you get the rev you want. + +src = fetchFromGitHub { + owner = "NixOS"; + repo = "nix"; + rev = "1f795f9f44607cc5bec70d1300150bfefcef2aae"; + sha256 = "1i2yxndxb6yc9l6c99pypbd92lfq5aac4klq7y2v93c9qvx2cgpc"; +} + + Find the value to put as sha256 by running nix run -f '<nixpkgs>' nix-prefetch-github -c nix-prefetch-github --rev 1f795f9f44607cc5bec70d1300150bfefcef2aae NixOS nix or nix-prefetch-url --unpack https://github.com/NixOS/nix/archive/1f795f9f44607cc5bec70d1300150bfefcef2aae.tar.gz. + + + + +
+
+ Obtaining source hash + + + Preferred source hash type is sha256. There are several ways to get it. + + + + + + Prefetch URL (with nix-prefetch-XXX URL, where XXX is one of url, git, hg, cvs, bzr, svn). Hash is printed to stdout. + + + + + Prefetch by package source (with nix-prefetch-url '<nixpkgs>' -A PACKAGE.src, where PACKAGE is package attribute name). Hash is printed to stdout. + + + This works well when you've upgraded existing package version and want to find out new hash, but is useless if package can't be accessed by attribute or package has multiple sources (.srcs, architecture-dependent sources, etc). + + + + + Upstream provided hash: use it when upstream provides sha256 or sha512 (when upstream provides md5, don't use it, compute sha256 instead). + + + A little nuance is that nix-prefetch-* tools produce hash encoded with base32, but upstream usually provides hexadecimal (base16) encoding. Fetchers understand both formats. Nixpkgs does not standardize on any one format. + + + You can convert between formats with nix-hash, for example: + +$ nix-hash --type sha256 --to-base32 HASH + + + + + + Extracting hash from local source tarball can be done with sha256sum. Use nix-prefetch-url file:///path/to/tarball if you want base32 hash. + + + + + Fake hash: set fake hash in package expression, perform build and extract correct hash from error Nix prints. + + + For package updates it is enough to change one symbol to make hash fake. For new packages, you can use lib.fakeSha256, lib.fakeSha512 or any other fake hash. + + + This is last resort method when reconstructing source URL is non-trivial and nix-prefetch-url -A isn't applicable (for example, one of kodi dependencies). The easiest way then would be replace hash with a fake one and rebuild. Nix build will fail and error message will contain desired hash. + + + + This method has security problems. Check below for details. + + + + + +
+ Obtaining hashes securely + + + Let's say Man-in-the-Middle (MITM) sits close to your network. Then instead of fetching source you can fetch malware, and instead of source hash you get hash of malware. Here are security considerations for this scenario: + + + + + + http:// URLs are not secure to prefetch hash from; + + + + + hashes from upstream (in method 3) should be obtained via secure protocol; + + + + + https:// URLs are secure in methods 1, 2, 3; + + + + + https:// URLs are not secure in method 5. When obtaining hashes with fake hash method, TLS checks are disabled. So refetch source hash from several different networks to exclude MITM scenario. Alternatively, use fake hash method to make Nix error, but instead of extracting hash from error, extract https:// URL and prefetch it with method 1. + + + +
+
+
+ Patches + + + Patches available online should be retrieved using fetchpatch. + + + + +patches = [ + (fetchpatch { + name = "fix-check-for-using-shared-freetype-lib.patch"; + url = "http://git.ghostscript.com/?p=ghostpdl.git;a=patch;h=8f5d285"; + sha256 = "1f0k043rng7f0rfl9hhb89qzvvksqmkrikmm38p61yfx51l325xr"; + }) +]; + + + + + Otherwise, you can add a .patch file to the nixpkgs repository. In the interest of keeping our maintenance burden to a minimum, only patches that are unique to nixpkgs should be added in this way. + + + + +patches = [ ./0001-changes.patch ]; + + + + + If you do need to do create this sort of patch file, one way to do so is with git: + + + + Move to the root directory of the source code you're patching. + +$ cd the/program/source + + + + + If a git repository is not already present, create one and stage all of the source files. + +$ git init +$ git add . + + + + + Edit some files to make whatever changes need to be included in the patch. + + + + + Use git to create a diff, and pipe the output to a patch file: + +$ git diff > nixpkgs/pkgs/the/package/0001-changes.patch + + + + +
+
diff --git a/doc/contributing/contributing-to-documentation.xml b/doc/contributing/contributing-to-documentation.xml new file mode 100644 index 0000000000000..b0266043775fb --- /dev/null +++ b/doc/contributing/contributing-to-documentation.xml @@ -0,0 +1,30 @@ + + Contributing to this documentation + + The DocBook sources of the Nixpkgs manual are in the doc subdirectory of the Nixpkgs repository. + + + You can quickly check your edits with make: + + +$ cd /path/to/nixpkgs/doc +$ nix-shell +[nix-shell]$ make + + + If you experience problems, run make debug to help understand the docbook errors. + + + After making modifications to the manual, it's important to build it before committing. You can do that as follows: + +$ cd /path/to/nixpkgs/doc +$ nix-shell +[nix-shell]$ make clean +[nix-shell]$ nix-build . + + If the build succeeds, the manual will be in ./result/share/doc/nixpkgs/manual.html. + + diff --git a/doc/contributing/quick-start.xml b/doc/contributing/quick-start.xml new file mode 100644 index 0000000000000..80514cba49043 --- /dev/null +++ b/doc/contributing/quick-start.xml @@ -0,0 +1,153 @@ + + Quick Start to Adding a Package + + To add a package to Nixpkgs: + + + + Checkout the Nixpkgs source tree: + +$ git clone https://github.com/NixOS/nixpkgs +$ cd nixpkgs + + + + + Find a good place in the Nixpkgs tree to add the Nix expression for your package. For instance, a library package typically goes into pkgs/development/libraries/pkgname, while a web browser goes into pkgs/applications/networking/browsers/pkgname. See for some hints on the tree organisation. Create a directory for your package, e.g. + +$ mkdir pkgs/development/libraries/libfoo + + + + + In the package directory, create a Nix expression — a piece of code that describes how to build the package. In this case, it should be a function that is called with the package dependencies as arguments, and returns a build of the package in the Nix store. The expression should usually be called default.nix. + +$ emacs pkgs/development/libraries/libfoo/default.nix +$ git add pkgs/development/libraries/libfoo/default.nix + + + You can have a look at the existing Nix expressions under pkgs/ to see how it’s done. Here are some good ones: + + + + GNU Hello: pkgs/applications/misc/hello/default.nix. Trivial package, which specifies some meta attributes which is good practice. + + + + + GNU cpio: pkgs/tools/archivers/cpio/default.nix. Also a simple package. The generic builder in stdenv does everything for you. It has no dependencies beyond stdenv. + + + + + GNU Multiple Precision arithmetic library (GMP): pkgs/development/libraries/gmp/5.1.x.nix. Also done by the generic builder, but has a dependency on m4. + + + + + Pan, a GTK-based newsreader: pkgs/applications/networking/newsreaders/pan/default.nix. Has an optional dependency on gtkspell, which is only built if spellCheck is true. + + + + + Apache HTTPD: pkgs/servers/http/apache-httpd/2.4.nix. A bunch of optional features, variable substitutions in the configure flags, a post-install hook, and miscellaneous hackery. + + + + + Thunderbird: pkgs/applications/networking/mailreaders/thunderbird/default.nix. Lots of dependencies. + + + + + JDiskReport, a Java utility: pkgs/tools/misc/jdiskreport/default.nix (and the builder). Nixpkgs doesn’t have a decent stdenv for Java yet so this is pretty ad-hoc. + + + + + XML::Simple, a Perl module: pkgs/top-level/perl-packages.nix (search for the XMLSimple attribute). Most Perl modules are so simple to build that they are defined directly in perl-packages.nix; no need to make a separate file for them. + + + + + Adobe Reader: pkgs/applications/misc/adobe-reader/default.nix. Shows how binary-only packages can be supported. In particular the builder uses patchelf to set the RUNPATH and ELF interpreter of the executables so that the right libraries are found at runtime. + + + + + + Some notes: + + + + All meta attributes are optional, but it’s still a good idea to provide at least the description, homepage and license. + + + + + You can use nix-prefetch-url url to get the SHA-256 hash of source distributions. There are similar commands as nix-prefetch-git and nix-prefetch-hg available in nix-prefetch-scripts package. + + + + + A list of schemes for mirror:// URLs can be found in pkgs/build-support/fetchurl/mirrors.nix. + + + + + + The exact syntax and semantics of the Nix expression language, including the built-in function, are described in the Nix manual in the chapter on writing Nix expressions. + + + + + Add a call to the function defined in the previous step to pkgs/top-level/all-packages.nix with some descriptive name for the variable, e.g. libfoo. + +$ emacs pkgs/top-level/all-packages.nix + + + The attributes in that file are sorted by category (like “Development / Libraries”) that more-or-less correspond to the directory structure of Nixpkgs, and then by attribute name. + + + + + To test whether the package builds, run the following command from the root of the nixpkgs source tree: + +$ nix-build -A libfoo + where libfoo should be the variable name defined in the previous step. You may want to add the flag to keep the temporary build directory in case something fails. If the build succeeds, a symlink ./result to the package in the Nix store is created. + + + + + If you want to install the package into your profile (optional), do + +$ nix-env -f . -iA libfoo + + + + + Optionally commit the new package and open a pull request to nixpkgs, or use the Patches category on Discourse for sending a patch without a GitHub account. + + + + + diff --git a/doc/contributing/reviewing-contributions.xml b/doc/contributing/reviewing-contributions.xml new file mode 100644 index 0000000000000..ed8f379c460e5 --- /dev/null +++ b/doc/contributing/reviewing-contributions.xml @@ -0,0 +1,536 @@ + + Reviewing contributions + + + The following section is a draft, and the policy for reviewing is still being discussed in issues such as #11166 and #20836 . + + + + The Nixpkgs project receives a fairly high number of contributions via GitHub pull requests. Reviewing and approving these is an important task and a way to contribute to the project. + + + The high change rate of Nixpkgs makes any pull request that remains open for too long subject to conflicts that will require extra work from the submitter or the merger. Reviewing pull requests in a timely manner and being responsive to the comments is the key to avoid this issue. GitHub provides sort filters that can be used to see the most recently and the least recently updated pull requests. We highly encourage looking at this list of ready to merge, unreviewed pull requests. + + + When reviewing a pull request, please always be nice and polite. Controversial changes can lead to controversial opinions, but it is important to respect every community member and their work. + + + GitHub provides reactions as a simple and quick way to provide feedback to pull requests or any comments. The thumb-down reaction should be used with care and if possible accompanied with some explanation so the submitter has directions to improve their contribution. + + + pull request reviews should include a list of what has been reviewed in a comment, so other reviewers and mergers can know the state of the review. + + + All the review template samples provided in this section are generic and meant as examples. Their usage is optional and the reviewer is free to adapt them to their liking. + +
+ Package updates + + + A package update is the most trivial and common type of pull request. These pull requests mainly consist of updating the version part of the package name and the source hash. + + + + It can happen that non-trivial updates include patches or more complex changes. + + + + Reviewing process: + + + + + + Add labels to the pull request. (Requires commit rights) + + + + + 8.has: package (update) and any topic label that fit the updated package. + + + + + + + Ensure that the package versioning fits the guidelines. + + + + + Ensure that the commit text fits the guidelines. + + + + + Ensure that the package maintainers are notified. + + + + + CODEOWNERS will make GitHub notify users based on the submitted changes, but it can happen that it misses some of the package maintainers. + + + + + + + Ensure that the meta field information is correct. + + + + + License can change with version updates, so it should be checked to match the upstream license. + + + + + If the package has no maintainer, a maintainer must be set. This can be the update submitter or a community member that accepts to take maintainership of the package. + + + + + + + Ensure that the code contains no typos. + + + + + Building the package locally. + + + + + pull requests are often targeted to the master or staging branch, and building the pull request locally when it is submitted can trigger many source builds. + + + It is possible to rebase the changes on nixos-unstable or nixpkgs-unstable for easier review by running the following commands from a nixpkgs clone. + +$ git fetch origin nixos-unstable +$ git fetch origin pull/PRNUMBER/head +$ git rebase --onto nixos-unstable BASEBRANCH FETCH_HEAD + + + + + Fetching the nixos-unstable branch. + + + + + Fetching the pull request changes, PRNUMBER is the number at the end of the pull request title and BASEBRANCH the base branch of the pull request. + + + + + Rebasing the pull request changes to the nixos-unstable branch. + + + + + + + + The nix-review tool can be used to review a pull request content in a single command. PRNUMBER should be replaced by the number at the end of the pull request title. You can also provide the full github pull request url. + + +$ nix-shell -p nix-review --run "nix-review pr PRNUMBER" + + + + + + + Running every binary. + + + + + + Sample template for a package update review + +##### Reviewed points + +- [ ] package name fits guidelines +- [ ] package version fits guidelines +- [ ] package build on ARCHITECTURE +- [ ] executables tested on ARCHITECTURE +- [ ] all depending packages build + +##### Possible improvements + +##### Comments + + + +
+
+ New packages + + + New packages are a common type of pull requests. These pull requests consists in adding a new nix-expression for a package. + + + + Reviewing process: + + + + + + Add labels to the pull request. (Requires commit rights) + + + + + 8.has: package (new) and any topic label that fit the new package. + + + + + + + Ensure that the package versioning is fitting the guidelines. + + + + + Ensure that the commit name is fitting the guidelines. + + + + + Ensure that the meta field contains correct information. + + + + + License must be checked to be fitting upstream license. + + + + + Platforms should be set or the package will not get binary substitutes. + + + + + A maintainer must be set. This can be the package submitter or a community member that accepts to take maintainership of the package. + + + + + + + Ensure that the code contains no typos. + + + + + Ensure the package source. + + + + + Mirrors urls should be used when available. + + + + + The most appropriate function should be used (e.g. packages from GitHub should use fetchFromGitHub). + + + + + + + Building the package locally. + + + + + Running every binary. + + + + + + Sample template for a new package review + +##### Reviewed points + +- [ ] package path fits guidelines +- [ ] package name fits guidelines +- [ ] package version fits guidelines +- [ ] package build on ARCHITECTURE +- [ ] executables tested on ARCHITECTURE +- [ ] `meta.description` is set and fits guidelines +- [ ] `meta.license` fits upstream license +- [ ] `meta.platforms` is set +- [ ] `meta.maintainers` is set +- [ ] build time only dependencies are declared in `nativeBuildInputs` +- [ ] source is fetched using the appropriate function +- [ ] phases are respected +- [ ] patches that are remotely available are fetched with `fetchpatch` + +##### Possible improvements + +##### Comments + + + +
+
+ Module updates + + + Module updates are submissions changing modules in some ways. These often contains changes to the options or introduce new options. + + + + Reviewing process + + + + + + Add labels to the pull request. (Requires commit rights) + + + + + 8.has: module (update) and any topic label that fit the module. + + + + + + + Ensure that the module maintainers are notified. + + + + + CODEOWNERS will make GitHub notify users based on the submitted changes, but it can happen that it misses some of the package maintainers. + + + + + + + Ensure that the module tests, if any, are succeeding. + + + + + Ensure that the introduced options are correct. + + + + + Type should be appropriate (string related types differs in their merging capabilities, optionSet and string types are deprecated). + + + + + Description, default and example should be provided. + + + + + + + Ensure that option changes are backward compatible. + + + + + mkRenamedOptionModule and mkAliasOptionModule functions provide way to make option changes backward compatible. + + + + + + + Ensure that removed options are declared with mkRemovedOptionModule + + + + + Ensure that changes that are not backward compatible are mentioned in release notes. + + + + + Ensure that documentations affected by the change is updated. + + + + + + Sample template for a module update review + +##### Reviewed points + +- [ ] changes are backward compatible +- [ ] removed options are declared with `mkRemovedOptionModule` +- [ ] changes that are not backward compatible are documented in release notes +- [ ] module tests succeed on ARCHITECTURE +- [ ] options types are appropriate +- [ ] options description is set +- [ ] options example is provided +- [ ] documentation affected by the changes is updated + +##### Possible improvements + +##### Comments + + + +
+
+ New modules + + + New modules submissions introduce a new module to NixOS. + + + + + + Add labels to the pull request. (Requires commit rights) + + + + + 8.has: module (new) and any topic label that fit the module. + + + + + + + Ensure that the module tests, if any, are succeeding. + + + + + Ensure that the introduced options are correct. + + + + + Type should be appropriate (string related types differs in their merging capabilities, optionSet and string types are deprecated). + + + + + Description, default and example should be provided. + + + + + + + Ensure that module meta field is present + + + + + Maintainers should be declared in meta.maintainers. + + + + + Module documentation should be declared with meta.doc. + + + + + + + Ensure that the module respect other modules functionality. + + + + + For example, enabling a module should not open firewall ports by default. + + + + + + + + Sample template for a new module review + +##### Reviewed points + +- [ ] module path fits the guidelines +- [ ] module tests succeed on ARCHITECTURE +- [ ] options have appropriate types +- [ ] options have default +- [ ] options have example +- [ ] options have descriptions +- [ ] No unneeded package is added to environment.systemPackages +- [ ] meta.maintainers is set +- [ ] module documentation is declared in meta.doc + +##### Possible improvements + +##### Comments + + + +
+
+ Other submissions + + + Other type of submissions requires different reviewing steps. + + + + If you consider having enough knowledge and experience in a topic and would like to be a long-term reviewer for related submissions, please contact the current reviewers for that topic. They will give you information about the reviewing process. The main reviewers for a topic can be hard to find as there is no list, but checking past pull requests to see who reviewed or git-blaming the code to see who committed to that topic can give some hints. + + + + Container system, boot system and library changes are some examples of the pull requests fitting this category. + +
+
+ Merging pull requests + + + It is possible for community members that have enough knowledge and experience on a special topic to contribute by merging pull requests. + + + + TODO: add the procedure to request merging rights. + + + + + + In a case a contributor definitively leaves the Nix community, they should create an issue or post on Discourse with references of packages and modules they maintain so the maintainership can be taken over by other contributors. + +
+
diff --git a/doc/contributing/submitting-changes.xml b/doc/contributing/submitting-changes.xml new file mode 100644 index 0000000000000..2c7defb817497 --- /dev/null +++ b/doc/contributing/submitting-changes.xml @@ -0,0 +1,429 @@ + + Submitting changes +
+ Making patches + + + + + Read Manual (How to write packages for Nix). + + + + + Fork the repository on GitHub. + + + + + Create a branch for your future fix. + + + + You can make branch from a commit of your local nixos-version. That will help you to avoid additional local compilations. Because you will receive packages from binary cache. + + + + For example: nixos-version returns 15.05.git.0998212 (Dingo). So you can do: + + + + +$ git checkout 0998212 +$ git checkout -b 'fix/pkg-name-update' + + + + + + Please avoid working directly on the master branch. + + + + + + + + Make commits of logical units. + + + + If you removed pkgs, made some major NixOS changes etc., write about them in nixos/doc/manual/release-notes/rl-unstable.xml. + + + + + + + + Check for unnecessary whitespace with git diff --check before committing. + + + + + Format the commit in a following way: + + +(pkg-name | nixos/<module>): (from -> to | init at version | refactor | etc) +Additional information. + + + + + Examples: + + + + nginx: init at 2.0.1 + + + + + firefox: 54.0.1 -> 55.0 + + + + + nixos/hydra: add bazBaz option + + + + + nixos/nginx: refactor config generation + + + + + + + + + + Test your changes. If you work with + + + + nixpkgs: + + + + update pkg -> + + + + nix-env -i pkg-name -f <path to your local nixpkgs folder> + + + + + + + + add pkg -> + + + + Make sure it's in pkgs/top-level/all-packages.nix + + + + + nix-env -i pkg-name -f <path to your local nixpkgs folder> + + + + + + + + If you don't want to install pkg in you profile. + + + + nix-build -A pkg-attribute-name <path to your local nixpkgs folder>/default.nix and check results in the folder result. It will appear in the same directory where you did nix-build. + + + + + + + + If you did nix-env -i pkg-name you can do nix-env -e pkg-name to uninstall it from your system. + + + + + + + + NixOS and its modules: + + + + You can add new module to your NixOS configuration file (usually it's /etc/nixos/configuration.nix). And do sudo nixos-rebuild test -I nixpkgs=<path to your local nixpkgs folder> --fast. + + + + + + + + + + + If you have commits pkg-name: oh, forgot to insert whitespace: squash commits in this case. Use git rebase -i. + + + + + Rebase you branch against current master. + + + +
+
+ Submitting changes + + + + + Push your changes to your fork of nixpkgs. + + + + + Create pull request: + + + + Write the title in format (pkg-name | nixos/<module>): improvement. + + + + If you update the pkg, write versions from -> to. + + + + + + + + Write in comment if you have tested your patch. Do not rely much on TravisCI. + + + + + If you make an improvement, write about your motivation. + + + + + Notify maintainers of the package. For example add to the message: cc @jagajaga @domenkozar. + + + + + + +
+
+ Pull Request Template + + + The pull request template helps determine what steps have been made for a contribution so far, and will help guide maintainers on the status of a change. The motivation section of the PR should include any extra details the title does not address and link any existing issues related to the pull request. + + + + When a PR is created, it will be pre-populated with some checkboxes detailed below: + + +
+ Tested using sandboxing + + + When sandbox builds are enabled, Nix will setup an isolated environment for each build process. It is used to remove further hidden dependencies set by the build environment to improve reproducibility. This includes access to the network during the build outside of fetch* functions and files outside the Nix store. Depending on the operating system access to other resources are blocked as well (ex. inter process communication is isolated on Linux); see sandbox in Nix manual for details. + + + + Sandboxing is not enabled by default in Nix due to a small performance hit on each build. In pull requests for nixpkgs people are asked to test builds with sandboxing enabled (see Tested using sandboxing in the pull request template) because inhttps://nixos.org/hydra/ sandboxing is also used. + + + + Depending if you use NixOS or other platforms you can use one of the following methods to enable sandboxing before building the package: + + + + Globally enable sandboxing on NixOS: add the following to configuration.nix +nix.useSandbox = true; + + + + + Globally enable sandboxing on non-NixOS platforms: add the following to: /etc/nix/nix.conf +sandbox = true + + + + +
+ +
+ Built on platform(s) + + + Many Nix packages are designed to run on multiple platforms. As such, it's important to let the maintainer know which platforms your changes have been tested on. It's not always practical to test a change on all platforms, and is not required for a pull request to be merged. Only check the systems you tested the build on in this section. + +
+ +
+ Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests) + + + Packages with automated tests are much more likely to be merged in a timely fashion because it doesn't require as much manual testing by the maintainer to verify the functionality of the package. If there are existing tests for the package, they should be run to verify your changes do not break the tests. Tests only apply to packages with NixOS modules defined and can only be run on Linux. For more details on writing and running tests, see the section in the NixOS manual. + +
+ +
+ Tested compilation of all pkgs that depend on this change using <command>nix-review</command> + + + If you are updating a package's version, you can use nix-review to make sure all packages that depend on the updated package still compile correctly. The nix-review utility can look for and build all dependencies either based on uncommited changes with the wip option or specifying a github pull request number. + + + + review changes from pull request number 12345: +nix-shell -p nix-review --run "nix-review pr 12345" + + + + review uncommitted changes: +nix-shell -p nix-review --run "nix-review wip" + +
+ +
+ Tested execution of all binary files (usually in <filename>./result/bin/</filename>) + + + It's important to test any executables generated by a build when you change or create a package in nixpkgs. This can be done by looking in ./result/bin and running any files in there, or at a minimum, the main executable for the package. For example, if you make a change to texlive, you probably would only check the binaries associated with the change you made rather than testing all of them. + +
+ +
+ Meets Nixpkgs contribution standards + + + The last checkbox is fits CONTRIBUTING.md. The contributing document has detailed information on standards the Nix community has for commit messages, reviews, licensing of contributions you make to the project, etc... Everyone should read and understand the standards the community has for contributing before submitting a pull request. + +
+
+
+ Hotfixing pull requests + + + + + Make the appropriate changes in you branch. + + + + + Don't create additional commits, do + + + + git rebase -i + + + + + git push --force to your branch. + + + + + + +
+
+ Commit policy + + + + + Commits must be sufficiently tested before being merged, both for the master and staging branches. + + + + + Hydra builds for master and staging should not be used as testing platform, it's a build farm for changes that have been already tested. + + + + + When changing the bootloader installation process, extra care must be taken. Grub installations cannot be rolled back, hence changes may break people's installations forever. For any non-trivial change to the bootloader please file a PR asking for review, especially from @edolstra. + + + + +
+ Master branch + + + + + It should only see non-breaking commits that do not cause mass rebuilds. + + + +
+ +
+ Staging branch + + + + + It's only for non-breaking mass-rebuild commits. That means it's not to be used for testing, and changes must have been well tested already. Read policy here. + + + + + If the branch is already in a broken state, please refrain from adding extra new breakages. Stabilize it for a few days, merge into master, then resume development on staging. Keep an eye on the staging evaluations here. If any fixes for staging happen to be already in master, then master can be merged into staging. + + + +
+ +
+ Stable release branches + + + + + If you're cherry-picking a commit to a stable release branch, always use git cherry-pick -xe and ensure the message contains a clear description about why this needs to be included in the stable branch. + + + An example of a cherry-picked commit would look like this: + + +nixos: Refactor the world. + +The original commit message describing the reason why the world was torn apart. + +(cherry picked from commit abcdef) +Reason: I just had a gut feeling that this would also be wanted by people from +the stone age. + + + +
+
+
diff --git a/doc/manual.xml b/doc/manual.xml index f9a5e56275f9a..de94e1c825837 100644 --- a/doc/manual.xml +++ b/doc/manual.xml @@ -32,10 +32,10 @@
Contributing to Nixpkgs - - - - - + + + + + diff --git a/doc/quick-start.xml b/doc/quick-start.xml deleted file mode 100644 index 80514cba49043..0000000000000 --- a/doc/quick-start.xml +++ /dev/null @@ -1,153 +0,0 @@ - - Quick Start to Adding a Package - - To add a package to Nixpkgs: - - - - Checkout the Nixpkgs source tree: - -$ git clone https://github.com/NixOS/nixpkgs -$ cd nixpkgs - - - - - Find a good place in the Nixpkgs tree to add the Nix expression for your package. For instance, a library package typically goes into pkgs/development/libraries/pkgname, while a web browser goes into pkgs/applications/networking/browsers/pkgname. See for some hints on the tree organisation. Create a directory for your package, e.g. - -$ mkdir pkgs/development/libraries/libfoo - - - - - In the package directory, create a Nix expression — a piece of code that describes how to build the package. In this case, it should be a function that is called with the package dependencies as arguments, and returns a build of the package in the Nix store. The expression should usually be called default.nix. - -$ emacs pkgs/development/libraries/libfoo/default.nix -$ git add pkgs/development/libraries/libfoo/default.nix - - - You can have a look at the existing Nix expressions under pkgs/ to see how it’s done. Here are some good ones: - - - - GNU Hello: pkgs/applications/misc/hello/default.nix. Trivial package, which specifies some meta attributes which is good practice. - - - - - GNU cpio: pkgs/tools/archivers/cpio/default.nix. Also a simple package. The generic builder in stdenv does everything for you. It has no dependencies beyond stdenv. - - - - - GNU Multiple Precision arithmetic library (GMP): pkgs/development/libraries/gmp/5.1.x.nix. Also done by the generic builder, but has a dependency on m4. - - - - - Pan, a GTK-based newsreader: pkgs/applications/networking/newsreaders/pan/default.nix. Has an optional dependency on gtkspell, which is only built if spellCheck is true. - - - - - Apache HTTPD: pkgs/servers/http/apache-httpd/2.4.nix. A bunch of optional features, variable substitutions in the configure flags, a post-install hook, and miscellaneous hackery. - - - - - Thunderbird: pkgs/applications/networking/mailreaders/thunderbird/default.nix. Lots of dependencies. - - - - - JDiskReport, a Java utility: pkgs/tools/misc/jdiskreport/default.nix (and the builder). Nixpkgs doesn’t have a decent stdenv for Java yet so this is pretty ad-hoc. - - - - - XML::Simple, a Perl module: pkgs/top-level/perl-packages.nix (search for the XMLSimple attribute). Most Perl modules are so simple to build that they are defined directly in perl-packages.nix; no need to make a separate file for them. - - - - - Adobe Reader: pkgs/applications/misc/adobe-reader/default.nix. Shows how binary-only packages can be supported. In particular the builder uses patchelf to set the RUNPATH and ELF interpreter of the executables so that the right libraries are found at runtime. - - - - - - Some notes: - - - - All meta attributes are optional, but it’s still a good idea to provide at least the description, homepage and license. - - - - - You can use nix-prefetch-url url to get the SHA-256 hash of source distributions. There are similar commands as nix-prefetch-git and nix-prefetch-hg available in nix-prefetch-scripts package. - - - - - A list of schemes for mirror:// URLs can be found in pkgs/build-support/fetchurl/mirrors.nix. - - - - - - The exact syntax and semantics of the Nix expression language, including the built-in function, are described in the Nix manual in the chapter on writing Nix expressions. - - - - - Add a call to the function defined in the previous step to pkgs/top-level/all-packages.nix with some descriptive name for the variable, e.g. libfoo. - -$ emacs pkgs/top-level/all-packages.nix - - - The attributes in that file are sorted by category (like “Development / Libraries”) that more-or-less correspond to the directory structure of Nixpkgs, and then by attribute name. - - - - - To test whether the package builds, run the following command from the root of the nixpkgs source tree: - -$ nix-build -A libfoo - where libfoo should be the variable name defined in the previous step. You may want to add the flag to keep the temporary build directory in case something fails. If the build succeeds, a symlink ./result to the package in the Nix store is created. - - - - - If you want to install the package into your profile (optional), do - -$ nix-env -f . -iA libfoo - - - - - Optionally commit the new package and open a pull request to nixpkgs, or use the Patches category on Discourse for sending a patch without a GitHub account. - - - - - diff --git a/doc/reviewing-contributions.xml b/doc/reviewing-contributions.xml deleted file mode 100644 index ed8f379c460e5..0000000000000 --- a/doc/reviewing-contributions.xml +++ /dev/null @@ -1,536 +0,0 @@ - - Reviewing contributions - - - The following section is a draft, and the policy for reviewing is still being discussed in issues such as #11166 and #20836 . - - - - The Nixpkgs project receives a fairly high number of contributions via GitHub pull requests. Reviewing and approving these is an important task and a way to contribute to the project. - - - The high change rate of Nixpkgs makes any pull request that remains open for too long subject to conflicts that will require extra work from the submitter or the merger. Reviewing pull requests in a timely manner and being responsive to the comments is the key to avoid this issue. GitHub provides sort filters that can be used to see the most recently and the least recently updated pull requests. We highly encourage looking at this list of ready to merge, unreviewed pull requests. - - - When reviewing a pull request, please always be nice and polite. Controversial changes can lead to controversial opinions, but it is important to respect every community member and their work. - - - GitHub provides reactions as a simple and quick way to provide feedback to pull requests or any comments. The thumb-down reaction should be used with care and if possible accompanied with some explanation so the submitter has directions to improve their contribution. - - - pull request reviews should include a list of what has been reviewed in a comment, so other reviewers and mergers can know the state of the review. - - - All the review template samples provided in this section are generic and meant as examples. Their usage is optional and the reviewer is free to adapt them to their liking. - -
- Package updates - - - A package update is the most trivial and common type of pull request. These pull requests mainly consist of updating the version part of the package name and the source hash. - - - - It can happen that non-trivial updates include patches or more complex changes. - - - - Reviewing process: - - - - - - Add labels to the pull request. (Requires commit rights) - - - - - 8.has: package (update) and any topic label that fit the updated package. - - - - - - - Ensure that the package versioning fits the guidelines. - - - - - Ensure that the commit text fits the guidelines. - - - - - Ensure that the package maintainers are notified. - - - - - CODEOWNERS will make GitHub notify users based on the submitted changes, but it can happen that it misses some of the package maintainers. - - - - - - - Ensure that the meta field information is correct. - - - - - License can change with version updates, so it should be checked to match the upstream license. - - - - - If the package has no maintainer, a maintainer must be set. This can be the update submitter or a community member that accepts to take maintainership of the package. - - - - - - - Ensure that the code contains no typos. - - - - - Building the package locally. - - - - - pull requests are often targeted to the master or staging branch, and building the pull request locally when it is submitted can trigger many source builds. - - - It is possible to rebase the changes on nixos-unstable or nixpkgs-unstable for easier review by running the following commands from a nixpkgs clone. - -$ git fetch origin nixos-unstable -$ git fetch origin pull/PRNUMBER/head -$ git rebase --onto nixos-unstable BASEBRANCH FETCH_HEAD - - - - - Fetching the nixos-unstable branch. - - - - - Fetching the pull request changes, PRNUMBER is the number at the end of the pull request title and BASEBRANCH the base branch of the pull request. - - - - - Rebasing the pull request changes to the nixos-unstable branch. - - - - - - - - The nix-review tool can be used to review a pull request content in a single command. PRNUMBER should be replaced by the number at the end of the pull request title. You can also provide the full github pull request url. - - -$ nix-shell -p nix-review --run "nix-review pr PRNUMBER" - - - - - - - Running every binary. - - - - - - Sample template for a package update review - -##### Reviewed points - -- [ ] package name fits guidelines -- [ ] package version fits guidelines -- [ ] package build on ARCHITECTURE -- [ ] executables tested on ARCHITECTURE -- [ ] all depending packages build - -##### Possible improvements - -##### Comments - - - -
-
- New packages - - - New packages are a common type of pull requests. These pull requests consists in adding a new nix-expression for a package. - - - - Reviewing process: - - - - - - Add labels to the pull request. (Requires commit rights) - - - - - 8.has: package (new) and any topic label that fit the new package. - - - - - - - Ensure that the package versioning is fitting the guidelines. - - - - - Ensure that the commit name is fitting the guidelines. - - - - - Ensure that the meta field contains correct information. - - - - - License must be checked to be fitting upstream license. - - - - - Platforms should be set or the package will not get binary substitutes. - - - - - A maintainer must be set. This can be the package submitter or a community member that accepts to take maintainership of the package. - - - - - - - Ensure that the code contains no typos. - - - - - Ensure the package source. - - - - - Mirrors urls should be used when available. - - - - - The most appropriate function should be used (e.g. packages from GitHub should use fetchFromGitHub). - - - - - - - Building the package locally. - - - - - Running every binary. - - - - - - Sample template for a new package review - -##### Reviewed points - -- [ ] package path fits guidelines -- [ ] package name fits guidelines -- [ ] package version fits guidelines -- [ ] package build on ARCHITECTURE -- [ ] executables tested on ARCHITECTURE -- [ ] `meta.description` is set and fits guidelines -- [ ] `meta.license` fits upstream license -- [ ] `meta.platforms` is set -- [ ] `meta.maintainers` is set -- [ ] build time only dependencies are declared in `nativeBuildInputs` -- [ ] source is fetched using the appropriate function -- [ ] phases are respected -- [ ] patches that are remotely available are fetched with `fetchpatch` - -##### Possible improvements - -##### Comments - - - -
-
- Module updates - - - Module updates are submissions changing modules in some ways. These often contains changes to the options or introduce new options. - - - - Reviewing process - - - - - - Add labels to the pull request. (Requires commit rights) - - - - - 8.has: module (update) and any topic label that fit the module. - - - - - - - Ensure that the module maintainers are notified. - - - - - CODEOWNERS will make GitHub notify users based on the submitted changes, but it can happen that it misses some of the package maintainers. - - - - - - - Ensure that the module tests, if any, are succeeding. - - - - - Ensure that the introduced options are correct. - - - - - Type should be appropriate (string related types differs in their merging capabilities, optionSet and string types are deprecated). - - - - - Description, default and example should be provided. - - - - - - - Ensure that option changes are backward compatible. - - - - - mkRenamedOptionModule and mkAliasOptionModule functions provide way to make option changes backward compatible. - - - - - - - Ensure that removed options are declared with mkRemovedOptionModule - - - - - Ensure that changes that are not backward compatible are mentioned in release notes. - - - - - Ensure that documentations affected by the change is updated. - - - - - - Sample template for a module update review - -##### Reviewed points - -- [ ] changes are backward compatible -- [ ] removed options are declared with `mkRemovedOptionModule` -- [ ] changes that are not backward compatible are documented in release notes -- [ ] module tests succeed on ARCHITECTURE -- [ ] options types are appropriate -- [ ] options description is set -- [ ] options example is provided -- [ ] documentation affected by the changes is updated - -##### Possible improvements - -##### Comments - - - -
-
- New modules - - - New modules submissions introduce a new module to NixOS. - - - - - - Add labels to the pull request. (Requires commit rights) - - - - - 8.has: module (new) and any topic label that fit the module. - - - - - - - Ensure that the module tests, if any, are succeeding. - - - - - Ensure that the introduced options are correct. - - - - - Type should be appropriate (string related types differs in their merging capabilities, optionSet and string types are deprecated). - - - - - Description, default and example should be provided. - - - - - - - Ensure that module meta field is present - - - - - Maintainers should be declared in meta.maintainers. - - - - - Module documentation should be declared with meta.doc. - - - - - - - Ensure that the module respect other modules functionality. - - - - - For example, enabling a module should not open firewall ports by default. - - - - - - - - Sample template for a new module review - -##### Reviewed points - -- [ ] module path fits the guidelines -- [ ] module tests succeed on ARCHITECTURE -- [ ] options have appropriate types -- [ ] options have default -- [ ] options have example -- [ ] options have descriptions -- [ ] No unneeded package is added to environment.systemPackages -- [ ] meta.maintainers is set -- [ ] module documentation is declared in meta.doc - -##### Possible improvements - -##### Comments - - - -
-
- Other submissions - - - Other type of submissions requires different reviewing steps. - - - - If you consider having enough knowledge and experience in a topic and would like to be a long-term reviewer for related submissions, please contact the current reviewers for that topic. They will give you information about the reviewing process. The main reviewers for a topic can be hard to find as there is no list, but checking past pull requests to see who reviewed or git-blaming the code to see who committed to that topic can give some hints. - - - - Container system, boot system and library changes are some examples of the pull requests fitting this category. - -
-
- Merging pull requests - - - It is possible for community members that have enough knowledge and experience on a special topic to contribute by merging pull requests. - - - - TODO: add the procedure to request merging rights. - - - - - - In a case a contributor definitively leaves the Nix community, they should create an issue or post on Discourse with references of packages and modules they maintain so the maintainership can be taken over by other contributors. - -
-
diff --git a/doc/submitting-changes.xml b/doc/submitting-changes.xml deleted file mode 100644 index 2c7defb817497..0000000000000 --- a/doc/submitting-changes.xml +++ /dev/null @@ -1,429 +0,0 @@ - - Submitting changes -
- Making patches - - - - - Read Manual (How to write packages for Nix). - - - - - Fork the repository on GitHub. - - - - - Create a branch for your future fix. - - - - You can make branch from a commit of your local nixos-version. That will help you to avoid additional local compilations. Because you will receive packages from binary cache. - - - - For example: nixos-version returns 15.05.git.0998212 (Dingo). So you can do: - - - - -$ git checkout 0998212 -$ git checkout -b 'fix/pkg-name-update' - - - - - - Please avoid working directly on the master branch. - - - - - - - - Make commits of logical units. - - - - If you removed pkgs, made some major NixOS changes etc., write about them in nixos/doc/manual/release-notes/rl-unstable.xml. - - - - - - - - Check for unnecessary whitespace with git diff --check before committing. - - - - - Format the commit in a following way: - - -(pkg-name | nixos/<module>): (from -> to | init at version | refactor | etc) -Additional information. - - - - - Examples: - - - - nginx: init at 2.0.1 - - - - - firefox: 54.0.1 -> 55.0 - - - - - nixos/hydra: add bazBaz option - - - - - nixos/nginx: refactor config generation - - - - - - - - - - Test your changes. If you work with - - - - nixpkgs: - - - - update pkg -> - - - - nix-env -i pkg-name -f <path to your local nixpkgs folder> - - - - - - - - add pkg -> - - - - Make sure it's in pkgs/top-level/all-packages.nix - - - - - nix-env -i pkg-name -f <path to your local nixpkgs folder> - - - - - - - - If you don't want to install pkg in you profile. - - - - nix-build -A pkg-attribute-name <path to your local nixpkgs folder>/default.nix and check results in the folder result. It will appear in the same directory where you did nix-build. - - - - - - - - If you did nix-env -i pkg-name you can do nix-env -e pkg-name to uninstall it from your system. - - - - - - - - NixOS and its modules: - - - - You can add new module to your NixOS configuration file (usually it's /etc/nixos/configuration.nix). And do sudo nixos-rebuild test -I nixpkgs=<path to your local nixpkgs folder> --fast. - - - - - - - - - - - If you have commits pkg-name: oh, forgot to insert whitespace: squash commits in this case. Use git rebase -i. - - - - - Rebase you branch against current master. - - - -
-
- Submitting changes - - - - - Push your changes to your fork of nixpkgs. - - - - - Create pull request: - - - - Write the title in format (pkg-name | nixos/<module>): improvement. - - - - If you update the pkg, write versions from -> to. - - - - - - - - Write in comment if you have tested your patch. Do not rely much on TravisCI. - - - - - If you make an improvement, write about your motivation. - - - - - Notify maintainers of the package. For example add to the message: cc @jagajaga @domenkozar. - - - - - - -
-
- Pull Request Template - - - The pull request template helps determine what steps have been made for a contribution so far, and will help guide maintainers on the status of a change. The motivation section of the PR should include any extra details the title does not address and link any existing issues related to the pull request. - - - - When a PR is created, it will be pre-populated with some checkboxes detailed below: - - -
- Tested using sandboxing - - - When sandbox builds are enabled, Nix will setup an isolated environment for each build process. It is used to remove further hidden dependencies set by the build environment to improve reproducibility. This includes access to the network during the build outside of fetch* functions and files outside the Nix store. Depending on the operating system access to other resources are blocked as well (ex. inter process communication is isolated on Linux); see sandbox in Nix manual for details. - - - - Sandboxing is not enabled by default in Nix due to a small performance hit on each build. In pull requests for nixpkgs people are asked to test builds with sandboxing enabled (see Tested using sandboxing in the pull request template) because inhttps://nixos.org/hydra/ sandboxing is also used. - - - - Depending if you use NixOS or other platforms you can use one of the following methods to enable sandboxing before building the package: - - - - Globally enable sandboxing on NixOS: add the following to configuration.nix -nix.useSandbox = true; - - - - - Globally enable sandboxing on non-NixOS platforms: add the following to: /etc/nix/nix.conf -sandbox = true - - - - -
- -
- Built on platform(s) - - - Many Nix packages are designed to run on multiple platforms. As such, it's important to let the maintainer know which platforms your changes have been tested on. It's not always practical to test a change on all platforms, and is not required for a pull request to be merged. Only check the systems you tested the build on in this section. - -
- -
- Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests) - - - Packages with automated tests are much more likely to be merged in a timely fashion because it doesn't require as much manual testing by the maintainer to verify the functionality of the package. If there are existing tests for the package, they should be run to verify your changes do not break the tests. Tests only apply to packages with NixOS modules defined and can only be run on Linux. For more details on writing and running tests, see the section in the NixOS manual. - -
- -
- Tested compilation of all pkgs that depend on this change using <command>nix-review</command> - - - If you are updating a package's version, you can use nix-review to make sure all packages that depend on the updated package still compile correctly. The nix-review utility can look for and build all dependencies either based on uncommited changes with the wip option or specifying a github pull request number. - - - - review changes from pull request number 12345: -nix-shell -p nix-review --run "nix-review pr 12345" - - - - review uncommitted changes: -nix-shell -p nix-review --run "nix-review wip" - -
- -
- Tested execution of all binary files (usually in <filename>./result/bin/</filename>) - - - It's important to test any executables generated by a build when you change or create a package in nixpkgs. This can be done by looking in ./result/bin and running any files in there, or at a minimum, the main executable for the package. For example, if you make a change to texlive, you probably would only check the binaries associated with the change you made rather than testing all of them. - -
- -
- Meets Nixpkgs contribution standards - - - The last checkbox is fits CONTRIBUTING.md. The contributing document has detailed information on standards the Nix community has for commit messages, reviews, licensing of contributions you make to the project, etc... Everyone should read and understand the standards the community has for contributing before submitting a pull request. - -
-
-
- Hotfixing pull requests - - - - - Make the appropriate changes in you branch. - - - - - Don't create additional commits, do - - - - git rebase -i - - - - - git push --force to your branch. - - - - - - -
-
- Commit policy - - - - - Commits must be sufficiently tested before being merged, both for the master and staging branches. - - - - - Hydra builds for master and staging should not be used as testing platform, it's a build farm for changes that have been already tested. - - - - - When changing the bootloader installation process, extra care must be taken. Grub installations cannot be rolled back, hence changes may break people's installations forever. For any non-trivial change to the bootloader please file a PR asking for review, especially from @edolstra. - - - - -
- Master branch - - - - - It should only see non-breaking commits that do not cause mass rebuilds. - - - -
- -
- Staging branch - - - - - It's only for non-breaking mass-rebuild commits. That means it's not to be used for testing, and changes must have been well tested already. Read policy here. - - - - - If the branch is already in a broken state, please refrain from adding extra new breakages. Stabilize it for a few days, merge into master, then resume development on staging. Keep an eye on the staging evaluations here. If any fixes for staging happen to be already in master, then master can be merged into staging. - - - -
- -
- Stable release branches - - - - - If you're cherry-picking a commit to a stable release branch, always use git cherry-pick -xe and ensure the message contains a clear description about why this needs to be included in the stable branch. - - - An example of a cherry-picked commit would look like this: - - -nixos: Refactor the world. - -The original commit message describing the reason why the world was torn apart. - -(cherry picked from commit abcdef) -Reason: I just had a gut feeling that this would also be wanted by people from -the stone age. - - - -
-
-
-- cgit 1.4.1 From 680f6238bd8f8bd7d5c58382e87d343158934e27 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Wed, 30 Oct 2019 10:29:10 +0100 Subject: nixpkgs manual: move stdenv chapters into one folder --- doc/cross-compilation.xml | 394 ------- doc/manual.xml | 10 +- doc/meta.xml | 350 ------ doc/multiple-output.xml | 232 ---- doc/platform-notes.xml | 83 -- doc/stdenv.xml | 2375 -------------------------------------- doc/stdenv/cross-compilation.xml | 394 +++++++ doc/stdenv/meta.xml | 350 ++++++ doc/stdenv/multiple-output.xml | 232 ++++ doc/stdenv/platform-notes.xml | 83 ++ doc/stdenv/stdenv.xml | 2375 ++++++++++++++++++++++++++++++++++++++ 11 files changed, 3439 insertions(+), 3439 deletions(-) delete mode 100644 doc/cross-compilation.xml delete mode 100644 doc/meta.xml delete mode 100644 doc/multiple-output.xml delete mode 100644 doc/platform-notes.xml delete mode 100644 doc/stdenv.xml create mode 100644 doc/stdenv/cross-compilation.xml create mode 100644 doc/stdenv/meta.xml create mode 100644 doc/stdenv/multiple-output.xml create mode 100644 doc/stdenv/platform-notes.xml create mode 100644 doc/stdenv/stdenv.xml (limited to 'doc') diff --git a/doc/cross-compilation.xml b/doc/cross-compilation.xml deleted file mode 100644 index 93fe9095ce2f3..0000000000000 --- a/doc/cross-compilation.xml +++ /dev/null @@ -1,394 +0,0 @@ - - Cross-compilation -
- Introduction - - - "Cross-compilation" means compiling a program on one machine for another type of machine. For example, a typical use of cross-compilation is to compile programs for embedded devices. These devices often don't have the computing power and memory to compile their own programs. One might think that cross-compilation is a fairly niche concern. However, there are significant advantages to rigorously distinguishing between build-time and run-time environments! Significant, because the benefits apply even when one is developing and deploying on the same machine. Nixpkgs is increasingly adopting the opinion that packages should be written with cross-compilation in mind, and nixpkgs should evaluate in a similar way (by minimizing cross-compilation-specific special cases) whether or not one is cross-compiling. - - - - This chapter will be organized in three parts. First, it will describe the basics of how to package software in a way that supports cross-compilation. Second, it will describe how to use Nixpkgs when cross-compiling. Third, it will describe the internal infrastructure supporting cross-compilation. - -
- -
- Packaging in a cross-friendly manner - -
- Platform parameters - - - Nixpkgs follows the conventions of GNU autoconf. We distinguish between 3 types of platforms when building a derivation: build, host, and target. In summary, build is the platform on which a package is being built, host is the platform on which it will run. The third attribute, target, is relevant only for certain specific compilers and build tools. - - - - In Nixpkgs, these three platforms are defined as attribute sets under the names buildPlatform, hostPlatform, and targetPlatform. They are always defined as attributes in the standard environment. That means one can access them like: -{ stdenv, fooDep, barDep, .. }: ...stdenv.buildPlatform... - . - - - - - - buildPlatform - - - - The "build platform" is the platform on which a package is built. Once someone has a built package, or pre-built binary package, the build platform should not matter and can be ignored. - - - - - - hostPlatform - - - - The "host platform" is the platform on which a package will be run. This is the simplest platform to understand, but also the one with the worst name. - - - - - - targetPlatform - - - - The "target platform" attribute is, unlike the other two attributes, not actually fundamental to the process of building software. Instead, it is only relevant for compatibility with building certain specific compilers and build tools. It can be safely ignored for all other packages. - - - The build process of certain compilers is written in such a way that the compiler resulting from a single build can itself only produce binaries for a single platform. The task of specifying this single "target platform" is thus pushed to build time of the compiler. The root cause of this is that the compiler (which will be run on the host) and the standard library/runtime (which will be run on the target) are built by a single build process. - - - There is no fundamental need to think about a single target ahead of time like this. If the tool supports modular or pluggable backends, both the need to specify the target at build time and the constraint of having only a single target disappear. An example of such a tool is LLVM. - - - Although the existence of a "target platfom" is arguably a historical mistake, it is a common one: examples of tools that suffer from it are GCC, Binutils, GHC and Autoconf. Nixpkgs tries to avoid sharing in the mistake where possible. Still, because the concept of a target platform is so ingrained, it is best to support it as is. - - - - - - - The exact schema these fields follow is a bit ill-defined due to a long and convoluted evolution, but this is slowly being cleaned up. You can see examples of ones used in practice in lib.systems.examples; note how they are not all very consistent. For now, here are few fields can count on them containing: - - - - - - system - - - - This is a two-component shorthand for the platform. Examples of this would be "x86_64-darwin" and "i686-linux"; see lib.systems.doubles for more. The first component corresponds to the CPU architecture of the platform and the second to the operating system of the platform ([cpu]-[os]). This format has built-in support in Nix, such as the builtins.currentSystem impure string. - - - - - - config - - - - This is a 3- or 4- component shorthand for the platform. Examples of this would be x86_64-unknown-linux-gnu and aarch64-apple-darwin14. This is a standard format called the "LLVM target triple", as they are pioneered by LLVM. In the 4-part form, this corresponds to [cpu]-[vendor]-[os]-[abi]. This format is strictly more informative than the "Nix host double", as the previous format could analogously be termed. This needs a better name than config! - - - - - - parsed - - - - This is a Nix representation of a parsed LLVM target triple with white-listed components. This can be specified directly, or actually parsed from the config. See lib.systems.parse for the exact representation. - - - - - - libc - - - - This is a string identifying the standard C library used. Valid identifiers include "glibc" for GNU libc, "libSystem" for Darwin's Libsystem, and "uclibc" for µClibc. It should probably be refactored to use the module system, like parse. - - - - - - is* - - - - These predicates are defined in lib.systems.inspect, and slapped onto every platform. They are superior to the ones in stdenv as they force the user to be explicit about which platform they are inspecting. Please use these instead of those. - - - - - - platform - - - - This is, quite frankly, a dumping ground of ad-hoc settings (it's an attribute set). See lib.systems.platforms for examples—there's hopefully one in there that will work verbatim for each platform that is working. Please help us triage these flags and give them better homes! - - - - -
- -
- Theory of dependency categorization - - - - This is a rather philosophical description that isn't very Nixpkgs-specific. For an overview of all the relevant attributes given to mkDerivation, see . For a description of how everything is implemented, see . - - - - - In this section we explore the relationship between both runtime and build-time dependencies and the 3 Autoconf platforms. - - - - A run time dependency between two packages requires that their host platforms match. This is directly implied by the meaning of "host platform" and "runtime dependency": The package dependency exists while both packages are running on a single host platform. - - - - A build time dependency, however, has a shift in platforms between the depending package and the depended-on package. "build time dependency" means that to build the depending package we need to be able to run the depended-on's package. The depending package's build platform is therefore equal to the depended-on package's host platform. - - - - If both the dependency and depending packages aren't compilers or other machine-code-producing tools, we're done. And indeed buildInputs and nativeBuildInputs have covered these simpler build-time and run-time (respectively) changes for many years. But if the dependency does produce machine code, we might need to worry about its target platform too. In principle, that target platform might be any of the depending package's build, host, or target platforms, but we prohibit dependencies from a "later" platform to an earlier platform to limit confusion because we've never seen a legitimate use for them. - - - - Finally, if the depending package is a compiler or other machine-code-producing tool, it might need dependencies that run at "emit time". This is for compilers that (regrettably) insist on being built together with their source langauges' standard libraries. Assuming build != host != target, a run-time dependency of the standard library cannot be run at the compiler's build time or run time, but only at the run time of code emitted by the compiler. - - - - Putting this all together, that means we have dependencies in the form "host → target", in at most the following six combinations: -
Possible dependency types
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Possible dependency types
Dependency's host platformDependency's target platform
buildbuild
buildhost
buildtarget
hosthost
hosttarget
targettarget
-
- - - Some examples will make this table clearer. Suppose there's some package that is being built with a (build, host, target) platform triple of (foo, bar, baz). If it has a build-time library dependency, that would be a "host → build" dependency with a triple of (foo, foo, *) (the target platform is irrelevant). If it needs a compiler to be built, that would be a "build → host" dependency with a triple of (foo, foo, *) (the target platform is irrelevant). That compiler, would be built with another compiler, also "build → host" dependency, with a triple of (foo, foo, foo). - - - -
- Cross packaging cookbook - - - Some frequently encountered problems when packaging for cross-compilation should be answered here. Ideally, the information above is exhaustive, so this section cannot provide any new information, but it is ludicrous and cruel to expect everyone to spend effort working through the interaction of many features just to figure out the same answer to the same common problem. Feel free to add to this list! - - - - - - - What if my package's build system needs to build a C program to be run under the build environment? - - - - -depsBuildBuild = [ buildPackages.stdenv.cc ]; - Add it to your mkDerivation invocation. - - - - - - - My package fails to find ar. - - - - - Many packages assume that an unprefixed ar is available, but Nix doesn't provide one. It only provides a prefixed one, just as it only does for all the other binutils programs. It may be necessary to patch the package to fix the build system to use a prefixed `ar`. - - - - - - - My package's testsuite needs to run host platform code. - - - - -doCheck = stdenv.hostPlatform != stdenv.buildPlatfrom; - Add it to your mkDerivation invocation. - - - - -
- - -
- Cross-building packages - - - Nixpkgs can be instantiated with localSystem alone, in which case there is no cross-compiling and everything is built by and for that system, or also with crossSystem, in which case packages run on the latter, but all building happens on the former. Both parameters take the same schema as the 3 (build, host, and target) platforms defined in the previous section. As mentioned above, lib.systems.examples has some platforms which are used as arguments for these parameters in practice. You can use them programmatically, or on the command line: - -nix-build '<nixpkgs>' --arg crossSystem '(import <nixpkgs/lib>).systems.examples.fooBarBaz' -A whatever - - - - - Eventually we would like to make these platform examples an unnecessary convenience so that - -nix-build '<nixpkgs>' --arg crossSystem '{ config = "<arch>-<os>-<vendor>-<abi>"; }' -A whatever - works in the vast majority of cases. The problem today is dependencies on other sorts of configuration which aren't given proper defaults. We rely on the examples to crudely to set those configuration parameters in some vaguely sane manner on the users behalf. Issue #34274 tracks this inconvenience along with its root cause in crufty configuration options. - - - - - While one is free to pass both parameters in full, there's a lot of logic to fill in missing fields. As discussed in the previous section, only one of system, config, and parsed is needed to infer the other two. Additionally, libc will be inferred from parse. Finally, localSystem.system is also impurely inferred based on the platform evaluation occurs. This means it is often not necessary to pass localSystem at all, as in the command-line example in the previous paragraph. - - - - - Many sources (manual, wiki, etc) probably mention passing system, platform, along with the optional crossSystem to nixpkgs: import <nixpkgs> { system = ..; platform = ..; crossSystem = ..; }. Passing those two instead of localSystem is still supported for compatibility, but is discouraged. Indeed, much of the inference we do for these parameters is motivated by compatibility as much as convenience. - - - - - One would think that localSystem and crossSystem overlap horribly with the three *Platforms (buildPlatform, hostPlatform, and targetPlatform; see stage.nix or the manual). Actually, those identifiers are purposefully not used here to draw a subtle but important distinction: While the granularity of having 3 platforms is necessary to properly *build* packages, it is overkill for specifying the user's *intent* when making a build plan or package set. A simple "build vs deploy" dichotomy is adequate: the sliding window principle described in the previous section shows how to interpolate between the these two "end points" to get the 3 platform triple for each bootstrapping stage. That means for any package a given package set, even those not bound on the top level but only reachable via dependencies or buildPackages, the three platforms will be defined as one of localSystem or crossSystem, with the former replacing the latter as one traverses build-time dependencies. A last simple difference is that crossSystem should be null when one doesn't want to cross-compile, while the *Platforms are always non-null. localSystem is always non-null. - -
- -
- Cross-compilation infrastructure - -
- Implementation of dependencies - - - The categorizes of dependencies developed in are specified as lists of derivations given to mkDerivation, as documented in . In short, each list of dependencies for "host → target" of "foo → bar" is called depsFooBar, with exceptions for backwards compatibility that depsBuildHost is instead called nativeBuildInputs and depsHostTarget is instead called buildInputs. Nixpkgs is now structured so that each depsFooBar is automatically taken from pkgsFooBar. (These pkgsFooBars are quite new, so there is no special case for nativeBuildInputs and buildInputs.) For example, pkgsBuildHost.gcc should be used at build-time, while pkgsHostTarget.gcc should be used at run-time. - - - - Now, for most of Nixpkgs's history, there were no pkgsFooBar attributes, and most packages have not been refactored to use it explicitly. Prior to those, there were just buildPackages, pkgs, and targetPackages. Those are now redefined as aliases to pkgsBuildHost, pkgsHostTarget, and pkgsTargetTarget. It is acceptable, even recommended, to use them for libraries to show that the host platform is irrelevant. - - - - But before that, there was just pkgs, even though both buildInputs and nativeBuildInputs existed. [Cross barely worked, and those were implemented with some hacks on mkDerivation to override dependencies.] What this means is the vast majority of packages do not use any explicit package set to populate their dependencies, just using whatever callPackage gives them even if they do correctly sort their dependencies into the multiple lists described above. And indeed, asking that users both sort their dependencies, and take them from the right attribute set, is both too onerous and redundant, so the recommended approach (for now) is to continue just categorizing by list and not using an explicit package set. - - - - To make this work, we "splice" together the six pkgsFooBar package sets and have callPackage actually take its arguments from that. This is currently implemented in pkgs/top-level/splice.nix. mkDerivation then, for each dependency attribute, pulls the right derivation out from the splice. This splicing can be skipped when not cross-compiling as the package sets are the same, but still is a bit slow for cross-compiling. We'd like to do something better, but haven't come up with anything yet. - -
- -
- Bootstrapping - - - Each of the package sets described above come from a single bootstrapping stage. While pkgs/top-level/default.nix, coordinates the composition of stages at a high level, pkgs/top-level/stage.nix "ties the knot" (creates the fixed point) of each stage. The package sets are defined per-stage however, so they can be thought of as edges between stages (the nodes) in a graph. Compositions like pkgsBuildTarget.targetPackages can be thought of as paths to this graph. - - - - While there are many package sets, and thus many edges, the stages can also be arranged in a linear chain. In other words, many of the edges are redundant as far as connectivity is concerned. This hinges on the type of bootstrapping we do. Currently for cross it is: - - - - (native, native, native) - - - - - (native, native, foreign) - - - - - (native, foreign, foreign) - - - - In each stage, pkgsBuildHost refers the the previous stage, pkgsBuildBuild refers to the one before that, and pkgsHostTarget refers to the current one, and pkgsTargetTarget refers to the next one. When there is no previous or next stage, they instead refer to the current stage. Note how all the invariants regarding the mapping between dependency and depending packages' build host and target platforms are preserved. pkgsBuildTarget and pkgsHostHost are more complex in that the stage fitting the requirements isn't always a fixed chain of "prevs" and "nexts" away (modulo the "saturating" self-references at the ends). We just special case each instead. All the primary edges are implemented is in pkgs/stdenv/booter.nix, and secondarily aliases in pkgs/top-level/stage.nix. - - - - - Note the native stages are bootstrapped in legacy ways that predate the current cross implementation. This is why the the bootstrapping stages leading up to the final stages are ignored inthe previous paragraph. - - - - - If one looks at the 3 platform triples, one can see that they overlap such that one could put them together into a chain like: - -(native, native, native, foreign, foreign) - - If one imagines the saturating self references at the end being replaced with infinite stages, and then overlays those platform triples, one ends up with the infinite tuple: - -(native..., native, native, native, foreign, foreign, foreign...) - - On can then imagine any sequence of platforms such that there are bootstrap stages with their 3 platforms determined by "sliding a window" that is the 3 tuple through the sequence. This was the original model for bootstrapping. Without a target platform (assume a better world where all compilers are multi-target and all standard libraries are built in their own derivation), this is sufficient. Conversely if one wishes to cross compile "faster", with a "Canadian Cross" bootstraping stage where build != host != target, more bootstrapping stages are needed since no sliding window providess the pesky pkgsBuildTarget package set since it skips the Canadian cross stage's "host". - - - - - It is much better to refer to buildPackages than targetPackages, or more broadly package sets that do not mention "target". There are three reasons for this. - - - First, it is because bootstrapping stages do not have a unique targetPackages. For example a (x86-linux, x86-linux, arm-linux) and (x86-linux, x86-linux, x86-windows) package set both have a (x86-linux, x86-linux, x86-linux) package set. Because there is no canonical targetPackages for such a native (build == host == target) package set, we set their targetPackages - - - Second, it is because this is a frequent source of hard-to-follow "infinite recursions" / cycles. When only package sets that don't mention target are used, the package set forms a directed acyclic graph. This means that all cycles that exist are confined to one stage. This means they are a lot smaller, and easier to follow in the code or a backtrace. It also means they are present in native and cross builds alike, and so more likely to be caught by CI and other users. - - - Thirdly, it is because everything target-mentioning only exists to accommodate compilers with lousy build systems that insist on the compiler itself and standard library being built together. Of course that is bad because bigger derivations means longer rebuilds. It is also problematic because it tends to make the standard libraries less like other libraries than they could be, complicating code and build systems alike. Because of the other problems, and because of these innate disadvantages, compilers ought to be packaged another way where possible. - - - - - - If one explores Nixpkgs, they will see derivations with names like gccCross. Such *Cross derivations is a holdover from before we properly distinguished between the host and target platforms—the derivation with "Cross" in the name covered the build = host != target case, while the other covered the host = target, with build platform the same or not based on whether one was using its .nativeDrv or .crossDrv. This ugliness will disappear soon. - - -
-
- diff --git a/doc/manual.xml b/doc/manual.xml index de94e1c825837..d679b3d8bfeb0 100644 --- a/doc/manual.xml +++ b/doc/manual.xml @@ -15,11 +15,11 @@ Standard environment - - - - - + + + + + Builders diff --git a/doc/meta.xml b/doc/meta.xml deleted file mode 100644 index 9371196818ad9..0000000000000 --- a/doc/meta.xml +++ /dev/null @@ -1,350 +0,0 @@ - - Meta-attributes - - Nix packages can declare meta-attributes that contain information about a package such as a description, its homepage, its license, and so on. For instance, the GNU Hello package has a meta declaration like this: - -meta = with stdenv.lib; { - description = "A program that produces a familiar, friendly greeting"; - longDescription = '' - GNU Hello is a program that prints "Hello, world!" when you run it. - It is fully customizable. - ''; - homepage = https://www.gnu.org/software/hello/manual/; - license = licenses.gpl3Plus; - maintainers = [ maintainers.eelco ]; - platforms = platforms.all; -}; - - - - Meta-attributes are not passed to the builder of the package. Thus, a change to a meta-attribute doesn’t trigger a recompilation of the package. The value of a meta-attribute must be a string. - - - The meta-attributes of a package can be queried from the command-line using nix-env: - -$ nix-env -qa hello --json -{ - "hello": { - "meta": { - "description": "A program that produces a familiar, friendly greeting", - "homepage": "https://www.gnu.org/software/hello/manual/", - "license": { - "fullName": "GNU General Public License version 3 or later", - "shortName": "GPLv3+", - "url": "http://www.fsf.org/licensing/licenses/gpl.html" - }, - "longDescription": "GNU Hello is a program that prints \"Hello, world!\" when you run it.\nIt is fully customizable.\n", - "maintainers": [ - "Ludovic Court\u00e8s <ludo@gnu.org>" - ], - "platforms": [ - "i686-linux", - "x86_64-linux", - "armv5tel-linux", - "armv7l-linux", - "mips32-linux", - "x86_64-darwin", - "i686-cygwin", - "i686-freebsd", - "x86_64-freebsd", - "i686-openbsd", - "x86_64-openbsd" - ], - "position": "/home/user/dev/nixpkgs/pkgs/applications/misc/hello/default.nix:14" - }, - "name": "hello-2.9", - "system": "x86_64-linux" - } -} - - - - nix-env knows about the description field specifically: - -$ nix-env -qa hello --description -hello-2.3 A program that produces a familiar, friendly greeting - - -
- Standard meta-attributes - - - It is expected that each meta-attribute is one of the following: - - - - - - description - - - - A short (one-line) description of the package. This is shown by nix-env -q --description and also on the Nixpkgs release pages. - - - Don’t include a period at the end. Don’t include newline characters. Capitalise the first character. For brevity, don’t repeat the name of package — just describe what it does. - - - Wrong: "libpng is a library that allows you to decode PNG images." - - - Right: "A library for decoding PNG images" - - - - - - longDescription - - - - An arbitrarily long description of the package. - - - - - - branch - - - - Release branch. Used to specify that a package is not going to receive updates that are not in this branch; for example, Linux kernel 3.0 is supposed to be updated to 3.0.X, not 3.1. - - - - - - homepage - - - - The package’s homepage. Example: https://www.gnu.org/software/hello/manual/ - - - - - - downloadPage - - - - The page where a link to the current version can be found. Example: https://ftp.gnu.org/gnu/hello/ - - - - - - changelog - - - - A link or a list of links to the location of Changelog for a package. A link may use expansion to refer to the correct changelog version. Example: "https://git.savannah.gnu.org/cgit/hello.git/plain/NEWS?h=v${version}" - - - - - - license - - - - The license, or licenses, for the package. One from the attribute set defined in nixpkgs/lib/licenses.nix. At this moment using both a list of licenses and a single license is valid. If the license field is in the form of a list representation, then it means that parts of the package are licensed differently. Each license should preferably be referenced by their attribute. The non-list attribute value can also be a space delimited string representation of the contained attribute shortNames or spdxIds. The following are all valid examples: - - - - Single license referenced by attribute (preferred) stdenv.lib.licenses.gpl3. - - - - - Single license referenced by its attribute shortName (frowned upon) "gpl3". - - - - - Single license referenced by its attribute spdxId (frowned upon) "GPL-3.0". - - - - - Multiple licenses referenced by attribute (preferred) with stdenv.lib.licenses; [ asl20 free ofl ]. - - - - - Multiple licenses referenced as a space delimited string of attribute shortNames (frowned upon) "asl20 free ofl". - - - - For details, see . - - - - - - maintainers - - - - A list of names and e-mail addresses of the maintainers of this Nix expression. If you would like to be a maintainer of a package, you may want to add yourself to nixpkgs/maintainers/maintainer-list.nix and write something like [ stdenv.lib.maintainers.alice stdenv.lib.maintainers.bob ]. - - - - - - priority - - - - The priority of the package, used by nix-env to resolve file name conflicts between packages. See the Nix manual page for nix-env for details. Example: "10" (a low-priority package). - - - - - - platforms - - - - The list of Nix platform types on which the package is supported. Hydra builds packages according to the platform specified. If no platform is specified, the package does not have prebuilt binaries. An example is: - -meta.platforms = stdenv.lib.platforms.linux; - - Attribute Set stdenv.lib.platforms defines various common lists of platforms types. - - - - - - tests - - - - - This attribute is special in that it is not actually under the meta attribute set but rather under the passthru attribute set. This is due to how meta attributes work, and the fact that they are supposed to contain only metadata, not derivations. - - - - An attribute set with as values tests. A test is a derivation, which builds successfully when the test passes, and fails to build otherwise. A derivation that is a test needs to have meta.timeout defined. - - - The NixOS tests are available as nixosTests in parameters of derivations. For instance, the OpenSMTPD derivation includes lines similar to: - -{ /* ... */, nixosTests }: -{ - # ... - passthru.tests = { - basic-functionality-and-dovecot-integration = nixosTests.opensmtpd; - }; -} - - - - - - - timeout - - - - A timeout (in seconds) for building the derivation. If the derivation takes longer than this time to build, it can fail due to breaking the timeout. However, all computers do not have the same computing power, hence some builders may decide to apply a multiplicative factor to this value. When filling this value in, try to keep it approximately consistent with other values already present in nixpkgs. - - - - - - hydraPlatforms - - - - The list of Nix platform types for which the Hydra instance at hydra.nixos.org will build the package. (Hydra is the Nix-based continuous build system.) It defaults to the value of meta.platforms. Thus, the only reason to set meta.hydraPlatforms is if you want hydra.nixos.org to build the package on a subset of meta.platforms, or not at all, e.g. - -meta.platforms = stdenv.lib.platforms.linux; -meta.hydraPlatforms = []; - - - - - - - broken - - - - If set to true, the package is marked as “broken”, meaning that it won’t show up in nix-env -qa, and cannot be built or installed. Such packages should be removed from Nixpkgs eventually unless they are fixed. - - - - - - updateWalker - - - - If set to true, the package is tested to be updated correctly by the update-walker.sh script without additional settings. Such packages have meta.version set and their homepage (or the page specified by meta.downloadPage) contains a direct link to the package tarball. - - - - -
-
- Licenses - - - The meta.license attribute should preferrably contain a value from stdenv.lib.licenses defined in nixpkgs/lib/licenses.nix, or in-place license description of the same format if the license is unlikely to be useful in another expression. - - - - Although it's typically better to indicate the specific license, a few generic options are available: - - - - stdenv.lib.licenses.free, "free" - - - - Catch-all for free software licenses not listed above. - - - - - - stdenv.lib.licenses.unfreeRedistributable, "unfree-redistributable" - - - - Unfree package that can be redistributed in binary form. That is, it’s legal to redistribute the output of the derivation. This means that the package can be included in the Nixpkgs channel. - - - Sometimes proprietary software can only be redistributed unmodified. Make sure the builder doesn’t actually modify the original binaries; otherwise we’re breaking the license. For instance, the NVIDIA X11 drivers can be redistributed unmodified, but our builder applies patchelf to make them work. Thus, its license is "unfree" and it cannot be included in the Nixpkgs channel. - - - - - - stdenv.lib.licenses.unfree, "unfree" - - - - Unfree package that cannot be redistributed. You can build it yourself, but you cannot redistribute the output of the derivation. Thus it cannot be included in the Nixpkgs channel. - - - - - - stdenv.lib.licenses.unfreeRedistributableFirmware, "unfree-redistributable-firmware" - - - - This package supplies unfree, redistributable firmware. This is a separate value from unfree-redistributable because not everybody cares whether firmware is free. - - - - - -
-
diff --git a/doc/multiple-output.xml b/doc/multiple-output.xml deleted file mode 100644 index 83275bb2fbd1a..0000000000000 --- a/doc/multiple-output.xml +++ /dev/null @@ -1,232 +0,0 @@ - - -]> - - Multiple-output packages -
- Introduction - - - The Nix language allows a derivation to produce multiple outputs, which is similar to what is utilized by other Linux distribution packaging systems. The outputs reside in separate Nix store paths, so they can be mostly handled independently of each other, including passing to build inputs, garbage collection or binary substitution. The exception is that building from source always produces all the outputs. - - - - The main motivation is to save disk space by reducing runtime closure sizes; consequently also sizes of substituted binaries get reduced. Splitting can be used to have more granular runtime dependencies, for example the typical reduction is to split away development-only files, as those are typically not needed during runtime. As a result, closure sizes of many packages can get reduced to a half or even much less. - - - - - The reduction effects could be instead achieved by building the parts in completely separate derivations. That would often additionally reduce build-time closures, but it tends to be much harder to write such derivations, as build systems typically assume all parts are being built at once. This compromise approach of single source package producing multiple binary packages is also utilized often by rpm and deb. - - -
-
- Installing a split package - - - When installing a package via systemPackages or nix-env you have several options: - - - - - - You can install particular outputs explicitly, as each is available in the Nix language as an attribute of the package. The outputs attribute contains a list of output names. - - - - - You can let it use the default outputs. These are handled by meta.outputsToInstall attribute that contains a list of output names. - - - TODO: more about tweaking the attribute, etc. - - - - - NixOS provides configuration option environment.extraOutputsToInstall that allows adding extra outputs of environment.systemPackages atop the default ones. It's mainly meant for documentation and debug symbols, and it's also modified by specific options. - - - - At this moment there is no similar configurability for packages installed by nix-env. You can still use approach from to override meta.outputsToInstall attributes, but that's a rather inconvenient way. - - - - -
-
- Using a split package - - - In the Nix language the individual outputs can be reached explicitly as attributes, e.g. coreutils.info, but the typical case is just using packages as build inputs. - - - - When a multiple-output derivation gets into a build input of another derivation, the dev output is added if it exists, otherwise the first output is added. In addition to that, propagatedBuildOutputs of that package which by default contain $outputBin and $outputLib are also added. (See .) - - - - In some cases it may be desirable to combine different outputs under a single store path. A function symlinkJoin can be used to do this. (Note that it may negate some closure size benefits of using a multiple-output package.) - -
-
- Writing a split derivation - - - Here you find how to write a derivation that produces multiple outputs. - - - - In nixpkgs there is a framework supporting multiple-output derivations. It tries to cover most cases by default behavior. You can find the source separated in <nixpkgs/pkgs/build-support/setup-hooks/multiple-outputs.sh>; it's relatively well-readable. The whole machinery is triggered by defining the outputs attribute to contain the list of desired output names (strings). - - -outputs = [ "bin" "dev" "out" "doc" ]; - - - Often such a single line is enough. For each output an equally named environment variable is passed to the builder and contains the path in nix store for that output. Typically you also want to have the main out output, as it catches any files that didn't get elsewhere. - - - - - There is a special handling of the debug output, described at . - - - -
- <quote>Binaries first</quote> - - - A commonly adopted convention in nixpkgs is that executables provided by the package are contained within its first output. This convention allows the dependent packages to reference the executables provided by packages in a uniform manner. For instance, provided with the knowledge that the perl package contains a perl executable it can be referenced as ${pkgs.perl}/bin/perl within a Nix derivation that needs to execute a Perl script. - - - - The glibc package is a deliberate single exception to the binaries first convention. The glibc has libs as its first output allowing the libraries provided by glibc to be referenced directly (e.g. ${stdenv.glibc}/lib/ld-linux-x86-64.so.2). The executables provided by glibc can be accessed via its bin attribute (e.g. ${stdenv.glibc.bin}/bin/ldd). - - - - The reason for why glibc deviates from the convention is because referencing a library provided by glibc is a very common operation among Nix packages. For instance, third-party executables packaged by Nix are typically patched and relinked with the relevant version of glibc libraries from Nix packages (please see the documentation on patchelf for more details). - -
- -
- File type groups - - - The support code currently recognizes some particular kinds of outputs and either instructs the build system of the package to put files into their desired outputs or it moves the files during the fixup phase. Each group of file types has an outputFoo variable specifying the output name where they should go. If that variable isn't defined by the derivation writer, it is guessed – a default output name is defined, falling back to other possibilities if the output isn't defined. - - - - - - $outputDev - - - - is for development-only files. These include C(++) headers, pkg-config, cmake and aclocal files. They go to dev or out by default. - - - - - - $outputBin - - - - is meant for user-facing binaries, typically residing in bin/. They go to bin or out by default. - - - - - - $outputLib - - - - is meant for libraries, typically residing in lib/ and libexec/. They go to lib or out by default. - - - - - - $outputDoc - - - - is for user documentation, typically residing in share/doc/. It goes to doc or out by default. - - - - - - $outputDevdoc - - - - is for developer documentation. Currently we count gtk-doc and devhelp books in there. It goes to devdoc or is removed (!) by default. This is because e.g. gtk-doc tends to be rather large and completely unused by nixpkgs users. - - - - - - $outputMan - - - - is for man pages (except for section 3). They go to man or $outputBin by default. - - - - - - $outputDevman - - - - is for section 3 man pages. They go to devman or $outputMan by default. - - - - - - $outputInfo - - - - is for info pages. They go to info or $outputBin by default. - - - - -
- -
- Common caveats - - - - - Some configure scripts don't like some of the parameters passed by default by the framework, e.g. --docdir=/foo/bar. You can disable this by setting setOutputFlags = false;. - - - - - The outputs of a single derivation can retain references to each other, but note that circular references are not allowed. (And each strongly-connected component would act as a single output anyway.) - - - - - Most of split packages contain their core functionality in libraries. These libraries tend to refer to various kind of data that typically gets into out, e.g. locale strings, so there is often no advantage in separating the libraries into lib, as keeping them in out is easier. - - - - - Some packages have hidden assumptions on install paths, which complicates splitting. - - - -
-
- -
diff --git a/doc/platform-notes.xml b/doc/platform-notes.xml deleted file mode 100644 index 5a266fdc0eea0..0000000000000 --- a/doc/platform-notes.xml +++ /dev/null @@ -1,83 +0,0 @@ - - Platform Notes -
- Darwin (macOS) - - - Some common issues when packaging software for Darwin: - - - - - - The Darwin stdenv uses clang instead of gcc. When referring to the compiler $CC or cc will work in both cases. Some builds hardcode gcc/g++ in their build scripts, that can usually be fixed with using something like makeFlags = [ "CC=cc" ]; or by patching the build scripts. - - -stdenv.mkDerivation { - name = "libfoo-1.2.3"; - # ... - buildPhase = '' - $CC -o hello hello.c - ''; -} - - - - - On Darwin, libraries are linked using absolute paths, libraries are resolved by their install_name at link time. Sometimes packages won't set this correctly causing the library lookups to fail at runtime. This can be fixed by adding extra linker flags or by running install_name_tool -id during the fixupPhase. - - -stdenv.mkDerivation { - name = "libfoo-1.2.3"; - # ... - makeFlags = stdenv.lib.optional stdenv.isDarwin "LDFLAGS=-Wl,-install_name,$(out)/lib/libfoo.dylib"; -} - - - - - Even if the libraries are linked using absolute paths and resolved via their install_name correctly, tests can sometimes fail to run binaries. This happens because the checkPhase runs before the libraries are installed. - - - This can usually be solved by running the tests after the installPhase or alternatively by using DYLD_LIBRARY_PATH. More information about this variable can be found in the - dyld - 1 manpage. - - -dyld: Library not loaded: /nix/store/7hnmbscpayxzxrixrgxvvlifzlxdsdir-jq-1.5-lib/lib/libjq.1.dylib -Referenced from: /private/tmp/nix-build-jq-1.5.drv-0/jq-1.5/tests/../jq -Reason: image not found -./tests/jqtest: line 5: 75779 Abort trap: 6 - - -stdenv.mkDerivation { - name = "libfoo-1.2.3"; - # ... - doInstallCheck = true; - installCheckTarget = "check"; -} - - - - - Some packages assume xcode is available and use xcrun to resolve build tools like clang, etc. This causes errors like xcode-select: error: no developer tools were found at '/Applications/Xcode.app' while the build doesn't actually depend on xcode. - - -stdenv.mkDerivation { - name = "libfoo-1.2.3"; - # ... - prePatch = '' - substituteInPlace Makefile \ - --replace '/usr/bin/xcrun clang' clang - ''; -} - - - The package xcbuild can be used to build projects that really depend on Xcode. However, this replacement is not 100% compatible with Xcode and can occasionally cause issues. - - - -
-
diff --git a/doc/stdenv.xml b/doc/stdenv.xml deleted file mode 100644 index 0b59f90eb490f..0000000000000 --- a/doc/stdenv.xml +++ /dev/null @@ -1,2375 +0,0 @@ - - The Standard Environment - - The standard build environment in the Nix Packages collection provides an environment for building Unix packages that does a lot of common build tasks automatically. In fact, for Unix packages that use the standard ./configure; make; make install build interface, you don’t need to write a build script at all; the standard environment does everything automatically. If stdenv doesn’t do what you need automatically, you can easily customise or override the various build phases. - -
- Using <literal>stdenv</literal> - - - To build a package with the standard environment, you use the function stdenv.mkDerivation, instead of the primitive built-in function derivation, e.g. - -stdenv.mkDerivation { - name = "libfoo-1.2.3"; - src = fetchurl { - url = http://example.org/libfoo-1.2.3.tar.bz2; - sha256 = "0x2g1jqygyr5wiwg4ma1nd7w4ydpy82z9gkcv8vh2v8dn3y58v5m"; - }; -} - (stdenv needs to be in scope, so if you write this in a separate Nix expression from pkgs/all-packages.nix, you need to pass it as a function argument.) Specifying a name and a src is the absolute minimum Nix requires. For convenience, you can also use pname and version attributes and mkDerivation will automatically set name to "${pname}-${version}" by default. Since RFC 0035, this is preferred for packages in Nixpkgs, as it allows us to reuse the version easily: - -stdenv.mkDerivation rec { - pname = "libfoo"; - version = "1.2.3"; - src = fetchurl { - url = "http://example.org/libfoo-source-${version}.tar.bz2"; - sha256 = "0x2g1jqygyr5wiwg4ma1nd7w4ydpy82z9gkcv8vh2v8dn3y58v5m"; - }; -} - - - - Many packages have dependencies that are not provided in the standard environment. It’s usually sufficient to specify those dependencies in the buildInputs attribute: - -stdenv.mkDerivation { - name = "libfoo-1.2.3"; - ... - buildInputs = [libbar perl ncurses]; -} - This attribute ensures that the bin subdirectories of these packages appear in the PATH environment variable during the build, that their include subdirectories are searched by the C compiler, and so on. (See for details.) - - - - Often it is necessary to override or modify some aspect of the build. To make this easier, the standard environment breaks the package build into a number of phases, all of which can be overridden or modified individually: unpacking the sources, applying patches, configuring, building, and installing. (There are some others; see .) For instance, a package that doesn’t supply a makefile but instead has to be compiled “manually” could be handled like this: - -stdenv.mkDerivation { - name = "fnord-4.5"; - ... - buildPhase = '' - gcc foo.c -o foo - ''; - installPhase = '' - mkdir -p $out/bin - cp foo $out/bin - ''; -} - (Note the use of ''-style string literals, which are very convenient for large multi-line script fragments because they don’t need escaping of " and \, and because indentation is intelligently removed.) - - - - There are many other attributes to customise the build. These are listed in . - - - - While the standard environment provides a generic builder, you can still supply your own build script: - -stdenv.mkDerivation { - name = "libfoo-1.2.3"; - ... - builder = ./builder.sh; -} - where the builder can do anything it wants, but typically starts with - -source $stdenv/setup - - to let stdenv set up the environment (e.g., process the buildInputs). If you want, you can still use stdenv’s generic builder: - -source $stdenv/setup - -buildPhase() { - echo "... this is my custom build phase ..." - gcc foo.c -o foo -} - -installPhase() { - mkdir -p $out/bin - cp foo $out/bin -} - -genericBuild - - -
-
- Tools provided by <literal>stdenv</literal> - - - The standard environment provides the following packages: - - - - The GNU C Compiler, configured with C and C++ support. - - - - - GNU coreutils (contains a few dozen standard Unix commands). - - - - - GNU findutils (contains find). - - - - - GNU diffutils (contains diff, cmp). - - - - - GNU sed. - - - - - GNU grep. - - - - - GNU awk. - - - - - GNU tar. - - - - - gzip, bzip2 and xz. - - - - - GNU Make. It has been patched to provide nested output that can be fed into the nix-log2xml command and log2html stylesheet to create a structured, readable output of the build steps performed by Make. - - - - - Bash. This is the shell used for all builders in the Nix Packages collection. Not using /bin/sh removes a large source of portability problems. - - - - - The patch command. - - - - - - - On Linux, stdenv also includes the patchelf utility. - -
-
- Specifying dependencies - - - As described in the Nix manual, almost any *.drv store path in a derivation's attribute set will induce a dependency on that derivation. mkDerivation, however, takes a few attributes intended to, between them, include all the dependencies of a package. This is done both for structure and consistency, but also so that certain other setup can take place. For example, certain dependencies need their bin directories added to the PATH. That is built-in, but other setup is done via a pluggable mechanism that works in conjunction with these dependency attributes. See for details. - - - - Dependencies can be broken down along three axes: their host and target platforms relative to the new derivation's, and whether they are propagated. The platform distinctions are motivated by cross compilation; see for exactly what each platform means. - - - The build platform is ignored because it is a mere implementation detail of the package satisfying the dependency: As a general programming principle, dependencies are always specified as interfaces, not concrete implementation. - - - But even if one is not cross compiling, the platforms imply whether or not the dependency is needed at run-time or build-time, a concept that makes perfect sense outside of cross compilation. By default, the run-time/build-time distinction is just a hint for mental clarity, but with strictDeps set it is mostly enforced even in the native case. - - - - The extension of PATH with dependencies, alluded to above, proceeds according to the relative platforms alone. The process is carried out only for dependencies whose host platform matches the new derivation's build platform i.e. dependencies which run on the platform where the new derivation will be built. - - - Currently, this means for native builds all dependencies are put on the PATH. But in the future that may not be the case for sake of matching cross: the platforms would be assumed to be unique for native and cross builds alike, so only the depsBuild* and nativeBuildInputs would be added to the PATH. - - - For each dependency dep of those dependencies, dep/bin, if present, is added to the PATH environment variable. - - - - The dependency is propagated when it forces some of its other-transitive (non-immediate) downstream dependencies to also take it on as an immediate dependency. Nix itself already takes a package's transitive dependencies into account, but this propagation ensures nixpkgs-specific infrastructure like setup hooks (mentioned above) also are run as if the propagated dependency. - - - - It is important to note that dependencies are not necessarily propagated as the same sort of dependency that they were before, but rather as the corresponding sort so that the platform rules still line up. The exact rules for dependency propagation can be given by assigning to each dependency two integers based one how its host and target platforms are offset from the depending derivation's platforms. Those offsets are given below in the descriptions of each dependency list attribute. Algorithmically, we traverse propagated inputs, accumulating every propagated dependency's propagated dependencies and adjusting them to account for the "shift in perspective" described by the current dependency's platform offsets. This results in sort a transitive closure of the dependency relation, with the offsets being approximately summed when two dependency links are combined. We also prune transitive dependencies whose combined offsets go out-of-bounds, which can be viewed as a filter over that transitive closure removing dependencies that are blatantly absurd. - - - - We can define the process precisely with Natural Deduction using the inference rules. This probably seems a bit obtuse, but so is the bash code that actually implements it! - - - The findInputs function, currently residing in pkgs/stdenv/generic/setup.sh, implements the propagation logic. - - - They're confusing in very different ways so... hopefully if something doesn't make sense in one presentation, it will in the other! - -let mapOffset(h, t, i) = i + (if i <= 0 then h else t - 1) - -propagated-dep(h0, t0, A, B) -propagated-dep(h1, t1, B, C) -h0 + h1 in {-1, 0, 1} -h0 + t1 in {-1, 0, 1} --------------------------------------- Transitive property -propagated-dep(mapOffset(h0, t0, h1), - mapOffset(h0, t0, t1), - A, C) - -let mapOffset(h, t, i) = i + (if i <= 0 then h else t - 1) - -dep(h0, _, A, B) -propagated-dep(h1, t1, B, C) -h0 + h1 in {-1, 0, 1} -h0 + t1 in {-1, 0, -1} ------------------------------ Take immediate dependencies' propagated dependencies -propagated-dep(mapOffset(h0, t0, h1), - mapOffset(h0, t0, t1), - A, C) - -propagated-dep(h, t, A, B) ------------------------------ Propagated dependencies count as dependencies -dep(h, t, A, B) - Some explanation of this monstrosity is in order. In the common case, the target offset of a dependency is the successor to the target offset: t = h + 1. That means that: - -let f(h, t, i) = i + (if i <= 0 then h else t - 1) -let f(h, h + 1, i) = i + (if i <= 0 then h else (h + 1) - 1) -let f(h, h + 1, i) = i + (if i <= 0 then h else h) -let f(h, h + 1, i) = i + h - - This is where "sum-like" comes in from above: We can just sum all of the host offsets to get the host offset of the transitive dependency. The target offset is the transitive dependency is simply the host offset + 1, just as it was with the dependencies composed to make this transitive one; it can be ignored as it doesn't add any new information. - - - - Because of the bounds checks, the uncommon cases are h = t and h + 2 = t. In the former case, the motivation for mapOffset is that since its host and target platforms are the same, no transitive dependency of it should be able to "discover" an offset greater than its reduced target offsets. mapOffset effectively "squashes" all its transitive dependencies' offsets so that none will ever be greater than the target offset of the original h = t package. In the other case, h + 1 is skipped over between the host and target offsets. Instead of squashing the offsets, we need to "rip" them apart so no transitive dependencies' offset is that one. - - - - Overall, the unifying theme here is that propagation shouldn't be introducing transitive dependencies involving platforms the depending package is unaware of. [One can imagine the dependending package asking for dependencies with the platforms it knows about; other platforms it doesn't know how to ask for. The platform description in that scenario is a kind of unforagable capability.] The offset bounds checking and definition of mapOffset together ensure that this is the case. Discovering a new offset is discovering a new platform, and since those platforms weren't in the derivation "spec" of the needing package, they cannot be relevant. From a capability perspective, we can imagine that the host and target platforms of a package are the capabilities a package requires, and the depending package must provide the capability to the dependency. - - - - Variables specifying dependencies - - - depsBuildBuild - - - - A list of dependencies whose host and target platforms are the new derivation's build platform. This means a -1 host and -1 target offset from the new derivation's platforms. These are programs and libraries used at build time that produce programs and libraries also used at build time. If the dependency doesn't care about the target platform (i.e. isn't a compiler or similar tool), put it in nativeBuildInputs instead. The most common use of this buildPackages.stdenv.cc, the default C compiler for this role. That example crops up more than one might think in old commonly used C libraries. - - - Since these packages are able to be run at build-time, they are always added to the PATH, as described above. But since these packages are only guaranteed to be able to run then, they shouldn't persist as run-time dependencies. This isn't currently enforced, but could be in the future. - - - - - - nativeBuildInputs - - - - A list of dependencies whose host platform is the new derivation's build platform, and target platform is the new derivation's host platform. This means a -1 host offset and 0 target offset from the new derivation's platforms. These are programs and libraries used at build-time that, if they are a compiler or similar tool, produce code to run at run-time—i.e. tools used to build the new derivation. If the dependency doesn't care about the target platform (i.e. isn't a compiler or similar tool), put it here, rather than in depsBuildBuild or depsBuildTarget. This could be called depsBuildHost but nativeBuildInputs is used for historical continuity. - - - Since these packages are able to be run at build-time, they are added to the PATH, as described above. But since these packages are only guaranteed to be able to run then, they shouldn't persist as run-time dependencies. This isn't currently enforced, but could be in the future. - - - - - - depsBuildTarget - - - - A list of dependencies whose host platform is the new derivation's build platform, and target platform is the new derivation's target platform. This means a -1 host offset and 1 target offset from the new derivation's platforms. These are programs used at build time that produce code to run with code produced by the depending package. Most commonly, these are tools used to build the runtime or standard library that the currently-being-built compiler will inject into any code it compiles. In many cases, the currently-being-built-compiler is itself employed for that task, but when that compiler won't run (i.e. its build and host platform differ) this is not possible. Other times, the compiler relies on some other tool, like binutils, that is always built separately so that the dependency is unconditional. - - - This is a somewhat confusing concept to wrap one’s head around, and for good reason. As the only dependency type where the platform offsets are not adjacent integers, it requires thinking of a bootstrapping stage two away from the current one. It and its use-case go hand in hand and are both considered poor form: try to not need this sort of dependency, and try to avoid building standard libraries and runtimes in the same derivation as the compiler produces code using them. Instead strive to build those like a normal library, using the newly-built compiler just as a normal library would. In short, do not use this attribute unless you are packaging a compiler and are sure it is needed. - - - Since these packages are able to run at build time, they are added to the PATH, as described above. But since these packages are only guaranteed to be able to run then, they shouldn't persist as run-time dependencies. This isn't currently enforced, but could be in the future. - - - - - - depsHostHost - - - - A list of dependencies whose host and target platforms match the new derivation's host platform. This means a 0 host offset and 0 target offset from the new derivation's host platform. These are packages used at run-time to generate code also used at run-time. In practice, this would usually be tools used by compilers for macros or a metaprogramming system, or libraries used by the macros or metaprogramming code itself. It's always preferable to use a depsBuildBuild dependency in the derivation being built over a depsHostHost on the tool doing the building for this purpose. - - - - - - buildInputs - - - - A list of dependencies whose host platform and target platform match the new derivation's. This means a 0 host offset and a 1 target offset from the new derivation's host platform. This would be called depsHostTarget but for historical continuity. If the dependency doesn't care about the target platform (i.e. isn't a compiler or similar tool), put it here, rather than in depsBuildBuild. - - - These are often programs and libraries used by the new derivation at run-time, but that isn't always the case. For example, the machine code in a statically-linked library is only used at run-time, but the derivation containing the library is only needed at build-time. Even in the dynamic case, the library may also be needed at build-time to appease the linker. - - - - - - depsTargetTarget - - - - A list of dependencies whose host platform matches the new derivation's target platform. This means a 1 offset from the new derivation's platforms. These are packages that run on the target platform, e.g. the standard library or run-time deps of standard library that a compiler insists on knowing about. It's poor form in almost all cases for a package to depend on another from a future stage [future stage corresponding to positive offset]. Do not use this attribute unless you are packaging a compiler and are sure it is needed. - - - - - - depsBuildBuildPropagated - - - - The propagated equivalent of depsBuildBuild. This perhaps never ought to be used, but it is included for consistency [see below for the others]. - - - - - - propagatedNativeBuildInputs - - - - The propagated equivalent of nativeBuildInputs. This would be called depsBuildHostPropagated but for historical continuity. For example, if package Y has propagatedNativeBuildInputs = [X], and package Z has buildInputs = [Y], then package Z will be built as if it included package X in its nativeBuildInputs. If instead, package Z has nativeBuildInputs = [Y], then Z will be built as if it included X in the depsBuildBuild of package Z, because of the sum of the two -1 host offsets. - - - - - - depsBuildTargetPropagated - - - - The propagated equivalent of depsBuildTarget. This is prefixed for the same reason of alerting potential users. - - - - - - depsHostHostPropagated - - - - The propagated equivalent of depsHostHost. - - - - - - propagatedBuildInputs - - - - The propagated equivalent of buildInputs. This would be called depsHostTargetPropagated but for historical continuity. - - - - - - depsTargetTargetPropagated - - - - The propagated equivalent of depsTargetTarget. This is prefixed for the same reason of alerting potential users. - - - - -
-
- Attributes - - - Variables affecting <literal>stdenv</literal> initialisation - - - NIX_DEBUG - - - - A natural number indicating how much information to log. If set to 1 or higher, stdenv will print moderate debugging information during the build. In particular, the gcc and ld wrapper scripts will print out the complete command line passed to the wrapped tools. If set to 6 or higher, the stdenv setup script will be run with set -x tracing. If set to 7 or higher, the gcc and ld wrapper scripts will also be run with set -x tracing. - - - - - - - Attributes affecting build properties - - - enableParallelBuilding - - - - If set to true, stdenv will pass specific flags to make and other build tools to enable parallel building with up to build-cores workers. - - - Unless set to false, some build systems with good support for parallel building including cmake, meson, and qmake will set it to true. - - - - - - - Special variables - - - passthru - - - - This is an attribute set which can be filled with arbitrary values. For example: - -passthru = { - foo = "bar"; - baz = { - value1 = 4; - value2 = 5; - }; -} - - - - Values inside it are not passed to the builder, so you can change them without triggering a rebuild. However, they can be accessed outside of a derivation directly, as if they were set inside a derivation itself, e.g. hello.baz.value1. We don't specify any usage or schema of passthru - it is meant for values that would be useful outside the derivation in other parts of a Nix expression (e.g. in other derivations). An example would be to convey some specific dependency of your derivation which contains a program with plugins support. Later, others who make derivations with plugins can use passed-through dependency to ensure that their plugin would be binary-compatible with built program. - - - - - - passthru.updateScript - - - - A script to be run by maintainers/scripts/update.nix when the package is matched. It needs to be an executable file, either on the file system: - -passthru.updateScript = ./update.sh; - - or inside the expression itself: - -passthru.updateScript = writeScript "update-zoom-us" '' - #!/usr/bin/env nix-shell - #!nix-shell -i bash -p curl pcre common-updater-scripts - - set -eu -o pipefail - - version="$(curl -sI https://zoom.us/client/latest/zoom_x86_64.tar.xz | grep -Fi 'Location:' | pcregrep -o1 '/(([0-9]\.?)+)/')" - update-source-version zoom-us "$version" -''; - - The attribute can also contain a list, a script followed by arguments to be passed to it: - -passthru.updateScript = [ ../../update.sh pname "--requested-release=unstable" ]; - - - - The script will be usually run from the root of the Nixpkgs repository but you should not rely on that. Also note that the update scripts will be run in parallel by default; you should avoid running git commit or any other commands that cannot handle that. - - - For information about how to run the updates, execute nix-shell maintainers/scripts/update.nix. - - - - -
-
- Phases - - - The generic builder has a number of phases. Package builds are split into phases to make it easier to override specific parts of the build (e.g., unpacking the sources or installing the binaries). Furthermore, it allows a nicer presentation of build logs in the Nix build farm. - - - - Each phase can be overridden in its entirety either by setting the environment variable namePhase to a string containing some shell commands to be executed, or by redefining the shell function namePhase. The former is convenient to override a phase from the derivation, while the latter is convenient from a build script. However, typically one only wants to add some commands to a phase, e.g. by defining postInstall or preFixup, as skipping some of the default actions may have unexpected consequences. The default script for each phase is defined in the file pkgs/stdenv/generic/setup.sh. - - -
- Controlling phases - - - There are a number of variables that control what phases are executed and in what order: - - Variables affecting phase control - - - phases - - - - Specifies the phases. You can change the order in which phases are executed, or add new phases, by setting this variable. If it’s not set, the default value is used, which is $prePhases unpackPhase patchPhase $preConfigurePhases configurePhase $preBuildPhases buildPhase checkPhase $preInstallPhases installPhase fixupPhase installCheckPhase $preDistPhases distPhase $postPhases. - - - Usually, if you just want to add a few phases, it’s more convenient to set one of the variables below (such as preInstallPhases), as you then don’t specify all the normal phases. - - - - - - prePhases - - - - Additional phases executed before any of the default phases. - - - - - - preConfigurePhases - - - - Additional phases executed just before the configure phase. - - - - - - preBuildPhases - - - - Additional phases executed just before the build phase. - - - - - - preInstallPhases - - - - Additional phases executed just before the install phase. - - - - - - preFixupPhases - - - - Additional phases executed just before the fixup phase. - - - - - - preDistPhases - - - - Additional phases executed just before the distribution phase. - - - - - - postPhases - - - - Additional phases executed after any of the default phases. - - - - - -
- -
- The unpack phase - - - The unpack phase is responsible for unpacking the source code of the package. The default implementation of unpackPhase unpacks the source files listed in the src environment variable to the current directory. It supports the following files by default: - - - - Tar files - - - - These can optionally be compressed using gzip (.tar.gz, .tgz or .tar.Z), bzip2 (.tar.bz2, .tbz2 or .tbz) or xz (.tar.xz, .tar.lzma or .txz). - - - - - - Zip files - - - - Zip files are unpacked using unzip. However, unzip is not in the standard environment, so you should add it to nativeBuildInputs yourself. - - - - - - Directories in the Nix store - - - - These are simply copied to the current directory. The hash part of the file name is stripped, e.g. /nix/store/1wydxgby13cz...-my-sources would be copied to my-sources. - - - - - Additional file types can be supported by setting the unpackCmd variable (see below). - - - - - - Variables controlling the unpack phase - - - srcs / src - - - - The list of source files or directories to be unpacked or copied. One of these must be set. - - - - - - sourceRoot - - - - After running unpackPhase, the generic builder changes the current directory to the directory created by unpacking the sources. If there are multiple source directories, you should set sourceRoot to the name of the intended directory. - - - - - - setSourceRoot - - - - Alternatively to setting sourceRoot, you can set setSourceRoot to a shell command to be evaluated by the unpack phase after the sources have been unpacked. This command must set sourceRoot. - - - - - - preUnpack - - - - Hook executed at the start of the unpack phase. - - - - - - postUnpack - - - - Hook executed at the end of the unpack phase. - - - - - - dontUnpack - - - - Set to true to skip the unpack phase. - - - - - - dontMakeSourcesWritable - - - - If set to 1, the unpacked sources are not made writable. By default, they are made writable to prevent problems with read-only sources. For example, copied store directories would be read-only without this. - - - - - - unpackCmd - - - - The unpack phase evaluates the string $unpackCmd for any unrecognised file. The path to the current source file is contained in the curSrc variable. - - - - -
- -
- The patch phase - - - The patch phase applies the list of patches defined in the patches variable. - - - - Variables controlling the patch phase - - - patches - - - - The list of patches. They must be in the format accepted by the patch command, and may optionally be compressed using gzip (.gz), bzip2 (.bz2) or xz (.xz). - - - - - - patchFlags - - - - Flags to be passed to patch. If not set, the argument is used, which causes the leading directory component to be stripped from the file names in each patch. - - - - - - prePatch - - - - Hook executed at the start of the patch phase. - - - - - - postPatch - - - - Hook executed at the end of the patch phase. - - - - -
- -
- The configure phase - - - The configure phase prepares the source tree for building. The default configurePhase runs ./configure (typically an Autoconf-generated script) if it exists. - - - - Variables controlling the configure phase - - - configureScript - - - - The name of the configure script. It defaults to ./configure if it exists; otherwise, the configure phase is skipped. This can actually be a command (like perl ./Configure.pl). - - - - - - configureFlags - - - - A list of strings passed as additional arguments to the configure script. - - - - - - dontConfigure - - - - Set to true to skip the configure phase. - - - - - - configureFlagsArray - - - - A shell array containing additional arguments passed to the configure script. You must use this instead of configureFlags if the arguments contain spaces. - - - - - - dontAddPrefix - - - - By default, the flag --prefix=$prefix is added to the configure flags. If this is undesirable, set this variable to true. - - - - - - prefix - - - - The prefix under which the package must be installed, passed via the option to the configure script. It defaults to . - - - - - - prefixKey - - - - The key to use when specifying the prefix. By default, this is set to as that is used by the majority of packages. - - - - - - dontAddDisableDepTrack - - - - By default, the flag --disable-dependency-tracking is added to the configure flags to speed up Automake-based builds. If this is undesirable, set this variable to true. - - - - - - dontFixLibtool - - - - By default, the configure phase applies some special hackery to all files called ltmain.sh before running the configure script in order to improve the purity of Libtool-based packages - - - It clears the sys_lib_*search_path variables in the Libtool script to prevent Libtool from using libraries in /usr/lib and such. - - - . If this is undesirable, set this variable to true. - - - - - - dontDisableStatic - - - - By default, when the configure script has , the option is added to the configure flags. - - - If this is undesirable, set this variable to true. - - - - - - configurePlatforms - - - - By default, when cross compiling, the configure script has and passed. Packages can instead pass [ "build" "host" "target" ] or a subset to control exactly which platform flags are passed. Compilers and other tools can use this to also pass the target platform. - - - Eventually these will be passed building natively as well, to improve determinism: build-time guessing, as is done today, is a risk of impurity. - - - - - - - - preConfigure - - - - Hook executed at the start of the configure phase. - - - - - - postConfigure - - - - Hook executed at the end of the configure phase. - - - - -
- -
- The build phase - - - The build phase is responsible for actually building the package (e.g. compiling it). The default buildPhase simply calls make if a file named Makefile, makefile or GNUmakefile exists in the current directory (or the makefile is explicitly set); otherwise it does nothing. - - - - Variables controlling the build phase - - - dontBuild - - - - Set to true to skip the build phase. - - - - - - makefile - - - - The file name of the Makefile. - - - - - - makeFlags - - - - A list of strings passed as additional flags to make. These flags are also used by the default install and check phase. For setting make flags specific to the build phase, use buildFlags (see below). - -makeFlags = [ "PREFIX=$(out)" ]; - - - - The flags are quoted in bash, but environment variables can be specified by using the make syntax. - - - - - - - - makeFlagsArray - - - - A shell array containing additional arguments passed to make. You must use this instead of makeFlags if the arguments contain spaces, e.g. - -preBuild = '' - makeFlagsArray+=(CFLAGS="-O0 -g" LDFLAGS="-lfoo -lbar") -''; - - Note that shell arrays cannot be passed through environment variables, so you cannot set makeFlagsArray in a derivation attribute (because those are passed through environment variables): you have to define them in shell code. - - - - - - buildFlags / buildFlagsArray - - - - A list of strings passed as additional flags to make. Like makeFlags and makeFlagsArray, but only used by the build phase. - - - - - - preBuild - - - - Hook executed at the start of the build phase. - - - - - - postBuild - - - - Hook executed at the end of the build phase. - - - - - - - You can set flags for make through the makeFlags variable. - - - - Before and after running make, the hooks preBuild and postBuild are called, respectively. - -
- -
- The check phase - - - The check phase checks whether the package was built correctly by running its test suite. The default checkPhase calls make check, but only if the doCheck variable is enabled. - - - - Variables controlling the check phase - - - doCheck - - - - Controls whether the check phase is executed. By default it is skipped, but if doCheck is set to true, the check phase is usually executed. Thus you should set -doCheck = true; - in the derivation to enable checks. The exception is cross compilation. Cross compiled builds never run tests, no matter how doCheck is set, as the newly-built program won't run on the platform used to build it. - - - - - - makeFlags / makeFlagsArray / makefile - - - - See the build phase for details. - - - - - - checkTarget - - - - The make target that runs the tests. Defaults to check. - - - - - - checkFlags / checkFlagsArray - - - - A list of strings passed as additional flags to make. Like makeFlags and makeFlagsArray, but only used by the check phase. - - - - - - checkInputs - - - - A list of dependencies used by the phase. This gets included in nativeBuildInputs when doCheck is set. - - - - - - preCheck - - - - Hook executed at the start of the check phase. - - - - - - postCheck - - - - Hook executed at the end of the check phase. - - - - -
- -
- The install phase - - - The install phase is responsible for installing the package in the Nix store under out. The default installPhase creates the directory $out and calls make install. - - - - Variables controlling the install phase - - - makeFlags / makeFlagsArray / makefile - - - - See the build phase for details. - - - - - - installTargets - - - - The make targets that perform the installation. Defaults to install. Example: - -installTargets = "install-bin install-doc"; - - - - - - installFlags / installFlagsArray - - - - A list of strings passed as additional flags to make. Like makeFlags and makeFlagsArray, but only used by the install phase. - - - - - - preInstall - - - - Hook executed at the start of the install phase. - - - - - - postInstall - - - - Hook executed at the end of the install phase. - - - - -
- -
- The fixup phase - - - The fixup phase performs some (Nix-specific) post-processing actions on the files installed under $out by the install phase. The default fixupPhase does the following: - - - - It moves the man/, doc/ and info/ subdirectories of $out to share/. - - - - - It strips libraries and executables of debug information. - - - - - On Linux, it applies the patchelf command to ELF executables and libraries to remove unused directories from the RPATH in order to prevent unnecessary runtime dependencies. - - - - - It rewrites the interpreter paths of shell scripts to paths found in PATH. E.g., /usr/bin/perl will be rewritten to /nix/store/some-perl/bin/perl found in PATH. - - - - - - - Variables controlling the fixup phase - - - dontFixup - - - - Set to true to skip the fixup phase. - - - - - - dontStrip - - - - If set, libraries and executables are not stripped. By default, they are. - - - - - - dontStripHost - - - - Like dontStrip, but only affects the strip command targetting the package's host platform. Useful when supporting cross compilation, but otherwise feel free to ignore. - - - - - - dontStripTarget - - - - Like dontStrip, but only affects the strip command targetting the packages' target platform. Useful when supporting cross compilation, but otherwise feel free to ignore. - - - - - - dontMoveSbin - - - - If set, files in $out/sbin are not moved to $out/bin. By default, they are. - - - - - - stripAllList - - - - List of directories to search for libraries and executables from which all symbols should be stripped. By default, it’s empty. Stripping all symbols is risky, since it may remove not just debug symbols but also ELF information necessary for normal execution. - - - - - - stripAllFlags - - - - Flags passed to the strip command applied to the files in the directories listed in stripAllList. Defaults to (i.e. ). - - - - - - stripDebugList - - - - List of directories to search for libraries and executables from which only debugging-related symbols should be stripped. It defaults to lib bin sbin. - - - - - - stripDebugFlags - - - - Flags passed to the strip command applied to the files in the directories listed in stripDebugList. Defaults to (i.e. ). - - - - - - dontPatchELF - - - - If set, the patchelf command is not used to remove unnecessary RPATH entries. Only applies to Linux. - - - - - - dontPatchShebangs - - - - If set, scripts starting with #! do not have their interpreter paths rewritten to paths in the Nix store. - - - - - - dontPruneLibtoolFiles - - - - If set, libtool .la files associated with shared libraries won't have their dependency_libs field cleared. - - - - - - forceShare - - - - The list of directories that must be moved from $out to $out/share. Defaults to man doc info. - - - - - - setupHook - - - - A package can export a setup hook by setting this variable. The setup hook, if defined, is copied to $out/nix-support/setup-hook. Environment variables are then substituted in it using substituteAll. - - - - - - preFixup - - - - Hook executed at the start of the fixup phase. - - - - - - postFixup - - - - Hook executed at the end of the fixup phase. - - - - - - separateDebugInfo - - - - If set to true, the standard environment will enable debug information in C/C++ builds. After installation, the debug information will be separated from the executables and stored in the output named debug. (This output is enabled automatically; you don’t need to set the outputs attribute explicitly.) To be precise, the debug information is stored in debug/lib/debug/.build-id/XX/YYYY…, where XXYYYY… is the build ID of the binary — a SHA-1 hash of the contents of the binary. Debuggers like GDB use the build ID to look up the separated debug information. - - - For example, with GDB, you can add - -set debug-file-directory ~/.nix-profile/lib/debug - - to ~/.gdbinit. GDB will then be able to find debug information installed via nix-env -i. - - - - -
- -
- The installCheck phase - - - The installCheck phase checks whether the package was installed correctly by running its test suite against the installed directories. The default installCheck calls make installcheck. - - - - Variables controlling the installCheck phase - - - doInstallCheck - - - - Controls whether the installCheck phase is executed. By default it is skipped, but if doInstallCheck is set to true, the installCheck phase is usually executed. Thus you should set -doInstallCheck = true; - in the derivation to enable install checks. The exception is cross compilation. Cross compiled builds never run tests, no matter how doInstallCheck is set, as the newly-built program won't run on the platform used to build it. - - - - - - installCheckTarget - - - - The make target that runs the install tests. Defaults to installcheck. - - - - - - installCheckFlags / installCheckFlagsArray - - - - A list of strings passed as additional flags to make. Like makeFlags and makeFlagsArray, but only used by the installCheck phase. - - - - - - installCheckInputs - - - - A list of dependencies used by the phase. This gets included in nativeBuildInputs when doInstallCheck is set. - - - - - - preInstallCheck - - - - Hook executed at the start of the installCheck phase. - - - - - - postInstallCheck - - - - Hook executed at the end of the installCheck phase. - - - - -
- -
- The distribution phase - - - The distribution phase is intended to produce a source distribution of the package. The default distPhase first calls make dist, then it copies the resulting source tarballs to $out/tarballs/. This phase is only executed if the attribute doDist is set. - - - - Variables controlling the distribution phase - - - distTarget - - - - The make target that produces the distribution. Defaults to dist. - - - - - - distFlags / distFlagsArray - - - - Additional flags passed to make. - - - - - - tarballs - - - - The names of the source distribution files to be copied to $out/tarballs/. It can contain shell wildcards. The default is *.tar.gz. - - - - - - dontCopyDist - - - - If set, no files are copied to $out/tarballs/. - - - - - - preDist - - - - Hook executed at the start of the distribution phase. - - - - - - postDist - - - - Hook executed at the end of the distribution phase. - - - - -
-
-
- Shell functions - - - The standard environment provides a number of useful functions. - - - - - - makeWrapper executable wrapperfile args - - - - Constructs a wrapper for a program with various possible arguments. For example: - -# adds `FOOBAR=baz` to `$out/bin/foo`’s environment -makeWrapper $out/bin/foo $wrapperfile --set FOOBAR baz - -# prefixes the binary paths of `hello` and `git` -# Be advised that paths often should be patched in directly -# (via string replacements or in `configurePhase`). -makeWrapper $out/bin/foo $wrapperfile --prefix PATH : ${lib.makeBinPath [ hello git ]} - - There’s many more kinds of arguments, they are documented in nixpkgs/pkgs/build-support/setup-hooks/make-wrapper.sh. - - - wrapProgram is a convenience function you probably want to use most of the time. - - - - - - substitute infile outfile subs - - - - Performs string substitution on the contents of infile, writing the result to outfile. The substitutions in subs are of the following form: - - - - s1 s2 - - - - Replace every occurrence of the string s1 by s2. - - - - - - varName - - - - Replace every occurrence of @varName@ by the contents of the environment variable varName. This is useful for generating files from templates, using @...@ in the template as placeholders. - - - - - - varName s - - - - Replace every occurrence of @varName@ by the string s. - - - - - - - Example: - -substitute ./foo.in ./foo.out \ - --replace /usr/bin/bar $bar/bin/bar \ - --replace "a string containing spaces" "some other text" \ - --subst-var someVar - - - - substitute is implemented using the replace command. Unlike with the sed command, you don’t have to worry about escaping special characters. It supports performing substitutions on binary files (such as executables), though there you’ll probably want to make sure that the replacement string is as long as the replaced string. - - - - - - substituteInPlace file subs - - - - Like substitute, but performs the substitutions in place on the file file. - - - - - - substituteAll infile outfile - - - - Replaces every occurrence of @varName@, where varName is any environment variable, in infile, writing the result to outfile. For instance, if infile has the contents - -#! @bash@/bin/sh -PATH=@coreutils@/bin -echo @foo@ - - and the environment contains bash=/nix/store/bmwp0q28cf21...-bash-3.2-p39 and coreutils=/nix/store/68afga4khv0w...-coreutils-6.12, but does not contain the variable foo, then the output will be - -#! /nix/store/bmwp0q28cf21...-bash-3.2-p39/bin/sh -PATH=/nix/store/68afga4khv0w...-coreutils-6.12/bin -echo @foo@ - - That is, no substitution is performed for undefined variables. - - - Environment variables that start with an uppercase letter or an underscore are filtered out, to prevent global variables (like HOME) or private variables (like __ETC_PROFILE_DONE) from accidentally getting substituted. The variables also have to be valid bash “names”, as defined in the bash manpage (alphanumeric or _, must not start with a number). - - - - - - substituteAllInPlace file - - - - Like substituteAll, but performs the substitutions in place on the file file. - - - - - - stripHash path - - - - Strips the directory and hash part of a store path, outputting the name part to stdout. For example: - -# prints coreutils-8.24 -stripHash "/nix/store/9s9r019176g7cvn2nvcw41gsp862y6b4-coreutils-8.24" - - If you wish to store the result in another variable, then the following idiom may be useful: - -name="/nix/store/9s9r019176g7cvn2nvcw41gsp862y6b4-coreutils-8.24" -someVar=$(stripHash $name) - - - - - - - wrapProgram executable makeWrapperArgs - - - - Convenience function for makeWrapper that automatically creates a sane wrapper file. It takes all the same arguments as makeWrapper, except for --argv0. - - - It cannot be applied multiple times, since it will overwrite the wrapper file. - - - - -
-
- Package setup hooks - - - Nix itself considers a build-time dependency as merely something that should previously be built and accessible at build time—packages themselves are on their own to perform any additional setup. In most cases, that is fine, and the downstream derivation can deal with its own dependencies. But for a few common tasks, that would result in almost every package doing the same sort of setup work—depending not on the package itself, but entirely on which dependencies were used. - - - - In order to alleviate this burden, the setup hook mechanism was written, where any package can include a shell script that [by convention rather than enforcement by Nix], any downstream reverse-dependency will source as part of its build process. That allows the downstream dependency to merely specify its dependencies, and lets those dependencies effectively initialize themselves. No boilerplate mirroring the list of dependencies is needed. - - - - The setup hook mechanism is a bit of a sledgehammer though: a powerful feature with a broad and indiscriminate area of effect. The combination of its power and implicit use may be expedient, but isn't without costs. Nix itself is unchanged, but the spirit of added dependencies being effect-free is violated even if the letter isn't. For example, if a derivation path is mentioned more than once, Nix itself doesn't care and simply makes sure the dependency derivation is already built just the same—depending is just needing something to exist, and needing is idempotent. However, a dependency specified twice will have its setup hook run twice, and that could easily change the build environment (though a well-written setup hook will therefore strive to be idempotent so this is in fact not observable). More broadly, setup hooks are anti-modular in that multiple dependencies, whether the same or different, should not interfere and yet their setup hooks may well do so. - - - - The most typical use of the setup hook is actually to add other hooks which are then run (i.e. after all the setup hooks) on each dependency. For example, the C compiler wrapper's setup hook feeds itself flags for each dependency that contains relevant libraries and headers. This is done by defining a bash function, and appending its name to one of envBuildBuildHooks`, envBuildHostHooks`, envBuildTargetHooks`, envHostHostHooks`, envHostTargetHooks`, or envTargetTargetHooks`. These 6 bash variables correspond to the 6 sorts of dependencies by platform (there's 12 total but we ignore the propagated/non-propagated axis). - - - - Packages adding a hook should not hard code a specific hook, but rather choose a variable relative to how they are included. Returning to the C compiler wrapper example, if the wrapper itself is an n dependency, then it only wants to accumulate flags from n + 1 dependencies, as only those ones match the compiler's target platform. The hostOffset variable is defined with the current dependency's host offset targetOffset with its target offset, before its setup hook is sourced. Additionally, since most environment hooks don't care about the target platform, that means the setup hook can append to the right bash array by doing something like - -addEnvHooks "$hostOffset" myBashFunction - - - - - The existence of setups hooks has long been documented and packages inside Nixpkgs are free to use this mechanism. Other packages, however, should not rely on these mechanisms not changing between Nixpkgs versions. Because of the existing issues with this system, there's little benefit from mandating it be stable for any period of time. - - - - First, let’s cover some setup hooks that are part of Nixpkgs default stdenv. This means that they are run for every package built using stdenv.mkDerivation. Some of these are platform specific, so they may run on Linux but not Darwin or vice-versa. - - - - move-docs.sh - - - - This setup hook moves any installed documentation to the /share subdirectory directory. This includes the man, doc and info directories. This is needed for legacy programs that do not know how to use the share subdirectory. - - - - - - compress-man-pages.sh - - - - This setup hook compresses any man pages that have been installed. The compression is done using the gzip program. This helps to reduce the installed size of packages. - - - - - - strip.sh - - - - This runs the strip command on installed binaries and libraries. This removes unnecessary information like debug symbols when they are not needed. This also helps to reduce the installed size of packages. - - - - - - patch-shebangs.sh - - - - This setup hook patches installed scripts to use the full path to the shebang interpreter. A shebang interpreter is the first commented line of a script telling the operating system which program will run the script (e.g #!/bin/bash). In Nix, we want an exact path to that interpreter to be used. This often replaces /bin/sh with a path in the Nix store. - - - - - - audit-tmpdir.sh - - - - This verifies that no references are left from the install binaries to the directory used to build those binaries. This ensures that the binaries do not need things outside the Nix store. This is currently supported in Linux only. - - - - - - multiple-outputs.sh - - - - This setup hook adds configure flags that tell packages to install files into any one of the proper outputs listed in outputs. This behavior can be turned off by setting setOutputFlags to false in the derivation environment. See for more information. - - - - - - move-sbin.sh - - - - This setup hook moves any binaries installed in the sbin subdirectory into bin. In addition, a link is provided from sbin to bin for compatibility. - - - - - - move-lib64.sh - - - - This setup hook moves any libraries installed in the lib64 subdirectory into lib. In addition, a link is provided from lib64 to lib for compatibility. - - - - - - set-source-date-epoch-to-latest.sh - - - - This sets SOURCE_DATE_EPOCH to the modification time of the most recent file. - - - - - - Bintools Wrapper - - - - The Bintools Wrapper wraps the binary utilities for a bunch of miscellaneous purposes. These are GNU Binutils when targetting Linux, and a mix of cctools and GNU binutils for Darwin. [The "Bintools" name is supposed to be a compromise between "Binutils" and "cctools" not denoting any specific implementation.] Specifically, the underlying bintools package, and a C standard library (glibc or Darwin's libSystem, just for the dynamic loader) are all fed in, and dependency finding, hardening (see below), and purity checks for each are handled by the Bintools Wrapper. Packages typically depend on CC Wrapper, which in turn (at run time) depends on the Bintools Wrapper. - - - The Bintools Wrapper was only just recently split off from CC Wrapper, so the division of labor is still being worked out. For example, it shouldn't care about the C standard library, but just take a derivation with the dynamic loader (which happens to be the glibc on linux). Dependency finding however is a task both wrappers will continue to need to share, and probably the most important to understand. It is currently accomplished by collecting directories of host-platform dependencies (i.e. buildInputs and nativeBuildInputs) in environment variables. The Bintools Wrapper's setup hook causes any lib and lib64 subdirectories to be added to NIX_LDFLAGS. Since the CC Wrapper and the Bintools Wrapper use the same strategy, most of the Bintools Wrapper code is sparsely commented and refers to the CC Wrapper. But the CC Wrapper's code, by contrast, has quite lengthy comments. The Bintools Wrapper merely cites those, rather than repeating them, to avoid falling out of sync. - - - A final task of the setup hook is defining a number of standard environment variables to tell build systems which executables fulfill which purpose. They are defined to just be the base name of the tools, under the assumption that the Bintools Wrapper's binaries will be on the path. Firstly, this helps poorly-written packages, e.g. ones that look for just gcc when CC isn't defined yet clang is to be used. Secondly, this helps packages not get confused when cross-compiling, in which case multiple Bintools Wrappers may simultaneously be in use. - - - Each wrapper targets a single platform, so if binaries for multiple platforms are needed, the underlying binaries must be wrapped multiple times. As this is a property of the wrapper itself, the multiple wrappings are needed whether or not the same underlying binaries can target multiple platforms. - - - BUILD_- and TARGET_-prefixed versions of the normal environment variable are defined for additional Bintools Wrappers, properly disambiguating them. - - - A problem with this final task is that the Bintools Wrapper is honest and defines LD as ld. Most packages, however, firstly use the C compiler for linking, secondly use LD anyways, defining it as the C compiler, and thirdly, only so define LD when it is undefined as a fallback. This triple-threat means Bintools Wrapper will break those packages, as LD is already defined as the actual linker which the package won't override yet doesn't want to use. The workaround is to define, just for the problematic package, LD as the C compiler. A good way to do this would be preConfigure = "LD=$CC". - - - - - - CC Wrapper - - - - The CC Wrapper wraps a C toolchain for a bunch of miscellaneous purposes. Specifically, a C compiler (GCC or Clang), wrapped binary tools, and a C standard library (glibc or Darwin's libSystem, just for the dynamic loader) are all fed in, and dependency finding, hardening (see below), and purity checks for each are handled by the CC Wrapper. Packages typically depend on the CC Wrapper, which in turn (at run-time) depends on the Bintools Wrapper. - - - Dependency finding is undoubtedly the main task of the CC Wrapper. This works just like the Bintools Wrapper, except that any include subdirectory of any relevant dependency is added to NIX_CFLAGS_COMPILE. The setup hook itself contains some lengthy comments describing the exact convoluted mechanism by which this is accomplished. - - - Similarly, the CC Wrapper follows the Bintools Wrapper in defining standard environment variables with the names of the tools it wraps, for the same reasons described above. Importantly, while it includes a cc symlink to the c compiler for portability, the CC will be defined using the compiler's "real name" (i.e. gcc or clang). This helps lousy build systems that inspect on the name of the compiler rather than run it. - - - - - - - - Here are some more packages that provide a setup hook. Since the list of hooks is extensible, this is not an exhaustive list. The mechanism is only to be used as a last resort, so it might cover most uses. - - - - Perl - - - - Adds the lib/site_perl subdirectory of each build input to the PERL5LIB environment variable. For instance, if buildInputs contains Perl, then the lib/site_perl subdirectory of each input is added to the PERL5LIB environment variable. - - - - - - Python - - - - Adds the lib/${python.libPrefix}/site-packages subdirectory of each build input to the PYTHONPATH environment variable. - - - - - - pkg-config - - - - Adds the lib/pkgconfig and share/pkgconfig subdirectories of each build input to the PKG_CONFIG_PATH environment variable. - - - - - - Automake - - - - Adds the share/aclocal subdirectory of each build input to the ACLOCAL_PATH environment variable. - - - - - - Autoconf - - - - The autoreconfHook derivation adds autoreconfPhase, which runs autoreconf, libtoolize and automake, essentially preparing the configure script in autotools-based builds. Most autotools-based packages come with the configure script pre-generated, but this hook is necessary for a few packages and when you need to patch the package’s configure scripts. - - - - - - libxml2 - - - - Adds every file named catalog.xml found under the xml/dtd and xml/xsl subdirectories of each build input to the XML_CATALOG_FILES environment variable. - - - - - - teTeX / TeX Live - - - - Adds the share/texmf-nix subdirectory of each build input to the TEXINPUTS environment variable. - - - - - - Qt 4 - - - - Sets the QTDIR environment variable to Qt’s path. - - - - - - gdk-pixbuf - - - - Exports GDK_PIXBUF_MODULE_FILE environment variable to the builder. Add librsvg package to buildInputs to get svg support. - - - - - - GHC - - - - Creates a temporary package database and registers every Haskell build input in it (TODO: how?). - - - - - - GNOME platform - - - - Hooks related to GNOME platform and related libraries like GLib, GTK and GStreamer are described in . - - - - - - autoPatchelfHook - - - - This is a special setup hook which helps in packaging proprietary software in that it automatically tries to find missing shared library dependencies of ELF files based on the given buildInputs and nativeBuildInputs. - - - You can also specify a runtimeDependencies environment variable which lists dependencies that are unconditionally added to all executables. - - - This is useful for programs that use - dlopen - 3 to load libraries at runtime. - - - In certain situations you may want to run the main command (autoPatchelf) of the setup hook on a file or a set of directories instead of unconditionally patching all outputs. This can be done by setting the dontAutoPatchelf environment variable to a non-empty value. - - - The autoPatchelf command also recognizes a --no-recurse command line flag, which prevents it from recursing into subdirectories. - - - - - - breakpointHook - - - - This hook will make a build pause instead of stopping when a failure happens. It prevents nix from cleaning up the build environment immediately and allows the user to attach to a build environment using the cntr command. Upon build error it will print instructions on how to use cntr, which can be used to enter the environment for debugging. Installing cntr and running the command will provide shell access to the build sandbox of failed build. At /var/lib/cntr the sandboxed filesystem is mounted. All commands and files of the system are still accessible within the shell. To execute commands from the sandbox use the cntr exec subcommand. cntr is only supported on Linux-based platforms. To use it first add cntr to your environment.systemPackages on NixOS or alternatively to the root user on non-NixOS systems. Then in the package that is supposed to be inspected, add breakpointHook to nativeBuildInputs. - -nativeBuildInputs = [ breakpointHook ]; - - When a build failure happens there will be an instruction printed that shows how to attach with cntr to the build sandbox. - - - Caution with remote builds - - This won't work with remote builds as the build environment is on a different machine and can't be accessed by cntr. Remote builds can be turned off by setting --option builders '' for nix-build or --builders '' for nix build. - - - - - - - installShellFiles - - - - This hook helps with installing manpages and shell completion files. It exposes 2 shell functions installManPage and installShellCompletion that can be used from your postInstall hook. - - - The installManPage function takes one or more paths to manpages to install. The manpages must have a section suffix, and may optionally be compressed (with .gz suffix). This function will place them into the correct directory. - - - The installShellCompletion function takes one or more paths to shell completion files. By default it will autodetect the shell type from the completion file extension, but you may also specify it by passing one of --bash, --fish, or --zsh. These flags apply to all paths listed after them (up until another shell flag is given). Each path may also have a custom installation name provided by providing a flag --name NAME before the path. If this flag is not provided, zsh completions will be renamed automatically such that foobar.zsh becomes _foobar. - -nativeBuildInputs = [ installShellFiles ]; -postInstall = '' - installManPage doc/foobar.1 doc/barfoo.3 - # explicit behavior - installShellCompletion --bash --name foobar.bash share/completions.bash - installShellCompletion --fish --name foobar.fish share/completions.fish - installShellCompletion --zsh --name _foobar share/completions.zsh - # implicit behavior - installShellCompletion share/completions/foobar.{bash,fish,zsh} -''; - - - - - - - libiconv, libintl - - - - A few libraries automatically add to NIX_LDFLAGS their library, making their symbols automatically available to the linker. This includes libiconv and libintl (gettext). This is done to provide compatibility between GNU Linux, where libiconv and libintl are bundled in, and other systems where that might not be the case. Sometimes, this behavior is not desired. To disable this behavior, set dontAddExtraLibs. - - - - - - cmake - - - - Overrides the default configure phase to run the CMake command. By default, we use the Make generator of CMake. In addition, dependencies are added automatically to CMAKE_PREFIX_PATH so that packages are correctly detected by CMake. Some additional flags are passed in to give similar behavior to configure-based packages. You can disable this hook’s behavior by setting configurePhase to a custom value, or by setting dontUseCmakeConfigure. cmakeFlags controls flags passed only to CMake. By default, parallel building is enabled as CMake supports parallel building almost everywhere. When Ninja is also in use, CMake will detect that and use the ninja generator. - - - - - - xcbuildHook - - - - Overrides the build and install phases to run the “xcbuild” command. This hook is needed when a project only comes with build files for the XCode build system. You can disable this behavior by setting buildPhase and configurePhase to a custom value. xcbuildFlags controls flags passed only to xcbuild. - - - - - - Meson - - - - Overrides the configure phase to run meson to generate Ninja files. To run these files, you should accompany Meson with ninja. By default, enableParallelBuilding is enabled as Meson supports parallel building almost everywhere. - - - Variables controlling Meson - - - mesonFlags - - - - Controls the flags passed to meson. - - - - - - mesonBuildType - - - - Which --buildtype to pass to Meson. We default to plain. - - - - - - mesonAutoFeatures - - - - What value to set -Dauto_features= to. We default to enabled. - - - - - - mesonWrapMode - - - - What value to set -Dwrap_mode= to. We default to nodownload as we disallow network access. - - - - - - dontUseMesonConfigure - - - - Disables using Meson's configurePhase. - - - - - - - - - ninja - - - - Overrides the build, install, and check phase to run ninja instead of make. You can disable this behavior with the dontUseNinjaBuild, dontUseNinjaInstall, and dontUseNinjaCheck, respectively. Parallel building is enabled by default in Ninja. - - - - - - unzip - - - - This setup hook will allow you to unzip .zip files specified in $src. There are many similar packages like unrar, undmg, etc. - - - - - - wafHook - - - - Overrides the configure, build, and install phases. This will run the "waf" script used by many projects. If wafPath (default ./waf) doesn’t exist, it will copy the version of waf available in Nixpkgs. wafFlags can be used to pass flags to the waf script. - - - - - - scons - - - - Overrides the build, install, and check phases. This uses the scons build system as a replacement for make. scons does not provide a configure phase, so everything is managed at build and install time. - - - - - -
-
- Purity in Nixpkgs - - - [measures taken to prevent dependencies on packages outside the store, and what you can do to prevent them] - - - - GCC doesn't search in locations such as /usr/include. In fact, attempts to add such directories through the flag are filtered out. Likewise, the linker (from GNU binutils) doesn't search in standard locations such as /usr/lib. Programs built on Linux are linked against a GNU C Library that likewise doesn't search in the default system locations. - -
-
- Hardening in Nixpkgs - - - There are flags available to harden packages at compile or link-time. These can be toggled using the stdenv.mkDerivation parameters hardeningDisable and hardeningEnable. - - - - Both parameters take a list of flags as strings. The special "all" flag can be passed to hardeningDisable to turn off all hardening. These flags can also be used as environment variables for testing or development purposes. - - - - The following flags are enabled by default and might require disabling with hardeningDisable if the program to package is incompatible. - - - - - - format - - - - Adds the compiler options. At present, this warns about calls to printf and scanf functions where the format string is not a string literal and there are no format arguments, as in printf(foo);. This may be a security hole if the format string came from untrusted input and contains %n. - - - This needs to be turned off or fixed for errors similar to: - - -/tmp/nix-build-zynaddsubfx-2.5.2.drv-0/zynaddsubfx-2.5.2/src/UI/guimain.cpp:571:28: error: format not a string literal and no format arguments [-Werror=format-security] - printf(help_message); - ^ -cc1plus: some warnings being treated as errors - - - - - - stackprotector - - - - Adds the compiler options. This adds safety checks against stack overwrites rendering many potential code injection attacks into aborting situations. In the best case this turns code injection vulnerabilities into denial of service or into non-issues (depending on the application). - - - This needs to be turned off or fixed for errors similar to: - - -bin/blib.a(bios_console.o): In function `bios_handle_cup': -/tmp/nix-build-ipxe-20141124-5cbdc41.drv-0/ipxe-5cbdc41/src/arch/i386/firmware/pcbios/bios_console.c:86: undefined reference to `__stack_chk_fail' - - - - - - fortify - - - - Adds the compiler options. During code generation the compiler knows a great deal of information about buffer sizes (where possible), and attempts to replace insecure unlimited length buffer function calls with length-limited ones. This is especially useful for old, crufty code. Additionally, format strings in writable memory that contain '%n' are blocked. If an application depends on such a format string, it will need to be worked around. - - - Additionally, some warnings are enabled which might trigger build failures if compiler warnings are treated as errors in the package build. In this case, set to . - - - This needs to be turned off or fixed for errors similar to: - - -malloc.c:404:15: error: return type is an incomplete type -malloc.c:410:19: error: storage size of 'ms' isn't known - - -strdup.h:22:1: error: expected identifier or '(' before '__extension__' - - -strsep.c:65:23: error: register name not specified for 'delim' - - -installwatch.c:3751:5: error: conflicting types for '__open_2' - - -fcntl2.h:50:4: error: call to '__open_missing_mode' declared with attribute error: open with O_CREAT or O_TMPFILE in second argument needs 3 arguments - - - - - - pic - - - - Adds the compiler options. This options adds support for position independent code in shared libraries and thus making ASLR possible. - - - Most notably, the Linux kernel, kernel modules and other code not running in an operating system environment like boot loaders won't build with PIC enabled. The compiler will is most cases complain that PIC is not supported for a specific build. - - - This needs to be turned off or fixed for assembler errors similar to: - - -ccbLfRgg.s: Assembler messages: -ccbLfRgg.s:33: Error: missing or invalid displacement expression `private_key_len@GOTOFF' - - - - - - strictoverflow - - - - Signed integer overflow is undefined behaviour according to the C standard. If it happens, it is an error in the program as it should check for overflow before it can happen, not afterwards. GCC provides built-in functions to perform arithmetic with overflow checking, which are correct and faster than any custom implementation. As a workaround, the option makes gcc behave as if signed integer overflows were defined. - - - This flag should not trigger any build or runtime errors. - - - - - - relro - - - - Adds the linker option. During program load, several ELF memory sections need to be written to by the linker, but can be turned read-only before turning over control to the program. This prevents some GOT (and .dtors) overwrite attacks, but at least the part of the GOT used by the dynamic linker (.got.plt) is still vulnerable. - - - This flag can break dynamic shared object loading. For instance, the module systems of Xorg and OpenCV are incompatible with this flag. In almost all cases the bindnow flag must also be disabled and incompatible programs typically fail with similar errors at runtime. - - - - - - bindnow - - - - Adds the linker option. During program load, all dynamic symbols are resolved, allowing for the complete GOT to be marked read-only (due to relro). This prevents GOT overwrite attacks. For very large applications, this can incur some performance loss during initial load while symbols are resolved, but this shouldn't be an issue for daemons. - - - This flag can break dynamic shared object loading. For instance, the module systems of Xorg and PHP are incompatible with this flag. Programs incompatible with this flag often fail at runtime due to missing symbols, like: - - -intel_drv.so: undefined symbol: vgaHWFreeHWRec - - - - - - - The following flags are disabled by default and should be enabled with hardeningEnable for packages that take untrusted input like network services. - - - - - - pie - - - - Adds the compiler and linker options. Position Independent Executables are needed to take advantage of Address Space Layout Randomization, supported by modern kernel versions. While ASLR can already be enforced for data areas in the stack and heap (brk and mmap), the code areas must be compiled as position-independent. Shared libraries already do this with the pic flag, so they gain ASLR automatically, but binary .text regions need to be build with pie to gain ASLR. When this happens, ROP attacks are much harder since there are no static locations to bounce off of during a memory corruption attack. - - - - - - - For more in-depth information on these hardening flags and hardening in general, refer to the Debian Wiki, Ubuntu Wiki, Gentoo Wiki, and the Arch Wiki. - -
-
diff --git a/doc/stdenv/cross-compilation.xml b/doc/stdenv/cross-compilation.xml new file mode 100644 index 0000000000000..93fe9095ce2f3 --- /dev/null +++ b/doc/stdenv/cross-compilation.xml @@ -0,0 +1,394 @@ + + Cross-compilation +
+ Introduction + + + "Cross-compilation" means compiling a program on one machine for another type of machine. For example, a typical use of cross-compilation is to compile programs for embedded devices. These devices often don't have the computing power and memory to compile their own programs. One might think that cross-compilation is a fairly niche concern. However, there are significant advantages to rigorously distinguishing between build-time and run-time environments! Significant, because the benefits apply even when one is developing and deploying on the same machine. Nixpkgs is increasingly adopting the opinion that packages should be written with cross-compilation in mind, and nixpkgs should evaluate in a similar way (by minimizing cross-compilation-specific special cases) whether or not one is cross-compiling. + + + + This chapter will be organized in three parts. First, it will describe the basics of how to package software in a way that supports cross-compilation. Second, it will describe how to use Nixpkgs when cross-compiling. Third, it will describe the internal infrastructure supporting cross-compilation. + +
+ +
+ Packaging in a cross-friendly manner + +
+ Platform parameters + + + Nixpkgs follows the conventions of GNU autoconf. We distinguish between 3 types of platforms when building a derivation: build, host, and target. In summary, build is the platform on which a package is being built, host is the platform on which it will run. The third attribute, target, is relevant only for certain specific compilers and build tools. + + + + In Nixpkgs, these three platforms are defined as attribute sets under the names buildPlatform, hostPlatform, and targetPlatform. They are always defined as attributes in the standard environment. That means one can access them like: +{ stdenv, fooDep, barDep, .. }: ...stdenv.buildPlatform... + . + + + + + + buildPlatform + + + + The "build platform" is the platform on which a package is built. Once someone has a built package, or pre-built binary package, the build platform should not matter and can be ignored. + + + + + + hostPlatform + + + + The "host platform" is the platform on which a package will be run. This is the simplest platform to understand, but also the one with the worst name. + + + + + + targetPlatform + + + + The "target platform" attribute is, unlike the other two attributes, not actually fundamental to the process of building software. Instead, it is only relevant for compatibility with building certain specific compilers and build tools. It can be safely ignored for all other packages. + + + The build process of certain compilers is written in such a way that the compiler resulting from a single build can itself only produce binaries for a single platform. The task of specifying this single "target platform" is thus pushed to build time of the compiler. The root cause of this is that the compiler (which will be run on the host) and the standard library/runtime (which will be run on the target) are built by a single build process. + + + There is no fundamental need to think about a single target ahead of time like this. If the tool supports modular or pluggable backends, both the need to specify the target at build time and the constraint of having only a single target disappear. An example of such a tool is LLVM. + + + Although the existence of a "target platfom" is arguably a historical mistake, it is a common one: examples of tools that suffer from it are GCC, Binutils, GHC and Autoconf. Nixpkgs tries to avoid sharing in the mistake where possible. Still, because the concept of a target platform is so ingrained, it is best to support it as is. + + + + + + + The exact schema these fields follow is a bit ill-defined due to a long and convoluted evolution, but this is slowly being cleaned up. You can see examples of ones used in practice in lib.systems.examples; note how they are not all very consistent. For now, here are few fields can count on them containing: + + + + + + system + + + + This is a two-component shorthand for the platform. Examples of this would be "x86_64-darwin" and "i686-linux"; see lib.systems.doubles for more. The first component corresponds to the CPU architecture of the platform and the second to the operating system of the platform ([cpu]-[os]). This format has built-in support in Nix, such as the builtins.currentSystem impure string. + + + + + + config + + + + This is a 3- or 4- component shorthand for the platform. Examples of this would be x86_64-unknown-linux-gnu and aarch64-apple-darwin14. This is a standard format called the "LLVM target triple", as they are pioneered by LLVM. In the 4-part form, this corresponds to [cpu]-[vendor]-[os]-[abi]. This format is strictly more informative than the "Nix host double", as the previous format could analogously be termed. This needs a better name than config! + + + + + + parsed + + + + This is a Nix representation of a parsed LLVM target triple with white-listed components. This can be specified directly, or actually parsed from the config. See lib.systems.parse for the exact representation. + + + + + + libc + + + + This is a string identifying the standard C library used. Valid identifiers include "glibc" for GNU libc, "libSystem" for Darwin's Libsystem, and "uclibc" for µClibc. It should probably be refactored to use the module system, like parse. + + + + + + is* + + + + These predicates are defined in lib.systems.inspect, and slapped onto every platform. They are superior to the ones in stdenv as they force the user to be explicit about which platform they are inspecting. Please use these instead of those. + + + + + + platform + + + + This is, quite frankly, a dumping ground of ad-hoc settings (it's an attribute set). See lib.systems.platforms for examples—there's hopefully one in there that will work verbatim for each platform that is working. Please help us triage these flags and give them better homes! + + + + +
+ +
+ Theory of dependency categorization + + + + This is a rather philosophical description that isn't very Nixpkgs-specific. For an overview of all the relevant attributes given to mkDerivation, see . For a description of how everything is implemented, see . + + + + + In this section we explore the relationship between both runtime and build-time dependencies and the 3 Autoconf platforms. + + + + A run time dependency between two packages requires that their host platforms match. This is directly implied by the meaning of "host platform" and "runtime dependency": The package dependency exists while both packages are running on a single host platform. + + + + A build time dependency, however, has a shift in platforms between the depending package and the depended-on package. "build time dependency" means that to build the depending package we need to be able to run the depended-on's package. The depending package's build platform is therefore equal to the depended-on package's host platform. + + + + If both the dependency and depending packages aren't compilers or other machine-code-producing tools, we're done. And indeed buildInputs and nativeBuildInputs have covered these simpler build-time and run-time (respectively) changes for many years. But if the dependency does produce machine code, we might need to worry about its target platform too. In principle, that target platform might be any of the depending package's build, host, or target platforms, but we prohibit dependencies from a "later" platform to an earlier platform to limit confusion because we've never seen a legitimate use for them. + + + + Finally, if the depending package is a compiler or other machine-code-producing tool, it might need dependencies that run at "emit time". This is for compilers that (regrettably) insist on being built together with their source langauges' standard libraries. Assuming build != host != target, a run-time dependency of the standard library cannot be run at the compiler's build time or run time, but only at the run time of code emitted by the compiler. + + + + Putting this all together, that means we have dependencies in the form "host → target", in at most the following six combinations: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Possible dependency types
Dependency's host platformDependency's target platform
buildbuild
buildhost
buildtarget
hosthost
hosttarget
targettarget
+
+ + + Some examples will make this table clearer. Suppose there's some package that is being built with a (build, host, target) platform triple of (foo, bar, baz). If it has a build-time library dependency, that would be a "host → build" dependency with a triple of (foo, foo, *) (the target platform is irrelevant). If it needs a compiler to be built, that would be a "build → host" dependency with a triple of (foo, foo, *) (the target platform is irrelevant). That compiler, would be built with another compiler, also "build → host" dependency, with a triple of (foo, foo, foo). + +
+ +
+ Cross packaging cookbook + + + Some frequently encountered problems when packaging for cross-compilation should be answered here. Ideally, the information above is exhaustive, so this section cannot provide any new information, but it is ludicrous and cruel to expect everyone to spend effort working through the interaction of many features just to figure out the same answer to the same common problem. Feel free to add to this list! + + + + + + + What if my package's build system needs to build a C program to be run under the build environment? + + + + +depsBuildBuild = [ buildPackages.stdenv.cc ]; + Add it to your mkDerivation invocation. + + + + + + + My package fails to find ar. + + + + + Many packages assume that an unprefixed ar is available, but Nix doesn't provide one. It only provides a prefixed one, just as it only does for all the other binutils programs. It may be necessary to patch the package to fix the build system to use a prefixed `ar`. + + + + + + + My package's testsuite needs to run host platform code. + + + + +doCheck = stdenv.hostPlatform != stdenv.buildPlatfrom; + Add it to your mkDerivation invocation. + + + + +
+
+ +
+ Cross-building packages + + + Nixpkgs can be instantiated with localSystem alone, in which case there is no cross-compiling and everything is built by and for that system, or also with crossSystem, in which case packages run on the latter, but all building happens on the former. Both parameters take the same schema as the 3 (build, host, and target) platforms defined in the previous section. As mentioned above, lib.systems.examples has some platforms which are used as arguments for these parameters in practice. You can use them programmatically, or on the command line: + +nix-build '<nixpkgs>' --arg crossSystem '(import <nixpkgs/lib>).systems.examples.fooBarBaz' -A whatever + + + + + Eventually we would like to make these platform examples an unnecessary convenience so that + +nix-build '<nixpkgs>' --arg crossSystem '{ config = "<arch>-<os>-<vendor>-<abi>"; }' -A whatever + works in the vast majority of cases. The problem today is dependencies on other sorts of configuration which aren't given proper defaults. We rely on the examples to crudely to set those configuration parameters in some vaguely sane manner on the users behalf. Issue #34274 tracks this inconvenience along with its root cause in crufty configuration options. + + + + + While one is free to pass both parameters in full, there's a lot of logic to fill in missing fields. As discussed in the previous section, only one of system, config, and parsed is needed to infer the other two. Additionally, libc will be inferred from parse. Finally, localSystem.system is also impurely inferred based on the platform evaluation occurs. This means it is often not necessary to pass localSystem at all, as in the command-line example in the previous paragraph. + + + + + Many sources (manual, wiki, etc) probably mention passing system, platform, along with the optional crossSystem to nixpkgs: import <nixpkgs> { system = ..; platform = ..; crossSystem = ..; }. Passing those two instead of localSystem is still supported for compatibility, but is discouraged. Indeed, much of the inference we do for these parameters is motivated by compatibility as much as convenience. + + + + + One would think that localSystem and crossSystem overlap horribly with the three *Platforms (buildPlatform, hostPlatform, and targetPlatform; see stage.nix or the manual). Actually, those identifiers are purposefully not used here to draw a subtle but important distinction: While the granularity of having 3 platforms is necessary to properly *build* packages, it is overkill for specifying the user's *intent* when making a build plan or package set. A simple "build vs deploy" dichotomy is adequate: the sliding window principle described in the previous section shows how to interpolate between the these two "end points" to get the 3 platform triple for each bootstrapping stage. That means for any package a given package set, even those not bound on the top level but only reachable via dependencies or buildPackages, the three platforms will be defined as one of localSystem or crossSystem, with the former replacing the latter as one traverses build-time dependencies. A last simple difference is that crossSystem should be null when one doesn't want to cross-compile, while the *Platforms are always non-null. localSystem is always non-null. + +
+ +
+ Cross-compilation infrastructure + +
+ Implementation of dependencies + + + The categorizes of dependencies developed in are specified as lists of derivations given to mkDerivation, as documented in . In short, each list of dependencies for "host → target" of "foo → bar" is called depsFooBar, with exceptions for backwards compatibility that depsBuildHost is instead called nativeBuildInputs and depsHostTarget is instead called buildInputs. Nixpkgs is now structured so that each depsFooBar is automatically taken from pkgsFooBar. (These pkgsFooBars are quite new, so there is no special case for nativeBuildInputs and buildInputs.) For example, pkgsBuildHost.gcc should be used at build-time, while pkgsHostTarget.gcc should be used at run-time. + + + + Now, for most of Nixpkgs's history, there were no pkgsFooBar attributes, and most packages have not been refactored to use it explicitly. Prior to those, there were just buildPackages, pkgs, and targetPackages. Those are now redefined as aliases to pkgsBuildHost, pkgsHostTarget, and pkgsTargetTarget. It is acceptable, even recommended, to use them for libraries to show that the host platform is irrelevant. + + + + But before that, there was just pkgs, even though both buildInputs and nativeBuildInputs existed. [Cross barely worked, and those were implemented with some hacks on mkDerivation to override dependencies.] What this means is the vast majority of packages do not use any explicit package set to populate their dependencies, just using whatever callPackage gives them even if they do correctly sort their dependencies into the multiple lists described above. And indeed, asking that users both sort their dependencies, and take them from the right attribute set, is both too onerous and redundant, so the recommended approach (for now) is to continue just categorizing by list and not using an explicit package set. + + + + To make this work, we "splice" together the six pkgsFooBar package sets and have callPackage actually take its arguments from that. This is currently implemented in pkgs/top-level/splice.nix. mkDerivation then, for each dependency attribute, pulls the right derivation out from the splice. This splicing can be skipped when not cross-compiling as the package sets are the same, but still is a bit slow for cross-compiling. We'd like to do something better, but haven't come up with anything yet. + +
+ +
+ Bootstrapping + + + Each of the package sets described above come from a single bootstrapping stage. While pkgs/top-level/default.nix, coordinates the composition of stages at a high level, pkgs/top-level/stage.nix "ties the knot" (creates the fixed point) of each stage. The package sets are defined per-stage however, so they can be thought of as edges between stages (the nodes) in a graph. Compositions like pkgsBuildTarget.targetPackages can be thought of as paths to this graph. + + + + While there are many package sets, and thus many edges, the stages can also be arranged in a linear chain. In other words, many of the edges are redundant as far as connectivity is concerned. This hinges on the type of bootstrapping we do. Currently for cross it is: + + + + (native, native, native) + + + + + (native, native, foreign) + + + + + (native, foreign, foreign) + + + + In each stage, pkgsBuildHost refers the the previous stage, pkgsBuildBuild refers to the one before that, and pkgsHostTarget refers to the current one, and pkgsTargetTarget refers to the next one. When there is no previous or next stage, they instead refer to the current stage. Note how all the invariants regarding the mapping between dependency and depending packages' build host and target platforms are preserved. pkgsBuildTarget and pkgsHostHost are more complex in that the stage fitting the requirements isn't always a fixed chain of "prevs" and "nexts" away (modulo the "saturating" self-references at the ends). We just special case each instead. All the primary edges are implemented is in pkgs/stdenv/booter.nix, and secondarily aliases in pkgs/top-level/stage.nix. + + + + + Note the native stages are bootstrapped in legacy ways that predate the current cross implementation. This is why the the bootstrapping stages leading up to the final stages are ignored inthe previous paragraph. + + + + + If one looks at the 3 platform triples, one can see that they overlap such that one could put them together into a chain like: + +(native, native, native, foreign, foreign) + + If one imagines the saturating self references at the end being replaced with infinite stages, and then overlays those platform triples, one ends up with the infinite tuple: + +(native..., native, native, native, foreign, foreign, foreign...) + + On can then imagine any sequence of platforms such that there are bootstrap stages with their 3 platforms determined by "sliding a window" that is the 3 tuple through the sequence. This was the original model for bootstrapping. Without a target platform (assume a better world where all compilers are multi-target and all standard libraries are built in their own derivation), this is sufficient. Conversely if one wishes to cross compile "faster", with a "Canadian Cross" bootstraping stage where build != host != target, more bootstrapping stages are needed since no sliding window providess the pesky pkgsBuildTarget package set since it skips the Canadian cross stage's "host". + + + + + It is much better to refer to buildPackages than targetPackages, or more broadly package sets that do not mention "target". There are three reasons for this. + + + First, it is because bootstrapping stages do not have a unique targetPackages. For example a (x86-linux, x86-linux, arm-linux) and (x86-linux, x86-linux, x86-windows) package set both have a (x86-linux, x86-linux, x86-linux) package set. Because there is no canonical targetPackages for such a native (build == host == target) package set, we set their targetPackages + + + Second, it is because this is a frequent source of hard-to-follow "infinite recursions" / cycles. When only package sets that don't mention target are used, the package set forms a directed acyclic graph. This means that all cycles that exist are confined to one stage. This means they are a lot smaller, and easier to follow in the code or a backtrace. It also means they are present in native and cross builds alike, and so more likely to be caught by CI and other users. + + + Thirdly, it is because everything target-mentioning only exists to accommodate compilers with lousy build systems that insist on the compiler itself and standard library being built together. Of course that is bad because bigger derivations means longer rebuilds. It is also problematic because it tends to make the standard libraries less like other libraries than they could be, complicating code and build systems alike. Because of the other problems, and because of these innate disadvantages, compilers ought to be packaged another way where possible. + + + + + + If one explores Nixpkgs, they will see derivations with names like gccCross. Such *Cross derivations is a holdover from before we properly distinguished between the host and target platforms—the derivation with "Cross" in the name covered the build = host != target case, while the other covered the host = target, with build platform the same or not based on whether one was using its .nativeDrv or .crossDrv. This ugliness will disappear soon. + + +
+
+
diff --git a/doc/stdenv/meta.xml b/doc/stdenv/meta.xml new file mode 100644 index 0000000000000..9371196818ad9 --- /dev/null +++ b/doc/stdenv/meta.xml @@ -0,0 +1,350 @@ + + Meta-attributes + + Nix packages can declare meta-attributes that contain information about a package such as a description, its homepage, its license, and so on. For instance, the GNU Hello package has a meta declaration like this: + +meta = with stdenv.lib; { + description = "A program that produces a familiar, friendly greeting"; + longDescription = '' + GNU Hello is a program that prints "Hello, world!" when you run it. + It is fully customizable. + ''; + homepage = https://www.gnu.org/software/hello/manual/; + license = licenses.gpl3Plus; + maintainers = [ maintainers.eelco ]; + platforms = platforms.all; +}; + + + + Meta-attributes are not passed to the builder of the package. Thus, a change to a meta-attribute doesn’t trigger a recompilation of the package. The value of a meta-attribute must be a string. + + + The meta-attributes of a package can be queried from the command-line using nix-env: + +$ nix-env -qa hello --json +{ + "hello": { + "meta": { + "description": "A program that produces a familiar, friendly greeting", + "homepage": "https://www.gnu.org/software/hello/manual/", + "license": { + "fullName": "GNU General Public License version 3 or later", + "shortName": "GPLv3+", + "url": "http://www.fsf.org/licensing/licenses/gpl.html" + }, + "longDescription": "GNU Hello is a program that prints \"Hello, world!\" when you run it.\nIt is fully customizable.\n", + "maintainers": [ + "Ludovic Court\u00e8s <ludo@gnu.org>" + ], + "platforms": [ + "i686-linux", + "x86_64-linux", + "armv5tel-linux", + "armv7l-linux", + "mips32-linux", + "x86_64-darwin", + "i686-cygwin", + "i686-freebsd", + "x86_64-freebsd", + "i686-openbsd", + "x86_64-openbsd" + ], + "position": "/home/user/dev/nixpkgs/pkgs/applications/misc/hello/default.nix:14" + }, + "name": "hello-2.9", + "system": "x86_64-linux" + } +} + + + + nix-env knows about the description field specifically: + +$ nix-env -qa hello --description +hello-2.3 A program that produces a familiar, friendly greeting + + +
+ Standard meta-attributes + + + It is expected that each meta-attribute is one of the following: + + + + + + description + + + + A short (one-line) description of the package. This is shown by nix-env -q --description and also on the Nixpkgs release pages. + + + Don’t include a period at the end. Don’t include newline characters. Capitalise the first character. For brevity, don’t repeat the name of package — just describe what it does. + + + Wrong: "libpng is a library that allows you to decode PNG images." + + + Right: "A library for decoding PNG images" + + + + + + longDescription + + + + An arbitrarily long description of the package. + + + + + + branch + + + + Release branch. Used to specify that a package is not going to receive updates that are not in this branch; for example, Linux kernel 3.0 is supposed to be updated to 3.0.X, not 3.1. + + + + + + homepage + + + + The package’s homepage. Example: https://www.gnu.org/software/hello/manual/ + + + + + + downloadPage + + + + The page where a link to the current version can be found. Example: https://ftp.gnu.org/gnu/hello/ + + + + + + changelog + + + + A link or a list of links to the location of Changelog for a package. A link may use expansion to refer to the correct changelog version. Example: "https://git.savannah.gnu.org/cgit/hello.git/plain/NEWS?h=v${version}" + + + + + + license + + + + The license, or licenses, for the package. One from the attribute set defined in nixpkgs/lib/licenses.nix. At this moment using both a list of licenses and a single license is valid. If the license field is in the form of a list representation, then it means that parts of the package are licensed differently. Each license should preferably be referenced by their attribute. The non-list attribute value can also be a space delimited string representation of the contained attribute shortNames or spdxIds. The following are all valid examples: + + + + Single license referenced by attribute (preferred) stdenv.lib.licenses.gpl3. + + + + + Single license referenced by its attribute shortName (frowned upon) "gpl3". + + + + + Single license referenced by its attribute spdxId (frowned upon) "GPL-3.0". + + + + + Multiple licenses referenced by attribute (preferred) with stdenv.lib.licenses; [ asl20 free ofl ]. + + + + + Multiple licenses referenced as a space delimited string of attribute shortNames (frowned upon) "asl20 free ofl". + + + + For details, see . + + + + + + maintainers + + + + A list of names and e-mail addresses of the maintainers of this Nix expression. If you would like to be a maintainer of a package, you may want to add yourself to nixpkgs/maintainers/maintainer-list.nix and write something like [ stdenv.lib.maintainers.alice stdenv.lib.maintainers.bob ]. + + + + + + priority + + + + The priority of the package, used by nix-env to resolve file name conflicts between packages. See the Nix manual page for nix-env for details. Example: "10" (a low-priority package). + + + + + + platforms + + + + The list of Nix platform types on which the package is supported. Hydra builds packages according to the platform specified. If no platform is specified, the package does not have prebuilt binaries. An example is: + +meta.platforms = stdenv.lib.platforms.linux; + + Attribute Set stdenv.lib.platforms defines various common lists of platforms types. + + + + + + tests + + + + + This attribute is special in that it is not actually under the meta attribute set but rather under the passthru attribute set. This is due to how meta attributes work, and the fact that they are supposed to contain only metadata, not derivations. + + + + An attribute set with as values tests. A test is a derivation, which builds successfully when the test passes, and fails to build otherwise. A derivation that is a test needs to have meta.timeout defined. + + + The NixOS tests are available as nixosTests in parameters of derivations. For instance, the OpenSMTPD derivation includes lines similar to: + +{ /* ... */, nixosTests }: +{ + # ... + passthru.tests = { + basic-functionality-and-dovecot-integration = nixosTests.opensmtpd; + }; +} + + + + + + + timeout + + + + A timeout (in seconds) for building the derivation. If the derivation takes longer than this time to build, it can fail due to breaking the timeout. However, all computers do not have the same computing power, hence some builders may decide to apply a multiplicative factor to this value. When filling this value in, try to keep it approximately consistent with other values already present in nixpkgs. + + + + + + hydraPlatforms + + + + The list of Nix platform types for which the Hydra instance at hydra.nixos.org will build the package. (Hydra is the Nix-based continuous build system.) It defaults to the value of meta.platforms. Thus, the only reason to set meta.hydraPlatforms is if you want hydra.nixos.org to build the package on a subset of meta.platforms, or not at all, e.g. + +meta.platforms = stdenv.lib.platforms.linux; +meta.hydraPlatforms = []; + + + + + + + broken + + + + If set to true, the package is marked as “broken”, meaning that it won’t show up in nix-env -qa, and cannot be built or installed. Such packages should be removed from Nixpkgs eventually unless they are fixed. + + + + + + updateWalker + + + + If set to true, the package is tested to be updated correctly by the update-walker.sh script without additional settings. Such packages have meta.version set and their homepage (or the page specified by meta.downloadPage) contains a direct link to the package tarball. + + + + +
+
+ Licenses + + + The meta.license attribute should preferrably contain a value from stdenv.lib.licenses defined in nixpkgs/lib/licenses.nix, or in-place license description of the same format if the license is unlikely to be useful in another expression. + + + + Although it's typically better to indicate the specific license, a few generic options are available: + + + + stdenv.lib.licenses.free, "free" + + + + Catch-all for free software licenses not listed above. + + + + + + stdenv.lib.licenses.unfreeRedistributable, "unfree-redistributable" + + + + Unfree package that can be redistributed in binary form. That is, it’s legal to redistribute the output of the derivation. This means that the package can be included in the Nixpkgs channel. + + + Sometimes proprietary software can only be redistributed unmodified. Make sure the builder doesn’t actually modify the original binaries; otherwise we’re breaking the license. For instance, the NVIDIA X11 drivers can be redistributed unmodified, but our builder applies patchelf to make them work. Thus, its license is "unfree" and it cannot be included in the Nixpkgs channel. + + + + + + stdenv.lib.licenses.unfree, "unfree" + + + + Unfree package that cannot be redistributed. You can build it yourself, but you cannot redistribute the output of the derivation. Thus it cannot be included in the Nixpkgs channel. + + + + + + stdenv.lib.licenses.unfreeRedistributableFirmware, "unfree-redistributable-firmware" + + + + This package supplies unfree, redistributable firmware. This is a separate value from unfree-redistributable because not everybody cares whether firmware is free. + + + + + +
+
diff --git a/doc/stdenv/multiple-output.xml b/doc/stdenv/multiple-output.xml new file mode 100644 index 0000000000000..83275bb2fbd1a --- /dev/null +++ b/doc/stdenv/multiple-output.xml @@ -0,0 +1,232 @@ + + +]> + + Multiple-output packages +
+ Introduction + + + The Nix language allows a derivation to produce multiple outputs, which is similar to what is utilized by other Linux distribution packaging systems. The outputs reside in separate Nix store paths, so they can be mostly handled independently of each other, including passing to build inputs, garbage collection or binary substitution. The exception is that building from source always produces all the outputs. + + + + The main motivation is to save disk space by reducing runtime closure sizes; consequently also sizes of substituted binaries get reduced. Splitting can be used to have more granular runtime dependencies, for example the typical reduction is to split away development-only files, as those are typically not needed during runtime. As a result, closure sizes of many packages can get reduced to a half or even much less. + + + + + The reduction effects could be instead achieved by building the parts in completely separate derivations. That would often additionally reduce build-time closures, but it tends to be much harder to write such derivations, as build systems typically assume all parts are being built at once. This compromise approach of single source package producing multiple binary packages is also utilized often by rpm and deb. + + +
+
+ Installing a split package + + + When installing a package via systemPackages or nix-env you have several options: + + + + + + You can install particular outputs explicitly, as each is available in the Nix language as an attribute of the package. The outputs attribute contains a list of output names. + + + + + You can let it use the default outputs. These are handled by meta.outputsToInstall attribute that contains a list of output names. + + + TODO: more about tweaking the attribute, etc. + + + + + NixOS provides configuration option environment.extraOutputsToInstall that allows adding extra outputs of environment.systemPackages atop the default ones. It's mainly meant for documentation and debug symbols, and it's also modified by specific options. + + + + At this moment there is no similar configurability for packages installed by nix-env. You can still use approach from to override meta.outputsToInstall attributes, but that's a rather inconvenient way. + + + + +
+
+ Using a split package + + + In the Nix language the individual outputs can be reached explicitly as attributes, e.g. coreutils.info, but the typical case is just using packages as build inputs. + + + + When a multiple-output derivation gets into a build input of another derivation, the dev output is added if it exists, otherwise the first output is added. In addition to that, propagatedBuildOutputs of that package which by default contain $outputBin and $outputLib are also added. (See .) + + + + In some cases it may be desirable to combine different outputs under a single store path. A function symlinkJoin can be used to do this. (Note that it may negate some closure size benefits of using a multiple-output package.) + +
+
+ Writing a split derivation + + + Here you find how to write a derivation that produces multiple outputs. + + + + In nixpkgs there is a framework supporting multiple-output derivations. It tries to cover most cases by default behavior. You can find the source separated in <nixpkgs/pkgs/build-support/setup-hooks/multiple-outputs.sh>; it's relatively well-readable. The whole machinery is triggered by defining the outputs attribute to contain the list of desired output names (strings). + + +outputs = [ "bin" "dev" "out" "doc" ]; + + + Often such a single line is enough. For each output an equally named environment variable is passed to the builder and contains the path in nix store for that output. Typically you also want to have the main out output, as it catches any files that didn't get elsewhere. + + + + + There is a special handling of the debug output, described at . + + + +
+ <quote>Binaries first</quote> + + + A commonly adopted convention in nixpkgs is that executables provided by the package are contained within its first output. This convention allows the dependent packages to reference the executables provided by packages in a uniform manner. For instance, provided with the knowledge that the perl package contains a perl executable it can be referenced as ${pkgs.perl}/bin/perl within a Nix derivation that needs to execute a Perl script. + + + + The glibc package is a deliberate single exception to the binaries first convention. The glibc has libs as its first output allowing the libraries provided by glibc to be referenced directly (e.g. ${stdenv.glibc}/lib/ld-linux-x86-64.so.2). The executables provided by glibc can be accessed via its bin attribute (e.g. ${stdenv.glibc.bin}/bin/ldd). + + + + The reason for why glibc deviates from the convention is because referencing a library provided by glibc is a very common operation among Nix packages. For instance, third-party executables packaged by Nix are typically patched and relinked with the relevant version of glibc libraries from Nix packages (please see the documentation on patchelf for more details). + +
+ +
+ File type groups + + + The support code currently recognizes some particular kinds of outputs and either instructs the build system of the package to put files into their desired outputs or it moves the files during the fixup phase. Each group of file types has an outputFoo variable specifying the output name where they should go. If that variable isn't defined by the derivation writer, it is guessed – a default output name is defined, falling back to other possibilities if the output isn't defined. + + + + + + $outputDev + + + + is for development-only files. These include C(++) headers, pkg-config, cmake and aclocal files. They go to dev or out by default. + + + + + + $outputBin + + + + is meant for user-facing binaries, typically residing in bin/. They go to bin or out by default. + + + + + + $outputLib + + + + is meant for libraries, typically residing in lib/ and libexec/. They go to lib or out by default. + + + + + + $outputDoc + + + + is for user documentation, typically residing in share/doc/. It goes to doc or out by default. + + + + + + $outputDevdoc + + + + is for developer documentation. Currently we count gtk-doc and devhelp books in there. It goes to devdoc or is removed (!) by default. This is because e.g. gtk-doc tends to be rather large and completely unused by nixpkgs users. + + + + + + $outputMan + + + + is for man pages (except for section 3). They go to man or $outputBin by default. + + + + + + $outputDevman + + + + is for section 3 man pages. They go to devman or $outputMan by default. + + + + + + $outputInfo + + + + is for info pages. They go to info or $outputBin by default. + + + + +
+ +
+ Common caveats + + + + + Some configure scripts don't like some of the parameters passed by default by the framework, e.g. --docdir=/foo/bar. You can disable this by setting setOutputFlags = false;. + + + + + The outputs of a single derivation can retain references to each other, but note that circular references are not allowed. (And each strongly-connected component would act as a single output anyway.) + + + + + Most of split packages contain their core functionality in libraries. These libraries tend to refer to various kind of data that typically gets into out, e.g. locale strings, so there is often no advantage in separating the libraries into lib, as keeping them in out is easier. + + + + + Some packages have hidden assumptions on install paths, which complicates splitting. + + + +
+
+ +
diff --git a/doc/stdenv/platform-notes.xml b/doc/stdenv/platform-notes.xml new file mode 100644 index 0000000000000..5a266fdc0eea0 --- /dev/null +++ b/doc/stdenv/platform-notes.xml @@ -0,0 +1,83 @@ + + Platform Notes +
+ Darwin (macOS) + + + Some common issues when packaging software for Darwin: + + + + + + The Darwin stdenv uses clang instead of gcc. When referring to the compiler $CC or cc will work in both cases. Some builds hardcode gcc/g++ in their build scripts, that can usually be fixed with using something like makeFlags = [ "CC=cc" ]; or by patching the build scripts. + + +stdenv.mkDerivation { + name = "libfoo-1.2.3"; + # ... + buildPhase = '' + $CC -o hello hello.c + ''; +} + + + + + On Darwin, libraries are linked using absolute paths, libraries are resolved by their install_name at link time. Sometimes packages won't set this correctly causing the library lookups to fail at runtime. This can be fixed by adding extra linker flags or by running install_name_tool -id during the fixupPhase. + + +stdenv.mkDerivation { + name = "libfoo-1.2.3"; + # ... + makeFlags = stdenv.lib.optional stdenv.isDarwin "LDFLAGS=-Wl,-install_name,$(out)/lib/libfoo.dylib"; +} + + + + + Even if the libraries are linked using absolute paths and resolved via their install_name correctly, tests can sometimes fail to run binaries. This happens because the checkPhase runs before the libraries are installed. + + + This can usually be solved by running the tests after the installPhase or alternatively by using DYLD_LIBRARY_PATH. More information about this variable can be found in the + dyld + 1 manpage. + + +dyld: Library not loaded: /nix/store/7hnmbscpayxzxrixrgxvvlifzlxdsdir-jq-1.5-lib/lib/libjq.1.dylib +Referenced from: /private/tmp/nix-build-jq-1.5.drv-0/jq-1.5/tests/../jq +Reason: image not found +./tests/jqtest: line 5: 75779 Abort trap: 6 + + +stdenv.mkDerivation { + name = "libfoo-1.2.3"; + # ... + doInstallCheck = true; + installCheckTarget = "check"; +} + + + + + Some packages assume xcode is available and use xcrun to resolve build tools like clang, etc. This causes errors like xcode-select: error: no developer tools were found at '/Applications/Xcode.app' while the build doesn't actually depend on xcode. + + +stdenv.mkDerivation { + name = "libfoo-1.2.3"; + # ... + prePatch = '' + substituteInPlace Makefile \ + --replace '/usr/bin/xcrun clang' clang + ''; +} + + + The package xcbuild can be used to build projects that really depend on Xcode. However, this replacement is not 100% compatible with Xcode and can occasionally cause issues. + + + +
+
diff --git a/doc/stdenv/stdenv.xml b/doc/stdenv/stdenv.xml new file mode 100644 index 0000000000000..0b59f90eb490f --- /dev/null +++ b/doc/stdenv/stdenv.xml @@ -0,0 +1,2375 @@ + + The Standard Environment + + The standard build environment in the Nix Packages collection provides an environment for building Unix packages that does a lot of common build tasks automatically. In fact, for Unix packages that use the standard ./configure; make; make install build interface, you don’t need to write a build script at all; the standard environment does everything automatically. If stdenv doesn’t do what you need automatically, you can easily customise or override the various build phases. + +
+ Using <literal>stdenv</literal> + + + To build a package with the standard environment, you use the function stdenv.mkDerivation, instead of the primitive built-in function derivation, e.g. + +stdenv.mkDerivation { + name = "libfoo-1.2.3"; + src = fetchurl { + url = http://example.org/libfoo-1.2.3.tar.bz2; + sha256 = "0x2g1jqygyr5wiwg4ma1nd7w4ydpy82z9gkcv8vh2v8dn3y58v5m"; + }; +} + (stdenv needs to be in scope, so if you write this in a separate Nix expression from pkgs/all-packages.nix, you need to pass it as a function argument.) Specifying a name and a src is the absolute minimum Nix requires. For convenience, you can also use pname and version attributes and mkDerivation will automatically set name to "${pname}-${version}" by default. Since RFC 0035, this is preferred for packages in Nixpkgs, as it allows us to reuse the version easily: + +stdenv.mkDerivation rec { + pname = "libfoo"; + version = "1.2.3"; + src = fetchurl { + url = "http://example.org/libfoo-source-${version}.tar.bz2"; + sha256 = "0x2g1jqygyr5wiwg4ma1nd7w4ydpy82z9gkcv8vh2v8dn3y58v5m"; + }; +} + + + + Many packages have dependencies that are not provided in the standard environment. It’s usually sufficient to specify those dependencies in the buildInputs attribute: + +stdenv.mkDerivation { + name = "libfoo-1.2.3"; + ... + buildInputs = [libbar perl ncurses]; +} + This attribute ensures that the bin subdirectories of these packages appear in the PATH environment variable during the build, that their include subdirectories are searched by the C compiler, and so on. (See for details.) + + + + Often it is necessary to override or modify some aspect of the build. To make this easier, the standard environment breaks the package build into a number of phases, all of which can be overridden or modified individually: unpacking the sources, applying patches, configuring, building, and installing. (There are some others; see .) For instance, a package that doesn’t supply a makefile but instead has to be compiled “manually” could be handled like this: + +stdenv.mkDerivation { + name = "fnord-4.5"; + ... + buildPhase = '' + gcc foo.c -o foo + ''; + installPhase = '' + mkdir -p $out/bin + cp foo $out/bin + ''; +} + (Note the use of ''-style string literals, which are very convenient for large multi-line script fragments because they don’t need escaping of " and \, and because indentation is intelligently removed.) + + + + There are many other attributes to customise the build. These are listed in . + + + + While the standard environment provides a generic builder, you can still supply your own build script: + +stdenv.mkDerivation { + name = "libfoo-1.2.3"; + ... + builder = ./builder.sh; +} + where the builder can do anything it wants, but typically starts with + +source $stdenv/setup + + to let stdenv set up the environment (e.g., process the buildInputs). If you want, you can still use stdenv’s generic builder: + +source $stdenv/setup + +buildPhase() { + echo "... this is my custom build phase ..." + gcc foo.c -o foo +} + +installPhase() { + mkdir -p $out/bin + cp foo $out/bin +} + +genericBuild + + +
+
+ Tools provided by <literal>stdenv</literal> + + + The standard environment provides the following packages: + + + + The GNU C Compiler, configured with C and C++ support. + + + + + GNU coreutils (contains a few dozen standard Unix commands). + + + + + GNU findutils (contains find). + + + + + GNU diffutils (contains diff, cmp). + + + + + GNU sed. + + + + + GNU grep. + + + + + GNU awk. + + + + + GNU tar. + + + + + gzip, bzip2 and xz. + + + + + GNU Make. It has been patched to provide nested output that can be fed into the nix-log2xml command and log2html stylesheet to create a structured, readable output of the build steps performed by Make. + + + + + Bash. This is the shell used for all builders in the Nix Packages collection. Not using /bin/sh removes a large source of portability problems. + + + + + The patch command. + + + + + + + On Linux, stdenv also includes the patchelf utility. + +
+
+ Specifying dependencies + + + As described in the Nix manual, almost any *.drv store path in a derivation's attribute set will induce a dependency on that derivation. mkDerivation, however, takes a few attributes intended to, between them, include all the dependencies of a package. This is done both for structure and consistency, but also so that certain other setup can take place. For example, certain dependencies need their bin directories added to the PATH. That is built-in, but other setup is done via a pluggable mechanism that works in conjunction with these dependency attributes. See for details. + + + + Dependencies can be broken down along three axes: their host and target platforms relative to the new derivation's, and whether they are propagated. The platform distinctions are motivated by cross compilation; see for exactly what each platform means. + + + The build platform is ignored because it is a mere implementation detail of the package satisfying the dependency: As a general programming principle, dependencies are always specified as interfaces, not concrete implementation. + + + But even if one is not cross compiling, the platforms imply whether or not the dependency is needed at run-time or build-time, a concept that makes perfect sense outside of cross compilation. By default, the run-time/build-time distinction is just a hint for mental clarity, but with strictDeps set it is mostly enforced even in the native case. + + + + The extension of PATH with dependencies, alluded to above, proceeds according to the relative platforms alone. The process is carried out only for dependencies whose host platform matches the new derivation's build platform i.e. dependencies which run on the platform where the new derivation will be built. + + + Currently, this means for native builds all dependencies are put on the PATH. But in the future that may not be the case for sake of matching cross: the platforms would be assumed to be unique for native and cross builds alike, so only the depsBuild* and nativeBuildInputs would be added to the PATH. + + + For each dependency dep of those dependencies, dep/bin, if present, is added to the PATH environment variable. + + + + The dependency is propagated when it forces some of its other-transitive (non-immediate) downstream dependencies to also take it on as an immediate dependency. Nix itself already takes a package's transitive dependencies into account, but this propagation ensures nixpkgs-specific infrastructure like setup hooks (mentioned above) also are run as if the propagated dependency. + + + + It is important to note that dependencies are not necessarily propagated as the same sort of dependency that they were before, but rather as the corresponding sort so that the platform rules still line up. The exact rules for dependency propagation can be given by assigning to each dependency two integers based one how its host and target platforms are offset from the depending derivation's platforms. Those offsets are given below in the descriptions of each dependency list attribute. Algorithmically, we traverse propagated inputs, accumulating every propagated dependency's propagated dependencies and adjusting them to account for the "shift in perspective" described by the current dependency's platform offsets. This results in sort a transitive closure of the dependency relation, with the offsets being approximately summed when two dependency links are combined. We also prune transitive dependencies whose combined offsets go out-of-bounds, which can be viewed as a filter over that transitive closure removing dependencies that are blatantly absurd. + + + + We can define the process precisely with Natural Deduction using the inference rules. This probably seems a bit obtuse, but so is the bash code that actually implements it! + + + The findInputs function, currently residing in pkgs/stdenv/generic/setup.sh, implements the propagation logic. + + + They're confusing in very different ways so... hopefully if something doesn't make sense in one presentation, it will in the other! + +let mapOffset(h, t, i) = i + (if i <= 0 then h else t - 1) + +propagated-dep(h0, t0, A, B) +propagated-dep(h1, t1, B, C) +h0 + h1 in {-1, 0, 1} +h0 + t1 in {-1, 0, 1} +-------------------------------------- Transitive property +propagated-dep(mapOffset(h0, t0, h1), + mapOffset(h0, t0, t1), + A, C) + +let mapOffset(h, t, i) = i + (if i <= 0 then h else t - 1) + +dep(h0, _, A, B) +propagated-dep(h1, t1, B, C) +h0 + h1 in {-1, 0, 1} +h0 + t1 in {-1, 0, -1} +----------------------------- Take immediate dependencies' propagated dependencies +propagated-dep(mapOffset(h0, t0, h1), + mapOffset(h0, t0, t1), + A, C) + +propagated-dep(h, t, A, B) +----------------------------- Propagated dependencies count as dependencies +dep(h, t, A, B) + Some explanation of this monstrosity is in order. In the common case, the target offset of a dependency is the successor to the target offset: t = h + 1. That means that: + +let f(h, t, i) = i + (if i <= 0 then h else t - 1) +let f(h, h + 1, i) = i + (if i <= 0 then h else (h + 1) - 1) +let f(h, h + 1, i) = i + (if i <= 0 then h else h) +let f(h, h + 1, i) = i + h + + This is where "sum-like" comes in from above: We can just sum all of the host offsets to get the host offset of the transitive dependency. The target offset is the transitive dependency is simply the host offset + 1, just as it was with the dependencies composed to make this transitive one; it can be ignored as it doesn't add any new information. + + + + Because of the bounds checks, the uncommon cases are h = t and h + 2 = t. In the former case, the motivation for mapOffset is that since its host and target platforms are the same, no transitive dependency of it should be able to "discover" an offset greater than its reduced target offsets. mapOffset effectively "squashes" all its transitive dependencies' offsets so that none will ever be greater than the target offset of the original h = t package. In the other case, h + 1 is skipped over between the host and target offsets. Instead of squashing the offsets, we need to "rip" them apart so no transitive dependencies' offset is that one. + + + + Overall, the unifying theme here is that propagation shouldn't be introducing transitive dependencies involving platforms the depending package is unaware of. [One can imagine the dependending package asking for dependencies with the platforms it knows about; other platforms it doesn't know how to ask for. The platform description in that scenario is a kind of unforagable capability.] The offset bounds checking and definition of mapOffset together ensure that this is the case. Discovering a new offset is discovering a new platform, and since those platforms weren't in the derivation "spec" of the needing package, they cannot be relevant. From a capability perspective, we can imagine that the host and target platforms of a package are the capabilities a package requires, and the depending package must provide the capability to the dependency. + + + + Variables specifying dependencies + + + depsBuildBuild + + + + A list of dependencies whose host and target platforms are the new derivation's build platform. This means a -1 host and -1 target offset from the new derivation's platforms. These are programs and libraries used at build time that produce programs and libraries also used at build time. If the dependency doesn't care about the target platform (i.e. isn't a compiler or similar tool), put it in nativeBuildInputs instead. The most common use of this buildPackages.stdenv.cc, the default C compiler for this role. That example crops up more than one might think in old commonly used C libraries. + + + Since these packages are able to be run at build-time, they are always added to the PATH, as described above. But since these packages are only guaranteed to be able to run then, they shouldn't persist as run-time dependencies. This isn't currently enforced, but could be in the future. + + + + + + nativeBuildInputs + + + + A list of dependencies whose host platform is the new derivation's build platform, and target platform is the new derivation's host platform. This means a -1 host offset and 0 target offset from the new derivation's platforms. These are programs and libraries used at build-time that, if they are a compiler or similar tool, produce code to run at run-time—i.e. tools used to build the new derivation. If the dependency doesn't care about the target platform (i.e. isn't a compiler or similar tool), put it here, rather than in depsBuildBuild or depsBuildTarget. This could be called depsBuildHost but nativeBuildInputs is used for historical continuity. + + + Since these packages are able to be run at build-time, they are added to the PATH, as described above. But since these packages are only guaranteed to be able to run then, they shouldn't persist as run-time dependencies. This isn't currently enforced, but could be in the future. + + + + + + depsBuildTarget + + + + A list of dependencies whose host platform is the new derivation's build platform, and target platform is the new derivation's target platform. This means a -1 host offset and 1 target offset from the new derivation's platforms. These are programs used at build time that produce code to run with code produced by the depending package. Most commonly, these are tools used to build the runtime or standard library that the currently-being-built compiler will inject into any code it compiles. In many cases, the currently-being-built-compiler is itself employed for that task, but when that compiler won't run (i.e. its build and host platform differ) this is not possible. Other times, the compiler relies on some other tool, like binutils, that is always built separately so that the dependency is unconditional. + + + This is a somewhat confusing concept to wrap one’s head around, and for good reason. As the only dependency type where the platform offsets are not adjacent integers, it requires thinking of a bootstrapping stage two away from the current one. It and its use-case go hand in hand and are both considered poor form: try to not need this sort of dependency, and try to avoid building standard libraries and runtimes in the same derivation as the compiler produces code using them. Instead strive to build those like a normal library, using the newly-built compiler just as a normal library would. In short, do not use this attribute unless you are packaging a compiler and are sure it is needed. + + + Since these packages are able to run at build time, they are added to the PATH, as described above. But since these packages are only guaranteed to be able to run then, they shouldn't persist as run-time dependencies. This isn't currently enforced, but could be in the future. + + + + + + depsHostHost + + + + A list of dependencies whose host and target platforms match the new derivation's host platform. This means a 0 host offset and 0 target offset from the new derivation's host platform. These are packages used at run-time to generate code also used at run-time. In practice, this would usually be tools used by compilers for macros or a metaprogramming system, or libraries used by the macros or metaprogramming code itself. It's always preferable to use a depsBuildBuild dependency in the derivation being built over a depsHostHost on the tool doing the building for this purpose. + + + + + + buildInputs + + + + A list of dependencies whose host platform and target platform match the new derivation's. This means a 0 host offset and a 1 target offset from the new derivation's host platform. This would be called depsHostTarget but for historical continuity. If the dependency doesn't care about the target platform (i.e. isn't a compiler or similar tool), put it here, rather than in depsBuildBuild. + + + These are often programs and libraries used by the new derivation at run-time, but that isn't always the case. For example, the machine code in a statically-linked library is only used at run-time, but the derivation containing the library is only needed at build-time. Even in the dynamic case, the library may also be needed at build-time to appease the linker. + + + + + + depsTargetTarget + + + + A list of dependencies whose host platform matches the new derivation's target platform. This means a 1 offset from the new derivation's platforms. These are packages that run on the target platform, e.g. the standard library or run-time deps of standard library that a compiler insists on knowing about. It's poor form in almost all cases for a package to depend on another from a future stage [future stage corresponding to positive offset]. Do not use this attribute unless you are packaging a compiler and are sure it is needed. + + + + + + depsBuildBuildPropagated + + + + The propagated equivalent of depsBuildBuild. This perhaps never ought to be used, but it is included for consistency [see below for the others]. + + + + + + propagatedNativeBuildInputs + + + + The propagated equivalent of nativeBuildInputs. This would be called depsBuildHostPropagated but for historical continuity. For example, if package Y has propagatedNativeBuildInputs = [X], and package Z has buildInputs = [Y], then package Z will be built as if it included package X in its nativeBuildInputs. If instead, package Z has nativeBuildInputs = [Y], then Z will be built as if it included X in the depsBuildBuild of package Z, because of the sum of the two -1 host offsets. + + + + + + depsBuildTargetPropagated + + + + The propagated equivalent of depsBuildTarget. This is prefixed for the same reason of alerting potential users. + + + + + + depsHostHostPropagated + + + + The propagated equivalent of depsHostHost. + + + + + + propagatedBuildInputs + + + + The propagated equivalent of buildInputs. This would be called depsHostTargetPropagated but for historical continuity. + + + + + + depsTargetTargetPropagated + + + + The propagated equivalent of depsTargetTarget. This is prefixed for the same reason of alerting potential users. + + + + +
+
+ Attributes + + + Variables affecting <literal>stdenv</literal> initialisation + + + NIX_DEBUG + + + + A natural number indicating how much information to log. If set to 1 or higher, stdenv will print moderate debugging information during the build. In particular, the gcc and ld wrapper scripts will print out the complete command line passed to the wrapped tools. If set to 6 or higher, the stdenv setup script will be run with set -x tracing. If set to 7 or higher, the gcc and ld wrapper scripts will also be run with set -x tracing. + + + + + + + Attributes affecting build properties + + + enableParallelBuilding + + + + If set to true, stdenv will pass specific flags to make and other build tools to enable parallel building with up to build-cores workers. + + + Unless set to false, some build systems with good support for parallel building including cmake, meson, and qmake will set it to true. + + + + + + + Special variables + + + passthru + + + + This is an attribute set which can be filled with arbitrary values. For example: + +passthru = { + foo = "bar"; + baz = { + value1 = 4; + value2 = 5; + }; +} + + + + Values inside it are not passed to the builder, so you can change them without triggering a rebuild. However, they can be accessed outside of a derivation directly, as if they were set inside a derivation itself, e.g. hello.baz.value1. We don't specify any usage or schema of passthru - it is meant for values that would be useful outside the derivation in other parts of a Nix expression (e.g. in other derivations). An example would be to convey some specific dependency of your derivation which contains a program with plugins support. Later, others who make derivations with plugins can use passed-through dependency to ensure that their plugin would be binary-compatible with built program. + + + + + + passthru.updateScript + + + + A script to be run by maintainers/scripts/update.nix when the package is matched. It needs to be an executable file, either on the file system: + +passthru.updateScript = ./update.sh; + + or inside the expression itself: + +passthru.updateScript = writeScript "update-zoom-us" '' + #!/usr/bin/env nix-shell + #!nix-shell -i bash -p curl pcre common-updater-scripts + + set -eu -o pipefail + + version="$(curl -sI https://zoom.us/client/latest/zoom_x86_64.tar.xz | grep -Fi 'Location:' | pcregrep -o1 '/(([0-9]\.?)+)/')" + update-source-version zoom-us "$version" +''; + + The attribute can also contain a list, a script followed by arguments to be passed to it: + +passthru.updateScript = [ ../../update.sh pname "--requested-release=unstable" ]; + + + + The script will be usually run from the root of the Nixpkgs repository but you should not rely on that. Also note that the update scripts will be run in parallel by default; you should avoid running git commit or any other commands that cannot handle that. + + + For information about how to run the updates, execute nix-shell maintainers/scripts/update.nix. + + + + +
+
+ Phases + + + The generic builder has a number of phases. Package builds are split into phases to make it easier to override specific parts of the build (e.g., unpacking the sources or installing the binaries). Furthermore, it allows a nicer presentation of build logs in the Nix build farm. + + + + Each phase can be overridden in its entirety either by setting the environment variable namePhase to a string containing some shell commands to be executed, or by redefining the shell function namePhase. The former is convenient to override a phase from the derivation, while the latter is convenient from a build script. However, typically one only wants to add some commands to a phase, e.g. by defining postInstall or preFixup, as skipping some of the default actions may have unexpected consequences. The default script for each phase is defined in the file pkgs/stdenv/generic/setup.sh. + + +
+ Controlling phases + + + There are a number of variables that control what phases are executed and in what order: + + Variables affecting phase control + + + phases + + + + Specifies the phases. You can change the order in which phases are executed, or add new phases, by setting this variable. If it’s not set, the default value is used, which is $prePhases unpackPhase patchPhase $preConfigurePhases configurePhase $preBuildPhases buildPhase checkPhase $preInstallPhases installPhase fixupPhase installCheckPhase $preDistPhases distPhase $postPhases. + + + Usually, if you just want to add a few phases, it’s more convenient to set one of the variables below (such as preInstallPhases), as you then don’t specify all the normal phases. + + + + + + prePhases + + + + Additional phases executed before any of the default phases. + + + + + + preConfigurePhases + + + + Additional phases executed just before the configure phase. + + + + + + preBuildPhases + + + + Additional phases executed just before the build phase. + + + + + + preInstallPhases + + + + Additional phases executed just before the install phase. + + + + + + preFixupPhases + + + + Additional phases executed just before the fixup phase. + + + + + + preDistPhases + + + + Additional phases executed just before the distribution phase. + + + + + + postPhases + + + + Additional phases executed after any of the default phases. + + + + + +
+ +
+ The unpack phase + + + The unpack phase is responsible for unpacking the source code of the package. The default implementation of unpackPhase unpacks the source files listed in the src environment variable to the current directory. It supports the following files by default: + + + + Tar files + + + + These can optionally be compressed using gzip (.tar.gz, .tgz or .tar.Z), bzip2 (.tar.bz2, .tbz2 or .tbz) or xz (.tar.xz, .tar.lzma or .txz). + + + + + + Zip files + + + + Zip files are unpacked using unzip. However, unzip is not in the standard environment, so you should add it to nativeBuildInputs yourself. + + + + + + Directories in the Nix store + + + + These are simply copied to the current directory. The hash part of the file name is stripped, e.g. /nix/store/1wydxgby13cz...-my-sources would be copied to my-sources. + + + + + Additional file types can be supported by setting the unpackCmd variable (see below). + + + + + + Variables controlling the unpack phase + + + srcs / src + + + + The list of source files or directories to be unpacked or copied. One of these must be set. + + + + + + sourceRoot + + + + After running unpackPhase, the generic builder changes the current directory to the directory created by unpacking the sources. If there are multiple source directories, you should set sourceRoot to the name of the intended directory. + + + + + + setSourceRoot + + + + Alternatively to setting sourceRoot, you can set setSourceRoot to a shell command to be evaluated by the unpack phase after the sources have been unpacked. This command must set sourceRoot. + + + + + + preUnpack + + + + Hook executed at the start of the unpack phase. + + + + + + postUnpack + + + + Hook executed at the end of the unpack phase. + + + + + + dontUnpack + + + + Set to true to skip the unpack phase. + + + + + + dontMakeSourcesWritable + + + + If set to 1, the unpacked sources are not made writable. By default, they are made writable to prevent problems with read-only sources. For example, copied store directories would be read-only without this. + + + + + + unpackCmd + + + + The unpack phase evaluates the string $unpackCmd for any unrecognised file. The path to the current source file is contained in the curSrc variable. + + + + +
+ +
+ The patch phase + + + The patch phase applies the list of patches defined in the patches variable. + + + + Variables controlling the patch phase + + + patches + + + + The list of patches. They must be in the format accepted by the patch command, and may optionally be compressed using gzip (.gz), bzip2 (.bz2) or xz (.xz). + + + + + + patchFlags + + + + Flags to be passed to patch. If not set, the argument is used, which causes the leading directory component to be stripped from the file names in each patch. + + + + + + prePatch + + + + Hook executed at the start of the patch phase. + + + + + + postPatch + + + + Hook executed at the end of the patch phase. + + + + +
+ +
+ The configure phase + + + The configure phase prepares the source tree for building. The default configurePhase runs ./configure (typically an Autoconf-generated script) if it exists. + + + + Variables controlling the configure phase + + + configureScript + + + + The name of the configure script. It defaults to ./configure if it exists; otherwise, the configure phase is skipped. This can actually be a command (like perl ./Configure.pl). + + + + + + configureFlags + + + + A list of strings passed as additional arguments to the configure script. + + + + + + dontConfigure + + + + Set to true to skip the configure phase. + + + + + + configureFlagsArray + + + + A shell array containing additional arguments passed to the configure script. You must use this instead of configureFlags if the arguments contain spaces. + + + + + + dontAddPrefix + + + + By default, the flag --prefix=$prefix is added to the configure flags. If this is undesirable, set this variable to true. + + + + + + prefix + + + + The prefix under which the package must be installed, passed via the option to the configure script. It defaults to . + + + + + + prefixKey + + + + The key to use when specifying the prefix. By default, this is set to as that is used by the majority of packages. + + + + + + dontAddDisableDepTrack + + + + By default, the flag --disable-dependency-tracking is added to the configure flags to speed up Automake-based builds. If this is undesirable, set this variable to true. + + + + + + dontFixLibtool + + + + By default, the configure phase applies some special hackery to all files called ltmain.sh before running the configure script in order to improve the purity of Libtool-based packages + + + It clears the sys_lib_*search_path variables in the Libtool script to prevent Libtool from using libraries in /usr/lib and such. + + + . If this is undesirable, set this variable to true. + + + + + + dontDisableStatic + + + + By default, when the configure script has , the option is added to the configure flags. + + + If this is undesirable, set this variable to true. + + + + + + configurePlatforms + + + + By default, when cross compiling, the configure script has and passed. Packages can instead pass [ "build" "host" "target" ] or a subset to control exactly which platform flags are passed. Compilers and other tools can use this to also pass the target platform. + + + Eventually these will be passed building natively as well, to improve determinism: build-time guessing, as is done today, is a risk of impurity. + + + + + + + + preConfigure + + + + Hook executed at the start of the configure phase. + + + + + + postConfigure + + + + Hook executed at the end of the configure phase. + + + + +
+ +
+ The build phase + + + The build phase is responsible for actually building the package (e.g. compiling it). The default buildPhase simply calls make if a file named Makefile, makefile or GNUmakefile exists in the current directory (or the makefile is explicitly set); otherwise it does nothing. + + + + Variables controlling the build phase + + + dontBuild + + + + Set to true to skip the build phase. + + + + + + makefile + + + + The file name of the Makefile. + + + + + + makeFlags + + + + A list of strings passed as additional flags to make. These flags are also used by the default install and check phase. For setting make flags specific to the build phase, use buildFlags (see below). + +makeFlags = [ "PREFIX=$(out)" ]; + + + + The flags are quoted in bash, but environment variables can be specified by using the make syntax. + + + + + + + + makeFlagsArray + + + + A shell array containing additional arguments passed to make. You must use this instead of makeFlags if the arguments contain spaces, e.g. + +preBuild = '' + makeFlagsArray+=(CFLAGS="-O0 -g" LDFLAGS="-lfoo -lbar") +''; + + Note that shell arrays cannot be passed through environment variables, so you cannot set makeFlagsArray in a derivation attribute (because those are passed through environment variables): you have to define them in shell code. + + + + + + buildFlags / buildFlagsArray + + + + A list of strings passed as additional flags to make. Like makeFlags and makeFlagsArray, but only used by the build phase. + + + + + + preBuild + + + + Hook executed at the start of the build phase. + + + + + + postBuild + + + + Hook executed at the end of the build phase. + + + + + + + You can set flags for make through the makeFlags variable. + + + + Before and after running make, the hooks preBuild and postBuild are called, respectively. + +
+ +
+ The check phase + + + The check phase checks whether the package was built correctly by running its test suite. The default checkPhase calls make check, but only if the doCheck variable is enabled. + + + + Variables controlling the check phase + + + doCheck + + + + Controls whether the check phase is executed. By default it is skipped, but if doCheck is set to true, the check phase is usually executed. Thus you should set +doCheck = true; + in the derivation to enable checks. The exception is cross compilation. Cross compiled builds never run tests, no matter how doCheck is set, as the newly-built program won't run on the platform used to build it. + + + + + + makeFlags / makeFlagsArray / makefile + + + + See the build phase for details. + + + + + + checkTarget + + + + The make target that runs the tests. Defaults to check. + + + + + + checkFlags / checkFlagsArray + + + + A list of strings passed as additional flags to make. Like makeFlags and makeFlagsArray, but only used by the check phase. + + + + + + checkInputs + + + + A list of dependencies used by the phase. This gets included in nativeBuildInputs when doCheck is set. + + + + + + preCheck + + + + Hook executed at the start of the check phase. + + + + + + postCheck + + + + Hook executed at the end of the check phase. + + + + +
+ +
+ The install phase + + + The install phase is responsible for installing the package in the Nix store under out. The default installPhase creates the directory $out and calls make install. + + + + Variables controlling the install phase + + + makeFlags / makeFlagsArray / makefile + + + + See the build phase for details. + + + + + + installTargets + + + + The make targets that perform the installation. Defaults to install. Example: + +installTargets = "install-bin install-doc"; + + + + + + installFlags / installFlagsArray + + + + A list of strings passed as additional flags to make. Like makeFlags and makeFlagsArray, but only used by the install phase. + + + + + + preInstall + + + + Hook executed at the start of the install phase. + + + + + + postInstall + + + + Hook executed at the end of the install phase. + + + + +
+ +
+ The fixup phase + + + The fixup phase performs some (Nix-specific) post-processing actions on the files installed under $out by the install phase. The default fixupPhase does the following: + + + + It moves the man/, doc/ and info/ subdirectories of $out to share/. + + + + + It strips libraries and executables of debug information. + + + + + On Linux, it applies the patchelf command to ELF executables and libraries to remove unused directories from the RPATH in order to prevent unnecessary runtime dependencies. + + + + + It rewrites the interpreter paths of shell scripts to paths found in PATH. E.g., /usr/bin/perl will be rewritten to /nix/store/some-perl/bin/perl found in PATH. + + + + + + + Variables controlling the fixup phase + + + dontFixup + + + + Set to true to skip the fixup phase. + + + + + + dontStrip + + + + If set, libraries and executables are not stripped. By default, they are. + + + + + + dontStripHost + + + + Like dontStrip, but only affects the strip command targetting the package's host platform. Useful when supporting cross compilation, but otherwise feel free to ignore. + + + + + + dontStripTarget + + + + Like dontStrip, but only affects the strip command targetting the packages' target platform. Useful when supporting cross compilation, but otherwise feel free to ignore. + + + + + + dontMoveSbin + + + + If set, files in $out/sbin are not moved to $out/bin. By default, they are. + + + + + + stripAllList + + + + List of directories to search for libraries and executables from which all symbols should be stripped. By default, it’s empty. Stripping all symbols is risky, since it may remove not just debug symbols but also ELF information necessary for normal execution. + + + + + + stripAllFlags + + + + Flags passed to the strip command applied to the files in the directories listed in stripAllList. Defaults to (i.e. ). + + + + + + stripDebugList + + + + List of directories to search for libraries and executables from which only debugging-related symbols should be stripped. It defaults to lib bin sbin. + + + + + + stripDebugFlags + + + + Flags passed to the strip command applied to the files in the directories listed in stripDebugList. Defaults to (i.e. ). + + + + + + dontPatchELF + + + + If set, the patchelf command is not used to remove unnecessary RPATH entries. Only applies to Linux. + + + + + + dontPatchShebangs + + + + If set, scripts starting with #! do not have their interpreter paths rewritten to paths in the Nix store. + + + + + + dontPruneLibtoolFiles + + + + If set, libtool .la files associated with shared libraries won't have their dependency_libs field cleared. + + + + + + forceShare + + + + The list of directories that must be moved from $out to $out/share. Defaults to man doc info. + + + + + + setupHook + + + + A package can export a setup hook by setting this variable. The setup hook, if defined, is copied to $out/nix-support/setup-hook. Environment variables are then substituted in it using substituteAll. + + + + + + preFixup + + + + Hook executed at the start of the fixup phase. + + + + + + postFixup + + + + Hook executed at the end of the fixup phase. + + + + + + separateDebugInfo + + + + If set to true, the standard environment will enable debug information in C/C++ builds. After installation, the debug information will be separated from the executables and stored in the output named debug. (This output is enabled automatically; you don’t need to set the outputs attribute explicitly.) To be precise, the debug information is stored in debug/lib/debug/.build-id/XX/YYYY…, where XXYYYY… is the build ID of the binary — a SHA-1 hash of the contents of the binary. Debuggers like GDB use the build ID to look up the separated debug information. + + + For example, with GDB, you can add + +set debug-file-directory ~/.nix-profile/lib/debug + + to ~/.gdbinit. GDB will then be able to find debug information installed via nix-env -i. + + + + +
+ +
+ The installCheck phase + + + The installCheck phase checks whether the package was installed correctly by running its test suite against the installed directories. The default installCheck calls make installcheck. + + + + Variables controlling the installCheck phase + + + doInstallCheck + + + + Controls whether the installCheck phase is executed. By default it is skipped, but if doInstallCheck is set to true, the installCheck phase is usually executed. Thus you should set +doInstallCheck = true; + in the derivation to enable install checks. The exception is cross compilation. Cross compiled builds never run tests, no matter how doInstallCheck is set, as the newly-built program won't run on the platform used to build it. + + + + + + installCheckTarget + + + + The make target that runs the install tests. Defaults to installcheck. + + + + + + installCheckFlags / installCheckFlagsArray + + + + A list of strings passed as additional flags to make. Like makeFlags and makeFlagsArray, but only used by the installCheck phase. + + + + + + installCheckInputs + + + + A list of dependencies used by the phase. This gets included in nativeBuildInputs when doInstallCheck is set. + + + + + + preInstallCheck + + + + Hook executed at the start of the installCheck phase. + + + + + + postInstallCheck + + + + Hook executed at the end of the installCheck phase. + + + + +
+ +
+ The distribution phase + + + The distribution phase is intended to produce a source distribution of the package. The default distPhase first calls make dist, then it copies the resulting source tarballs to $out/tarballs/. This phase is only executed if the attribute doDist is set. + + + + Variables controlling the distribution phase + + + distTarget + + + + The make target that produces the distribution. Defaults to dist. + + + + + + distFlags / distFlagsArray + + + + Additional flags passed to make. + + + + + + tarballs + + + + The names of the source distribution files to be copied to $out/tarballs/. It can contain shell wildcards. The default is *.tar.gz. + + + + + + dontCopyDist + + + + If set, no files are copied to $out/tarballs/. + + + + + + preDist + + + + Hook executed at the start of the distribution phase. + + + + + + postDist + + + + Hook executed at the end of the distribution phase. + + + + +
+
+
+ Shell functions + + + The standard environment provides a number of useful functions. + + + + + + makeWrapper executable wrapperfile args + + + + Constructs a wrapper for a program with various possible arguments. For example: + +# adds `FOOBAR=baz` to `$out/bin/foo`’s environment +makeWrapper $out/bin/foo $wrapperfile --set FOOBAR baz + +# prefixes the binary paths of `hello` and `git` +# Be advised that paths often should be patched in directly +# (via string replacements or in `configurePhase`). +makeWrapper $out/bin/foo $wrapperfile --prefix PATH : ${lib.makeBinPath [ hello git ]} + + There’s many more kinds of arguments, they are documented in nixpkgs/pkgs/build-support/setup-hooks/make-wrapper.sh. + + + wrapProgram is a convenience function you probably want to use most of the time. + + + + + + substitute infile outfile subs + + + + Performs string substitution on the contents of infile, writing the result to outfile. The substitutions in subs are of the following form: + + + + s1 s2 + + + + Replace every occurrence of the string s1 by s2. + + + + + + varName + + + + Replace every occurrence of @varName@ by the contents of the environment variable varName. This is useful for generating files from templates, using @...@ in the template as placeholders. + + + + + + varName s + + + + Replace every occurrence of @varName@ by the string s. + + + + + + + Example: + +substitute ./foo.in ./foo.out \ + --replace /usr/bin/bar $bar/bin/bar \ + --replace "a string containing spaces" "some other text" \ + --subst-var someVar + + + + substitute is implemented using the replace command. Unlike with the sed command, you don’t have to worry about escaping special characters. It supports performing substitutions on binary files (such as executables), though there you’ll probably want to make sure that the replacement string is as long as the replaced string. + + + + + + substituteInPlace file subs + + + + Like substitute, but performs the substitutions in place on the file file. + + + + + + substituteAll infile outfile + + + + Replaces every occurrence of @varName@, where varName is any environment variable, in infile, writing the result to outfile. For instance, if infile has the contents + +#! @bash@/bin/sh +PATH=@coreutils@/bin +echo @foo@ + + and the environment contains bash=/nix/store/bmwp0q28cf21...-bash-3.2-p39 and coreutils=/nix/store/68afga4khv0w...-coreutils-6.12, but does not contain the variable foo, then the output will be + +#! /nix/store/bmwp0q28cf21...-bash-3.2-p39/bin/sh +PATH=/nix/store/68afga4khv0w...-coreutils-6.12/bin +echo @foo@ + + That is, no substitution is performed for undefined variables. + + + Environment variables that start with an uppercase letter or an underscore are filtered out, to prevent global variables (like HOME) or private variables (like __ETC_PROFILE_DONE) from accidentally getting substituted. The variables also have to be valid bash “names”, as defined in the bash manpage (alphanumeric or _, must not start with a number). + + + + + + substituteAllInPlace file + + + + Like substituteAll, but performs the substitutions in place on the file file. + + + + + + stripHash path + + + + Strips the directory and hash part of a store path, outputting the name part to stdout. For example: + +# prints coreutils-8.24 +stripHash "/nix/store/9s9r019176g7cvn2nvcw41gsp862y6b4-coreutils-8.24" + + If you wish to store the result in another variable, then the following idiom may be useful: + +name="/nix/store/9s9r019176g7cvn2nvcw41gsp862y6b4-coreutils-8.24" +someVar=$(stripHash $name) + + + + + + + wrapProgram executable makeWrapperArgs + + + + Convenience function for makeWrapper that automatically creates a sane wrapper file. It takes all the same arguments as makeWrapper, except for --argv0. + + + It cannot be applied multiple times, since it will overwrite the wrapper file. + + + + +
+
+ Package setup hooks + + + Nix itself considers a build-time dependency as merely something that should previously be built and accessible at build time—packages themselves are on their own to perform any additional setup. In most cases, that is fine, and the downstream derivation can deal with its own dependencies. But for a few common tasks, that would result in almost every package doing the same sort of setup work—depending not on the package itself, but entirely on which dependencies were used. + + + + In order to alleviate this burden, the setup hook mechanism was written, where any package can include a shell script that [by convention rather than enforcement by Nix], any downstream reverse-dependency will source as part of its build process. That allows the downstream dependency to merely specify its dependencies, and lets those dependencies effectively initialize themselves. No boilerplate mirroring the list of dependencies is needed. + + + + The setup hook mechanism is a bit of a sledgehammer though: a powerful feature with a broad and indiscriminate area of effect. The combination of its power and implicit use may be expedient, but isn't without costs. Nix itself is unchanged, but the spirit of added dependencies being effect-free is violated even if the letter isn't. For example, if a derivation path is mentioned more than once, Nix itself doesn't care and simply makes sure the dependency derivation is already built just the same—depending is just needing something to exist, and needing is idempotent. However, a dependency specified twice will have its setup hook run twice, and that could easily change the build environment (though a well-written setup hook will therefore strive to be idempotent so this is in fact not observable). More broadly, setup hooks are anti-modular in that multiple dependencies, whether the same or different, should not interfere and yet their setup hooks may well do so. + + + + The most typical use of the setup hook is actually to add other hooks which are then run (i.e. after all the setup hooks) on each dependency. For example, the C compiler wrapper's setup hook feeds itself flags for each dependency that contains relevant libraries and headers. This is done by defining a bash function, and appending its name to one of envBuildBuildHooks`, envBuildHostHooks`, envBuildTargetHooks`, envHostHostHooks`, envHostTargetHooks`, or envTargetTargetHooks`. These 6 bash variables correspond to the 6 sorts of dependencies by platform (there's 12 total but we ignore the propagated/non-propagated axis). + + + + Packages adding a hook should not hard code a specific hook, but rather choose a variable relative to how they are included. Returning to the C compiler wrapper example, if the wrapper itself is an n dependency, then it only wants to accumulate flags from n + 1 dependencies, as only those ones match the compiler's target platform. The hostOffset variable is defined with the current dependency's host offset targetOffset with its target offset, before its setup hook is sourced. Additionally, since most environment hooks don't care about the target platform, that means the setup hook can append to the right bash array by doing something like + +addEnvHooks "$hostOffset" myBashFunction + + + + + The existence of setups hooks has long been documented and packages inside Nixpkgs are free to use this mechanism. Other packages, however, should not rely on these mechanisms not changing between Nixpkgs versions. Because of the existing issues with this system, there's little benefit from mandating it be stable for any period of time. + + + + First, let’s cover some setup hooks that are part of Nixpkgs default stdenv. This means that they are run for every package built using stdenv.mkDerivation. Some of these are platform specific, so they may run on Linux but not Darwin or vice-versa. + + + + move-docs.sh + + + + This setup hook moves any installed documentation to the /share subdirectory directory. This includes the man, doc and info directories. This is needed for legacy programs that do not know how to use the share subdirectory. + + + + + + compress-man-pages.sh + + + + This setup hook compresses any man pages that have been installed. The compression is done using the gzip program. This helps to reduce the installed size of packages. + + + + + + strip.sh + + + + This runs the strip command on installed binaries and libraries. This removes unnecessary information like debug symbols when they are not needed. This also helps to reduce the installed size of packages. + + + + + + patch-shebangs.sh + + + + This setup hook patches installed scripts to use the full path to the shebang interpreter. A shebang interpreter is the first commented line of a script telling the operating system which program will run the script (e.g #!/bin/bash). In Nix, we want an exact path to that interpreter to be used. This often replaces /bin/sh with a path in the Nix store. + + + + + + audit-tmpdir.sh + + + + This verifies that no references are left from the install binaries to the directory used to build those binaries. This ensures that the binaries do not need things outside the Nix store. This is currently supported in Linux only. + + + + + + multiple-outputs.sh + + + + This setup hook adds configure flags that tell packages to install files into any one of the proper outputs listed in outputs. This behavior can be turned off by setting setOutputFlags to false in the derivation environment. See for more information. + + + + + + move-sbin.sh + + + + This setup hook moves any binaries installed in the sbin subdirectory into bin. In addition, a link is provided from sbin to bin for compatibility. + + + + + + move-lib64.sh + + + + This setup hook moves any libraries installed in the lib64 subdirectory into lib. In addition, a link is provided from lib64 to lib for compatibility. + + + + + + set-source-date-epoch-to-latest.sh + + + + This sets SOURCE_DATE_EPOCH to the modification time of the most recent file. + + + + + + Bintools Wrapper + + + + The Bintools Wrapper wraps the binary utilities for a bunch of miscellaneous purposes. These are GNU Binutils when targetting Linux, and a mix of cctools and GNU binutils for Darwin. [The "Bintools" name is supposed to be a compromise between "Binutils" and "cctools" not denoting any specific implementation.] Specifically, the underlying bintools package, and a C standard library (glibc or Darwin's libSystem, just for the dynamic loader) are all fed in, and dependency finding, hardening (see below), and purity checks for each are handled by the Bintools Wrapper. Packages typically depend on CC Wrapper, which in turn (at run time) depends on the Bintools Wrapper. + + + The Bintools Wrapper was only just recently split off from CC Wrapper, so the division of labor is still being worked out. For example, it shouldn't care about the C standard library, but just take a derivation with the dynamic loader (which happens to be the glibc on linux). Dependency finding however is a task both wrappers will continue to need to share, and probably the most important to understand. It is currently accomplished by collecting directories of host-platform dependencies (i.e. buildInputs and nativeBuildInputs) in environment variables. The Bintools Wrapper's setup hook causes any lib and lib64 subdirectories to be added to NIX_LDFLAGS. Since the CC Wrapper and the Bintools Wrapper use the same strategy, most of the Bintools Wrapper code is sparsely commented and refers to the CC Wrapper. But the CC Wrapper's code, by contrast, has quite lengthy comments. The Bintools Wrapper merely cites those, rather than repeating them, to avoid falling out of sync. + + + A final task of the setup hook is defining a number of standard environment variables to tell build systems which executables fulfill which purpose. They are defined to just be the base name of the tools, under the assumption that the Bintools Wrapper's binaries will be on the path. Firstly, this helps poorly-written packages, e.g. ones that look for just gcc when CC isn't defined yet clang is to be used. Secondly, this helps packages not get confused when cross-compiling, in which case multiple Bintools Wrappers may simultaneously be in use. + + + Each wrapper targets a single platform, so if binaries for multiple platforms are needed, the underlying binaries must be wrapped multiple times. As this is a property of the wrapper itself, the multiple wrappings are needed whether or not the same underlying binaries can target multiple platforms. + + + BUILD_- and TARGET_-prefixed versions of the normal environment variable are defined for additional Bintools Wrappers, properly disambiguating them. + + + A problem with this final task is that the Bintools Wrapper is honest and defines LD as ld. Most packages, however, firstly use the C compiler for linking, secondly use LD anyways, defining it as the C compiler, and thirdly, only so define LD when it is undefined as a fallback. This triple-threat means Bintools Wrapper will break those packages, as LD is already defined as the actual linker which the package won't override yet doesn't want to use. The workaround is to define, just for the problematic package, LD as the C compiler. A good way to do this would be preConfigure = "LD=$CC". + + + + + + CC Wrapper + + + + The CC Wrapper wraps a C toolchain for a bunch of miscellaneous purposes. Specifically, a C compiler (GCC or Clang), wrapped binary tools, and a C standard library (glibc or Darwin's libSystem, just for the dynamic loader) are all fed in, and dependency finding, hardening (see below), and purity checks for each are handled by the CC Wrapper. Packages typically depend on the CC Wrapper, which in turn (at run-time) depends on the Bintools Wrapper. + + + Dependency finding is undoubtedly the main task of the CC Wrapper. This works just like the Bintools Wrapper, except that any include subdirectory of any relevant dependency is added to NIX_CFLAGS_COMPILE. The setup hook itself contains some lengthy comments describing the exact convoluted mechanism by which this is accomplished. + + + Similarly, the CC Wrapper follows the Bintools Wrapper in defining standard environment variables with the names of the tools it wraps, for the same reasons described above. Importantly, while it includes a cc symlink to the c compiler for portability, the CC will be defined using the compiler's "real name" (i.e. gcc or clang). This helps lousy build systems that inspect on the name of the compiler rather than run it. + + + + + + + + Here are some more packages that provide a setup hook. Since the list of hooks is extensible, this is not an exhaustive list. The mechanism is only to be used as a last resort, so it might cover most uses. + + + + Perl + + + + Adds the lib/site_perl subdirectory of each build input to the PERL5LIB environment variable. For instance, if buildInputs contains Perl, then the lib/site_perl subdirectory of each input is added to the PERL5LIB environment variable. + + + + + + Python + + + + Adds the lib/${python.libPrefix}/site-packages subdirectory of each build input to the PYTHONPATH environment variable. + + + + + + pkg-config + + + + Adds the lib/pkgconfig and share/pkgconfig subdirectories of each build input to the PKG_CONFIG_PATH environment variable. + + + + + + Automake + + + + Adds the share/aclocal subdirectory of each build input to the ACLOCAL_PATH environment variable. + + + + + + Autoconf + + + + The autoreconfHook derivation adds autoreconfPhase, which runs autoreconf, libtoolize and automake, essentially preparing the configure script in autotools-based builds. Most autotools-based packages come with the configure script pre-generated, but this hook is necessary for a few packages and when you need to patch the package’s configure scripts. + + + + + + libxml2 + + + + Adds every file named catalog.xml found under the xml/dtd and xml/xsl subdirectories of each build input to the XML_CATALOG_FILES environment variable. + + + + + + teTeX / TeX Live + + + + Adds the share/texmf-nix subdirectory of each build input to the TEXINPUTS environment variable. + + + + + + Qt 4 + + + + Sets the QTDIR environment variable to Qt’s path. + + + + + + gdk-pixbuf + + + + Exports GDK_PIXBUF_MODULE_FILE environment variable to the builder. Add librsvg package to buildInputs to get svg support. + + + + + + GHC + + + + Creates a temporary package database and registers every Haskell build input in it (TODO: how?). + + + + + + GNOME platform + + + + Hooks related to GNOME platform and related libraries like GLib, GTK and GStreamer are described in . + + + + + + autoPatchelfHook + + + + This is a special setup hook which helps in packaging proprietary software in that it automatically tries to find missing shared library dependencies of ELF files based on the given buildInputs and nativeBuildInputs. + + + You can also specify a runtimeDependencies environment variable which lists dependencies that are unconditionally added to all executables. + + + This is useful for programs that use + dlopen + 3 to load libraries at runtime. + + + In certain situations you may want to run the main command (autoPatchelf) of the setup hook on a file or a set of directories instead of unconditionally patching all outputs. This can be done by setting the dontAutoPatchelf environment variable to a non-empty value. + + + The autoPatchelf command also recognizes a --no-recurse command line flag, which prevents it from recursing into subdirectories. + + + + + + breakpointHook + + + + This hook will make a build pause instead of stopping when a failure happens. It prevents nix from cleaning up the build environment immediately and allows the user to attach to a build environment using the cntr command. Upon build error it will print instructions on how to use cntr, which can be used to enter the environment for debugging. Installing cntr and running the command will provide shell access to the build sandbox of failed build. At /var/lib/cntr the sandboxed filesystem is mounted. All commands and files of the system are still accessible within the shell. To execute commands from the sandbox use the cntr exec subcommand. cntr is only supported on Linux-based platforms. To use it first add cntr to your environment.systemPackages on NixOS or alternatively to the root user on non-NixOS systems. Then in the package that is supposed to be inspected, add breakpointHook to nativeBuildInputs. + +nativeBuildInputs = [ breakpointHook ]; + + When a build failure happens there will be an instruction printed that shows how to attach with cntr to the build sandbox. + + + Caution with remote builds + + This won't work with remote builds as the build environment is on a different machine and can't be accessed by cntr. Remote builds can be turned off by setting --option builders '' for nix-build or --builders '' for nix build. + + + + + + + installShellFiles + + + + This hook helps with installing manpages and shell completion files. It exposes 2 shell functions installManPage and installShellCompletion that can be used from your postInstall hook. + + + The installManPage function takes one or more paths to manpages to install. The manpages must have a section suffix, and may optionally be compressed (with .gz suffix). This function will place them into the correct directory. + + + The installShellCompletion function takes one or more paths to shell completion files. By default it will autodetect the shell type from the completion file extension, but you may also specify it by passing one of --bash, --fish, or --zsh. These flags apply to all paths listed after them (up until another shell flag is given). Each path may also have a custom installation name provided by providing a flag --name NAME before the path. If this flag is not provided, zsh completions will be renamed automatically such that foobar.zsh becomes _foobar. + +nativeBuildInputs = [ installShellFiles ]; +postInstall = '' + installManPage doc/foobar.1 doc/barfoo.3 + # explicit behavior + installShellCompletion --bash --name foobar.bash share/completions.bash + installShellCompletion --fish --name foobar.fish share/completions.fish + installShellCompletion --zsh --name _foobar share/completions.zsh + # implicit behavior + installShellCompletion share/completions/foobar.{bash,fish,zsh} +''; + + + + + + + libiconv, libintl + + + + A few libraries automatically add to NIX_LDFLAGS their library, making their symbols automatically available to the linker. This includes libiconv and libintl (gettext). This is done to provide compatibility between GNU Linux, where libiconv and libintl are bundled in, and other systems where that might not be the case. Sometimes, this behavior is not desired. To disable this behavior, set dontAddExtraLibs. + + + + + + cmake + + + + Overrides the default configure phase to run the CMake command. By default, we use the Make generator of CMake. In addition, dependencies are added automatically to CMAKE_PREFIX_PATH so that packages are correctly detected by CMake. Some additional flags are passed in to give similar behavior to configure-based packages. You can disable this hook’s behavior by setting configurePhase to a custom value, or by setting dontUseCmakeConfigure. cmakeFlags controls flags passed only to CMake. By default, parallel building is enabled as CMake supports parallel building almost everywhere. When Ninja is also in use, CMake will detect that and use the ninja generator. + + + + + + xcbuildHook + + + + Overrides the build and install phases to run the “xcbuild” command. This hook is needed when a project only comes with build files for the XCode build system. You can disable this behavior by setting buildPhase and configurePhase to a custom value. xcbuildFlags controls flags passed only to xcbuild. + + + + + + Meson + + + + Overrides the configure phase to run meson to generate Ninja files. To run these files, you should accompany Meson with ninja. By default, enableParallelBuilding is enabled as Meson supports parallel building almost everywhere. + + + Variables controlling Meson + + + mesonFlags + + + + Controls the flags passed to meson. + + + + + + mesonBuildType + + + + Which --buildtype to pass to Meson. We default to plain. + + + + + + mesonAutoFeatures + + + + What value to set -Dauto_features= to. We default to enabled. + + + + + + mesonWrapMode + + + + What value to set -Dwrap_mode= to. We default to nodownload as we disallow network access. + + + + + + dontUseMesonConfigure + + + + Disables using Meson's configurePhase. + + + + + + + + + ninja + + + + Overrides the build, install, and check phase to run ninja instead of make. You can disable this behavior with the dontUseNinjaBuild, dontUseNinjaInstall, and dontUseNinjaCheck, respectively. Parallel building is enabled by default in Ninja. + + + + + + unzip + + + + This setup hook will allow you to unzip .zip files specified in $src. There are many similar packages like unrar, undmg, etc. + + + + + + wafHook + + + + Overrides the configure, build, and install phases. This will run the "waf" script used by many projects. If wafPath (default ./waf) doesn’t exist, it will copy the version of waf available in Nixpkgs. wafFlags can be used to pass flags to the waf script. + + + + + + scons + + + + Overrides the build, install, and check phases. This uses the scons build system as a replacement for make. scons does not provide a configure phase, so everything is managed at build and install time. + + + + + +
+
+ Purity in Nixpkgs + + + [measures taken to prevent dependencies on packages outside the store, and what you can do to prevent them] + + + + GCC doesn't search in locations such as /usr/include. In fact, attempts to add such directories through the flag are filtered out. Likewise, the linker (from GNU binutils) doesn't search in standard locations such as /usr/lib. Programs built on Linux are linked against a GNU C Library that likewise doesn't search in the default system locations. + +
+
+ Hardening in Nixpkgs + + + There are flags available to harden packages at compile or link-time. These can be toggled using the stdenv.mkDerivation parameters hardeningDisable and hardeningEnable. + + + + Both parameters take a list of flags as strings. The special "all" flag can be passed to hardeningDisable to turn off all hardening. These flags can also be used as environment variables for testing or development purposes. + + + + The following flags are enabled by default and might require disabling with hardeningDisable if the program to package is incompatible. + + + + + + format + + + + Adds the compiler options. At present, this warns about calls to printf and scanf functions where the format string is not a string literal and there are no format arguments, as in printf(foo);. This may be a security hole if the format string came from untrusted input and contains %n. + + + This needs to be turned off or fixed for errors similar to: + + +/tmp/nix-build-zynaddsubfx-2.5.2.drv-0/zynaddsubfx-2.5.2/src/UI/guimain.cpp:571:28: error: format not a string literal and no format arguments [-Werror=format-security] + printf(help_message); + ^ +cc1plus: some warnings being treated as errors + + + + + + stackprotector + + + + Adds the compiler options. This adds safety checks against stack overwrites rendering many potential code injection attacks into aborting situations. In the best case this turns code injection vulnerabilities into denial of service or into non-issues (depending on the application). + + + This needs to be turned off or fixed for errors similar to: + + +bin/blib.a(bios_console.o): In function `bios_handle_cup': +/tmp/nix-build-ipxe-20141124-5cbdc41.drv-0/ipxe-5cbdc41/src/arch/i386/firmware/pcbios/bios_console.c:86: undefined reference to `__stack_chk_fail' + + + + + + fortify + + + + Adds the compiler options. During code generation the compiler knows a great deal of information about buffer sizes (where possible), and attempts to replace insecure unlimited length buffer function calls with length-limited ones. This is especially useful for old, crufty code. Additionally, format strings in writable memory that contain '%n' are blocked. If an application depends on such a format string, it will need to be worked around. + + + Additionally, some warnings are enabled which might trigger build failures if compiler warnings are treated as errors in the package build. In this case, set to . + + + This needs to be turned off or fixed for errors similar to: + + +malloc.c:404:15: error: return type is an incomplete type +malloc.c:410:19: error: storage size of 'ms' isn't known + + +strdup.h:22:1: error: expected identifier or '(' before '__extension__' + + +strsep.c:65:23: error: register name not specified for 'delim' + + +installwatch.c:3751:5: error: conflicting types for '__open_2' + + +fcntl2.h:50:4: error: call to '__open_missing_mode' declared with attribute error: open with O_CREAT or O_TMPFILE in second argument needs 3 arguments + + + + + + pic + + + + Adds the compiler options. This options adds support for position independent code in shared libraries and thus making ASLR possible. + + + Most notably, the Linux kernel, kernel modules and other code not running in an operating system environment like boot loaders won't build with PIC enabled. The compiler will is most cases complain that PIC is not supported for a specific build. + + + This needs to be turned off or fixed for assembler errors similar to: + + +ccbLfRgg.s: Assembler messages: +ccbLfRgg.s:33: Error: missing or invalid displacement expression `private_key_len@GOTOFF' + + + + + + strictoverflow + + + + Signed integer overflow is undefined behaviour according to the C standard. If it happens, it is an error in the program as it should check for overflow before it can happen, not afterwards. GCC provides built-in functions to perform arithmetic with overflow checking, which are correct and faster than any custom implementation. As a workaround, the option makes gcc behave as if signed integer overflows were defined. + + + This flag should not trigger any build or runtime errors. + + + + + + relro + + + + Adds the linker option. During program load, several ELF memory sections need to be written to by the linker, but can be turned read-only before turning over control to the program. This prevents some GOT (and .dtors) overwrite attacks, but at least the part of the GOT used by the dynamic linker (.got.plt) is still vulnerable. + + + This flag can break dynamic shared object loading. For instance, the module systems of Xorg and OpenCV are incompatible with this flag. In almost all cases the bindnow flag must also be disabled and incompatible programs typically fail with similar errors at runtime. + + + + + + bindnow + + + + Adds the linker option. During program load, all dynamic symbols are resolved, allowing for the complete GOT to be marked read-only (due to relro). This prevents GOT overwrite attacks. For very large applications, this can incur some performance loss during initial load while symbols are resolved, but this shouldn't be an issue for daemons. + + + This flag can break dynamic shared object loading. For instance, the module systems of Xorg and PHP are incompatible with this flag. Programs incompatible with this flag often fail at runtime due to missing symbols, like: + + +intel_drv.so: undefined symbol: vgaHWFreeHWRec + + + + + + + The following flags are disabled by default and should be enabled with hardeningEnable for packages that take untrusted input like network services. + + + + + + pie + + + + Adds the compiler and linker options. Position Independent Executables are needed to take advantage of Address Space Layout Randomization, supported by modern kernel versions. While ASLR can already be enforced for data areas in the stack and heap (brk and mmap), the code areas must be compiled as position-independent. Shared libraries already do this with the pic flag, so they gain ASLR automatically, but binary .text regions need to be build with pie to gain ASLR. When this happens, ROP attacks are much harder since there are no static locations to bounce off of during a memory corruption attack. + + + + + + + For more in-depth information on these hardening flags and hardening in general, refer to the Debian Wiki, Ubuntu Wiki, Gentoo Wiki, and the Arch Wiki. + +
+
-- cgit 1.4.1 From 6f7b4b9ee88b0172bf0ab791dfd6c83565ab2df4 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Wed, 30 Oct 2019 10:39:04 +0100 Subject: nixpkgs manual: move using chapters into one folder --- doc/configuration.xml | 449 -------------------------------------------- doc/manual.xml | 6 +- doc/overlays.xml | 140 -------------- doc/overrides.xml | 151 --------------- doc/using/configuration.xml | 449 ++++++++++++++++++++++++++++++++++++++++++++ doc/using/overlays.xml | 140 ++++++++++++++ doc/using/overrides.xml | 151 +++++++++++++++ 7 files changed, 743 insertions(+), 743 deletions(-) delete mode 100644 doc/configuration.xml delete mode 100644 doc/overlays.xml delete mode 100644 doc/overrides.xml create mode 100644 doc/using/configuration.xml create mode 100644 doc/using/overlays.xml create mode 100644 doc/using/overrides.xml (limited to 'doc') diff --git a/doc/configuration.xml b/doc/configuration.xml deleted file mode 100644 index a68ae739f52e7..0000000000000 --- a/doc/configuration.xml +++ /dev/null @@ -1,449 +0,0 @@ - - Global configuration - - Nix comes with certain defaults about what packages can and cannot be installed, based on a package's metadata. By default, Nix will prevent installation if any of the following criteria are true: - - - - - The package is thought to be broken, and has had its meta.broken set to true. - - - - - The package isn't intended to run on the given system, as none of its meta.platforms match the given system. - - - - - The package's meta.license is set to a license which is considered to be unfree. - - - - - The package has known security vulnerabilities but has not or can not be updated for some reason, and a list of issues has been entered in to the package's meta.knownVulnerabilities. - - - - - Note that all this is checked during evaluation already, and the check includes any package that is evaluated. In particular, all build-time dependencies are checked. nix-env -qa will (attempt to) hide any packages that would be refused. - - - Each of these criteria can be altered in the nixpkgs configuration. - - - The nixpkgs configuration for a NixOS system is set in the configuration.nix, as in the following example: - -{ - nixpkgs.config = { - allowUnfree = true; - }; -} - - However, this does not allow unfree software for individual users. Their configurations are managed separately. - - - A user's nixpkgs configuration is stored in a user-specific configuration file located at ~/.config/nixpkgs/config.nix. For example: - -{ - allowUnfree = true; -} - - - - Note that we are not able to test or build unfree software on Hydra due to policy. Most unfree licenses prohibit us from either executing or distributing the software. - -
- Installing broken packages - - - There are two ways to try compiling a package which has been marked as broken. - - - - - - For allowing the build of a broken package once, you can use an environment variable for a single invocation of the nix tools: -$ export NIXPKGS_ALLOW_BROKEN=1 - - - - - For permanently allowing broken packages to be built, you may add allowBroken = true; to your user's configuration file, like this: - -{ - allowBroken = true; -} - - - - -
-
- Installing packages on unsupported systems - - - There are also two ways to try compiling a package which has been marked as unsuported for the given system. - - - - - - For allowing the build of a broken package once, you can use an environment variable for a single invocation of the nix tools: -$ export NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM=1 - - - - - For permanently allowing broken packages to be built, you may add allowUnsupportedSystem = true; to your user's configuration file, like this: - -{ - allowUnsupportedSystem = true; -} - - - - - - - The difference between a package being unsupported on some system and being broken is admittedly a bit fuzzy. If a program ought to work on a certain platform, but doesn't, the platform should be included in meta.platforms, but marked as broken with e.g. meta.broken = !hostPlatform.isWindows. Of course, this begs the question of what "ought" means exactly. That is left to the package maintainer. - -
-
- Installing unfree packages - - - There are several ways to tweak how Nix handles a package which has been marked as unfree. - - - - - - To temporarily allow all unfree packages, you can use an environment variable for a single invocation of the nix tools: -$ export NIXPKGS_ALLOW_UNFREE=1 - - - - - It is possible to permanently allow individual unfree packages, while still blocking unfree packages by default using the allowUnfreePredicate configuration option in the user configuration file. - - - This option is a function which accepts a package as a parameter, and returns a boolean. The following example configuration accepts a package and always returns false: - -{ - allowUnfreePredicate = (pkg: false); -} - - - - For a more useful example, try the following. This configuration only allows unfree packages named flash player and visual studio code: - -{ - allowUnfreePredicate = (pkg: builtins.elem - (builtins.parseDrvName pkg.name).name [ - "flashplayer" - "vscode" - ]); -} - - - - - - It is also possible to whitelist and blacklist licenses that are specifically acceptable or not acceptable, using whitelistedLicenses and blacklistedLicenses, respectively. - - - The following example configuration whitelists the licenses amd and wtfpl: - -{ - whitelistedLicenses = with stdenv.lib.licenses; [ amd wtfpl ]; -} - - - - The following example configuration blacklists the gpl3 and agpl3 licenses: - -{ - blacklistedLicenses = with stdenv.lib.licenses; [ agpl3 gpl3 ]; -} - - - - - - - A complete list of licenses can be found in the file lib/licenses.nix of the nixpkgs tree. - -
-
- Installing insecure packages - - - There are several ways to tweak how Nix handles a package which has been marked as insecure. - - - - - - To temporarily allow all insecure packages, you can use an environment variable for a single invocation of the nix tools: -$ export NIXPKGS_ALLOW_INSECURE=1 - - - - - It is possible to permanently allow individual insecure packages, while still blocking other insecure packages by default using the permittedInsecurePackages configuration option in the user configuration file. - - - The following example configuration permits the installation of the hypothetically insecure package hello, version 1.2.3: - -{ - permittedInsecurePackages = [ - "hello-1.2.3" - ]; -} - - - - - - It is also possible to create a custom policy around which insecure packages to allow and deny, by overriding the allowInsecurePredicate configuration option. - - - The allowInsecurePredicate option is a function which accepts a package and returns a boolean, much like allowUnfreePredicate. - - - The following configuration example only allows insecure packages with very short names: - -{ - allowInsecurePredicate = (pkg: (builtins.stringLength (builtins.parseDrvName pkg.name).name) <= 5); -} - - - - Note that permittedInsecurePackages is only checked if allowInsecurePredicate is not specified. - - - -
- -
- Modify packages via <literal>packageOverrides</literal> - - - You can define a function called packageOverrides in your local ~/.config/nixpkgs/config.nix to override Nix packages. It must be a function that takes pkgs as an argument and returns a modified set of packages. - -{ - packageOverrides = pkgs: rec { - foo = pkgs.foo.override { ... }; - }; -} - - -
-
- Declarative Package Management - -
- Build an environment - - - Using packageOverrides, it is possible to manage packages declaratively. This means that we can list all of our desired packages within a declarative Nix expression. For example, to have aspell, bc, ffmpeg, coreutils, gdb, nixUnstable, emscripten, jq, nox, and silver-searcher, we could use the following in ~/.config/nixpkgs/config.nix: - - - -{ - packageOverrides = pkgs: with pkgs; { - myPackages = pkgs.buildEnv { - name = "my-packages"; - paths = [ - aspell - bc - coreutils - gdb - ffmpeg - nixUnstable - emscripten - jq - nox - silver-searcher - ]; - }; - }; -} - - - - To install it into our environment, you can just run nix-env -iA nixpkgs.myPackages. If you want to load the packages to be built from a working copy of nixpkgs you just run nix-env -f. -iA myPackages. To explore what's been installed, just look through ~/.nix-profile/. You can see that a lot of stuff has been installed. Some of this stuff is useful some of it isn't. Let's tell Nixpkgs to only link the stuff that we want: - - - -{ - packageOverrides = pkgs: with pkgs; { - myPackages = pkgs.buildEnv { - name = "my-packages"; - paths = [ - aspell - bc - coreutils - gdb - ffmpeg - nixUnstable - emscripten - jq - nox - silver-searcher - ]; - pathsToLink = [ "/share" "/bin" ]; - }; - }; -} - - - - pathsToLink tells Nixpkgs to only link the paths listed which gets rid of the extra stuff in the profile. /bin and /share are good defaults for a user environment, getting rid of the clutter. If you are running on Nix on MacOS, you may want to add another path as well, /Applications, that makes GUI apps available. - -
- -
- Getting documentation - - - After building that new environment, look through ~/.nix-profile to make sure everything is there that we wanted. Discerning readers will note that some files are missing. Look inside ~/.nix-profile/share/man/man1/ to verify this. There are no man pages for any of the Nix tools! This is because some packages like Nix have multiple outputs for things like documentation (see section 4). Let's make Nix install those as well. - - - -{ - packageOverrides = pkgs: with pkgs; { - myPackages = pkgs.buildEnv { - name = "my-packages"; - paths = [ - aspell - bc - coreutils - ffmpeg - nixUnstable - emscripten - jq - nox - silver-searcher - ]; - pathsToLink = [ "/share/man" "/share/doc" "/bin" ]; - extraOutputsToInstall = [ "man" "doc" ]; - }; - }; -} - - - - This provides us with some useful documentation for using our packages. However, if we actually want those manpages to be detected by man, we need to set up our environment. This can also be managed within Nix expressions. - - - -{ - packageOverrides = pkgs: with pkgs; rec { - myProfile = writeText "my-profile" '' - export PATH=$HOME/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/sbin:/bin:/usr/sbin:/usr/bin - export MANPATH=$HOME/.nix-profile/share/man:/nix/var/nix/profiles/default/share/man:/usr/share/man - ''; - myPackages = pkgs.buildEnv { - name = "my-packages"; - paths = [ - (runCommand "profile" {} '' - mkdir -p $out/etc/profile.d - cp ${myProfile} $out/etc/profile.d/my-profile.sh - '') - aspell - bc - coreutils - ffmpeg - man - nixUnstable - emscripten - jq - nox - silver-searcher - ]; - pathsToLink = [ "/share/man" "/share/doc" "/bin" "/etc" ]; - extraOutputsToInstall = [ "man" "doc" ]; - }; - }; -} - - - - For this to work fully, you must also have this script sourced when you are logged in. Try adding something like this to your ~/.profile file: - - - -#!/bin/sh -if [ -d $HOME/.nix-profile/etc/profile.d ]; then - for i in $HOME/.nix-profile/etc/profile.d/*.sh; do - if [ -r $i ]; then - . $i - fi - done -fi - - - - Now just run source $HOME/.profile and you can starting loading man pages from your environent. - -
- -
- GNU info setup - - - Configuring GNU info is a little bit trickier than man pages. To work correctly, info needs a database to be generated. This can be done with some small modifications to our environment scripts. - - - -{ - packageOverrides = pkgs: with pkgs; rec { - myProfile = writeText "my-profile" '' - export PATH=$HOME/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/sbin:/bin:/usr/sbin:/usr/bin - export MANPATH=$HOME/.nix-profile/share/man:/nix/var/nix/profiles/default/share/man:/usr/share/man - export INFOPATH=$HOME/.nix-profile/share/info:/nix/var/nix/profiles/default/share/info:/usr/share/info - ''; - myPackages = pkgs.buildEnv { - name = "my-packages"; - paths = [ - (runCommand "profile" {} '' - mkdir -p $out/etc/profile.d - cp ${myProfile} $out/etc/profile.d/my-profile.sh - '') - aspell - bc - coreutils - ffmpeg - man - nixUnstable - emscripten - jq - nox - silver-searcher - texinfoInteractive - ]; - pathsToLink = [ "/share/man" "/share/doc" "/share/info" "/bin" "/etc" ]; - extraOutputsToInstall = [ "man" "doc" "info" ]; - postBuild = '' - if [ -x $out/bin/install-info -a -w $out/share/info ]; then - shopt -s nullglob - for i in $out/share/info/*.info $out/share/info/*.info.gz; do - $out/bin/install-info $i $out/share/info/dir - done - fi - ''; - }; - }; -} - - - - postBuild tells Nixpkgs to run a command after building the environment. In this case, install-info adds the installed info pages to dir which is GNU info's default root node. Note that texinfoInteractive is added to the environment to give the install-info command. - -
-
-
diff --git a/doc/manual.xml b/doc/manual.xml index d679b3d8bfeb0..2f78dad440dc8 100644 --- a/doc/manual.xml +++ b/doc/manual.xml @@ -8,9 +8,9 @@ Using Nixpkgs - - - + + + diff --git a/doc/overlays.xml b/doc/overlays.xml deleted file mode 100644 index 26a888368abf7..0000000000000 --- a/doc/overlays.xml +++ /dev/null @@ -1,140 +0,0 @@ - - Overlays - - This chapter describes how to extend and change Nixpkgs using overlays. Overlays are used to add layers in the fixed-point used by Nixpkgs to compose the set of all packages. - - - Nixpkgs can be configured with a list of overlays, which are applied in order. This means that the order of the overlays can be significant if multiple layers override the same package. - - -
- Installing overlays - - - The list of overlays can be set either explicitly in a Nix expression, or through <nixpkgs-overlays> or user configuration files. - - -
- Set overlays in NixOS or Nix expressions - - - On a NixOS system the value of the nixpkgs.overlays option, if present, is passed to the system Nixpkgs directly as an argument. Note that this does not affect the overlays for non-NixOS operations (e.g. nix-env), which are looked up independently. - - - - The list of overlays can be passed explicitly when importing nixpkgs, for example import <nixpkgs> { overlays = [ overlay1 overlay2 ]; }. - - - - Further overlays can be added by calling the pkgs.extend or pkgs.appendOverlays, although it is often preferable to avoid these functions, because they recompute the Nixpkgs fixpoint, which is somewhat expensive to do. - -
- -
- Install overlays via configuration lookup - - - The list of overlays is determined as follows. - - - - - - - First, if an overlays argument to the Nixpkgs function itself is given, then that is used and no path lookup will be performed. - - - - - Otherwise, if the Nix path entry <nixpkgs-overlays> exists, we look for overlays at that path, as described below. - - - See the section on NIX_PATH in the Nix manual for more details on how to set a value for <nixpkgs-overlays>. - - - - - If one of ~/.config/nixpkgs/overlays.nix and ~/.config/nixpkgs/overlays/ exists, then we look for overlays at that path, as described below. It is an error if both exist. - - - - - - - If we are looking for overlays at a path, then there are two cases: - - - - If the path is a file, then the file is imported as a Nix expression and used as the list of overlays. - - - - - If the path is a directory, then we take the content of the directory, order it lexicographically, and attempt to interpret each as an overlay by: - - - - Importing the file, if it is a .nix file. - - - - - Importing a top-level default.nix file, if it is a directory. - - - - - - - - - - Because overlays that are set in NixOS configuration do not affect non-NixOS operations such as nix-env, the overlays.nix option provides a convenient way to use the same overlays for a NixOS system configuration and user configuration: the same file can be used as overlays.nix and imported as the value of nixpkgs.overlays. - - - -
-
- -
- Defining overlays - - - Overlays are Nix functions which accept two arguments, conventionally called self and super, and return a set of packages. For example, the following is a valid overlay. - - - -self: super: - -{ - boost = super.boost.override { - python = self.python3; - }; - rr = super.callPackage ./pkgs/rr { - stdenv = self.stdenv_32bit; - }; -} - - - - The first argument (self) corresponds to the final package set. You should use this set for the dependencies of all packages specified in your overlay. For example, all the dependencies of rr in the example above come from self, as well as the overridden dependencies used in the boost override. - - - - The second argument (super) corresponds to the result of the evaluation of the previous stages of Nixpkgs. It does not contain any of the packages added by the current overlay, nor any of the following overlays. This set should be used either to refer to packages you wish to override, or to access functions defined in Nixpkgs. For example, the original recipe of boost in the above example, comes from super, as well as the callPackage function. - - - - The value returned by this function should be a set similar to pkgs/top-level/all-packages.nix, containing overridden and/or new packages. - - - - Overlays are similar to other methods for customizing Nixpkgs, in particular the packageOverrides attribute described in . Indeed, packageOverrides acts as an overlay with only the super argument. It is therefore appropriate for basic use, but overlays are more powerful and easier to distribute. - -
-
diff --git a/doc/overrides.xml b/doc/overrides.xml deleted file mode 100644 index 991e13a1b8289..0000000000000 --- a/doc/overrides.xml +++ /dev/null @@ -1,151 +0,0 @@ - - Overriding - - - Sometimes one wants to override parts of nixpkgs, e.g. derivation attributes, the results of derivations. - - - - These functions are used to make changes to packages, returning only single packages. Overlays, on the other hand, can be used to combine the overridden packages across the entire package set of Nixpkgs. - - -
- <pkg>.override - - - The function override is usually available for all the derivations in the nixpkgs expression (pkgs). - - - - It is used to override the arguments passed to a function. - - - - Example usages: -pkgs.foo.override { arg1 = val1; arg2 = val2; ... } - - -import pkgs.path { overlays = [ (self: super: { - foo = super.foo.override { barSupport = true ; }; - })]}; - - -mypkg = pkgs.callPackage ./mypkg.nix { - mydep = pkgs.mydep.override { ... }; - } - - - - - In the first example, pkgs.foo is the result of a function call with some default arguments, usually a derivation. Using pkgs.foo.override will call the same function with the given new arguments. - -
- -
- <pkg>.overrideAttrs - - - The function overrideAttrs allows overriding the attribute set passed to a stdenv.mkDerivation call, producing a new derivation based on the original one. This function is available on all derivations produced by the stdenv.mkDerivation function, which is most packages in the nixpkgs expression pkgs. - - - - Example usage: - -helloWithDebug = pkgs.hello.overrideAttrs (oldAttrs: rec { - separateDebugInfo = true; -}); - - - - - In the above example, the separateDebugInfo attribute is overridden to be true, thus building debug info for helloWithDebug, while all other attributes will be retained from the original hello package. - - - - The argument oldAttrs is conventionally used to refer to the attr set originally passed to stdenv.mkDerivation. - - - - - Note that separateDebugInfo is processed only by the stdenv.mkDerivation function, not the generated, raw Nix derivation. Thus, using overrideDerivation will not work in this case, as it overrides only the attributes of the final derivation. It is for this reason that overrideAttrs should be preferred in (almost) all cases to overrideDerivation, i.e. to allow using stdenv.mkDerivation to process input arguments, as well as the fact that it is easier to use (you can use the same attribute names you see in your Nix code, instead of the ones generated (e.g. buildInputs vs nativeBuildInputs), and it involves less typing). - - -
- -
- <pkg>.overrideDerivation - - - - You should prefer overrideAttrs in almost all cases, see its documentation for the reasons why. overrideDerivation is not deprecated and will continue to work, but is less nice to use and does not have as many abilities as overrideAttrs. - - - - - - Do not use this function in Nixpkgs as it evaluates a Derivation before modifying it, which breaks package abstraction and removes error-checking of function arguments. In addition, this evaluation-per-function application incurs a performance penalty, which can become a problem if many overrides are used. It is only intended for ad-hoc customisation, such as in ~/.config/nixpkgs/config.nix. - - - - - The function overrideDerivation creates a new derivation based on an existing one by overriding the original's attributes with the attribute set produced by the specified function. This function is available on all derivations defined using the makeOverridable function. Most standard derivation-producing functions, such as stdenv.mkDerivation, are defined using this function, which means most packages in the nixpkgs expression, pkgs, have this function. - - - - Example usage: - -mySed = pkgs.gnused.overrideDerivation (oldAttrs: { - name = "sed-4.2.2-pre"; - src = fetchurl { - url = ftp://alpha.gnu.org/gnu/sed/sed-4.2.2-pre.tar.bz2; - sha256 = "11nq06d131y4wmf3drm0yk502d2xc6n5qy82cg88rb9nqd2lj41k"; - }; - patches = []; -}); - - - - - In the above example, the name, src, and patches of the derivation will be overridden, while all other attributes will be retained from the original derivation. - - - - The argument oldAttrs is used to refer to the attribute set of the original derivation. - - - - - A package's attributes are evaluated *before* being modified by the overrideDerivation function. For example, the name attribute reference in url = "mirror://gnu/hello/${name}.tar.gz"; is filled-in *before* the overrideDerivation function modifies the attribute set. This means that overriding the name attribute, in this example, *will not* change the value of the url attribute. Instead, we need to override both the name *and* url attributes. - - -
- -
- lib.makeOverridable - - - The function lib.makeOverridable is used to make the result of a function easily customizable. This utility only makes sense for functions that accept an argument set and return an attribute set. - - - - Example usage: - -f = { a, b }: { result = a+b; }; -c = lib.makeOverridable f { a = 1; b = 2; }; - - - - - The variable c is the value of the f function applied with some default arguments. Hence the value of c.result is 3, in this example. - - - - The variable c however also has some additional functions, like c.override which can be used to override the default arguments. In this example the value of (c.override { a = 4; }).result is 6. - -
-
diff --git a/doc/using/configuration.xml b/doc/using/configuration.xml new file mode 100644 index 0000000000000..a68ae739f52e7 --- /dev/null +++ b/doc/using/configuration.xml @@ -0,0 +1,449 @@ + + Global configuration + + Nix comes with certain defaults about what packages can and cannot be installed, based on a package's metadata. By default, Nix will prevent installation if any of the following criteria are true: + + + + + The package is thought to be broken, and has had its meta.broken set to true. + + + + + The package isn't intended to run on the given system, as none of its meta.platforms match the given system. + + + + + The package's meta.license is set to a license which is considered to be unfree. + + + + + The package has known security vulnerabilities but has not or can not be updated for some reason, and a list of issues has been entered in to the package's meta.knownVulnerabilities. + + + + + Note that all this is checked during evaluation already, and the check includes any package that is evaluated. In particular, all build-time dependencies are checked. nix-env -qa will (attempt to) hide any packages that would be refused. + + + Each of these criteria can be altered in the nixpkgs configuration. + + + The nixpkgs configuration for a NixOS system is set in the configuration.nix, as in the following example: + +{ + nixpkgs.config = { + allowUnfree = true; + }; +} + + However, this does not allow unfree software for individual users. Their configurations are managed separately. + + + A user's nixpkgs configuration is stored in a user-specific configuration file located at ~/.config/nixpkgs/config.nix. For example: + +{ + allowUnfree = true; +} + + + + Note that we are not able to test or build unfree software on Hydra due to policy. Most unfree licenses prohibit us from either executing or distributing the software. + +
+ Installing broken packages + + + There are two ways to try compiling a package which has been marked as broken. + + + + + + For allowing the build of a broken package once, you can use an environment variable for a single invocation of the nix tools: +$ export NIXPKGS_ALLOW_BROKEN=1 + + + + + For permanently allowing broken packages to be built, you may add allowBroken = true; to your user's configuration file, like this: + +{ + allowBroken = true; +} + + + + +
+
+ Installing packages on unsupported systems + + + There are also two ways to try compiling a package which has been marked as unsuported for the given system. + + + + + + For allowing the build of a broken package once, you can use an environment variable for a single invocation of the nix tools: +$ export NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM=1 + + + + + For permanently allowing broken packages to be built, you may add allowUnsupportedSystem = true; to your user's configuration file, like this: + +{ + allowUnsupportedSystem = true; +} + + + + + + + The difference between a package being unsupported on some system and being broken is admittedly a bit fuzzy. If a program ought to work on a certain platform, but doesn't, the platform should be included in meta.platforms, but marked as broken with e.g. meta.broken = !hostPlatform.isWindows. Of course, this begs the question of what "ought" means exactly. That is left to the package maintainer. + +
+
+ Installing unfree packages + + + There are several ways to tweak how Nix handles a package which has been marked as unfree. + + + + + + To temporarily allow all unfree packages, you can use an environment variable for a single invocation of the nix tools: +$ export NIXPKGS_ALLOW_UNFREE=1 + + + + + It is possible to permanently allow individual unfree packages, while still blocking unfree packages by default using the allowUnfreePredicate configuration option in the user configuration file. + + + This option is a function which accepts a package as a parameter, and returns a boolean. The following example configuration accepts a package and always returns false: + +{ + allowUnfreePredicate = (pkg: false); +} + + + + For a more useful example, try the following. This configuration only allows unfree packages named flash player and visual studio code: + +{ + allowUnfreePredicate = (pkg: builtins.elem + (builtins.parseDrvName pkg.name).name [ + "flashplayer" + "vscode" + ]); +} + + + + + + It is also possible to whitelist and blacklist licenses that are specifically acceptable or not acceptable, using whitelistedLicenses and blacklistedLicenses, respectively. + + + The following example configuration whitelists the licenses amd and wtfpl: + +{ + whitelistedLicenses = with stdenv.lib.licenses; [ amd wtfpl ]; +} + + + + The following example configuration blacklists the gpl3 and agpl3 licenses: + +{ + blacklistedLicenses = with stdenv.lib.licenses; [ agpl3 gpl3 ]; +} + + + + + + + A complete list of licenses can be found in the file lib/licenses.nix of the nixpkgs tree. + +
+
+ Installing insecure packages + + + There are several ways to tweak how Nix handles a package which has been marked as insecure. + + + + + + To temporarily allow all insecure packages, you can use an environment variable for a single invocation of the nix tools: +$ export NIXPKGS_ALLOW_INSECURE=1 + + + + + It is possible to permanently allow individual insecure packages, while still blocking other insecure packages by default using the permittedInsecurePackages configuration option in the user configuration file. + + + The following example configuration permits the installation of the hypothetically insecure package hello, version 1.2.3: + +{ + permittedInsecurePackages = [ + "hello-1.2.3" + ]; +} + + + + + + It is also possible to create a custom policy around which insecure packages to allow and deny, by overriding the allowInsecurePredicate configuration option. + + + The allowInsecurePredicate option is a function which accepts a package and returns a boolean, much like allowUnfreePredicate. + + + The following configuration example only allows insecure packages with very short names: + +{ + allowInsecurePredicate = (pkg: (builtins.stringLength (builtins.parseDrvName pkg.name).name) <= 5); +} + + + + Note that permittedInsecurePackages is only checked if allowInsecurePredicate is not specified. + + + +
+ +
+ Modify packages via <literal>packageOverrides</literal> + + + You can define a function called packageOverrides in your local ~/.config/nixpkgs/config.nix to override Nix packages. It must be a function that takes pkgs as an argument and returns a modified set of packages. + +{ + packageOverrides = pkgs: rec { + foo = pkgs.foo.override { ... }; + }; +} + + +
+
+ Declarative Package Management + +
+ Build an environment + + + Using packageOverrides, it is possible to manage packages declaratively. This means that we can list all of our desired packages within a declarative Nix expression. For example, to have aspell, bc, ffmpeg, coreutils, gdb, nixUnstable, emscripten, jq, nox, and silver-searcher, we could use the following in ~/.config/nixpkgs/config.nix: + + + +{ + packageOverrides = pkgs: with pkgs; { + myPackages = pkgs.buildEnv { + name = "my-packages"; + paths = [ + aspell + bc + coreutils + gdb + ffmpeg + nixUnstable + emscripten + jq + nox + silver-searcher + ]; + }; + }; +} + + + + To install it into our environment, you can just run nix-env -iA nixpkgs.myPackages. If you want to load the packages to be built from a working copy of nixpkgs you just run nix-env -f. -iA myPackages. To explore what's been installed, just look through ~/.nix-profile/. You can see that a lot of stuff has been installed. Some of this stuff is useful some of it isn't. Let's tell Nixpkgs to only link the stuff that we want: + + + +{ + packageOverrides = pkgs: with pkgs; { + myPackages = pkgs.buildEnv { + name = "my-packages"; + paths = [ + aspell + bc + coreutils + gdb + ffmpeg + nixUnstable + emscripten + jq + nox + silver-searcher + ]; + pathsToLink = [ "/share" "/bin" ]; + }; + }; +} + + + + pathsToLink tells Nixpkgs to only link the paths listed which gets rid of the extra stuff in the profile. /bin and /share are good defaults for a user environment, getting rid of the clutter. If you are running on Nix on MacOS, you may want to add another path as well, /Applications, that makes GUI apps available. + +
+ +
+ Getting documentation + + + After building that new environment, look through ~/.nix-profile to make sure everything is there that we wanted. Discerning readers will note that some files are missing. Look inside ~/.nix-profile/share/man/man1/ to verify this. There are no man pages for any of the Nix tools! This is because some packages like Nix have multiple outputs for things like documentation (see section 4). Let's make Nix install those as well. + + + +{ + packageOverrides = pkgs: with pkgs; { + myPackages = pkgs.buildEnv { + name = "my-packages"; + paths = [ + aspell + bc + coreutils + ffmpeg + nixUnstable + emscripten + jq + nox + silver-searcher + ]; + pathsToLink = [ "/share/man" "/share/doc" "/bin" ]; + extraOutputsToInstall = [ "man" "doc" ]; + }; + }; +} + + + + This provides us with some useful documentation for using our packages. However, if we actually want those manpages to be detected by man, we need to set up our environment. This can also be managed within Nix expressions. + + + +{ + packageOverrides = pkgs: with pkgs; rec { + myProfile = writeText "my-profile" '' + export PATH=$HOME/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/sbin:/bin:/usr/sbin:/usr/bin + export MANPATH=$HOME/.nix-profile/share/man:/nix/var/nix/profiles/default/share/man:/usr/share/man + ''; + myPackages = pkgs.buildEnv { + name = "my-packages"; + paths = [ + (runCommand "profile" {} '' + mkdir -p $out/etc/profile.d + cp ${myProfile} $out/etc/profile.d/my-profile.sh + '') + aspell + bc + coreutils + ffmpeg + man + nixUnstable + emscripten + jq + nox + silver-searcher + ]; + pathsToLink = [ "/share/man" "/share/doc" "/bin" "/etc" ]; + extraOutputsToInstall = [ "man" "doc" ]; + }; + }; +} + + + + For this to work fully, you must also have this script sourced when you are logged in. Try adding something like this to your ~/.profile file: + + + +#!/bin/sh +if [ -d $HOME/.nix-profile/etc/profile.d ]; then + for i in $HOME/.nix-profile/etc/profile.d/*.sh; do + if [ -r $i ]; then + . $i + fi + done +fi + + + + Now just run source $HOME/.profile and you can starting loading man pages from your environent. + +
+ +
+ GNU info setup + + + Configuring GNU info is a little bit trickier than man pages. To work correctly, info needs a database to be generated. This can be done with some small modifications to our environment scripts. + + + +{ + packageOverrides = pkgs: with pkgs; rec { + myProfile = writeText "my-profile" '' + export PATH=$HOME/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/sbin:/bin:/usr/sbin:/usr/bin + export MANPATH=$HOME/.nix-profile/share/man:/nix/var/nix/profiles/default/share/man:/usr/share/man + export INFOPATH=$HOME/.nix-profile/share/info:/nix/var/nix/profiles/default/share/info:/usr/share/info + ''; + myPackages = pkgs.buildEnv { + name = "my-packages"; + paths = [ + (runCommand "profile" {} '' + mkdir -p $out/etc/profile.d + cp ${myProfile} $out/etc/profile.d/my-profile.sh + '') + aspell + bc + coreutils + ffmpeg + man + nixUnstable + emscripten + jq + nox + silver-searcher + texinfoInteractive + ]; + pathsToLink = [ "/share/man" "/share/doc" "/share/info" "/bin" "/etc" ]; + extraOutputsToInstall = [ "man" "doc" "info" ]; + postBuild = '' + if [ -x $out/bin/install-info -a -w $out/share/info ]; then + shopt -s nullglob + for i in $out/share/info/*.info $out/share/info/*.info.gz; do + $out/bin/install-info $i $out/share/info/dir + done + fi + ''; + }; + }; +} + + + + postBuild tells Nixpkgs to run a command after building the environment. In this case, install-info adds the installed info pages to dir which is GNU info's default root node. Note that texinfoInteractive is added to the environment to give the install-info command. + +
+
+
diff --git a/doc/using/overlays.xml b/doc/using/overlays.xml new file mode 100644 index 0000000000000..26a888368abf7 --- /dev/null +++ b/doc/using/overlays.xml @@ -0,0 +1,140 @@ + + Overlays + + This chapter describes how to extend and change Nixpkgs using overlays. Overlays are used to add layers in the fixed-point used by Nixpkgs to compose the set of all packages. + + + Nixpkgs can be configured with a list of overlays, which are applied in order. This means that the order of the overlays can be significant if multiple layers override the same package. + + +
+ Installing overlays + + + The list of overlays can be set either explicitly in a Nix expression, or through <nixpkgs-overlays> or user configuration files. + + +
+ Set overlays in NixOS or Nix expressions + + + On a NixOS system the value of the nixpkgs.overlays option, if present, is passed to the system Nixpkgs directly as an argument. Note that this does not affect the overlays for non-NixOS operations (e.g. nix-env), which are looked up independently. + + + + The list of overlays can be passed explicitly when importing nixpkgs, for example import <nixpkgs> { overlays = [ overlay1 overlay2 ]; }. + + + + Further overlays can be added by calling the pkgs.extend or pkgs.appendOverlays, although it is often preferable to avoid these functions, because they recompute the Nixpkgs fixpoint, which is somewhat expensive to do. + +
+ +
+ Install overlays via configuration lookup + + + The list of overlays is determined as follows. + + + + + + + First, if an overlays argument to the Nixpkgs function itself is given, then that is used and no path lookup will be performed. + + + + + Otherwise, if the Nix path entry <nixpkgs-overlays> exists, we look for overlays at that path, as described below. + + + See the section on NIX_PATH in the Nix manual for more details on how to set a value for <nixpkgs-overlays>. + + + + + If one of ~/.config/nixpkgs/overlays.nix and ~/.config/nixpkgs/overlays/ exists, then we look for overlays at that path, as described below. It is an error if both exist. + + + + + + + If we are looking for overlays at a path, then there are two cases: + + + + If the path is a file, then the file is imported as a Nix expression and used as the list of overlays. + + + + + If the path is a directory, then we take the content of the directory, order it lexicographically, and attempt to interpret each as an overlay by: + + + + Importing the file, if it is a .nix file. + + + + + Importing a top-level default.nix file, if it is a directory. + + + + + + + + + + Because overlays that are set in NixOS configuration do not affect non-NixOS operations such as nix-env, the overlays.nix option provides a convenient way to use the same overlays for a NixOS system configuration and user configuration: the same file can be used as overlays.nix and imported as the value of nixpkgs.overlays. + + + +
+
+ +
+ Defining overlays + + + Overlays are Nix functions which accept two arguments, conventionally called self and super, and return a set of packages. For example, the following is a valid overlay. + + + +self: super: + +{ + boost = super.boost.override { + python = self.python3; + }; + rr = super.callPackage ./pkgs/rr { + stdenv = self.stdenv_32bit; + }; +} + + + + The first argument (self) corresponds to the final package set. You should use this set for the dependencies of all packages specified in your overlay. For example, all the dependencies of rr in the example above come from self, as well as the overridden dependencies used in the boost override. + + + + The second argument (super) corresponds to the result of the evaluation of the previous stages of Nixpkgs. It does not contain any of the packages added by the current overlay, nor any of the following overlays. This set should be used either to refer to packages you wish to override, or to access functions defined in Nixpkgs. For example, the original recipe of boost in the above example, comes from super, as well as the callPackage function. + + + + The value returned by this function should be a set similar to pkgs/top-level/all-packages.nix, containing overridden and/or new packages. + + + + Overlays are similar to other methods for customizing Nixpkgs, in particular the packageOverrides attribute described in . Indeed, packageOverrides acts as an overlay with only the super argument. It is therefore appropriate for basic use, but overlays are more powerful and easier to distribute. + +
+
diff --git a/doc/using/overrides.xml b/doc/using/overrides.xml new file mode 100644 index 0000000000000..991e13a1b8289 --- /dev/null +++ b/doc/using/overrides.xml @@ -0,0 +1,151 @@ + + Overriding + + + Sometimes one wants to override parts of nixpkgs, e.g. derivation attributes, the results of derivations. + + + + These functions are used to make changes to packages, returning only single packages. Overlays, on the other hand, can be used to combine the overridden packages across the entire package set of Nixpkgs. + + +
+ <pkg>.override + + + The function override is usually available for all the derivations in the nixpkgs expression (pkgs). + + + + It is used to override the arguments passed to a function. + + + + Example usages: +pkgs.foo.override { arg1 = val1; arg2 = val2; ... } + + +import pkgs.path { overlays = [ (self: super: { + foo = super.foo.override { barSupport = true ; }; + })]}; + + +mypkg = pkgs.callPackage ./mypkg.nix { + mydep = pkgs.mydep.override { ... }; + } + + + + + In the first example, pkgs.foo is the result of a function call with some default arguments, usually a derivation. Using pkgs.foo.override will call the same function with the given new arguments. + +
+ +
+ <pkg>.overrideAttrs + + + The function overrideAttrs allows overriding the attribute set passed to a stdenv.mkDerivation call, producing a new derivation based on the original one. This function is available on all derivations produced by the stdenv.mkDerivation function, which is most packages in the nixpkgs expression pkgs. + + + + Example usage: + +helloWithDebug = pkgs.hello.overrideAttrs (oldAttrs: rec { + separateDebugInfo = true; +}); + + + + + In the above example, the separateDebugInfo attribute is overridden to be true, thus building debug info for helloWithDebug, while all other attributes will be retained from the original hello package. + + + + The argument oldAttrs is conventionally used to refer to the attr set originally passed to stdenv.mkDerivation. + + + + + Note that separateDebugInfo is processed only by the stdenv.mkDerivation function, not the generated, raw Nix derivation. Thus, using overrideDerivation will not work in this case, as it overrides only the attributes of the final derivation. It is for this reason that overrideAttrs should be preferred in (almost) all cases to overrideDerivation, i.e. to allow using stdenv.mkDerivation to process input arguments, as well as the fact that it is easier to use (you can use the same attribute names you see in your Nix code, instead of the ones generated (e.g. buildInputs vs nativeBuildInputs), and it involves less typing). + + +
+ +
+ <pkg>.overrideDerivation + + + + You should prefer overrideAttrs in almost all cases, see its documentation for the reasons why. overrideDerivation is not deprecated and will continue to work, but is less nice to use and does not have as many abilities as overrideAttrs. + + + + + + Do not use this function in Nixpkgs as it evaluates a Derivation before modifying it, which breaks package abstraction and removes error-checking of function arguments. In addition, this evaluation-per-function application incurs a performance penalty, which can become a problem if many overrides are used. It is only intended for ad-hoc customisation, such as in ~/.config/nixpkgs/config.nix. + + + + + The function overrideDerivation creates a new derivation based on an existing one by overriding the original's attributes with the attribute set produced by the specified function. This function is available on all derivations defined using the makeOverridable function. Most standard derivation-producing functions, such as stdenv.mkDerivation, are defined using this function, which means most packages in the nixpkgs expression, pkgs, have this function. + + + + Example usage: + +mySed = pkgs.gnused.overrideDerivation (oldAttrs: { + name = "sed-4.2.2-pre"; + src = fetchurl { + url = ftp://alpha.gnu.org/gnu/sed/sed-4.2.2-pre.tar.bz2; + sha256 = "11nq06d131y4wmf3drm0yk502d2xc6n5qy82cg88rb9nqd2lj41k"; + }; + patches = []; +}); + + + + + In the above example, the name, src, and patches of the derivation will be overridden, while all other attributes will be retained from the original derivation. + + + + The argument oldAttrs is used to refer to the attribute set of the original derivation. + + + + + A package's attributes are evaluated *before* being modified by the overrideDerivation function. For example, the name attribute reference in url = "mirror://gnu/hello/${name}.tar.gz"; is filled-in *before* the overrideDerivation function modifies the attribute set. This means that overriding the name attribute, in this example, *will not* change the value of the url attribute. Instead, we need to override both the name *and* url attributes. + + +
+ +
+ lib.makeOverridable + + + The function lib.makeOverridable is used to make the result of a function easily customizable. This utility only makes sense for functions that accept an argument set and return an attribute set. + + + + Example usage: + +f = { a, b }: { result = a+b; }; +c = lib.makeOverridable f { a = 1; b = 2; }; + + + + + The variable c is the value of the f function applied with some default arguments. Hence the value of c.result is 3, in this example. + + + + The variable c however also has some additional functions, like c.override which can be used to override the default arguments. In this example the value of (c.override { a = 4; }).result is 6. + +
+
-- cgit 1.4.1 From acfc517a80ba4e53508fc38a09dd293aeb487cd2 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Wed, 30 Oct 2019 10:41:25 +0100 Subject: nixpkgs manual: move builders into one folder --- doc/builders/packages/citrix.xml | 44 +++++++++++ doc/builders/packages/dlib.xml | 24 ++++++ doc/builders/packages/eclipse.xml | 72 ++++++++++++++++++ doc/builders/packages/elm.xml | 17 +++++ doc/builders/packages/emacs.xml | 131 ++++++++++++++++++++++++++++++++ doc/builders/packages/ibus.xml | 57 ++++++++++++++ doc/builders/packages/index.xml | 23 ++++++ doc/builders/packages/kakoune.xml | 14 ++++ doc/builders/packages/linux.xml | 85 +++++++++++++++++++++ doc/builders/packages/locales.xml | 13 ++++ doc/builders/packages/nginx.xml | 25 ++++++ doc/builders/packages/opengl.xml | 9 +++ doc/builders/packages/shell-helpers.xml | 25 ++++++ doc/builders/packages/steam.xml | 131 ++++++++++++++++++++++++++++++++ doc/builders/packages/unfree.xml | 13 ++++ doc/builders/packages/weechat.xml | 85 +++++++++++++++++++++ doc/builders/packages/xorg.xml | 34 +++++++++ doc/manual.xml | 2 +- doc/packages/citrix.xml | 44 ----------- doc/packages/dlib.xml | 24 ------ doc/packages/eclipse.xml | 72 ------------------ doc/packages/elm.xml | 17 ----- doc/packages/emacs.xml | 131 -------------------------------- doc/packages/ibus.xml | 57 -------------- doc/packages/index.xml | 23 ------ doc/packages/kakoune.xml | 14 ---- doc/packages/linux.xml | 85 --------------------- doc/packages/locales.xml | 13 ---- doc/packages/nginx.xml | 25 ------ doc/packages/opengl.xml | 9 --- doc/packages/shell-helpers.xml | 25 ------ doc/packages/steam.xml | 131 -------------------------------- doc/packages/unfree.xml | 13 ---- doc/packages/weechat.xml | 85 --------------------- doc/packages/xorg.xml | 34 --------- 35 files changed, 803 insertions(+), 803 deletions(-) create mode 100644 doc/builders/packages/citrix.xml create mode 100644 doc/builders/packages/dlib.xml create mode 100644 doc/builders/packages/eclipse.xml create mode 100644 doc/builders/packages/elm.xml create mode 100644 doc/builders/packages/emacs.xml create mode 100644 doc/builders/packages/ibus.xml create mode 100644 doc/builders/packages/index.xml create mode 100644 doc/builders/packages/kakoune.xml create mode 100644 doc/builders/packages/linux.xml create mode 100644 doc/builders/packages/locales.xml create mode 100644 doc/builders/packages/nginx.xml create mode 100644 doc/builders/packages/opengl.xml create mode 100644 doc/builders/packages/shell-helpers.xml create mode 100644 doc/builders/packages/steam.xml create mode 100644 doc/builders/packages/unfree.xml create mode 100644 doc/builders/packages/weechat.xml create mode 100644 doc/builders/packages/xorg.xml delete mode 100644 doc/packages/citrix.xml delete mode 100644 doc/packages/dlib.xml delete mode 100644 doc/packages/eclipse.xml delete mode 100644 doc/packages/elm.xml delete mode 100644 doc/packages/emacs.xml delete mode 100644 doc/packages/ibus.xml delete mode 100644 doc/packages/index.xml delete mode 100644 doc/packages/kakoune.xml delete mode 100644 doc/packages/linux.xml delete mode 100644 doc/packages/locales.xml delete mode 100644 doc/packages/nginx.xml delete mode 100644 doc/packages/opengl.xml delete mode 100644 doc/packages/shell-helpers.xml delete mode 100644 doc/packages/steam.xml delete mode 100644 doc/packages/unfree.xml delete mode 100644 doc/packages/weechat.xml delete mode 100644 doc/packages/xorg.xml (limited to 'doc') diff --git a/doc/builders/packages/citrix.xml b/doc/builders/packages/citrix.xml new file mode 100644 index 0000000000000..bc685f97932d4 --- /dev/null +++ b/doc/builders/packages/citrix.xml @@ -0,0 +1,44 @@ +
+ Citrix Workspace + + + + + Please note that the citrix_receiver package has been deprecated since its development was discontinued by upstream and has been replaced by the citrix workspace app. + + + Citrix Receiver and Citrix Workspace App are a remote desktop viewers which provide access to XenDesktop installations. + + +
+ Basic usage + + + The tarball archive needs to be downloaded manually as the license agreements of the vendor for Citrix Receiver or Citrix Workspace need to be accepted first. Then run nix-prefetch-url file://$PWD/linuxx64-$version.tar.gz. With the archive available in the store the package can be built and installed with Nix. + + + + Caution with <command>nix-shell</command> installs + + It's recommended to install Citrix Receiver and/or Citrix Workspace using nix-env -i or globally to ensure that the .desktop files are installed properly into $XDG_CONFIG_DIRS. Otherwise it won't be possible to open .ica files automatically from the browser to start a Citrix connection. + + +
+ +
+ Custom certificates + + + The Citrix Workspace App in nixpkgs trust several certificates from the Mozilla database by default. However several companies using Citrix might require their own corporate certificate. On distros with imperative packaging these certs can be stored easily in $ICAROOT, however this directory is a store path in nixpkgs. In order to work around this issue the package provides a simple mechanism to add custom certificates without rebuilding the entire package using symlinkJoin: + + { config.allowUnfree = true; }; +let extraCerts = [ ./custom-cert-1.pem ./custom-cert-2.pem /* ... */ ]; in +citrix_workspace.override { + inherit extraCerts; +}]]> + + +
+
\ No newline at end of file diff --git a/doc/builders/packages/dlib.xml b/doc/builders/packages/dlib.xml new file mode 100644 index 0000000000000..98c211cf9df79 --- /dev/null +++ b/doc/builders/packages/dlib.xml @@ -0,0 +1,24 @@ +
+ DLib + + + DLib is a modern, C++-based toolkit which provides several machine learning algorithms. + + +
+ Compiling without AVX support + + + Especially older CPUs don't support AVX (Advanced Vector Extensions) instructions that are used by DLib to optimize their algorithms. + + + + On the affected hardware errors like Illegal instruction will occur. In those cases AVX support needs to be disabled: +self: super: { + dlib = super.dlib.override { avxSupport = false; }; +} + +
+
\ No newline at end of file diff --git a/doc/builders/packages/eclipse.xml b/doc/builders/packages/eclipse.xml new file mode 100644 index 0000000000000..968c58d3b5bb0 --- /dev/null +++ b/doc/builders/packages/eclipse.xml @@ -0,0 +1,72 @@ +
+ Eclipse + + + The Nix expressions related to the Eclipse platform and IDE are in pkgs/applications/editors/eclipse. + + + + Nixpkgs provides a number of packages that will install Eclipse in its various forms. These range from the bare-bones Eclipse Platform to the more fully featured Eclipse SDK or Scala-IDE packages and multiple version are often available. It is possible to list available Eclipse packages by issuing the command: + +$ nix-env -f '<nixpkgs>' -qaP -A eclipses --description + + Once an Eclipse variant is installed it can be run using the eclipse command, as expected. From within Eclipse it is then possible to install plugins in the usual manner by either manually specifying an Eclipse update site or by installing the Marketplace Client plugin and using it to discover and install other plugins. This installation method provides an Eclipse installation that closely resemble a manually installed Eclipse. + + + + If you prefer to install plugins in a more declarative manner then Nixpkgs also offer a number of Eclipse plugins that can be installed in an Eclipse environment. This type of environment is created using the function eclipseWithPlugins found inside the nixpkgs.eclipses attribute set. This function takes as argument { eclipse, plugins ? [], jvmArgs ? [] } where eclipse is a one of the Eclipse packages described above, plugins is a list of plugin derivations, and jvmArgs is a list of arguments given to the JVM running the Eclipse. For example, say you wish to install the latest Eclipse Platform with the popular Eclipse Color Theme plugin and also allow Eclipse to use more RAM. You could then add + +packageOverrides = pkgs: { + myEclipse = with pkgs.eclipses; eclipseWithPlugins { + eclipse = eclipse-platform; + jvmArgs = [ "-Xmx2048m" ]; + plugins = [ plugins.color-theme ]; + }; +} + + to your Nixpkgs configuration (~/.config/nixpkgs/config.nix) and install it by running nix-env -f '<nixpkgs>' -iA myEclipse and afterward run Eclipse as usual. It is possible to find out which plugins are available for installation using eclipseWithPlugins by running + +$ nix-env -f '<nixpkgs>' -qaP -A eclipses.plugins --description + + + + + If there is a need to install plugins that are not available in Nixpkgs then it may be possible to define these plugins outside Nixpkgs using the buildEclipseUpdateSite and buildEclipsePlugin functions found in the nixpkgs.eclipses.plugins attribute set. Use the buildEclipseUpdateSite function to install a plugin distributed as an Eclipse update site. This function takes { name, src } as argument where src indicates the Eclipse update site archive. All Eclipse features and plugins within the downloaded update site will be installed. When an update site archive is not available then the buildEclipsePlugin function can be used to install a plugin that consists of a pair of feature and plugin JARs. This function takes an argument { name, srcFeature, srcPlugin } where srcFeature and srcPlugin are the feature and plugin JARs, respectively. + + + + Expanding the previous example with two plugins using the above functions we have + +packageOverrides = pkgs: { + myEclipse = with pkgs.eclipses; eclipseWithPlugins { + eclipse = eclipse-platform; + jvmArgs = [ "-Xmx2048m" ]; + plugins = [ + plugins.color-theme + (plugins.buildEclipsePlugin { + name = "myplugin1-1.0"; + srcFeature = fetchurl { + url = "http://…/features/myplugin1.jar"; + sha256 = "123…"; + }; + srcPlugin = fetchurl { + url = "http://…/plugins/myplugin1.jar"; + sha256 = "123…"; + }; + }); + (plugins.buildEclipseUpdateSite { + name = "myplugin2-1.0"; + src = fetchurl { + stripRoot = false; + url = "http://…/myplugin2.zip"; + sha256 = "123…"; + }; + }); + ]; + }; +} + + +
\ No newline at end of file diff --git a/doc/builders/packages/elm.xml b/doc/builders/packages/elm.xml new file mode 100644 index 0000000000000..8ee0528526544 --- /dev/null +++ b/doc/builders/packages/elm.xml @@ -0,0 +1,17 @@ +
+ Elm + + + To start a development environment do nix-shell -p elmPackages.elm elmPackages.elm-format + + + + To update Elm compiler, see nixpkgs/pkgs/development/compilers/elm/README.md. + + + + To package Elm applications, read about elm2nix. + +
\ No newline at end of file diff --git a/doc/builders/packages/emacs.xml b/doc/builders/packages/emacs.xml new file mode 100644 index 0000000000000..a9a26882c9cd3 --- /dev/null +++ b/doc/builders/packages/emacs.xml @@ -0,0 +1,131 @@ +
+ Emacs + +
+ Configuring Emacs + + + The Emacs package comes with some extra helpers to make it easier to configure. emacsWithPackages allows you to manage packages from ELPA. This means that you will not have to install that packages from within Emacs. For instance, if you wanted to use company, counsel, flycheck, ivy, magit, projectile, and use-package you could use this as a ~/.config/nixpkgs/config.nix override: + + + +{ + packageOverrides = pkgs: with pkgs; { + myEmacs = emacsWithPackages (epkgs: (with epkgs.melpaStablePackages; [ + company + counsel + flycheck + ivy + magit + projectile + use-package + ])); + } +} + + + + You can install it like any other packages via nix-env -iA myEmacs. However, this will only install those packages. It will not configure them for us. To do this, we need to provide a configuration file. Luckily, it is possible to do this from within Nix! By modifying the above example, we can make Emacs load a custom config file. The key is to create a package that provide a default.el file in /share/emacs/site-start/. Emacs knows to load this file automatically when it starts. + + + +{ + packageOverrides = pkgs: with pkgs; rec { + myEmacsConfig = writeText "default.el" '' +;; initialize package + +(require 'package) +(package-initialize 'noactivate) +(eval-when-compile + (require 'use-package)) + +;; load some packages + +(use-package company + :bind ("<C-tab>" . company-complete) + :diminish company-mode + :commands (company-mode global-company-mode) + :defer 1 + :config + (global-company-mode)) + +(use-package counsel + :commands (counsel-descbinds) + :bind (([remap execute-extended-command] . counsel-M-x) + ("C-x C-f" . counsel-find-file) + ("C-c g" . counsel-git) + ("C-c j" . counsel-git-grep) + ("C-c k" . counsel-ag) + ("C-x l" . counsel-locate) + ("M-y" . counsel-yank-pop))) + +(use-package flycheck + :defer 2 + :config (global-flycheck-mode)) + +(use-package ivy + :defer 1 + :bind (("C-c C-r" . ivy-resume) + ("C-x C-b" . ivy-switch-buffer) + :map ivy-minibuffer-map + ("C-j" . ivy-call)) + :diminish ivy-mode + :commands ivy-mode + :config + (ivy-mode 1)) + +(use-package magit + :defer + :if (executable-find "git") + :bind (("C-x g" . magit-status) + ("C-x G" . magit-dispatch-popup)) + :init + (setq magit-completing-read-function 'ivy-completing-read)) + +(use-package projectile + :commands projectile-mode + :bind-keymap ("C-c p" . projectile-command-map) + :defer 5 + :config + (projectile-global-mode)) + ''; + myEmacs = emacsWithPackages (epkgs: (with epkgs.melpaStablePackages; [ + (runCommand "default.el" {} '' +mkdir -p $out/share/emacs/site-lisp +cp ${myEmacsConfig} $out/share/emacs/site-lisp/default.el +'') + company + counsel + flycheck + ivy + magit + projectile + use-package + ])); + }; +} + + + + This provides a fairly full Emacs start file. It will load in addition to the user's presonal config. You can always disable it by passing -q to the Emacs command. + + + + Sometimes emacsWithPackages is not enough, as this package set has some priorities imposed on packages (with the lowest priority assigned to Melpa Unstable, and the highest for packages manually defined in pkgs/top-level/emacs-packages.nix). But you can't control this priorities when some package is installed as a dependency. You can override it on per-package-basis, providing all the required dependencies manually - but it's tedious and there is always a possibility that an unwanted dependency will sneak in through some other package. To completely override such a package you can use overrideScope'. + + + +overrides = self: super: rec { + haskell-mode = self.melpaPackages.haskell-mode; + ... +}; +((emacsPackagesGen emacs).overrideScope' overrides).emacsWithPackages (p: with p; [ + # here both these package will use haskell-mode of our own choice + ghc-mod + dante +]) + +
+
\ No newline at end of file diff --git a/doc/builders/packages/ibus.xml b/doc/builders/packages/ibus.xml new file mode 100644 index 0000000000000..561d4d2eabdc8 --- /dev/null +++ b/doc/builders/packages/ibus.xml @@ -0,0 +1,57 @@ +
+ ibus-engines.typing-booster + + + This package is an ibus-based completion method to speed up typing. + + +
+ Activating the engine + + + IBus needs to be configured accordingly to activate typing-booster. The configuration depends on the desktop manager in use. For detailed instructions, please refer to the upstream docs. + + + + On NixOS you need to explicitly enable ibus with given engines before customizing your desktop to use typing-booster. This can be achieved using the ibus module: +{ pkgs, ... }: { + i18n.inputMethod = { + enabled = "ibus"; + ibus.engines = with pkgs.ibus-engines; [ typing-booster ]; + }; +} + +
+ +
+ Using custom hunspell dictionaries + + + The IBus engine is based on hunspell to support completion in many languages. By default the dictionaries de-de, en-us, fr-moderne es-es, it-it, sv-se and sv-fi are in use. To add another dictionary, the package can be overridden like this: +ibus-engines.typing-booster.override { + langs = [ "de-at" "en-gb" ]; +} + + + + Note: each language passed to langs must be an attribute name in pkgs.hunspellDicts. + +
+ +
+ Built-in emoji picker + + + The ibus-engines.typing-booster package contains a program named emoji-picker. To display all emojis correctly, a special font such as noto-fonts-emoji is needed: + + + + On NixOS it can be installed using the following expression: +{ pkgs, ... }: { + fonts.fonts = with pkgs; [ noto-fonts-emoji ]; +} + +
+
\ No newline at end of file diff --git a/doc/builders/packages/index.xml b/doc/builders/packages/index.xml new file mode 100644 index 0000000000000..9f3f58a8d9031 --- /dev/null +++ b/doc/builders/packages/index.xml @@ -0,0 +1,23 @@ + + Packages + + This chapter contains information about how to use and maintain the Nix expressions for a number of specific packages, such as the Linux kernel or X.org. + + + + + + + + + + + + + + + + + diff --git a/doc/builders/packages/kakoune.xml b/doc/builders/packages/kakoune.xml new file mode 100644 index 0000000000000..fd40dad7ca876 --- /dev/null +++ b/doc/builders/packages/kakoune.xml @@ -0,0 +1,14 @@ +
+ Kakoune + + + Kakoune can be built to autoload plugins: +(kakoune.override { + configure = { + plugins = with pkgs.kakounePlugins; [ parinfer-rust ]; + }; +}) + +
\ No newline at end of file diff --git a/doc/builders/packages/linux.xml b/doc/builders/packages/linux.xml new file mode 100644 index 0000000000000..3adfacb6e457e --- /dev/null +++ b/doc/builders/packages/linux.xml @@ -0,0 +1,85 @@ +
+ Linux kernel + + + The Nix expressions to build the Linux kernel are in pkgs/os-specific/linux/kernel. + + + + The function that builds the kernel has an argument kernelPatches which should be a list of {name, patch, extraConfig} attribute sets, where name is the name of the patch (which is included in the kernel’s meta.description attribute), patch is the patch itself (possibly compressed), and extraConfig (optional) is a string specifying extra options to be concatenated to the kernel configuration file (.config). + + + + The kernel derivation exports an attribute features specifying whether optional functionality is or isn’t enabled. This is used in NixOS to implement kernel-specific behaviour. For instance, if the kernel has the iwlwifi feature (i.e. has built-in support for Intel wireless chipsets), then NixOS doesn’t have to build the external iwlwifi package: + +modulesTree = [kernel] + ++ pkgs.lib.optional (!kernel.features ? iwlwifi) kernelPackages.iwlwifi + ++ ...; + + + + + How to add a new (major) version of the Linux kernel to Nixpkgs: + + + + Copy the old Nix expression (e.g. linux-2.6.21.nix) to the new one (e.g. linux-2.6.22.nix) and update it. + + + + + Add the new kernel to all-packages.nix (e.g., create an attribute kernel_2_6_22). + + + + + Now we’re going to update the kernel configuration. First unpack the kernel. Then for each supported platform (i686, x86_64, uml) do the following: + + + + Make an copy from the old config (e.g. config-2.6.21-i686-smp) to the new one (e.g. config-2.6.22-i686-smp). + + + + + Copy the config file for this platform (e.g. config-2.6.22-i686-smp) to .config in the kernel source tree. + + + + + Run make oldconfig ARCH={i386,x86_64,um} and answer all questions. (For the uml configuration, also add SHELL=bash.) Make sure to keep the configuration consistent between platforms (i.e. don’t enable some feature on i686 and disable it on x86_64). + + + + + If needed you can also run make menuconfig: + +$ nix-env -i ncurses +$ export NIX_CFLAGS_LINK=-lncurses +$ make menuconfig ARCH=arch + + + + + Copy .config over the new config file (e.g. config-2.6.22-i686-smp). + + + + + + + + Test building the kernel: nix-build -A kernel_2_6_22. If it compiles, ship it! For extra credit, try booting NixOS with it. + + + + + It may be that the new kernel requires updating the external kernel modules and kernel-dependent packages listed in the linuxPackagesFor function in all-packages.nix (such as the NVIDIA drivers, AUFS, etc.). If the updated packages aren’t backwards compatible with older kernels, you may need to keep the older versions around. + + + + +
\ No newline at end of file diff --git a/doc/builders/packages/locales.xml b/doc/builders/packages/locales.xml new file mode 100644 index 0000000000000..15954495e2177 --- /dev/null +++ b/doc/builders/packages/locales.xml @@ -0,0 +1,13 @@ +
+ Locales + + + To allow simultaneous use of packages linked against different versions of glibc with different locale archive formats Nixpkgs patches glibc to rely on LOCALE_ARCHIVE environment variable. + + + + On non-NixOS distributions this variable is obviously not set. This can cause regressions in language support or even crashes in some Nixpkgs-provided programs. The simplest way to mitigate this problem is exporting the LOCALE_ARCHIVE variable pointing to ${glibcLocales}/lib/locale/locale-archive. The drawback (and the reason this is not the default) is the relatively large (a hundred MiB) size of the full set of locales. It is possible to build a custom set of locales by overriding parameters allLocales and locales of the package. + +
\ No newline at end of file diff --git a/doc/builders/packages/nginx.xml b/doc/builders/packages/nginx.xml new file mode 100644 index 0000000000000..921a6add2a0ae --- /dev/null +++ b/doc/builders/packages/nginx.xml @@ -0,0 +1,25 @@ +
+ Nginx + + + Nginx is a reverse proxy and lightweight webserver. + + +
+ ETags on static files served from the Nix store + + + HTTP has a couple different mechanisms for caching to prevent clients from having to download the same content repeatedly if a resource has not changed since the last time it was requested. When nginx is used as a server for static files, it implements the caching mechanism based on the Last-Modified response header automatically; unfortunately, it works by using filesystem timestamps to determine the value of the Last-Modified header. This doesn't give the desired behavior when the file is in the Nix store, because all file timestamps are set to 0 (for reasons related to build reproducibility). + + + + Fortunately, HTTP supports an alternative (and more effective) caching mechanism: the ETag response header. The value of the ETag header specifies some identifier for the particular content that the server is sending (e.g. a hash). When a client makes a second request for the same resource, it sends that value back in an If-None-Match header. If the ETag value is unchanged, then the server does not need to resend the content. + + + + As of NixOS 19.09, the nginx package in Nixpkgs is patched such that when nginx serves a file out of /nix/store, the hash in the store path is used as the ETag header in the HTTP response, thus providing proper caching functionality. This happens automatically; you do not need to do modify any configuration to get this behavior. + +
+
\ No newline at end of file diff --git a/doc/builders/packages/opengl.xml b/doc/builders/packages/opengl.xml new file mode 100644 index 0000000000000..fcb624736b092 --- /dev/null +++ b/doc/builders/packages/opengl.xml @@ -0,0 +1,9 @@ +
+ OpenGL + + + Packages that use OpenGL have NixOS desktop as their primary target. The current solution for loading the GPU-specific drivers is based on libglvnd and looks for the driver implementation in LD_LIBRARY_PATH. If you are using a non-NixOS GNU/Linux/X11 desktop with free software video drivers, consider launching OpenGL-dependent programs from Nixpkgs with Nixpkgs versions of libglvnd and mesa_drivers in LD_LIBRARY_PATH. For proprietary video drivers you might have luck with also adding the corresponding video driver package. + +
\ No newline at end of file diff --git a/doc/builders/packages/shell-helpers.xml b/doc/builders/packages/shell-helpers.xml new file mode 100644 index 0000000000000..53416ce7e171d --- /dev/null +++ b/doc/builders/packages/shell-helpers.xml @@ -0,0 +1,25 @@ +
+ Interactive shell helpers + + + Some packages provide the shell integration to be more useful. But unlike other systems, nix doesn't have a standard share directory location. This is why a bunch PACKAGE-share scripts are shipped that print the location of the corresponding shared folder. Current list of such packages is as following: + + + + autojump: autojump-share + + + + + fzf: fzf-share + + + + E.g. autojump can then used in the .bashrc like this: + + source "$(autojump-share)/autojump.bash" + + +
\ No newline at end of file diff --git a/doc/builders/packages/steam.xml b/doc/builders/packages/steam.xml new file mode 100644 index 0000000000000..413247ee46854 --- /dev/null +++ b/doc/builders/packages/steam.xml @@ -0,0 +1,131 @@ +
+ Steam + +
+ Steam in Nix + + + Steam is distributed as a .deb file, for now only as an i686 package (the amd64 package only has documentation). When unpacked, it has a script called steam that in Ubuntu (their target distro) would go to /usr/bin . When run for the first time, this script copies some files to the user's home, which include another script that is the ultimate responsible for launching the steam binary, which is also in $HOME. + + + + Nix problems and constraints: + + + + We don't have /bin/bash and many scripts point there. Similarly for /usr/bin/python . + + + + + We don't have the dynamic loader in /lib . + + + + + The steam.sh script in $HOME can not be patched, as it is checked and rewritten by steam. + + + + + The steam binary cannot be patched, it's also checked. + + + + + + + The current approach to deploy Steam in NixOS is composing a FHS-compatible chroot environment, as documented here. This allows us to have binaries in the expected paths without disrupting the system, and to avoid patching them to work in a non FHS environment. + +
+ +
+ How to play + + + For 64-bit systems it's important to have +hardware.opengl.driSupport32Bit = true; + in your /etc/nixos/configuration.nix. You'll also need +hardware.pulseaudio.support32Bit = true; + if you are using PulseAudio - this will enable 32bit ALSA apps integration. To use the Steam controller or other Steam supported controllers such as the DualShock 4 or Nintendo Switch Pro, you need to add +hardware.steam-hardware.enable = true; + to your configuration. + +
+ +
+ Troubleshooting + + + + + + Steam fails to start. What do I do? + + + + Try to run +strace steam + to see what is causing steam to fail. + + + + + + Using the FOSS Radeon or nouveau (nvidia) drivers + + + + + + The newStdcpp parameter was removed since NixOS 17.09 and should not be needed anymore. + + + + + Steam ships statically linked with a version of libcrypto that conflics with the one dynamically loaded by radeonsi_dri.so. If you get the error +steam.sh: line 713: 7842 Segmentation fault (core dumped) + have a look at this pull request. + + + + + + + + Java + + + + + + There is no java in steam chrootenv by default. If you get a message like +/home/foo/.local/share/Steam/SteamApps/common/towns/towns.sh: line 1: java: command not found + You need to add + steam.override { withJava = true; }; + to your configuration. + + + + + + + +
+ +
+ steam-run + + + The FHS-compatible chroot used for steam can also be used to run other linux games that expect a FHS environment. To do it, add +pkgs.(steam.override { + nativeOnly = true; + newStdcpp = true; + }).run + to your configuration, rebuild, and run the game with +steam-run ./foo + +
+
\ No newline at end of file diff --git a/doc/builders/packages/unfree.xml b/doc/builders/packages/unfree.xml new file mode 100644 index 0000000000000..b2d8402005e90 --- /dev/null +++ b/doc/builders/packages/unfree.xml @@ -0,0 +1,13 @@ +
+ Unfree software + + + All users of Nixpkgs are free software users, and many users (and developers) of Nixpkgs want to limit and tightly control their exposure to unfree software. At the same time, many users need (or want) to run some specific pieces of proprietary software. Nixpkgs includes some expressions for unfree software packages. By default unfree software cannot be installed and doesn’t show up in searches. To allow installing unfree software in a single Nix invocation one can export NIXPKGS_ALLOW_UNFREE=1. For a persistent solution, users can set allowUnfree in the Nixpkgs configuration. + + + + Fine-grained control is possible by defining allowUnfreePredicate function in config; it takes the mkDerivation parameter attrset and returns true for unfree packages that should be allowed. + +
\ No newline at end of file diff --git a/doc/builders/packages/weechat.xml b/doc/builders/packages/weechat.xml new file mode 100644 index 0000000000000..aeb240d904b52 --- /dev/null +++ b/doc/builders/packages/weechat.xml @@ -0,0 +1,85 @@ +
+ Weechat + + + Weechat can be configured to include your choice of plugins, reducing its closure size from the default configuration which includes all available plugins. To make use of this functionality, install an expression that overrides its configuration such as +weechat.override {configure = {availablePlugins, ...}: { + plugins = with availablePlugins; [ python perl ]; + } +} + If the configure function returns an attrset without the plugins attribute, availablePlugins will be used automatically. + + + + The plugins currently available are python, perl, ruby, guile, tcl and lua. + + + + The python and perl plugins allows the addition of extra libraries. For instance, the inotify.py script in weechat-scripts requires D-Bus or libnotify, and the fish.py script requires pycrypto. To use these scripts, use the plugin's withPackages attribute: +weechat.override { configure = {availablePlugins, ...}: { + plugins = with availablePlugins; [ + (python.withPackages (ps: with ps; [ pycrypto python-dbus ])) + ]; + }; +} + + + + + In order to also keep all default plugins installed, it is possible to use the following method: +weechat.override { configure = { availablePlugins, ... }: { + plugins = builtins.attrValues (availablePlugins // { + python = availablePlugins.python.withPackages (ps: with ps; [ pycrypto python-dbus ]); + }); +}; } + + + + + WeeChat allows to set defaults on startup using the --run-command. The configure method can be used to pass commands to the program: +weechat.override { + configure = { availablePlugins, ... }: { + init = '' + /set foo bar + /server add freenode chat.freenode.org + ''; + }; +} + Further values can be added to the list of commands when running weechat --run-command "your-commands". + + + + Additionally it's possible to specify scripts to be loaded when starting weechat. These will be loaded before the commands from init: +weechat.override { + configure = { availablePlugins, ... }: { + scripts = with pkgs.weechatScripts; [ + weechat-xmpp weechat-matrix-bridge wee-slack + ]; + init = '' + /set plugins.var.python.jabber.key "val" + '': + }; +} + + + + In nixpkgs there's a subpackage which contains derivations for WeeChat scripts. Such derivations expect a passthru.scripts attribute which contains a list of all scripts inside the store path. Furthermore all scripts have to live in $out/share. An exemplary derivation looks like this: +{ stdenv, fetchurl }: + +stdenv.mkDerivation { + name = "exemplary-weechat-script"; + src = fetchurl { + url = "https://scripts.tld/your-scripts.tar.gz"; + sha256 = "..."; + }; + passthru.scripts = [ "foo.py" "bar.lua" ]; + installPhase = '' + mkdir $out/share + cp foo.py $out/share + cp bar.lua $out/share + ''; +} + +
\ No newline at end of file diff --git a/doc/builders/packages/xorg.xml b/doc/builders/packages/xorg.xml new file mode 100644 index 0000000000000..4526121687fc2 --- /dev/null +++ b/doc/builders/packages/xorg.xml @@ -0,0 +1,34 @@ +
+ X.org + + + The Nix expressions for the X.org packages reside in pkgs/servers/x11/xorg/default.nix. This file is automatically generated from lists of tarballs in an X.org release. As such it should not be modified directly; rather, you should modify the lists, the generator script or the file pkgs/servers/x11/xorg/overrides.nix, in which you can override or add to the derivations produced by the generator. + + + + The generator is invoked as follows: + +$ cd pkgs/servers/x11/xorg +$ cat tarballs-7.5.list extra.list old.list \ + | perl ./generate-expr-from-tarballs.pl + + For each of the tarballs in the .list files, the script downloads it, unpacks it, and searches its configure.ac and *.pc.in files for dependencies. This information is used to generate default.nix. The generator caches downloaded tarballs between runs. Pay close attention to the NOT FOUND: name messages at the end of the run, since they may indicate missing dependencies. (Some might be optional dependencies, however.) + + + + A file like tarballs-7.5.list contains all tarballs in a X.org release. It can be generated like this: + +$ export i="mirror://xorg/X11R7.4/src/everything/" +$ cat $(PRINT_PATH=1 nix-prefetch-url $i | tail -n 1) \ + | perl -e 'while (<>) { if (/(href|HREF)="([^"]*.bz2)"/) { print "$ENV{'i'}$2\n"; }; }' \ + | sort > tarballs-7.4.list + + extra.list contains libraries that aren’t part of X.org proper, but are closely related to it, such as libxcb. old.list contains some packages that were removed from X.org, but are still needed by some people or by other packages (such as imake). + + + + If the expression for a package requires derivation attributes that the generator cannot figure out automatically (say, patches or a postInstall hook), you should modify pkgs/servers/x11/xorg/overrides.nix. + +
\ No newline at end of file diff --git a/doc/manual.xml b/doc/manual.xml index 2f78dad440dc8..1f69872d2a726 100644 --- a/doc/manual.xml +++ b/doc/manual.xml @@ -28,7 +28,7 @@ - +
Contributing to Nixpkgs diff --git a/doc/packages/citrix.xml b/doc/packages/citrix.xml deleted file mode 100644 index bc685f97932d4..0000000000000 --- a/doc/packages/citrix.xml +++ /dev/null @@ -1,44 +0,0 @@ -
- Citrix Workspace - - - - - Please note that the citrix_receiver package has been deprecated since its development was discontinued by upstream and has been replaced by the citrix workspace app. - - - Citrix Receiver and Citrix Workspace App are a remote desktop viewers which provide access to XenDesktop installations. - - -
- Basic usage - - - The tarball archive needs to be downloaded manually as the license agreements of the vendor for Citrix Receiver or Citrix Workspace need to be accepted first. Then run nix-prefetch-url file://$PWD/linuxx64-$version.tar.gz. With the archive available in the store the package can be built and installed with Nix. - - - - Caution with <command>nix-shell</command> installs - - It's recommended to install Citrix Receiver and/or Citrix Workspace using nix-env -i or globally to ensure that the .desktop files are installed properly into $XDG_CONFIG_DIRS. Otherwise it won't be possible to open .ica files automatically from the browser to start a Citrix connection. - - -
- -
- Custom certificates - - - The Citrix Workspace App in nixpkgs trust several certificates from the Mozilla database by default. However several companies using Citrix might require their own corporate certificate. On distros with imperative packaging these certs can be stored easily in $ICAROOT, however this directory is a store path in nixpkgs. In order to work around this issue the package provides a simple mechanism to add custom certificates without rebuilding the entire package using symlinkJoin: - - { config.allowUnfree = true; }; -let extraCerts = [ ./custom-cert-1.pem ./custom-cert-2.pem /* ... */ ]; in -citrix_workspace.override { - inherit extraCerts; -}]]> - - -
-
\ No newline at end of file diff --git a/doc/packages/dlib.xml b/doc/packages/dlib.xml deleted file mode 100644 index 98c211cf9df79..0000000000000 --- a/doc/packages/dlib.xml +++ /dev/null @@ -1,24 +0,0 @@ -
- DLib - - - DLib is a modern, C++-based toolkit which provides several machine learning algorithms. - - -
- Compiling without AVX support - - - Especially older CPUs don't support AVX (Advanced Vector Extensions) instructions that are used by DLib to optimize their algorithms. - - - - On the affected hardware errors like Illegal instruction will occur. In those cases AVX support needs to be disabled: -self: super: { - dlib = super.dlib.override { avxSupport = false; }; -} - -
-
\ No newline at end of file diff --git a/doc/packages/eclipse.xml b/doc/packages/eclipse.xml deleted file mode 100644 index 968c58d3b5bb0..0000000000000 --- a/doc/packages/eclipse.xml +++ /dev/null @@ -1,72 +0,0 @@ -
- Eclipse - - - The Nix expressions related to the Eclipse platform and IDE are in pkgs/applications/editors/eclipse. - - - - Nixpkgs provides a number of packages that will install Eclipse in its various forms. These range from the bare-bones Eclipse Platform to the more fully featured Eclipse SDK or Scala-IDE packages and multiple version are often available. It is possible to list available Eclipse packages by issuing the command: - -$ nix-env -f '<nixpkgs>' -qaP -A eclipses --description - - Once an Eclipse variant is installed it can be run using the eclipse command, as expected. From within Eclipse it is then possible to install plugins in the usual manner by either manually specifying an Eclipse update site or by installing the Marketplace Client plugin and using it to discover and install other plugins. This installation method provides an Eclipse installation that closely resemble a manually installed Eclipse. - - - - If you prefer to install plugins in a more declarative manner then Nixpkgs also offer a number of Eclipse plugins that can be installed in an Eclipse environment. This type of environment is created using the function eclipseWithPlugins found inside the nixpkgs.eclipses attribute set. This function takes as argument { eclipse, plugins ? [], jvmArgs ? [] } where eclipse is a one of the Eclipse packages described above, plugins is a list of plugin derivations, and jvmArgs is a list of arguments given to the JVM running the Eclipse. For example, say you wish to install the latest Eclipse Platform with the popular Eclipse Color Theme plugin and also allow Eclipse to use more RAM. You could then add - -packageOverrides = pkgs: { - myEclipse = with pkgs.eclipses; eclipseWithPlugins { - eclipse = eclipse-platform; - jvmArgs = [ "-Xmx2048m" ]; - plugins = [ plugins.color-theme ]; - }; -} - - to your Nixpkgs configuration (~/.config/nixpkgs/config.nix) and install it by running nix-env -f '<nixpkgs>' -iA myEclipse and afterward run Eclipse as usual. It is possible to find out which plugins are available for installation using eclipseWithPlugins by running - -$ nix-env -f '<nixpkgs>' -qaP -A eclipses.plugins --description - - - - - If there is a need to install plugins that are not available in Nixpkgs then it may be possible to define these plugins outside Nixpkgs using the buildEclipseUpdateSite and buildEclipsePlugin functions found in the nixpkgs.eclipses.plugins attribute set. Use the buildEclipseUpdateSite function to install a plugin distributed as an Eclipse update site. This function takes { name, src } as argument where src indicates the Eclipse update site archive. All Eclipse features and plugins within the downloaded update site will be installed. When an update site archive is not available then the buildEclipsePlugin function can be used to install a plugin that consists of a pair of feature and plugin JARs. This function takes an argument { name, srcFeature, srcPlugin } where srcFeature and srcPlugin are the feature and plugin JARs, respectively. - - - - Expanding the previous example with two plugins using the above functions we have - -packageOverrides = pkgs: { - myEclipse = with pkgs.eclipses; eclipseWithPlugins { - eclipse = eclipse-platform; - jvmArgs = [ "-Xmx2048m" ]; - plugins = [ - plugins.color-theme - (plugins.buildEclipsePlugin { - name = "myplugin1-1.0"; - srcFeature = fetchurl { - url = "http://…/features/myplugin1.jar"; - sha256 = "123…"; - }; - srcPlugin = fetchurl { - url = "http://…/plugins/myplugin1.jar"; - sha256 = "123…"; - }; - }); - (plugins.buildEclipseUpdateSite { - name = "myplugin2-1.0"; - src = fetchurl { - stripRoot = false; - url = "http://…/myplugin2.zip"; - sha256 = "123…"; - }; - }); - ]; - }; -} - - -
\ No newline at end of file diff --git a/doc/packages/elm.xml b/doc/packages/elm.xml deleted file mode 100644 index 8ee0528526544..0000000000000 --- a/doc/packages/elm.xml +++ /dev/null @@ -1,17 +0,0 @@ -
- Elm - - - To start a development environment do nix-shell -p elmPackages.elm elmPackages.elm-format - - - - To update Elm compiler, see nixpkgs/pkgs/development/compilers/elm/README.md. - - - - To package Elm applications, read about elm2nix. - -
\ No newline at end of file diff --git a/doc/packages/emacs.xml b/doc/packages/emacs.xml deleted file mode 100644 index a9a26882c9cd3..0000000000000 --- a/doc/packages/emacs.xml +++ /dev/null @@ -1,131 +0,0 @@ -
- Emacs - -
- Configuring Emacs - - - The Emacs package comes with some extra helpers to make it easier to configure. emacsWithPackages allows you to manage packages from ELPA. This means that you will not have to install that packages from within Emacs. For instance, if you wanted to use company, counsel, flycheck, ivy, magit, projectile, and use-package you could use this as a ~/.config/nixpkgs/config.nix override: - - - -{ - packageOverrides = pkgs: with pkgs; { - myEmacs = emacsWithPackages (epkgs: (with epkgs.melpaStablePackages; [ - company - counsel - flycheck - ivy - magit - projectile - use-package - ])); - } -} - - - - You can install it like any other packages via nix-env -iA myEmacs. However, this will only install those packages. It will not configure them for us. To do this, we need to provide a configuration file. Luckily, it is possible to do this from within Nix! By modifying the above example, we can make Emacs load a custom config file. The key is to create a package that provide a default.el file in /share/emacs/site-start/. Emacs knows to load this file automatically when it starts. - - - -{ - packageOverrides = pkgs: with pkgs; rec { - myEmacsConfig = writeText "default.el" '' -;; initialize package - -(require 'package) -(package-initialize 'noactivate) -(eval-when-compile - (require 'use-package)) - -;; load some packages - -(use-package company - :bind ("<C-tab>" . company-complete) - :diminish company-mode - :commands (company-mode global-company-mode) - :defer 1 - :config - (global-company-mode)) - -(use-package counsel - :commands (counsel-descbinds) - :bind (([remap execute-extended-command] . counsel-M-x) - ("C-x C-f" . counsel-find-file) - ("C-c g" . counsel-git) - ("C-c j" . counsel-git-grep) - ("C-c k" . counsel-ag) - ("C-x l" . counsel-locate) - ("M-y" . counsel-yank-pop))) - -(use-package flycheck - :defer 2 - :config (global-flycheck-mode)) - -(use-package ivy - :defer 1 - :bind (("C-c C-r" . ivy-resume) - ("C-x C-b" . ivy-switch-buffer) - :map ivy-minibuffer-map - ("C-j" . ivy-call)) - :diminish ivy-mode - :commands ivy-mode - :config - (ivy-mode 1)) - -(use-package magit - :defer - :if (executable-find "git") - :bind (("C-x g" . magit-status) - ("C-x G" . magit-dispatch-popup)) - :init - (setq magit-completing-read-function 'ivy-completing-read)) - -(use-package projectile - :commands projectile-mode - :bind-keymap ("C-c p" . projectile-command-map) - :defer 5 - :config - (projectile-global-mode)) - ''; - myEmacs = emacsWithPackages (epkgs: (with epkgs.melpaStablePackages; [ - (runCommand "default.el" {} '' -mkdir -p $out/share/emacs/site-lisp -cp ${myEmacsConfig} $out/share/emacs/site-lisp/default.el -'') - company - counsel - flycheck - ivy - magit - projectile - use-package - ])); - }; -} - - - - This provides a fairly full Emacs start file. It will load in addition to the user's presonal config. You can always disable it by passing -q to the Emacs command. - - - - Sometimes emacsWithPackages is not enough, as this package set has some priorities imposed on packages (with the lowest priority assigned to Melpa Unstable, and the highest for packages manually defined in pkgs/top-level/emacs-packages.nix). But you can't control this priorities when some package is installed as a dependency. You can override it on per-package-basis, providing all the required dependencies manually - but it's tedious and there is always a possibility that an unwanted dependency will sneak in through some other package. To completely override such a package you can use overrideScope'. - - - -overrides = self: super: rec { - haskell-mode = self.melpaPackages.haskell-mode; - ... -}; -((emacsPackagesGen emacs).overrideScope' overrides).emacsWithPackages (p: with p; [ - # here both these package will use haskell-mode of our own choice - ghc-mod - dante -]) - -
-
\ No newline at end of file diff --git a/doc/packages/ibus.xml b/doc/packages/ibus.xml deleted file mode 100644 index 561d4d2eabdc8..0000000000000 --- a/doc/packages/ibus.xml +++ /dev/null @@ -1,57 +0,0 @@ -
- ibus-engines.typing-booster - - - This package is an ibus-based completion method to speed up typing. - - -
- Activating the engine - - - IBus needs to be configured accordingly to activate typing-booster. The configuration depends on the desktop manager in use. For detailed instructions, please refer to the upstream docs. - - - - On NixOS you need to explicitly enable ibus with given engines before customizing your desktop to use typing-booster. This can be achieved using the ibus module: -{ pkgs, ... }: { - i18n.inputMethod = { - enabled = "ibus"; - ibus.engines = with pkgs.ibus-engines; [ typing-booster ]; - }; -} - -
- -
- Using custom hunspell dictionaries - - - The IBus engine is based on hunspell to support completion in many languages. By default the dictionaries de-de, en-us, fr-moderne es-es, it-it, sv-se and sv-fi are in use. To add another dictionary, the package can be overridden like this: -ibus-engines.typing-booster.override { - langs = [ "de-at" "en-gb" ]; -} - - - - Note: each language passed to langs must be an attribute name in pkgs.hunspellDicts. - -
- -
- Built-in emoji picker - - - The ibus-engines.typing-booster package contains a program named emoji-picker. To display all emojis correctly, a special font such as noto-fonts-emoji is needed: - - - - On NixOS it can be installed using the following expression: -{ pkgs, ... }: { - fonts.fonts = with pkgs; [ noto-fonts-emoji ]; -} - -
-
\ No newline at end of file diff --git a/doc/packages/index.xml b/doc/packages/index.xml deleted file mode 100644 index 9f3f58a8d9031..0000000000000 --- a/doc/packages/index.xml +++ /dev/null @@ -1,23 +0,0 @@ - - Packages - - This chapter contains information about how to use and maintain the Nix expressions for a number of specific packages, such as the Linux kernel or X.org. - - - - - - - - - - - - - - - - - diff --git a/doc/packages/kakoune.xml b/doc/packages/kakoune.xml deleted file mode 100644 index fd40dad7ca876..0000000000000 --- a/doc/packages/kakoune.xml +++ /dev/null @@ -1,14 +0,0 @@ -
- Kakoune - - - Kakoune can be built to autoload plugins: -(kakoune.override { - configure = { - plugins = with pkgs.kakounePlugins; [ parinfer-rust ]; - }; -}) - -
\ No newline at end of file diff --git a/doc/packages/linux.xml b/doc/packages/linux.xml deleted file mode 100644 index 3adfacb6e457e..0000000000000 --- a/doc/packages/linux.xml +++ /dev/null @@ -1,85 +0,0 @@ -
- Linux kernel - - - The Nix expressions to build the Linux kernel are in pkgs/os-specific/linux/kernel. - - - - The function that builds the kernel has an argument kernelPatches which should be a list of {name, patch, extraConfig} attribute sets, where name is the name of the patch (which is included in the kernel’s meta.description attribute), patch is the patch itself (possibly compressed), and extraConfig (optional) is a string specifying extra options to be concatenated to the kernel configuration file (.config). - - - - The kernel derivation exports an attribute features specifying whether optional functionality is or isn’t enabled. This is used in NixOS to implement kernel-specific behaviour. For instance, if the kernel has the iwlwifi feature (i.e. has built-in support for Intel wireless chipsets), then NixOS doesn’t have to build the external iwlwifi package: - -modulesTree = [kernel] - ++ pkgs.lib.optional (!kernel.features ? iwlwifi) kernelPackages.iwlwifi - ++ ...; - - - - - How to add a new (major) version of the Linux kernel to Nixpkgs: - - - - Copy the old Nix expression (e.g. linux-2.6.21.nix) to the new one (e.g. linux-2.6.22.nix) and update it. - - - - - Add the new kernel to all-packages.nix (e.g., create an attribute kernel_2_6_22). - - - - - Now we’re going to update the kernel configuration. First unpack the kernel. Then for each supported platform (i686, x86_64, uml) do the following: - - - - Make an copy from the old config (e.g. config-2.6.21-i686-smp) to the new one (e.g. config-2.6.22-i686-smp). - - - - - Copy the config file for this platform (e.g. config-2.6.22-i686-smp) to .config in the kernel source tree. - - - - - Run make oldconfig ARCH={i386,x86_64,um} and answer all questions. (For the uml configuration, also add SHELL=bash.) Make sure to keep the configuration consistent between platforms (i.e. don’t enable some feature on i686 and disable it on x86_64). - - - - - If needed you can also run make menuconfig: - -$ nix-env -i ncurses -$ export NIX_CFLAGS_LINK=-lncurses -$ make menuconfig ARCH=arch - - - - - Copy .config over the new config file (e.g. config-2.6.22-i686-smp). - - - - - - - - Test building the kernel: nix-build -A kernel_2_6_22. If it compiles, ship it! For extra credit, try booting NixOS with it. - - - - - It may be that the new kernel requires updating the external kernel modules and kernel-dependent packages listed in the linuxPackagesFor function in all-packages.nix (such as the NVIDIA drivers, AUFS, etc.). If the updated packages aren’t backwards compatible with older kernels, you may need to keep the older versions around. - - - - -
\ No newline at end of file diff --git a/doc/packages/locales.xml b/doc/packages/locales.xml deleted file mode 100644 index 15954495e2177..0000000000000 --- a/doc/packages/locales.xml +++ /dev/null @@ -1,13 +0,0 @@ -
- Locales - - - To allow simultaneous use of packages linked against different versions of glibc with different locale archive formats Nixpkgs patches glibc to rely on LOCALE_ARCHIVE environment variable. - - - - On non-NixOS distributions this variable is obviously not set. This can cause regressions in language support or even crashes in some Nixpkgs-provided programs. The simplest way to mitigate this problem is exporting the LOCALE_ARCHIVE variable pointing to ${glibcLocales}/lib/locale/locale-archive. The drawback (and the reason this is not the default) is the relatively large (a hundred MiB) size of the full set of locales. It is possible to build a custom set of locales by overriding parameters allLocales and locales of the package. - -
\ No newline at end of file diff --git a/doc/packages/nginx.xml b/doc/packages/nginx.xml deleted file mode 100644 index 921a6add2a0ae..0000000000000 --- a/doc/packages/nginx.xml +++ /dev/null @@ -1,25 +0,0 @@ -
- Nginx - - - Nginx is a reverse proxy and lightweight webserver. - - -
- ETags on static files served from the Nix store - - - HTTP has a couple different mechanisms for caching to prevent clients from having to download the same content repeatedly if a resource has not changed since the last time it was requested. When nginx is used as a server for static files, it implements the caching mechanism based on the Last-Modified response header automatically; unfortunately, it works by using filesystem timestamps to determine the value of the Last-Modified header. This doesn't give the desired behavior when the file is in the Nix store, because all file timestamps are set to 0 (for reasons related to build reproducibility). - - - - Fortunately, HTTP supports an alternative (and more effective) caching mechanism: the ETag response header. The value of the ETag header specifies some identifier for the particular content that the server is sending (e.g. a hash). When a client makes a second request for the same resource, it sends that value back in an If-None-Match header. If the ETag value is unchanged, then the server does not need to resend the content. - - - - As of NixOS 19.09, the nginx package in Nixpkgs is patched such that when nginx serves a file out of /nix/store, the hash in the store path is used as the ETag header in the HTTP response, thus providing proper caching functionality. This happens automatically; you do not need to do modify any configuration to get this behavior. - -
-
\ No newline at end of file diff --git a/doc/packages/opengl.xml b/doc/packages/opengl.xml deleted file mode 100644 index fcb624736b092..0000000000000 --- a/doc/packages/opengl.xml +++ /dev/null @@ -1,9 +0,0 @@ -
- OpenGL - - - Packages that use OpenGL have NixOS desktop as their primary target. The current solution for loading the GPU-specific drivers is based on libglvnd and looks for the driver implementation in LD_LIBRARY_PATH. If you are using a non-NixOS GNU/Linux/X11 desktop with free software video drivers, consider launching OpenGL-dependent programs from Nixpkgs with Nixpkgs versions of libglvnd and mesa_drivers in LD_LIBRARY_PATH. For proprietary video drivers you might have luck with also adding the corresponding video driver package. - -
\ No newline at end of file diff --git a/doc/packages/shell-helpers.xml b/doc/packages/shell-helpers.xml deleted file mode 100644 index 53416ce7e171d..0000000000000 --- a/doc/packages/shell-helpers.xml +++ /dev/null @@ -1,25 +0,0 @@ -
- Interactive shell helpers - - - Some packages provide the shell integration to be more useful. But unlike other systems, nix doesn't have a standard share directory location. This is why a bunch PACKAGE-share scripts are shipped that print the location of the corresponding shared folder. Current list of such packages is as following: - - - - autojump: autojump-share - - - - - fzf: fzf-share - - - - E.g. autojump can then used in the .bashrc like this: - - source "$(autojump-share)/autojump.bash" - - -
\ No newline at end of file diff --git a/doc/packages/steam.xml b/doc/packages/steam.xml deleted file mode 100644 index 413247ee46854..0000000000000 --- a/doc/packages/steam.xml +++ /dev/null @@ -1,131 +0,0 @@ -
- Steam - -
- Steam in Nix - - - Steam is distributed as a .deb file, for now only as an i686 package (the amd64 package only has documentation). When unpacked, it has a script called steam that in Ubuntu (their target distro) would go to /usr/bin . When run for the first time, this script copies some files to the user's home, which include another script that is the ultimate responsible for launching the steam binary, which is also in $HOME. - - - - Nix problems and constraints: - - - - We don't have /bin/bash and many scripts point there. Similarly for /usr/bin/python . - - - - - We don't have the dynamic loader in /lib . - - - - - The steam.sh script in $HOME can not be patched, as it is checked and rewritten by steam. - - - - - The steam binary cannot be patched, it's also checked. - - - - - - - The current approach to deploy Steam in NixOS is composing a FHS-compatible chroot environment, as documented here. This allows us to have binaries in the expected paths without disrupting the system, and to avoid patching them to work in a non FHS environment. - -
- -
- How to play - - - For 64-bit systems it's important to have -hardware.opengl.driSupport32Bit = true; - in your /etc/nixos/configuration.nix. You'll also need -hardware.pulseaudio.support32Bit = true; - if you are using PulseAudio - this will enable 32bit ALSA apps integration. To use the Steam controller or other Steam supported controllers such as the DualShock 4 or Nintendo Switch Pro, you need to add -hardware.steam-hardware.enable = true; - to your configuration. - -
- -
- Troubleshooting - - - - - - Steam fails to start. What do I do? - - - - Try to run -strace steam - to see what is causing steam to fail. - - - - - - Using the FOSS Radeon or nouveau (nvidia) drivers - - - - - - The newStdcpp parameter was removed since NixOS 17.09 and should not be needed anymore. - - - - - Steam ships statically linked with a version of libcrypto that conflics with the one dynamically loaded by radeonsi_dri.so. If you get the error -steam.sh: line 713: 7842 Segmentation fault (core dumped) - have a look at this pull request. - - - - - - - - Java - - - - - - There is no java in steam chrootenv by default. If you get a message like -/home/foo/.local/share/Steam/SteamApps/common/towns/towns.sh: line 1: java: command not found - You need to add - steam.override { withJava = true; }; - to your configuration. - - - - - - - -
- -
- steam-run - - - The FHS-compatible chroot used for steam can also be used to run other linux games that expect a FHS environment. To do it, add -pkgs.(steam.override { - nativeOnly = true; - newStdcpp = true; - }).run - to your configuration, rebuild, and run the game with -steam-run ./foo - -
-
\ No newline at end of file diff --git a/doc/packages/unfree.xml b/doc/packages/unfree.xml deleted file mode 100644 index b2d8402005e90..0000000000000 --- a/doc/packages/unfree.xml +++ /dev/null @@ -1,13 +0,0 @@ -
- Unfree software - - - All users of Nixpkgs are free software users, and many users (and developers) of Nixpkgs want to limit and tightly control their exposure to unfree software. At the same time, many users need (or want) to run some specific pieces of proprietary software. Nixpkgs includes some expressions for unfree software packages. By default unfree software cannot be installed and doesn’t show up in searches. To allow installing unfree software in a single Nix invocation one can export NIXPKGS_ALLOW_UNFREE=1. For a persistent solution, users can set allowUnfree in the Nixpkgs configuration. - - - - Fine-grained control is possible by defining allowUnfreePredicate function in config; it takes the mkDerivation parameter attrset and returns true for unfree packages that should be allowed. - -
\ No newline at end of file diff --git a/doc/packages/weechat.xml b/doc/packages/weechat.xml deleted file mode 100644 index aeb240d904b52..0000000000000 --- a/doc/packages/weechat.xml +++ /dev/null @@ -1,85 +0,0 @@ -
- Weechat - - - Weechat can be configured to include your choice of plugins, reducing its closure size from the default configuration which includes all available plugins. To make use of this functionality, install an expression that overrides its configuration such as -weechat.override {configure = {availablePlugins, ...}: { - plugins = with availablePlugins; [ python perl ]; - } -} - If the configure function returns an attrset without the plugins attribute, availablePlugins will be used automatically. - - - - The plugins currently available are python, perl, ruby, guile, tcl and lua. - - - - The python and perl plugins allows the addition of extra libraries. For instance, the inotify.py script in weechat-scripts requires D-Bus or libnotify, and the fish.py script requires pycrypto. To use these scripts, use the plugin's withPackages attribute: -weechat.override { configure = {availablePlugins, ...}: { - plugins = with availablePlugins; [ - (python.withPackages (ps: with ps; [ pycrypto python-dbus ])) - ]; - }; -} - - - - - In order to also keep all default plugins installed, it is possible to use the following method: -weechat.override { configure = { availablePlugins, ... }: { - plugins = builtins.attrValues (availablePlugins // { - python = availablePlugins.python.withPackages (ps: with ps; [ pycrypto python-dbus ]); - }); -}; } - - - - - WeeChat allows to set defaults on startup using the --run-command. The configure method can be used to pass commands to the program: -weechat.override { - configure = { availablePlugins, ... }: { - init = '' - /set foo bar - /server add freenode chat.freenode.org - ''; - }; -} - Further values can be added to the list of commands when running weechat --run-command "your-commands". - - - - Additionally it's possible to specify scripts to be loaded when starting weechat. These will be loaded before the commands from init: -weechat.override { - configure = { availablePlugins, ... }: { - scripts = with pkgs.weechatScripts; [ - weechat-xmpp weechat-matrix-bridge wee-slack - ]; - init = '' - /set plugins.var.python.jabber.key "val" - '': - }; -} - - - - In nixpkgs there's a subpackage which contains derivations for WeeChat scripts. Such derivations expect a passthru.scripts attribute which contains a list of all scripts inside the store path. Furthermore all scripts have to live in $out/share. An exemplary derivation looks like this: -{ stdenv, fetchurl }: - -stdenv.mkDerivation { - name = "exemplary-weechat-script"; - src = fetchurl { - url = "https://scripts.tld/your-scripts.tar.gz"; - sha256 = "..."; - }; - passthru.scripts = [ "foo.py" "bar.lua" ]; - installPhase = '' - mkdir $out/share - cp foo.py $out/share - cp bar.lua $out/share - ''; -} - -
\ No newline at end of file diff --git a/doc/packages/xorg.xml b/doc/packages/xorg.xml deleted file mode 100644 index 4526121687fc2..0000000000000 --- a/doc/packages/xorg.xml +++ /dev/null @@ -1,34 +0,0 @@ -
- X.org - - - The Nix expressions for the X.org packages reside in pkgs/servers/x11/xorg/default.nix. This file is automatically generated from lists of tarballs in an X.org release. As such it should not be modified directly; rather, you should modify the lists, the generator script or the file pkgs/servers/x11/xorg/overrides.nix, in which you can override or add to the derivations produced by the generator. - - - - The generator is invoked as follows: - -$ cd pkgs/servers/x11/xorg -$ cat tarballs-7.5.list extra.list old.list \ - | perl ./generate-expr-from-tarballs.pl - - For each of the tarballs in the .list files, the script downloads it, unpacks it, and searches its configure.ac and *.pc.in files for dependencies. This information is used to generate default.nix. The generator caches downloaded tarballs between runs. Pay close attention to the NOT FOUND: name messages at the end of the run, since they may indicate missing dependencies. (Some might be optional dependencies, however.) - - - - A file like tarballs-7.5.list contains all tarballs in a X.org release. It can be generated like this: - -$ export i="mirror://xorg/X11R7.4/src/everything/" -$ cat $(PRINT_PATH=1 nix-prefetch-url $i | tail -n 1) \ - | perl -e 'while (<>) { if (/(href|HREF)="([^"]*.bz2)"/) { print "$ENV{'i'}$2\n"; }; }' \ - | sort > tarballs-7.4.list - - extra.list contains libraries that aren’t part of X.org proper, but are closely related to it, such as libxcb. old.list contains some packages that were removed from X.org, but are still needed by some people or by other packages (such as imake). - - - - If the expression for a package requires derivation attributes that the generator cannot figure out automatically (say, patches or a postInstall hook), you should modify pkgs/servers/x11/xorg/overrides.nix. - -
\ No newline at end of file -- cgit 1.4.1 From aad81ec8cd158a9e11f4d35fc6022d1300fcb4c6 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Wed, 30 Oct 2019 11:03:55 +0100 Subject: nixpkgs manual: fix white space and indentation --- doc/builders/fetchers.xml | 9 -- doc/builders/packages/citrix.xml | 52 ++++---- doc/builders/packages/dlib.xml | 28 ++--- doc/builders/packages/eclipse.xml | 38 +++--- doc/builders/packages/elm.xml | 8 +- doc/builders/packages/emacs.xml | 34 ++--- doc/builders/packages/ibus.xml | 64 +++++----- doc/builders/packages/kakoune.xml | 10 +- doc/builders/packages/linux.xml | 136 ++++++++++---------- doc/builders/packages/locales.xml | 2 +- doc/builders/packages/nginx.xml | 34 ++--- doc/builders/packages/opengl.xml | 4 +- doc/builders/packages/shell-helpers.xml | 36 +++--- doc/builders/packages/steam.xml | 212 ++++++++++++++++---------------- doc/builders/packages/unfree.xml | 2 +- doc/builders/packages/weechat.xml | 50 ++++---- doc/builders/packages/xorg.xml | 32 ++--- doc/builders/special.xml | 2 - doc/builders/trivial-builders.xml | 2 - doc/using/overrides.xml | 6 - 20 files changed, 371 insertions(+), 390 deletions(-) (limited to 'doc') diff --git a/doc/builders/fetchers.xml b/doc/builders/fetchers.xml index 6f8990e8d16ce..ff3988334916d 100644 --- a/doc/builders/fetchers.xml +++ b/doc/builders/fetchers.xml @@ -3,15 +3,12 @@ xmlns:xi="http://www.w3.org/2001/XInclude" xml:id="chap-pkgs-fetchers"> Fetchers - When using Nix, you will frequently need to download source code and other files from the internet. Nixpkgs comes with a few helper functions that allow you to fetch fixed-output derivations in a structured way. - The two fetcher primitives are fetchurl and fetchzip. Both of these have two required arguments, a URL and a hash. The hash is typically sha256, although many more hash algorithms are supported. Nixpkgs contributors are currently recommended to use sha256. This hash will be used by Nix to identify your source. A typical usage of fetchurl is provided below. - - The main difference between fetchurl and fetchzip is in how they store the contents. fetchurl will store the unaltered contents of the URL within the Nix store. fetchzip on the other hand will decompress the archive for you, making files and directories directly accessible in the future. fetchzip can only be used with archives. Despite the name, fetchzip is not limited to .zip files and can also be used with any tarball. - fetchpatch works very similarly to fetchurl with the same arguments expected. It expects patch files as a source and and performs normalization on them before computing the checksum. For example it will remove comments or other unstable parts that are sometimes added by version control systems and can change over time. - Other fetcher functions allow you to add source code directly from a VCS such as subversion or git. These are mostly straightforward names based on the name of the command used with the VCS system. Because they give you a working repository, they act most like fetchzip. - @@ -88,11 +81,9 @@ stdenv.mkDerivation {
- A number of fetcher functions wrap part of fetchurl and fetchzip. They are mainly convenience functions intended for commonly used destinations of source code in Nixpkgs. These wrapper fetchers are listed below. - diff --git a/doc/builders/packages/citrix.xml b/doc/builders/packages/citrix.xml index bc685f97932d4..c629dc9ee503e 100644 --- a/doc/builders/packages/citrix.xml +++ b/doc/builders/packages/citrix.xml @@ -1,37 +1,37 @@
- Citrix Workspace + Citrix Workspace + + + + + Please note that the citrix_receiver package has been deprecated since its development was discontinued by upstream and has been replaced by the citrix workspace app. + + + Citrix Receiver and Citrix Workspace App are a remote desktop viewers which provide access to XenDesktop installations. + + +
+ Basic usage - - - Please note that the citrix_receiver package has been deprecated since its development was discontinued by upstream and has been replaced by the citrix workspace app. - - - Citrix Receiver and Citrix Workspace App are a remote desktop viewers which provide access to XenDesktop installations. + The tarball archive needs to be downloaded manually as the license agreements of the vendor for Citrix Receiver or Citrix Workspace need to be accepted first. Then run nix-prefetch-url file://$PWD/linuxx64-$version.tar.gz. With the archive available in the store the package can be built and installed with Nix. -
- Basic usage - + + Caution with <command>nix-shell</command> installs - The tarball archive needs to be downloaded manually as the license agreements of the vendor for Citrix Receiver or Citrix Workspace need to be accepted first. Then run nix-prefetch-url file://$PWD/linuxx64-$version.tar.gz. With the archive available in the store the package can be built and installed with Nix. + It's recommended to install Citrix Receiver and/or Citrix Workspace using nix-env -i or globally to ensure that the .desktop files are installed properly into $XDG_CONFIG_DIRS. Otherwise it won't be possible to open .ica files automatically from the browser to start a Citrix connection. + +
- - Caution with <command>nix-shell</command> installs - - It's recommended to install Citrix Receiver and/or Citrix Workspace using nix-env -i or globally to ensure that the .desktop files are installed properly into $XDG_CONFIG_DIRS. Otherwise it won't be possible to open .ica files automatically from the browser to start a Citrix connection. - - -
+
+ Custom certificates -
- Custom certificates - - - The Citrix Workspace App in nixpkgs trust several certificates from the Mozilla database by default. However several companies using Citrix might require their own corporate certificate. On distros with imperative packaging these certs can be stored easily in $ICAROOT, however this directory is a store path in nixpkgs. In order to work around this issue the package provides a simple mechanism to add custom certificates without rebuilding the entire package using symlinkJoin: + + The Citrix Workspace App in nixpkgs trust several certificates from the Mozilla database by default. However several companies using Citrix might require their own corporate certificate. On distros with imperative packaging these certs can be stored easily in $ICAROOT, however this directory is a store path in nixpkgs. In order to work around this issue the package provides a simple mechanism to add custom certificates without rebuilding the entire package using symlinkJoin: { config.allowUnfree = true; }; let extraCerts = [ ./custom-cert-1.pem ./custom-cert-2.pem /* ... */ ]; in @@ -39,6 +39,6 @@ citrix_workspace.override { inherit extraCerts; }]]> - -
-
\ No newline at end of file + +
+ diff --git a/doc/builders/packages/dlib.xml b/doc/builders/packages/dlib.xml index 98c211cf9df79..5f768dd51b62d 100644 --- a/doc/builders/packages/dlib.xml +++ b/doc/builders/packages/dlib.xml @@ -1,24 +1,24 @@
- DLib + DLib - - DLib is a modern, C++-based toolkit which provides several machine learning algorithms. - + + DLib is a modern, C++-based toolkit which provides several machine learning algorithms. + -
- Compiling without AVX support +
+ Compiling without AVX support - - Especially older CPUs don't support AVX (Advanced Vector Extensions) instructions that are used by DLib to optimize their algorithms. - + + Especially older CPUs don't support AVX (Advanced Vector Extensions) instructions that are used by DLib to optimize their algorithms. + - - On the affected hardware errors like Illegal instruction will occur. In those cases AVX support needs to be disabled: + + On the affected hardware errors like Illegal instruction will occur. In those cases AVX support needs to be disabled: self: super: { dlib = super.dlib.override { avxSupport = false; }; } - -
-
\ No newline at end of file + +
+ diff --git a/doc/builders/packages/eclipse.xml b/doc/builders/packages/eclipse.xml index 968c58d3b5bb0..fc5094ed8f364 100644 --- a/doc/builders/packages/eclipse.xml +++ b/doc/builders/packages/eclipse.xml @@ -1,22 +1,22 @@
- Eclipse + Eclipse - - The Nix expressions related to the Eclipse platform and IDE are in pkgs/applications/editors/eclipse. - + + The Nix expressions related to the Eclipse platform and IDE are in pkgs/applications/editors/eclipse. + - - Nixpkgs provides a number of packages that will install Eclipse in its various forms. These range from the bare-bones Eclipse Platform to the more fully featured Eclipse SDK or Scala-IDE packages and multiple version are often available. It is possible to list available Eclipse packages by issuing the command: + + Nixpkgs provides a number of packages that will install Eclipse in its various forms. These range from the bare-bones Eclipse Platform to the more fully featured Eclipse SDK or Scala-IDE packages and multiple version are often available. It is possible to list available Eclipse packages by issuing the command: $ nix-env -f '<nixpkgs>' -qaP -A eclipses --description - Once an Eclipse variant is installed it can be run using the eclipse command, as expected. From within Eclipse it is then possible to install plugins in the usual manner by either manually specifying an Eclipse update site or by installing the Marketplace Client plugin and using it to discover and install other plugins. This installation method provides an Eclipse installation that closely resemble a manually installed Eclipse. - + Once an Eclipse variant is installed it can be run using the eclipse command, as expected. From within Eclipse it is then possible to install plugins in the usual manner by either manually specifying an Eclipse update site or by installing the Marketplace Client plugin and using it to discover and install other plugins. This installation method provides an Eclipse installation that closely resemble a manually installed Eclipse. + - - If you prefer to install plugins in a more declarative manner then Nixpkgs also offer a number of Eclipse plugins that can be installed in an Eclipse environment. This type of environment is created using the function eclipseWithPlugins found inside the nixpkgs.eclipses attribute set. This function takes as argument { eclipse, plugins ? [], jvmArgs ? [] } where eclipse is a one of the Eclipse packages described above, plugins is a list of plugin derivations, and jvmArgs is a list of arguments given to the JVM running the Eclipse. For example, say you wish to install the latest Eclipse Platform with the popular Eclipse Color Theme plugin and also allow Eclipse to use more RAM. You could then add + + If you prefer to install plugins in a more declarative manner then Nixpkgs also offer a number of Eclipse plugins that can be installed in an Eclipse environment. This type of environment is created using the function eclipseWithPlugins found inside the nixpkgs.eclipses attribute set. This function takes as argument { eclipse, plugins ? [], jvmArgs ? [] } where eclipse is a one of the Eclipse packages described above, plugins is a list of plugin derivations, and jvmArgs is a list of arguments given to the JVM running the Eclipse. For example, say you wish to install the latest Eclipse Platform with the popular Eclipse Color Theme plugin and also allow Eclipse to use more RAM. You could then add packageOverrides = pkgs: { myEclipse = with pkgs.eclipses; eclipseWithPlugins { @@ -26,18 +26,18 @@ packageOverrides = pkgs: { }; } - to your Nixpkgs configuration (~/.config/nixpkgs/config.nix) and install it by running nix-env -f '<nixpkgs>' -iA myEclipse and afterward run Eclipse as usual. It is possible to find out which plugins are available for installation using eclipseWithPlugins by running + to your Nixpkgs configuration (~/.config/nixpkgs/config.nix) and install it by running nix-env -f '<nixpkgs>' -iA myEclipse and afterward run Eclipse as usual. It is possible to find out which plugins are available for installation using eclipseWithPlugins by running $ nix-env -f '<nixpkgs>' -qaP -A eclipses.plugins --description - + - - If there is a need to install plugins that are not available in Nixpkgs then it may be possible to define these plugins outside Nixpkgs using the buildEclipseUpdateSite and buildEclipsePlugin functions found in the nixpkgs.eclipses.plugins attribute set. Use the buildEclipseUpdateSite function to install a plugin distributed as an Eclipse update site. This function takes { name, src } as argument where src indicates the Eclipse update site archive. All Eclipse features and plugins within the downloaded update site will be installed. When an update site archive is not available then the buildEclipsePlugin function can be used to install a plugin that consists of a pair of feature and plugin JARs. This function takes an argument { name, srcFeature, srcPlugin } where srcFeature and srcPlugin are the feature and plugin JARs, respectively. - + + If there is a need to install plugins that are not available in Nixpkgs then it may be possible to define these plugins outside Nixpkgs using the buildEclipseUpdateSite and buildEclipsePlugin functions found in the nixpkgs.eclipses.plugins attribute set. Use the buildEclipseUpdateSite function to install a plugin distributed as an Eclipse update site. This function takes { name, src } as argument where src indicates the Eclipse update site archive. All Eclipse features and plugins within the downloaded update site will be installed. When an update site archive is not available then the buildEclipsePlugin function can be used to install a plugin that consists of a pair of feature and plugin JARs. This function takes an argument { name, srcFeature, srcPlugin } where srcFeature and srcPlugin are the feature and plugin JARs, respectively. + - - Expanding the previous example with two plugins using the above functions we have + + Expanding the previous example with two plugins using the above functions we have packageOverrides = pkgs: { myEclipse = with pkgs.eclipses; eclipseWithPlugins { @@ -68,5 +68,5 @@ packageOverrides = pkgs: { }; } - -
\ No newline at end of file +
+ diff --git a/doc/builders/packages/elm.xml b/doc/builders/packages/elm.xml index 8ee0528526544..a067f6c7c70ee 100644 --- a/doc/builders/packages/elm.xml +++ b/doc/builders/packages/elm.xml @@ -4,14 +4,14 @@ Elm - To start a development environment do nix-shell -p elmPackages.elm elmPackages.elm-format + To start a development environment do nix-shell -p elmPackages.elm elmPackages.elm-format - To update Elm compiler, see nixpkgs/pkgs/development/compilers/elm/README.md. + To update Elm compiler, see nixpkgs/pkgs/development/compilers/elm/README.md. - To package Elm applications, read about elm2nix. + To package Elm applications, read about elm2nix. - \ No newline at end of file + diff --git a/doc/builders/packages/emacs.xml b/doc/builders/packages/emacs.xml index a9a26882c9cd3..9cce7c40863af 100644 --- a/doc/builders/packages/emacs.xml +++ b/doc/builders/packages/emacs.xml @@ -1,14 +1,14 @@
- Emacs + Emacs -
- Configuring Emacs +
+ Configuring Emacs - - The Emacs package comes with some extra helpers to make it easier to configure. emacsWithPackages allows you to manage packages from ELPA. This means that you will not have to install that packages from within Emacs. For instance, if you wanted to use company, counsel, flycheck, ivy, magit, projectile, and use-package you could use this as a ~/.config/nixpkgs/config.nix override: - + + The Emacs package comes with some extra helpers to make it easier to configure. emacsWithPackages allows you to manage packages from ELPA. This means that you will not have to install that packages from within Emacs. For instance, if you wanted to use company, counsel, flycheck, ivy, magit, projectile, and use-package you could use this as a ~/.config/nixpkgs/config.nix override: + { @@ -26,9 +26,9 @@ } - - You can install it like any other packages via nix-env -iA myEmacs. However, this will only install those packages. It will not configure them for us. To do this, we need to provide a configuration file. Luckily, it is possible to do this from within Nix! By modifying the above example, we can make Emacs load a custom config file. The key is to create a package that provide a default.el file in /share/emacs/site-start/. Emacs knows to load this file automatically when it starts. - + + You can install it like any other packages via nix-env -iA myEmacs. However, this will only install those packages. It will not configure them for us. To do this, we need to provide a configuration file. Luckily, it is possible to do this from within Nix! By modifying the above example, we can make Emacs load a custom config file. The key is to create a package that provide a default.el file in /share/emacs/site-start/. Emacs knows to load this file automatically when it starts. + { @@ -108,13 +108,13 @@ cp ${myEmacsConfig} $out/share/emacs/site-lisp/default.el } - - This provides a fairly full Emacs start file. It will load in addition to the user's presonal config. You can always disable it by passing -q to the Emacs command. - + + This provides a fairly full Emacs start file. It will load in addition to the user's presonal config. You can always disable it by passing -q to the Emacs command. + - - Sometimes emacsWithPackages is not enough, as this package set has some priorities imposed on packages (with the lowest priority assigned to Melpa Unstable, and the highest for packages manually defined in pkgs/top-level/emacs-packages.nix). But you can't control this priorities when some package is installed as a dependency. You can override it on per-package-basis, providing all the required dependencies manually - but it's tedious and there is always a possibility that an unwanted dependency will sneak in through some other package. To completely override such a package you can use overrideScope'. - + + Sometimes emacsWithPackages is not enough, as this package set has some priorities imposed on packages (with the lowest priority assigned to Melpa Unstable, and the highest for packages manually defined in pkgs/top-level/emacs-packages.nix). But you can't control this priorities when some package is installed as a dependency. You can override it on per-package-basis, providing all the required dependencies manually - but it's tedious and there is always a possibility that an unwanted dependency will sneak in through some other package. To completely override such a package you can use overrideScope'. + overrides = self: super: rec { @@ -127,5 +127,5 @@ overrides = self: super: rec { dante ]) -
-
\ No newline at end of file +
+ diff --git a/doc/builders/packages/ibus.xml b/doc/builders/packages/ibus.xml index 561d4d2eabdc8..2ed37903a2733 100644 --- a/doc/builders/packages/ibus.xml +++ b/doc/builders/packages/ibus.xml @@ -1,57 +1,57 @@
- ibus-engines.typing-booster + ibus-engines.typing-booster - - This package is an ibus-based completion method to speed up typing. - + + This package is an ibus-based completion method to speed up typing. + -
- Activating the engine +
+ Activating the engine - - IBus needs to be configured accordingly to activate typing-booster. The configuration depends on the desktop manager in use. For detailed instructions, please refer to the upstream docs. - + + IBus needs to be configured accordingly to activate typing-booster. The configuration depends on the desktop manager in use. For detailed instructions, please refer to the upstream docs. + - - On NixOS you need to explicitly enable ibus with given engines before customizing your desktop to use typing-booster. This can be achieved using the ibus module: + + On NixOS you need to explicitly enable ibus with given engines before customizing your desktop to use typing-booster. This can be achieved using the ibus module: { pkgs, ... }: { i18n.inputMethod = { enabled = "ibus"; ibus.engines = with pkgs.ibus-engines; [ typing-booster ]; }; } - -
+ +
-
- Using custom hunspell dictionaries +
+ Using custom hunspell dictionaries - - The IBus engine is based on hunspell to support completion in many languages. By default the dictionaries de-de, en-us, fr-moderne es-es, it-it, sv-se and sv-fi are in use. To add another dictionary, the package can be overridden like this: + + The IBus engine is based on hunspell to support completion in many languages. By default the dictionaries de-de, en-us, fr-moderne es-es, it-it, sv-se and sv-fi are in use. To add another dictionary, the package can be overridden like this: ibus-engines.typing-booster.override { langs = [ "de-at" "en-gb" ]; } - + - - Note: each language passed to langs must be an attribute name in pkgs.hunspellDicts. - -
+ + Note: each language passed to langs must be an attribute name in pkgs.hunspellDicts. + +
-
- Built-in emoji picker +
+ Built-in emoji picker - - The ibus-engines.typing-booster package contains a program named emoji-picker. To display all emojis correctly, a special font such as noto-fonts-emoji is needed: - + + The ibus-engines.typing-booster package contains a program named emoji-picker. To display all emojis correctly, a special font such as noto-fonts-emoji is needed: + - - On NixOS it can be installed using the following expression: + + On NixOS it can be installed using the following expression: { pkgs, ... }: { fonts.fonts = with pkgs; [ noto-fonts-emoji ]; } - -
-
\ No newline at end of file + +
+ diff --git a/doc/builders/packages/kakoune.xml b/doc/builders/packages/kakoune.xml index fd40dad7ca876..728d40dacc92f 100644 --- a/doc/builders/packages/kakoune.xml +++ b/doc/builders/packages/kakoune.xml @@ -1,14 +1,14 @@
- Kakoune + Kakoune - - Kakoune can be built to autoload plugins: + + Kakoune can be built to autoload plugins: (kakoune.override { configure = { plugins = with pkgs.kakounePlugins; [ parinfer-rust ]; }; }) - -
\ No newline at end of file +
+ diff --git a/doc/builders/packages/linux.xml b/doc/builders/packages/linux.xml index 3adfacb6e457e..72d0e21493b3f 100644 --- a/doc/builders/packages/linux.xml +++ b/doc/builders/packages/linux.xml @@ -1,85 +1,85 @@
- Linux kernel + Linux kernel - - The Nix expressions to build the Linux kernel are in + The Nix expressions to build the Linux kernel are in pkgs/os-specific/linux/kernel. - + - - The function that builds the kernel has an argument kernelPatches which should be a list of {name, patch, extraConfig} attribute sets, where name is the name of the patch (which is included in the kernel’s meta.description attribute), patch is the patch itself (possibly compressed), and extraConfig (optional) is a string specifying extra options to be concatenated to the kernel configuration file (.config). - + + The function that builds the kernel has an argument kernelPatches which should be a list of {name, patch, extraConfig} attribute sets, where name is the name of the patch (which is included in the kernel’s meta.description attribute), patch is the patch itself (possibly compressed), and extraConfig (optional) is a string specifying extra options to be concatenated to the kernel configuration file (.config). + - - The kernel derivation exports an attribute features specifying whether optional functionality is or isn’t enabled. This is used in NixOS to implement kernel-specific behaviour. For instance, if the kernel has the iwlwifi feature (i.e. has built-in support for Intel wireless chipsets), then NixOS doesn’t have to build the external iwlwifi package: + + The kernel derivation exports an attribute features specifying whether optional functionality is or isn’t enabled. This is used in NixOS to implement kernel-specific behaviour. For instance, if the kernel has the iwlwifi feature (i.e. has built-in support for Intel wireless chipsets), then NixOS doesn’t have to build the external iwlwifi package: modulesTree = [kernel] ++ pkgs.lib.optional (!kernel.features ? iwlwifi) kernelPackages.iwlwifi ++ ...; - + - - How to add a new (major) version of the Linux kernel to Nixpkgs: - - - - Copy the old Nix expression (e.g. linux-2.6.21.nix) to the new one (e.g. linux-2.6.22.nix) and update it. - - - - - Add the new kernel to all-packages.nix (e.g., create an attribute kernel_2_6_22). - - - - - Now we’re going to update the kernel configuration. First unpack the kernel. Then for each supported platform (i686, x86_64, uml) do the following: - - - - Make an copy from the old config (e.g. config-2.6.21-i686-smp) to the new one (e.g. config-2.6.22-i686-smp). - - - - - Copy the config file for this platform (e.g. config-2.6.22-i686-smp) to .config in the kernel source tree. - - - - - Run make oldconfig ARCH={i386,x86_64,um} and answer all questions. (For the uml configuration, also add SHELL=bash.) Make sure to keep the configuration consistent between platforms (i.e. don’t enable some feature on i686 and disable it on x86_64). - - - - - If needed you can also run make menuconfig: + + How to add a new (major) version of the Linux kernel to Nixpkgs: + + + + Copy the old Nix expression (e.g. linux-2.6.21.nix) to the new one (e.g. linux-2.6.22.nix) and update it. + + + + + Add the new kernel to all-packages.nix (e.g., create an attribute kernel_2_6_22). + + + + + Now we’re going to update the kernel configuration. First unpack the kernel. Then for each supported platform (i686, x86_64, uml) do the following: + + + + Make an copy from the old config (e.g. config-2.6.21-i686-smp) to the new one (e.g. config-2.6.22-i686-smp). + + + + + Copy the config file for this platform (e.g. config-2.6.22-i686-smp) to .config in the kernel source tree. + + + + + Run make oldconfig ARCH={i386,x86_64,um} and answer all questions. (For the uml configuration, also add SHELL=bash.) Make sure to keep the configuration consistent between platforms (i.e. don’t enable some feature on i686 and disable it on x86_64). + + + + + If needed you can also run make menuconfig: $ nix-env -i ncurses $ export NIX_CFLAGS_LINK=-lncurses $ make menuconfig ARCH=arch - - - - - Copy .config over the new config file (e.g. config-2.6.22-i686-smp). - - - - - - - - Test building the kernel: nix-build -A kernel_2_6_22. If it compiles, ship it! For extra credit, try booting NixOS with it. - - - - - It may be that the new kernel requires updating the external kernel modules and kernel-dependent packages listed in the linuxPackagesFor function in all-packages.nix (such as the NVIDIA drivers, AUFS, etc.). If the updated packages aren’t backwards compatible with older kernels, you may need to keep the older versions around. - - - - -
\ No newline at end of file + + + + + Copy .config over the new config file (e.g. config-2.6.22-i686-smp). + + + + + + + + Test building the kernel: nix-build -A kernel_2_6_22. If it compiles, ship it! For extra credit, try booting NixOS with it. + + + + + It may be that the new kernel requires updating the external kernel modules and kernel-dependent packages listed in the linuxPackagesFor function in all-packages.nix (such as the NVIDIA drivers, AUFS, etc.). If the updated packages aren’t backwards compatible with older kernels, you may need to keep the older versions around. + + + + + diff --git a/doc/builders/packages/locales.xml b/doc/builders/packages/locales.xml index 15954495e2177..44fdef034e77f 100644 --- a/doc/builders/packages/locales.xml +++ b/doc/builders/packages/locales.xml @@ -10,4 +10,4 @@ On non-NixOS distributions this variable is obviously not set. This can cause regressions in language support or even crashes in some Nixpkgs-provided programs. The simplest way to mitigate this problem is exporting the LOCALE_ARCHIVE variable pointing to ${glibcLocales}/lib/locale/locale-archive. The drawback (and the reason this is not the default) is the relatively large (a hundred MiB) size of the full set of locales. It is possible to build a custom set of locales by overriding parameters allLocales and locales of the package. - \ No newline at end of file + diff --git a/doc/builders/packages/nginx.xml b/doc/builders/packages/nginx.xml index 921a6add2a0ae..65854ba023667 100644 --- a/doc/builders/packages/nginx.xml +++ b/doc/builders/packages/nginx.xml @@ -1,25 +1,25 @@
- Nginx + Nginx - - Nginx is a reverse proxy and lightweight webserver. - + + Nginx is a reverse proxy and lightweight webserver. + -
- ETags on static files served from the Nix store +
+ ETags on static files served from the Nix store - - HTTP has a couple different mechanisms for caching to prevent clients from having to download the same content repeatedly if a resource has not changed since the last time it was requested. When nginx is used as a server for static files, it implements the caching mechanism based on the Last-Modified response header automatically; unfortunately, it works by using filesystem timestamps to determine the value of the Last-Modified header. This doesn't give the desired behavior when the file is in the Nix store, because all file timestamps are set to 0 (for reasons related to build reproducibility). - + + HTTP has a couple different mechanisms for caching to prevent clients from having to download the same content repeatedly if a resource has not changed since the last time it was requested. When nginx is used as a server for static files, it implements the caching mechanism based on the Last-Modified response header automatically; unfortunately, it works by using filesystem timestamps to determine the value of the Last-Modified header. This doesn't give the desired behavior when the file is in the Nix store, because all file timestamps are set to 0 (for reasons related to build reproducibility). + - - Fortunately, HTTP supports an alternative (and more effective) caching mechanism: the ETag response header. The value of the ETag header specifies some identifier for the particular content that the server is sending (e.g. a hash). When a client makes a second request for the same resource, it sends that value back in an If-None-Match header. If the ETag value is unchanged, then the server does not need to resend the content. - + + Fortunately, HTTP supports an alternative (and more effective) caching mechanism: the ETag response header. The value of the ETag header specifies some identifier for the particular content that the server is sending (e.g. a hash). When a client makes a second request for the same resource, it sends that value back in an If-None-Match header. If the ETag value is unchanged, then the server does not need to resend the content. + - - As of NixOS 19.09, the nginx package in Nixpkgs is patched such that when nginx serves a file out of /nix/store, the hash in the store path is used as the ETag header in the HTTP response, thus providing proper caching functionality. This happens automatically; you do not need to do modify any configuration to get this behavior. - -
-
\ No newline at end of file + + As of NixOS 19.09, the nginx package in Nixpkgs is patched such that when nginx serves a file out of /nix/store, the hash in the store path is used as the ETag header in the HTTP response, thus providing proper caching functionality. This happens automatically; you do not need to do modify any configuration to get this behavior. + +
+ diff --git a/doc/builders/packages/opengl.xml b/doc/builders/packages/opengl.xml index fcb624736b092..5f4433a288446 100644 --- a/doc/builders/packages/opengl.xml +++ b/doc/builders/packages/opengl.xml @@ -4,6 +4,6 @@ OpenGL - Packages that use OpenGL have NixOS desktop as their primary target. The current solution for loading the GPU-specific drivers is based on libglvnd and looks for the driver implementation in LD_LIBRARY_PATH. If you are using a non-NixOS GNU/Linux/X11 desktop with free software video drivers, consider launching OpenGL-dependent programs from Nixpkgs with Nixpkgs versions of libglvnd and mesa_drivers in LD_LIBRARY_PATH. For proprietary video drivers you might have luck with also adding the corresponding video driver package. + Packages that use OpenGL have NixOS desktop as their primary target. The current solution for loading the GPU-specific drivers is based on libglvnd and looks for the driver implementation in LD_LIBRARY_PATH. If you are using a non-NixOS GNU/Linux/X11 desktop with free software video drivers, consider launching OpenGL-dependent programs from Nixpkgs with Nixpkgs versions of libglvnd and mesa_drivers in LD_LIBRARY_PATH. For proprietary video drivers you might have luck with also adding the corresponding video driver package. - \ No newline at end of file + diff --git a/doc/builders/packages/shell-helpers.xml b/doc/builders/packages/shell-helpers.xml index 53416ce7e171d..cb70d527d67b7 100644 --- a/doc/builders/packages/shell-helpers.xml +++ b/doc/builders/packages/shell-helpers.xml @@ -1,25 +1,25 @@
- Interactive shell helpers + Interactive shell helpers - - Some packages provide the shell integration to be more useful. But unlike other systems, nix doesn't have a standard share directory location. This is why a bunch PACKAGE-share scripts are shipped that print the location of the corresponding shared folder. Current list of such packages is as following: - - - - autojump: autojump-share - - - - - fzf: fzf-share - - - - E.g. autojump can then used in the .bashrc like this: + + Some packages provide the shell integration to be more useful. But unlike other systems, nix doesn't have a standard share directory location. This is why a bunch PACKAGE-share scripts are shipped that print the location of the corresponding shared folder. Current list of such packages is as following: + + + + autojump: autojump-share + + + + + fzf: fzf-share + + + + E.g. autojump can then used in the .bashrc like this: source "$(autojump-share)/autojump.bash" - -
\ No newline at end of file + + diff --git a/doc/builders/packages/steam.xml b/doc/builders/packages/steam.xml index 413247ee46854..8dfede59ac1ba 100644 --- a/doc/builders/packages/steam.xml +++ b/doc/builders/packages/steam.xml @@ -1,131 +1,131 @@
- Steam + Steam -
- Steam in Nix +
+ Steam in Nix - - Steam is distributed as a .deb file, for now only as an i686 package (the amd64 package only has documentation). When unpacked, it has a script called steam that in Ubuntu (their target distro) would go to /usr/bin . When run for the first time, this script copies some files to the user's home, which include another script that is the ultimate responsible for launching the steam binary, which is also in $HOME. - + + Steam is distributed as a .deb file, for now only as an i686 package (the amd64 package only has documentation). When unpacked, it has a script called steam that in Ubuntu (their target distro) would go to /usr/bin . When run for the first time, this script copies some files to the user's home, which include another script that is the ultimate responsible for launching the steam binary, which is also in $HOME. + - - Nix problems and constraints: - - - - We don't have /bin/bash and many scripts point there. Similarly for /usr/bin/python . - - - - - We don't have the dynamic loader in /lib . - - - - - The steam.sh script in $HOME can not be patched, as it is checked and rewritten by steam. - - - - - The steam binary cannot be patched, it's also checked. - - - - + + Nix problems and constraints: + + + + We don't have /bin/bash and many scripts point there. Similarly for /usr/bin/python . + + + + + We don't have the dynamic loader in /lib . + + + + + The steam.sh script in $HOME can not be patched, as it is checked and rewritten by steam. + + + + + The steam binary cannot be patched, it's also checked. + + + + - - The current approach to deploy Steam in NixOS is composing a FHS-compatible chroot environment, as documented here. This allows us to have binaries in the expected paths without disrupting the system, and to avoid patching them to work in a non FHS environment. - -
+ + The current approach to deploy Steam in NixOS is composing a FHS-compatible chroot environment, as documented here. This allows us to have binaries in the expected paths without disrupting the system, and to avoid patching them to work in a non FHS environment. + +
-
- How to play +
+ How to play - - For 64-bit systems it's important to have + + For 64-bit systems it's important to have hardware.opengl.driSupport32Bit = true; - in your /etc/nixos/configuration.nix. You'll also need + in your /etc/nixos/configuration.nix. You'll also need hardware.pulseaudio.support32Bit = true; - if you are using PulseAudio - this will enable 32bit ALSA apps integration. To use the Steam controller or other Steam supported controllers such as the DualShock 4 or Nintendo Switch Pro, you need to add + if you are using PulseAudio - this will enable 32bit ALSA apps integration. To use the Steam controller or other Steam supported controllers such as the DualShock 4 or Nintendo Switch Pro, you need to add hardware.steam-hardware.enable = true; - to your configuration. - -
+ to your configuration. + +
-
- Troubleshooting +
+ Troubleshooting - - - - - Steam fails to start. What do I do? - - - - Try to run + + + + + Steam fails to start. What do I do? + + + + Try to run strace steam - to see what is causing steam to fail. - - - - - - Using the FOSS Radeon or nouveau (nvidia) drivers - - - - - - The newStdcpp parameter was removed since NixOS 17.09 and should not be needed anymore. - - - - - Steam ships statically linked with a version of libcrypto that conflics with the one dynamically loaded by radeonsi_dri.so. If you get the error + to see what is causing steam to fail. + + + + + + Using the FOSS Radeon or nouveau (nvidia) drivers + + + + + + The newStdcpp parameter was removed since NixOS 17.09 and should not be needed anymore. + + + + + Steam ships statically linked with a version of libcrypto that conflics with the one dynamically loaded by radeonsi_dri.so. If you get the error steam.sh: line 713: 7842 Segmentation fault (core dumped) - have a look at this pull request. - - - - - - - - Java - - - - - - There is no java in steam chrootenv by default. If you get a message like + have a look at this pull request. + + + + + + + + Java + + + + + + There is no java in steam chrootenv by default. If you get a message like /home/foo/.local/share/Steam/SteamApps/common/towns/towns.sh: line 1: java: command not found - You need to add + You need to add steam.override { withJava = true; }; - to your configuration. - - - - - - - -
+ to your configuration. + + + + + + + +
-
- steam-run +
+ steam-run - - The FHS-compatible chroot used for steam can also be used to run other linux games that expect a FHS environment. To do it, add + + The FHS-compatible chroot used for steam can also be used to run other linux games that expect a FHS environment. To do it, add pkgs.(steam.override { nativeOnly = true; newStdcpp = true; }).run - to your configuration, rebuild, and run the game with + to your configuration, rebuild, and run the game with steam-run ./foo - -
-
\ No newline at end of file + +
+ diff --git a/doc/builders/packages/unfree.xml b/doc/builders/packages/unfree.xml index b2d8402005e90..3d4f199f8fb0d 100644 --- a/doc/builders/packages/unfree.xml +++ b/doc/builders/packages/unfree.xml @@ -10,4 +10,4 @@ Fine-grained control is possible by defining allowUnfreePredicate function in config; it takes the mkDerivation parameter attrset and returns true for unfree packages that should be allowed. - \ No newline at end of file + diff --git a/doc/builders/packages/weechat.xml b/doc/builders/packages/weechat.xml index aeb240d904b52..a110d3f491c79 100644 --- a/doc/builders/packages/weechat.xml +++ b/doc/builders/packages/weechat.xml @@ -1,23 +1,23 @@
- Weechat + Weechat - - Weechat can be configured to include your choice of plugins, reducing its closure size from the default configuration which includes all available plugins. To make use of this functionality, install an expression that overrides its configuration such as + + Weechat can be configured to include your choice of plugins, reducing its closure size from the default configuration which includes all available plugins. To make use of this functionality, install an expression that overrides its configuration such as weechat.override {configure = {availablePlugins, ...}: { plugins = with availablePlugins; [ python perl ]; } } - If the configure function returns an attrset without the plugins attribute, availablePlugins will be used automatically. - + If the configure function returns an attrset without the plugins attribute, availablePlugins will be used automatically. + - - The plugins currently available are python, perl, ruby, guile, tcl and lua. - + + The plugins currently available are python, perl, ruby, guile, tcl and lua. + - - The python and perl plugins allows the addition of extra libraries. For instance, the inotify.py script in weechat-scripts requires D-Bus or libnotify, and the fish.py script requires pycrypto. To use these scripts, use the plugin's withPackages attribute: + + The python and perl plugins allows the addition of extra libraries. For instance, the inotify.py script in weechat-scripts requires D-Bus or libnotify, and the fish.py script requires pycrypto. To use these scripts, use the plugin's withPackages attribute: weechat.override { configure = {availablePlugins, ...}: { plugins = with availablePlugins; [ (python.withPackages (ps: with ps; [ pycrypto python-dbus ])) @@ -25,20 +25,20 @@ }; } - + - - In order to also keep all default plugins installed, it is possible to use the following method: + + In order to also keep all default plugins installed, it is possible to use the following method: weechat.override { configure = { availablePlugins, ... }: { plugins = builtins.attrValues (availablePlugins // { python = availablePlugins.python.withPackages (ps: with ps; [ pycrypto python-dbus ]); }); }; } - + - - WeeChat allows to set defaults on startup using the --run-command. The configure method can be used to pass commands to the program: + + WeeChat allows to set defaults on startup using the --run-command. The configure method can be used to pass commands to the program: weechat.override { configure = { availablePlugins, ... }: { init = '' @@ -47,11 +47,11 @@ ''; }; } - Further values can be added to the list of commands when running weechat --run-command "your-commands". - + Further values can be added to the list of commands when running weechat --run-command "your-commands". + - - Additionally it's possible to specify scripts to be loaded when starting weechat. These will be loaded before the commands from init: + + Additionally it's possible to specify scripts to be loaded when starting weechat. These will be loaded before the commands from init: weechat.override { configure = { availablePlugins, ... }: { scripts = with pkgs.weechatScripts; [ @@ -62,10 +62,10 @@ '': }; } - + - - In nixpkgs there's a subpackage which contains derivations for WeeChat scripts. Such derivations expect a passthru.scripts attribute which contains a list of all scripts inside the store path. Furthermore all scripts have to live in $out/share. An exemplary derivation looks like this: + + In nixpkgs there's a subpackage which contains derivations for WeeChat scripts. Such derivations expect a passthru.scripts attribute which contains a list of all scripts inside the store path. Furthermore all scripts have to live in $out/share. An exemplary derivation looks like this: { stdenv, fetchurl }: stdenv.mkDerivation { @@ -81,5 +81,5 @@ stdenv.mkDerivation { cp bar.lua $out/share ''; } - -
\ No newline at end of file + + diff --git a/doc/builders/packages/xorg.xml b/doc/builders/packages/xorg.xml index 4526121687fc2..ebf4930cc0976 100644 --- a/doc/builders/packages/xorg.xml +++ b/doc/builders/packages/xorg.xml @@ -1,34 +1,34 @@
- X.org + X.org - - The Nix expressions for the X.org packages reside in pkgs/servers/x11/xorg/default.nix. This file is automatically generated from lists of tarballs in an X.org release. As such it should not be modified directly; rather, you should modify the lists, the generator script or the file pkgs/servers/x11/xorg/overrides.nix, in which you can override or add to the derivations produced by the generator. - + + The Nix expressions for the X.org packages reside in pkgs/servers/x11/xorg/default.nix. This file is automatically generated from lists of tarballs in an X.org release. As such it should not be modified directly; rather, you should modify the lists, the generator script or the file pkgs/servers/x11/xorg/overrides.nix, in which you can override or add to the derivations produced by the generator. + - - The generator is invoked as follows: + + The generator is invoked as follows: $ cd pkgs/servers/x11/xorg $ cat tarballs-7.5.list extra.list old.list \ | perl ./generate-expr-from-tarballs.pl - For each of the tarballs in the .list files, the script downloads it, unpacks it, and searches its configure.ac and *.pc.in files for dependencies. This information is used to generate default.nix. The generator caches downloaded tarballs between runs. Pay close attention to the NOT FOUND: name messages at the end of the run, since they may indicate missing dependencies. (Some might be optional dependencies, however.) - + For each of the tarballs in the .list files, the script downloads it, unpacks it, and searches its configure.ac and *.pc.in files for dependencies. This information is used to generate default.nix. The generator caches downloaded tarballs between runs. Pay close attention to the NOT FOUND: name messages at the end of the run, since they may indicate missing dependencies. (Some might be optional dependencies, however.) + - - A file like tarballs-7.5.list contains all tarballs in a X.org release. It can be generated like this: + + A file like tarballs-7.5.list contains all tarballs in a X.org release. It can be generated like this: $ export i="mirror://xorg/X11R7.4/src/everything/" $ cat $(PRINT_PATH=1 nix-prefetch-url $i | tail -n 1) \ | perl -e 'while (<>) { if (/(href|HREF)="([^"]*.bz2)"/) { print "$ENV{'i'}$2\n"; }; }' \ | sort > tarballs-7.4.list - extra.list contains libraries that aren’t part of X.org proper, but are closely related to it, such as libxcb. old.list contains some packages that were removed from X.org, but are still needed by some people or by other packages (such as imake). - + extra.list contains libraries that aren’t part of X.org proper, but are closely related to it, such as libxcb. old.list contains some packages that were removed from X.org, but are still needed by some people or by other packages (such as imake). + - - If the expression for a package requires derivation attributes that the generator cannot figure out automatically (say, patches or a postInstall hook), you should modify pkgs/servers/x11/xorg/overrides.nix. - -
\ No newline at end of file + + If the expression for a package requires derivation attributes that the generator cannot figure out automatically (say, patches or a postInstall hook), you should modify pkgs/servers/x11/xorg/overrides.nix. + + diff --git a/doc/builders/special.xml b/doc/builders/special.xml index 56d98f025278e..15fdba9a0419e 100644 --- a/doc/builders/special.xml +++ b/doc/builders/special.xml @@ -8,5 +8,3 @@ - - diff --git a/doc/builders/trivial-builders.xml b/doc/builders/trivial-builders.xml index c99425620b160..df0e38da1aa2e 100644 --- a/doc/builders/trivial-builders.xml +++ b/doc/builders/trivial-builders.xml @@ -3,11 +3,9 @@ xmlns:xi="http://www.w3.org/2001/XInclude" xml:id="chap-trivial-builders"> Trivial builders - Nixpkgs provides a couple of functions that help with building derivations. The most important one, stdenv.mkDerivation, has already been documented above. The following functions wrap stdenv.mkDerivation, making it easier to use in certain cases. - diff --git a/doc/using/overrides.xml b/doc/using/overrides.xml index 991e13a1b8289..c9d36ddb2d7b6 100644 --- a/doc/using/overrides.xml +++ b/doc/using/overrides.xml @@ -3,15 +3,12 @@ xmlns:xi="http://www.w3.org/2001/XInclude" xml:id="chap-overrides"> Overriding - Sometimes one wants to override parts of nixpkgs, e.g. derivation attributes, the results of derivations. - These functions are used to make changes to packages, returning only single packages. Overlays, on the other hand, can be used to combine the overridden packages across the entire package set of Nixpkgs. -
<pkg>.override @@ -45,7 +42,6 @@ mypkg = pkgs.callPackage ./mypkg.nix { In the first example, pkgs.foo is the result of a function call with some default arguments, usually a derivation. Using pkgs.foo.override will call the same function with the given new arguments.
-
<pkg>.overrideAttrs @@ -76,7 +72,6 @@ helloWithDebug = pkgs.hello.overrideAttrs (oldAttrs: rec {
-
<pkg>.overrideDerivation @@ -124,7 +119,6 @@ mySed = pkgs.gnused.overrideDerivation (oldAttrs: {
-
lib.makeOverridable -- cgit 1.4.1 From 62193ec416a770925eb3bbe389a7480f76af92eb Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Wed, 30 Oct 2019 12:20:18 +0100 Subject: nixpkgs manual: document staging-next branch --- doc/contributing/submitting-changes.xml | 41 +++++++++++++++++---------------- 1 file changed, 21 insertions(+), 20 deletions(-) (limited to 'doc') diff --git a/doc/contributing/submitting-changes.xml b/doc/contributing/submitting-changes.xml index 2c7defb817497..f097116241171 100644 --- a/doc/contributing/submitting-changes.xml +++ b/doc/contributing/submitting-changes.xml @@ -375,31 +375,32 @@ Additional information.
Master branch - - - - - It should only see non-breaking commits that do not cause mass rebuilds. - - - + + The master branch is the main development branch. + It should only see non-breaking commits that do not cause mass rebuilds. +
Staging branch + + The staging branch is a development branch where mass-rebuilds go. + It should only see non-breaking mass-rebuild commits. + That means it is not to be used for testing, and changes must have been well tested already. + If the branch is already in a broken state, please refrain from adding extra new breakages. + +
- - - - It's only for non-breaking mass-rebuild commits. That means it's not to be used for testing, and changes must have been well tested already. Read policy here. - - - - - If the branch is already in a broken state, please refrain from adding extra new breakages. Stabilize it for a few days, merge into master, then resume development on staging. Keep an eye on the staging evaluations here. If any fixes for staging happen to be already in master, then master can be merged into staging. - - - +
+ Staging-next branch + + The staging-next branch is for stabilizing mass-rebuilds submitted to the staging branch prior to merging them into master. + Mass-rebuilds should go via the staging branch. + It should only see non-breaking commits that are fixing issues blocking it from being merged into the master branch. + + + If the branch is already in a broken state, please refrain from adding extra new breakages. Stabilize it for a few days and then merge into master. +
-- cgit 1.4.1 From bb7184d6a62f3eefdadb069091f8985871279b15 Mon Sep 17 00:00:00 2001 From: exfalso <0slemi0@gmail.com> Date: Fri, 1 Nov 2019 14:19:39 +0000 Subject: buildRustPackage: Add readme comment on target option --- doc/languages-frameworks/rust.section.md | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'doc') diff --git a/doc/languages-frameworks/rust.section.md b/doc/languages-frameworks/rust.section.md index 83b7b159bd63d..5fb5d380d8b27 100644 --- a/doc/languages-frameworks/rust.section.md +++ b/doc/languages-frameworks/rust.section.md @@ -68,6 +68,17 @@ build-time. When `verifyCargoDeps` is set to `true`, the build will also verify that the `cargoSha256` is not out of date by comparing the `Cargo.lock` file in both the `cargoDeps` and `src`. Note that this option changes the value of `cargoSha256` since it also copies the `Cargo.lock` in it. To avoid breaking backward-compatibility this option is not enabled by default but hopefully will be in the future. +### Building a crate for a different target + +To build your crate with a different cargo `--target` simply specify the `target` attribute: + +```nix +pkgs.rustPlatform.buildRustPackage { + (...) + target = "x86_64-fortanix-unknown-sgx"; +} +``` + ## Compiling Rust crates using Nix instead of Cargo ### Simple operation -- cgit 1.4.1 From eebdaa936fb03ed8879ae74e2d7a24656d2d454d Mon Sep 17 00:00:00 2001 From: Théo Zimmermann Date: Thu, 7 Nov 2019 13:58:37 +0100 Subject: doc: fix allowUnfreePredicate example following the introduction of pname Co-Authored-By: Dmitry Kalinkin --- doc/using/configuration.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/using/configuration.xml b/doc/using/configuration.xml index a68ae739f52e7..6406c3af3ec5b 100644 --- a/doc/using/configuration.xml +++ b/doc/using/configuration.xml @@ -142,7 +142,7 @@ { allowUnfreePredicate = (pkg: builtins.elem - (builtins.parseDrvName pkg.name).name [ + (pkg.pname or (builtins.parseDrvName pkg.name).name) [ "flashplayer" "vscode" ]); -- cgit 1.4.1 From 07c84f4de229cddd1abc87350bbe17a4725964b1 Mon Sep 17 00:00:00 2001 From: Arnout Engelen Date: Sat, 9 Nov 2019 10:07:59 +0100 Subject: documentation: drop double 'the' --- doc/languages-frameworks/android.section.md | 2 +- doc/languages-frameworks/rust.section.md | 2 +- doc/stdenv/cross-compilation.xml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'doc') diff --git a/doc/languages-frameworks/android.section.md b/doc/languages-frameworks/android.section.md index f268c55256602..9a5df2523a25a 100644 --- a/doc/languages-frameworks/android.section.md +++ b/doc/languages-frameworks/android.section.md @@ -95,7 +95,7 @@ $ nix-build The Android SDK gets deployed with all desired plugin versions. -We can also deploy subsets of the Android SDK. For example, to only the the +We can also deploy subsets of the Android SDK. For example, to only the `platform-tools` package, you can evaluate the following expression: ```nix diff --git a/doc/languages-frameworks/rust.section.md b/doc/languages-frameworks/rust.section.md index 8b9aa5dc16853..709a0d504cf73 100644 --- a/doc/languages-frameworks/rust.section.md +++ b/doc/languages-frameworks/rust.section.md @@ -203,7 +203,7 @@ argument and returns a set that contains all attribute that should be overwritten. For more complicated cases, such as when parts of the crate's -derivation depend on the the crate's version, the `attrs` argument of +derivation depend on the crate's version, the `attrs` argument of the override above can be read, as in the following example, which patches the derivation: diff --git a/doc/stdenv/cross-compilation.xml b/doc/stdenv/cross-compilation.xml index 93fe9095ce2f3..5476c9a489321 100644 --- a/doc/stdenv/cross-compilation.xml +++ b/doc/stdenv/cross-compilation.xml @@ -348,12 +348,12 @@ nix-build '<nixpkgs>' --arg crossSystem '{ config = "<arch>-<os&g - In each stage, pkgsBuildHost refers the the previous stage, pkgsBuildBuild refers to the one before that, and pkgsHostTarget refers to the current one, and pkgsTargetTarget refers to the next one. When there is no previous or next stage, they instead refer to the current stage. Note how all the invariants regarding the mapping between dependency and depending packages' build host and target platforms are preserved. pkgsBuildTarget and pkgsHostHost are more complex in that the stage fitting the requirements isn't always a fixed chain of "prevs" and "nexts" away (modulo the "saturating" self-references at the ends). We just special case each instead. All the primary edges are implemented is in pkgs/stdenv/booter.nix, and secondarily aliases in pkgs/top-level/stage.nix. + In each stage, pkgsBuildHost refers to the previous stage, pkgsBuildBuild refers to the one before that, and pkgsHostTarget refers to the current one, and pkgsTargetTarget refers to the next one. When there is no previous or next stage, they instead refer to the current stage. Note how all the invariants regarding the mapping between dependency and depending packages' build host and target platforms are preserved. pkgsBuildTarget and pkgsHostHost are more complex in that the stage fitting the requirements isn't always a fixed chain of "prevs" and "nexts" away (modulo the "saturating" self-references at the ends). We just special case each instead. All the primary edges are implemented is in pkgs/stdenv/booter.nix, and secondarily aliases in pkgs/top-level/stage.nix. - Note the native stages are bootstrapped in legacy ways that predate the current cross implementation. This is why the the bootstrapping stages leading up to the final stages are ignored inthe previous paragraph. + Note the native stages are bootstrapped in legacy ways that predate the current cross implementation. This is why the bootstrapping stages leading up to the final stages are ignored inthe previous paragraph. -- cgit 1.4.1 From 9b51c5145ad58d49cefdba24d5bc53abb6017143 Mon Sep 17 00:00:00 2001 From: Sander van der Burg Date: Mon, 11 Nov 2019 00:17:47 +0100 Subject: xcodeenv: bump default Xcode version to 11.1, default iOS SDK to 13.1. Add troubleshooting section to docs --- doc/languages-frameworks/ios.section.md | 12 +++++++++++- pkgs/development/mobile/xcodeenv/build-app.nix | 2 +- pkgs/development/mobile/xcodeenv/compose-xcodewrapper.nix | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) (limited to 'doc') diff --git a/doc/languages-frameworks/ios.section.md b/doc/languages-frameworks/ios.section.md index 6684b809ffe61..5a81795c004a5 100644 --- a/doc/languages-frameworks/ios.section.md +++ b/doc/languages-frameworks/ios.section.md @@ -1,7 +1,7 @@ --- title: iOS author: Sander van der Burg -date: 2018-11-18 +date: 2019-11-10 --- # iOS @@ -217,3 +217,13 @@ xcode.simulateApp { By providing the result of an `xcode.buildApp {}` function and configuring the app bundle id, the app gets deployed automatically and started. + +Troubleshooting +--------------- +In some rare cases, it may happen that after a failure, changes are not picked +up. Most likely, this is caused by a derived data cache that Xcode maintains. +To wipe it you can run: + +```bash +$ rm -rf ~/Library/Developer/Xcode/DerivedData +``` diff --git a/pkgs/development/mobile/xcodeenv/build-app.nix b/pkgs/development/mobile/xcodeenv/build-app.nix index 05ddf5366c72b..fa108c8e4706b 100644 --- a/pkgs/development/mobile/xcodeenv/build-app.nix +++ b/pkgs/development/mobile/xcodeenv/build-app.nix @@ -1,7 +1,7 @@ {stdenv, composeXcodeWrapper}: { name , src -, sdkVersion ? "12.1" +, sdkVersion ? "13.1" , target ? null , configuration ? null , scheme ? null diff --git a/pkgs/development/mobile/xcodeenv/compose-xcodewrapper.nix b/pkgs/development/mobile/xcodeenv/compose-xcodewrapper.nix index f1941e051bc2d..0a469da418a1c 100644 --- a/pkgs/development/mobile/xcodeenv/compose-xcodewrapper.nix +++ b/pkgs/development/mobile/xcodeenv/compose-xcodewrapper.nix @@ -1,5 +1,5 @@ {stdenv}: -{version ? "10.1", xcodeBaseDir ? "/Applications/Xcode.app"}: +{version ? "11.1", xcodeBaseDir ? "/Applications/Xcode.app"}: assert stdenv.isDarwin; -- cgit 1.4.1 From 331f45f7bb5a90ce2b5516a9ae34da566f54e69c Mon Sep 17 00:00:00 2001 From: DavHau <42246742+DavHau@users.noreply.github.com> Date: Wed, 13 Nov 2019 03:41:30 +0700 Subject: update contributors documentation for nix-review (#73217) Useful for newcomers who want to do their review after committing and then stumbling across the PR checklist. * replace nix-shell with nix run --- doc/contributing/submitting-changes.xml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'doc') diff --git a/doc/contributing/submitting-changes.xml b/doc/contributing/submitting-changes.xml index f097116241171..0a652aef9232b 100644 --- a/doc/contributing/submitting-changes.xml +++ b/doc/contributing/submitting-changes.xml @@ -298,14 +298,17 @@ Additional information. review changes from pull request number 12345: -nix-shell -p nix-review --run "nix-review pr 12345" +nix run nixpkgs.nix-review -c nix-review pr 12345 review uncommitted changes: -nix-shell -p nix-review --run "nix-review wip" +nix run nixpkgs.nix-review -c nix-review wip -
+ + + review changes from last commit: +nix run nixpkgs.nix-review -c nix-review rev HEAD
Tested execution of all binary files (usually in <filename>./result/bin/</filename>) -- cgit 1.4.1 From 7805d43e3329e77892835f124cef978b617280ba Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Wed, 13 Nov 2019 12:21:13 +0100 Subject: nixpkgs manual: fix build after it was broken by 331f45f7bb5a90ce2b5516a9ae34da566f54e69c --- doc/contributing/submitting-changes.xml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'doc') diff --git a/doc/contributing/submitting-changes.xml b/doc/contributing/submitting-changes.xml index 0a652aef9232b..14155021f6143 100644 --- a/doc/contributing/submitting-changes.xml +++ b/doc/contributing/submitting-changes.xml @@ -298,17 +298,19 @@ Additional information. review changes from pull request number 12345: -nix run nixpkgs.nix-review -c nix-review pr 12345 + nix run nixpkgs.nix-review -c nix-review pr 12345 review uncommitted changes: -nix run nixpkgs.nix-review -c nix-review wip + nix run nixpkgs.nix-review -c nix-review wip review changes from last commit: -nix run nixpkgs.nix-review -c nix-review rev HEAD + nix run nixpkgs.nix-review -c nix-review rev HEAD + +
Tested execution of all binary files (usually in <filename>./result/bin/</filename>) -- cgit 1.4.1 From ff060579a395fe6ccff2ce5fd4fa9fab740761be Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Wed, 30 Oct 2019 11:41:17 +0100 Subject: nixpkgs manual: add section on submitting security fixes --- doc/contributing/submitting-changes.xml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'doc') diff --git a/doc/contributing/submitting-changes.xml b/doc/contributing/submitting-changes.xml index 14155021f6143..6a8b4e0b249ee 100644 --- a/doc/contributing/submitting-changes.xml +++ b/doc/contributing/submitting-changes.xml @@ -228,6 +228,33 @@ Additional information.
+
+ Submitting security fixes + + + Security fixes are submitted in the same way as other changes and thus the same guidelines apply. + + + + If the security fix comes in the form of a patch and a CVE is available, then the name of the patch should be the CVE identifier, so e.g. CVE-2019-13636.patch in the case of a patch that is included in the Nixpkgs tree. If a patch is fetched the name needs to be set as well, e.g.: + + + + (fetchpatch { + name = "CVE-2019-11068.patch"; + url = "https://gitlab.gnome.org/GNOME/libxslt/commit/e03553605b45c88f0b4b2980adfbbb8f6fca2fd6.patch"; + sha256 = "0pkpb4837km15zgg6h57bncp66d5lwrlvkr73h0lanywq7zrwhj8"; + }) + + + + If a security fix applies to both master and a stable release then, similar to regular changes, they are preferably delivered via master first and cherry-picked to the release branch. + + + + Critical security fixes may by-pass the staging branches and be delivered directly to release branches such as master and release-*. + +
Pull Request Template -- cgit 1.4.1 From 7eddc92374f873a909b1b1cdc14c1dc5c306ce08 Mon Sep 17 00:00:00 2001 From: Arnout Engelen Date: Sat, 9 Nov 2019 10:25:57 +0100 Subject: documentation: show combining python35.withPackages and mkShell this had me stumped - thanks to adisbladis on irc --- doc/languages-frameworks/python.section.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'doc') diff --git a/doc/languages-frameworks/python.section.md b/doc/languages-frameworks/python.section.md index 02bff8666e29e..1bedebd119029 100644 --- a/doc/languages-frameworks/python.section.md +++ b/doc/languages-frameworks/python.section.md @@ -144,6 +144,24 @@ What's happening here? 2. Then we create a Python 3.5 environment with the `withPackages` function. 3. The `withPackages` function expects us to provide a function as an argument that takes the set of all python packages and returns a list of packages to include in the environment. Here, we select the packages `numpy` and `toolz` from the package set. +To combine this with `mkShell` you can: + +```nix +with import {}; + +let + pythonEnv = python35.withPackages (ps: [ + ps.numpy + ps.toolz + ]); +in mkShell { + buildInputs = [ + pythonEnv + hello + ]; +} +``` + ##### Execute command with `--run` A convenient option with `nix-shell` is the `--run` option, with which you can execute a command in the `nix-shell`. We can -- cgit 1.4.1 From 27e7b9a31d8b0377797c527d133019268ee0420d Mon Sep 17 00:00:00 2001 From: Silvan Mosberger Date: Thu, 14 Nov 2019 01:30:14 +0100 Subject: docs/haskell: Mention buildStackProject needs a disabled sandbox --- doc/languages-frameworks/haskell.section.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/languages-frameworks/haskell.section.md b/doc/languages-frameworks/haskell.section.md index 1e677450aa192..7cbac95f7d432 100644 --- a/doc/languages-frameworks/haskell.section.md +++ b/doc/languages-frameworks/haskell.section.md @@ -398,7 +398,9 @@ nix: For more on how to write a `shell.nix` file see the below section. You'll need to express a derivation. Note that Nixpkgs ships with a convenience wrapper function around `mkDerivation` called `haskell.lib.buildStackProject` to help you -create this derivation in exactly the way Stack expects. All of the same inputs +create this derivation in exactly the way Stack expects. However for this to work +you need to disable the sandbox, which you can do by using `--option sandbox relaxed` +or `--option sandbox false` to the Nix command. All of the same inputs as `mkDerivation` can be provided. For example, to build a Stack project that including packages that link against a version of the R library compiled with special options turned on: -- cgit 1.4.1 From 85c2bb37816dd79724a27ce7b97647a2ebf21ec0 Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Fri, 15 Nov 2019 15:05:42 +0100 Subject: doc/contributing: mention the word “backporting” for grep-ability MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When a contributor wants to know how to do this ominous “backporting” everybody is talking about, a grep should be enough to find it. --- doc/contributing/submitting-changes.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/contributing/submitting-changes.xml b/doc/contributing/submitting-changes.xml index 6a8b4e0b249ee..950e1ea974a07 100644 --- a/doc/contributing/submitting-changes.xml +++ b/doc/contributing/submitting-changes.xml @@ -441,7 +441,7 @@ Additional information. - If you're cherry-picking a commit to a stable release branch, always use git cherry-pick -xe and ensure the message contains a clear description about why this needs to be included in the stable branch. + If you're cherry-picking a commit to a stable release branch (“backporting”), always use git cherry-pick -xe and ensure the message contains a clear description about why this needs to be included in the stable branch. An example of a cherry-picked commit would look like this: -- cgit 1.4.1 From 8de4654d4b108ae11a02dc39bdf0366202fe113b Mon Sep 17 00:00:00 2001 From: Thomas Depierre Date: Sat, 19 Oct 2019 17:37:44 +0200 Subject: beam-modules/hex-snapshot: remove The package set is not maintained. It is also not used by most of the BEAM community. Removing it to allow a more useful set of tools fit to the BEAM community in Nixpkgs. --- doc/languages-frameworks/beam.xml | 307 +- nixos/doc/manual/release-notes/rl-2003.xml | 5 + pkgs/development/beam-modules/build-mix.nix | 4 +- pkgs/development/beam-modules/default.nix | 10 +- pkgs/development/beam-modules/hex-packages.nix | 37751 ------------------- .../beam-modules/hex-registry-snapshot.nix | 27 - pkgs/development/beam-modules/mix-bootstrap | 6 +- .../tools/build-managers/rebar3/default.nix | 10 +- .../build-managers/rebar3/rebar3-nix-bootstrap | 45 +- pkgs/top-level/all-packages.nix | 6 +- 10 files changed, 41 insertions(+), 38130 deletions(-) delete mode 100644 pkgs/development/beam-modules/hex-packages.nix delete mode 100644 pkgs/development/beam-modules/hex-registry-snapshot.nix (limited to 'doc') diff --git a/doc/languages-frameworks/beam.xml b/doc/languages-frameworks/beam.xml index 74c595cc89b47..278535237c2c6 100644 --- a/doc/languages-frameworks/beam.xml +++ b/doc/languages-frameworks/beam.xml @@ -26,7 +26,7 @@ - packages: a set of package sets, each compiled with a specific Erlang/OTP version, e.g. beam.packages.erlangR19. + packages: a set of package builders (Mix and rebar3), each compiled with a specific Erlang/OTP version, e.g. beam.packages.erlangR19. @@ -36,15 +36,11 @@ - To create a package set built with a custom Erlang version, use the lambda, beam.packagesWith, which accepts an Erlang/OTP derivation and produces a package set similar to beam.packages.erlang. + To create a package builder built with a custom Erlang version, use the lambda, beam.packagesWith, which accepts an Erlang/OTP derivation and produces a package builder similar to beam.packages.erlang. - Many Erlang/OTP distributions available in beam.interpreters have versions with ODBC and/or Java enabled. For example, there's beam.interpreters.erlangR19_odbc_javac, which corresponds to beam.interpreters.erlangR19. - - - - We also provide the lambda, beam.packages.erlang.callPackage, which simplifies writing BEAM package definitions by injecting all packages from beam.packages.erlang into the top-level context. + Many Erlang/OTP distributions available in beam.interpreters have versions with ODBC and/or Java enabled or without wx (no observer support). For example, there's beam.interpreters.erlangR22_odbc_javac, which corresponds to beam.interpreters.erlangR22 and beam.interpreters.erlangR22_nox, which corresponds to beam.interpreters.erlangR22.
@@ -55,7 +51,7 @@ Rebar3 - We provide a version of Rebar3, which is the normal, unmodified Rebar3, under rebar3. We also provide a helper to fetch Rebar3 dependencies from a lockfile under fetchRebar3Deps. + We provide a version of Rebar3, under rebar3. We also provide a helper to fetch Rebar3 dependencies from a lockfile under fetchRebar3Deps.
@@ -72,32 +68,14 @@ How to Install BEAM Packages - BEAM packages are not registered at the top level, simply because they are not relevant to the vast majority of Nix users. They are installable using the beam.packages.erlang attribute set (aliased as beamPackages), which points to packages built by the default Erlang/OTP version in Nixpkgs, as defined by beam.interpreters.erlang. To list the available packages in beamPackages, use the following command: - - - -$ nix-env -f "<nixpkgs>" -qaP -A beamPackages -beamPackages.esqlite esqlite-0.2.1 -beamPackages.goldrush goldrush-0.1.7 -beamPackages.ibrowse ibrowse-4.2.2 -beamPackages.jiffy jiffy-0.14.5 -beamPackages.lager lager-3.0.2 -beamPackages.meck meck-0.8.3 -beamPackages.rebar3-pc pc-1.1.0 - - - - To install any of those packages into your profile, refer to them by their attribute path (first column): + BEAM builders are not registered at the top level, simply because they are not relevant to the vast majority of Nix users. + To install any of those builders into your profile, refer to them by their attribute path beamPackages.rebar3: - -$ nix-env -f "<nixpkgs>" -iA beamPackages.ibrowse - - - - The attribute path of any BEAM package corresponds to the name of that particular package in Hex or its OTP Application/Release name. - - + + $ nix-env -f "<nixpkgs>" -iA beamPackages.rebar3 + +
Packaging BEAM Applications @@ -109,35 +87,7 @@ beamPackages.rebar3-pc pc-1.1.0 Rebar3 Packages - The Nix function, buildRebar3, defined in beam.packages.erlang.buildRebar3 and aliased at the top level, can be used to build a derivation that understands how to build a Rebar3 project. For example, we can build hex2nix as follows: - - - -{ stdenv, fetchFromGitHub, buildRebar3, ibrowse, jsx, erlware_commons }: - -buildRebar3 rec { - name = "hex2nix"; - version = "0.0.1"; - - src = fetchFromGitHub { - owner = "ericbmerritt"; - repo = "hex2nix"; - rev = "${version}"; - sha256 = "1w7xjidz1l5yjmhlplfx7kphmnpvqm67w99hd2m7kdixwdxq0zqg"; - }; - - beamDeps = [ ibrowse jsx erlware_commons ]; -} - - - - Such derivations are callable with beam.packages.erlang.callPackage (see ). To call this package using the normal callPackage, refer to dependency packages via beamPackages, e.g. beamPackages.ibrowse. - - - - Notably, buildRebar3 includes beamDeps, while stdenv.mkDerivation does not. BEAM dependencies added there will be correctly handled by the system. + The Nix function, buildRebar3, defined in beam.packages.erlang.buildRebar3 and aliased at the top level, can be used to build a derivation that understands how to build a Rebar3 project. @@ -152,30 +102,6 @@ buildRebar3 rec { Erlang.mk functions similarly to Rebar3, except we use buildErlangMk instead of buildRebar3. - -{ buildErlangMk, fetchHex, cowlib, ranch }: - -buildErlangMk { - name = "cowboy"; - version = "1.0.4"; - - src = fetchHex { - pkg = "cowboy"; - version = "1.0.4"; - sha256 = "6a0edee96885fae3a8dd0ac1f333538a42e807db638a9453064ccfdaa6b9fdac"; - }; - - beamDeps = [ cowlib ranch ]; - - meta = { - description = '' - Small, fast, modular HTTP server written in Erlang - ''; - license = stdenv.lib.licenses.isc; - homepage = https://github.com/ninenines/cowboy; - }; -} -
@@ -185,57 +111,9 @@ buildErlangMk { Mix functions similarly to Rebar3, except we use buildMix instead of buildRebar3. - -{ buildMix, fetchHex, plug, absinthe }: - -buildMix { - name = "absinthe_plug"; - version = "1.0.0"; - - src = fetchHex { - pkg = "absinthe_plug"; - version = "1.0.0"; - sha256 = "08459823fe1fd4f0325a8bf0c937a4520583a5a26d73b193040ab30a1dfc0b33"; - }; - - beamDeps = [ plug absinthe ]; - - meta = { - description = '' - A plug for Absinthe, an experimental GraphQL toolkit - ''; - license = stdenv.lib.licenses.bsd3; - homepage = https://github.com/CargoSense/absinthe_plug; - }; -} - - Alternatively, we can use buildHex as a shortcut: - - -{ buildHex, buildMix, plug, absinthe }: - -buildHex { - name = "absinthe_plug"; - version = "1.0.0"; - - sha256 = "08459823fe1fd4f0325a8bf0c937a4520583a5a26d73b193040ab30a1dfc0b33"; - - builder = buildMix; - - beamDeps = [ plug absinthe ]; - - meta = { - description = '' - A plug for Absinthe, an experimental GraphQL toolkit - ''; - license = stdenv.lib.licenses.bsd3; - homepage = https://github.com/CargoSense/absinthe_plug; - }; -} -
@@ -243,66 +121,13 @@ buildHex {
How to Develop -
- Accessing an Environment - - - Often, we simply want to access a valid environment that contains a specific package and its dependencies. We can accomplish that with the env attribute of a derivation. For example, let's say we want to access an Erlang REPL with ibrowse loaded up. We could do the following: - - - -$ nix-shell -A beamPackages.ibrowse.env --run "erl" -Erlang/OTP 18 [erts-7.0] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false] - -Eshell V7.0 (abort with ^G) -1> m(ibrowse). -Module: ibrowse -MD5: 3b3e0137d0cbb28070146978a3392945 -Compiled: January 10 2016, 23:34 -Object file: /nix/store/g1rlf65rdgjs4abbyj4grp37ry7ywivj-ibrowse-4.2.2/lib/erlang/lib/ibrowse-4.2.2/ebin/ibrowse.beam -Compiler options: [{outdir,"/tmp/nix-build-ibrowse-4.2.2.drv-0/hex-source-ibrowse-4.2.2/_build/default/lib/ibrowse/ebin"}, -debug_info,debug_info,nowarn_shadow_vars, -warn_unused_import,warn_unused_vars,warnings_as_errors, -{i,"/tmp/nix-build-ibrowse-4.2.2.drv-0/hex-source-ibrowse-4.2.2/_build/default/lib/ibrowse/include"}] -Exports: -add_config/1 send_req_direct/7 -all_trace_off/0 set_dest/3 -code_change/3 set_max_attempts/3 -get_config_value/1 set_max_pipeline_size/3 -get_config_value/2 set_max_sessions/3 -get_metrics/0 show_dest_status/0 -get_metrics/2 show_dest_status/1 -handle_call/3 show_dest_status/2 -handle_cast/2 spawn_link_worker_process/1 -handle_info/2 spawn_link_worker_process/2 -init/1 spawn_worker_process/1 -module_info/0 spawn_worker_process/2 -module_info/1 start/0 -rescan_config/0 start_link/0 -rescan_config/1 stop/0 -send_req/3 stop_worker_process/1 -send_req/4 stream_close/1 -send_req/5 stream_next/1 -send_req/6 terminate/2 -send_req_direct/4 trace_off/0 -send_req_direct/5 trace_off/2 -send_req_direct/6 trace_on/0 -trace_on/2 -ok -2> - - - - Notice the -A beamPackages.ibrowse.env. That is the key to this functionality. - -
-
Creating a Shell - - Getting access to an environment often isn't enough to do real development. Usually, we need to create a shell.nix file and do our development inside of the environment specified therein. This file looks a lot like the packaging described above, except that src points to the project root and we call the package directly. - + + Usually, we need to create a shell.nix file and do our development inside of the environment specified therein. Just install your version of erlang and other interpreter, and then user your normal build tools. + As an example with elixir: + { pkgs ? import "<nixpkgs"> {} }: @@ -311,114 +136,24 @@ with pkgs; let - f = { buildRebar3, ibrowse, jsx, erlware_commons }: - buildRebar3 { - name = "hex2nix"; - version = "0.1.0"; - src = ./.; - beamDeps = [ ibrowse jsx erlware_commons ]; - }; - drv = beamPackages.callPackage f {}; + elixir = beam.packages.erlangR22.elixir_1_9; in +mkShell { + buildInputs = [ elixir ]; - drv + ERL_INCLUDE_PATH="${erlang}/lib/erlang/usr/include"; +}
Building in a Shell (for Mix Projects) - - We can leverage the support of the derivation, irrespective of the build derivation, by calling the commands themselves. - - - -# ============================================================================= -# Variables -# ============================================================================= - -NIX_TEMPLATES := "$(CURDIR)/nix-templates" - -TARGET := "$(PREFIX)" - -PROJECT_NAME := thorndyke - -NIXPKGS=../nixpkgs -NIX_PATH=nixpkgs=$(NIXPKGS) -NIX_SHELL=nix-shell -I "$(NIX_PATH)" --pure -# ============================================================================= -# Rules -# ============================================================================= -.PHONY= all test clean repl shell build test analyze configure install \ - test-nix-install publish plt analyze - -all: build - -guard-%: - @ if [ "${${*}}" == "" ]; then \ - echo "Environment variable $* not set"; \ - exit 1; \ - fi - -clean: - rm -rf _build - rm -rf .cache - -repl: - $(NIX_SHELL) --run "iex -pa './_build/prod/lib/*/ebin'" - -shell: - $(NIX_SHELL) - -configure: - $(NIX_SHELL) --command 'eval "$$configurePhase"' - -build: configure - $(NIX_SHELL) --command 'eval "$$buildPhase"' - -install: - $(NIX_SHELL) --command 'eval "$$installPhase"' - -test: - $(NIX_SHELL) --command 'mix test --no-start --no-deps-check' - -plt: - $(NIX_SHELL) --run "mix dialyzer.plt --no-deps-check" - -analyze: build plt - $(NIX_SHELL) --run "mix dialyzer --no-compile" - - - Using a shell.nix as described (see ) should just work. Aside from test, plt, and analyze, the Make targets work just fine for all of the build derivations. + linkend="creating-a-shell"/>) should just work.
- -
- Generating Packages from Hex with <literal>hex2nix</literal> - - - Updating the Hex package set requires hex2nix. Given the path to the Erlang modules (usually pkgs/development/erlang-modules), it will dump a file called hex-packages.nix, containing all the packages that use a recognized build system in Hex. It can't be determined, however, whether every package is buildable. - - - - To make life easier for our users, try to build every Hex package and remove those that fail. To do that, simply run the following command in the root of your nixpkgs repository: - - - -$ nix-build -A beamPackages - - - - That will attempt to build every package in beamPackages. Then manually remove those that fail. Hopefully, someone will improve hex2nix in the future to automate the process. - -
diff --git a/nixos/doc/manual/release-notes/rl-2003.xml b/nixos/doc/manual/release-notes/rl-2003.xml index 407e0d11584ce..85aefc6fc434a 100644 --- a/nixos/doc/manual/release-notes/rl-2003.xml +++ b/nixos/doc/manual/release-notes/rl-2003.xml @@ -141,6 +141,11 @@ Consider migrating to a different display manager such as LightDM (current default in NixOS), SDDM, GDM, or using the startx module which uses Xinitrc. + + + The BEAM package set has been deleted. You will only find there the different interpreters. + You should now use the different build tools coming with the languages with sandbox mode disabled. + diff --git a/pkgs/development/beam-modules/build-mix.nix b/pkgs/development/beam-modules/build-mix.nix index d947acc3ea681..9aebad2dabf79 100644 --- a/pkgs/development/beam-modules/build-mix.nix +++ b/pkgs/development/beam-modules/build-mix.nix @@ -1,4 +1,4 @@ -{ stdenv, writeText, elixir, erlang, hexRegistrySnapshot, hex, lib }: +{ stdenv, writeText, elixir, erlang, hex, lib }: { name , version @@ -43,7 +43,7 @@ let else setupHook; inherit buildInputs; - propagatedBuildInputs = [ hexRegistrySnapshot hex elixir ] ++ beamDeps; + propagatedBuildInputs = [ hex elixir ] ++ beamDeps; configurePhase = if configurePhase == null then '' diff --git a/pkgs/development/beam-modules/default.nix b/pkgs/development/beam-modules/default.nix index eb9353a4a6379..031f7b5dda728 100644 --- a/pkgs/development/beam-modules/default.nix +++ b/pkgs/development/beam-modules/default.nix @@ -14,16 +14,11 @@ let defaultScope = mkScope self; callPackage = drv: args: callPackageWithScope defaultScope drv args; in - import ./hex-packages.nix { - inherit pkgs stdenv callPackage; - } // rec { + rec { inherit callPackage erlang; beamPackages = self; - hexRegistrySnapshot = callPackage ./hex-registry-snapshot.nix { }; - rebar = callPackage ../tools/build-managers/rebar { }; - rebar3-open = callPackage ../tools/build-managers/rebar3 { }; rebar3 = callPackage ../tools/build-managers/rebar3 { }; # rebar3 port compiler plugin is required by buildRebar3 @@ -80,9 +75,6 @@ let webdriver = callPackage ./webdriver {}; relxExe = callPackage ../tools/erlang/relx-exe {}; - # The tool used to upgrade hex-packages.nix. - hex2nix = callPackage ../tools/erlang/hex2nix {}; - # An example of Erlang/C++ package. cuter = callPackage ../tools/erlang/cuter {}; }; diff --git a/pkgs/development/beam-modules/hex-packages.nix b/pkgs/development/beam-modules/hex-packages.nix deleted file mode 100644 index df781d3e247c7..0000000000000 --- a/pkgs/development/beam-modules/hex-packages.nix +++ /dev/null @@ -1,37751 +0,0 @@ -/* hex-packages.nix is an auto-generated file -- DO NOT EDIT! */ - -/* Unbuildable packages: - - * absinthe_relay_0_9_3 - * active_0_9_0 - * addict_0_2_5 - * address_us_0_1_1 - * airbrake_0_1_0 - * airbrake_plug_0_1_1 - * airbrakex_0_0_8 - * alembic_2_1_0 - * algolia_0_3_2 - * alice_0_3_6 - * alice_against_humanity_0_1_2 - * alice_google_images_0_1_3 - * alice_karma_0_2_0 - * alice_personable_0_0_2 - * alice_reddit_0_0_3 - * alice_shizzle_0_1_2 - * alice_tielurs_heart_rate_0_0_5 - * alice_xkcd_0_0_3 - * alphonse_0_1_0 - * amqp_0_1_1 - * amqp_0_1_4 - * amqp_client_3_5_6 - * amrita_0_4_0 - * angellist_0_0_0 - * anubis_0_1_0 - * anubis_0_3_0 - * apache_passwd_md5_1_0_0 - * apostle_0_0_3 - * arc_0_5_2 - * arc_ecto_0_4_1 - * as_nested_set_0_1_0 - * asanaficator_0_0_1 - * atlas_0_2_0 - * authable_0_3_1 - * aws_erlang_0_1_1 - * aws_http_0_2_4 - * b2_client_0_0_1 - * backoff_1_1_3 - * backy_0_0_5 - * balanced_3_1_0 - * bamboo_sendgrid_0_1_0 - * bandwidth_1_2_1 - * barrel_jiffy_0_14_4 - * barrel_jiffy_0_14_5 - * basehangul_0_2_1 - * basho_exometer_core_1_0_0 - * basic_auth_1_0_0 - * bbmustache_1_0_1 - * bbsmq_0_0_6 - * beaker_1_2_0 - * benchwarmer_0_0_2 - * bencoder_0_0_7 - * bertex_1_2_0 - * bgg_0_1_0 - * bitbucket_api_0_0_2 - * bitpay_0_2_5 - * blackbook_0_3_1 - * block_timer_0_0_1 - * bno055_0_0_1 - * boltun_1_0_1 - * booter_0_1_0 - * bottler_0_5_0 - * bouncer_0_1_5 - * brady_0_0_2 - * brod_2_1_4 - * bson_0_4_4 - * bugsnag_erl_0_1_4 - * bugsnex_0_0_1 - * bump_0_1_0 - * bureaucrat_0_1_4 - * butler_0_6_2 - * butler_0_7_1 - * butler_cage_0_0_2 - * butler_cowsay_0_2_1 - * butler_new_0_4_3 - * butler_tableflip_0_0_3 - * cache_tab_1_0_2 - * calecto_0_6_0 - * calendar_0_16_0 - * calendar_0_6_8 - * calendar_translations_0_0_3 - * can_0_0_4 - * canada_1_0_0 - * canary_0_14_1 - * carrier_1_0_4 - * cassius_0_0_1 - * cauldron_0_1_5 - * ccc_0_0_2 - * certifi_0_1_1 - * cesso_0_1_3 - * cet_0_2_3 - * channels_0_0_2 - * charlotte_0_4_0 - * charm_0_0_1 - * chatter_0_0_15 - * cipher_1_0_5 - * cldr_0_0_1 - * cleverbot_0_0_1 - * cloak_0_2_2 - * cloudi_core_1_4_0_rc_4 - * cloudi_core_1_5_1 - * cloudi_service_api_requests_1_5_1 - * cloudi_service_db_1_5_1 - * cloudi_service_db_cassandra_1_3_3 - * cloudi_service_db_cassandra_cql_1_5_1 - * cloudi_service_db_couchdb_1_5_1 - * cloudi_service_db_elasticsearch_1_3_3 - * cloudi_service_db_http_elli_1_5_1 - * cloudi_service_db_memcached_1_5_1 - * cloudi_service_db_mysql_1_5_1 - * cloudi_service_db_pgsql_1_5_1 - * cloudi_service_db_riak_1_3_3 - * cloudi_service_db_tokyotyrant_1_5_0 - * cloudi_service_filesystem_1_5_1 - * cloudi_service_http_client_1_5_1 - * cloudi_service_http_cowboy_1_5_1 - * cloudi_service_http_rest_1_5_1 - * cloudi_service_map_reduce_1_5_1 - * cloudi_service_monitoring_1_5_1 - * cloudi_service_queue_1_5_1 - * cloudi_service_quorum_1_5_1 - * cloudi_service_router_1_5_1 - * cloudi_service_tcp_1_5_1 - * cloudi_service_timers_1_5_1 - * cloudi_service_udp_1_5_1 - * cloudi_service_validate_1_5_1 - * cloudi_service_zeromq_1_5_1 - * clox_0_1_3 - * coffee_rotor_0_2_1 - * coinbase_0_0_1 - * comeonin_ecto_password_2_0_0_rc_0 - * commerce_billing_0_0_2 - * concierge_0_0_1 - * conferl_0_0_1 - * conform_0_16_0 - * conform_1_0_0_rc8 - * conform_2_0_0 - * conform_exrm_1_0_0 - * console_0_0_1 - * consul_1_0_3 - * core_0_14_1 - * couchdb_client_0_2_5 - * couchdb_connector_0_3_0 - * countries_1_1_2 - * countries_erlang_0_2_0 - * courier_web_0_0_8 - * coverex_1_4_9 - * cowboy_oauth_0_2_14 - * cowboy_routes_tree_0_2_0 - * cpg_1_4_0 - * cpg_1_5_1 - * cqrex_0_0_1 - * cqrs_0_0_7 - * cqrs_events_0_0_4 - * craterl_0_2_3 - * crudex_0_0_2 - * crypto_ext_0_1_3 - * cure_0_4_1 - * currently_0_0_3 - * datomex_0_0_5 - * datomic_gen_server_2_0_1 - * dayron_0_1_1 - * db_0_9_0 - * db_connection_1_0_0_rc_0 - * dbschema_0_2_0 - * dbus_0_5_0 - * ddb_client_0_1_17 - * ddb_client_0_1_21 - * ddb_connection_0_1_3 - * decimal_0_2_5 - * decorators_0_1_0 - * denrei_0_2_3 - * descriptive_statistics_0_0_1 - * dexts_0_2_1 - * dialyze_0_1_4 - * diane_0_0_1 - * dicer_0_8_0 - * dicks_0_1_0 - * difficult_0_0_2 - * diplomat_0_0_3 - * discount_0_7_0 - * discovery_0_5_7 - * distance_api_matrix_2_0_1 - * dns_0_0_3 - * docker_0_3_0 - * dotenv_0_0_4 - * dotenv_elixir_0_0_2 - * dpd_client_0_0_6 - * dproto_0_1_12 - * dproto_0_1_16 - * dqe_0_2_2 - * dqe_fun_0_1_1 - * dqe_idx_ddb_0_1_13 - * dqe_idx_pg_0_1_29 - * drawille_0_0_1 - * dropbox_0_0_7 - * earmark_0_1_0 - * ecc_0_1_3 - * ecdo_0_1_4 - * ecrontab_0_2_0 - * ecto_0_2_4 - * ecto_2_0_0_beta_0 - * ecto_2_0_0_rc_5 - * ecto_enum_0_3_1 - * ecto_factory_0_0_1 - * ecto_fixtures_0_0_2 - * ecto_gettext_0_1_6 - * ecto_hstore_0_0_1 - * ecto_it_0_2_0 - * ecto_lazy_float_0_1_2 - * ecto_ldap_0_2_8 - * ecto_migrate_0_6_3 - * ecto_ordered_0_0_2 - * ecto_state_machine_0_0_4 - * ecto_validation_case_0_1_1 - * ectograph_0_0_8 - * ectoo_0_0_4 - * ectophile_0_3_0 - * edeliver_1_2_9 - * eden_0_1_3 - * edgarex_0_0_2 - * efrisby_0_2_0 - * egithub_0_2_6 - * eini_1_2_1 - * ejabberd_16_4_1 - * ekstat_0_2_2 - * elastix_0_2_0 - * eleveldb_2_1_3 - * elibphonenumber_0_1_1 - * elistrix_0_0_5 - * elixilorem_0_0_1 - * elixir_ale_0_4_1 - * elixir_ale_0_5_3 - * elixir_drawille_0_0_3 - * elixir_ipfs_api_0_1_0 - * elixir_locker_0_1_4 - * elixir_nsq_1_0_3 - * elixometer_1_2_1 - * elixtagram_0_2_7 - * elixush_0_0_4 - * elli_xpblfe_0_1_1 - * elmit_0_0_1 - * email_checker_0_0_3 - * emodel_1_3_1 - * eno_0_0_1 - * enotify_0_1_0 - * ensq_0_1_6 - * env_conf_0_3_0 - * eplugin_0_1_4 - * epubnub_0_1_0 - * eql_0_1_2 - * eredis_cluster_0_5_7 - * erlang_dbus_0_2_0 - * erlang_lua_0_1_0 - * erlang_osc_1_0_1 - * erlang_tls_1_0_3 - * erlastic_search_1_2_0 - * erlcloud_0_13_4 - * erldn_1_0_5 - * erldyn_0_7_2 - * erlogger_0_1_0 - * erltrace_0_1_4 - * erocksdb_0_4_1 - * erwatch_0_3_0 - * es_0_0_1 - * escalus_2_6_4 - * esip_1_0_4 - * espec_phoenix_0_2_1 - * etcd_0_0_2 - * etude_0_1_5 - * etude_request_0_1_0 - * euler_0_0_1 - * event_source_encoder_0_0_3 - * eventstore_0_2_1 - * everex_0_1_1 - * everyoneapi_0_0_1 - * everything_location_0_0_1 - * ex_admin_0_7_6 - * ex_aerospike_0_0_1 - * ex_aws_0_4_19 - * ex_bitcask_0_1_0 - * ex_chimp_0_0_2 - * ex_cloudinary_0_2_2 - * ex_conf_0_1_2 - * ex_conf_0_1_3 - * ex_doc_0_10_0 - * ex_doc_0_11_5 - * ex_doc_0_8_4 - * ex_doc_dash_0_3_0 - * ex_doc_epub_0_0_2 - * ex_dockerapi_0_0_1 - * ex_edn_0_1_2 - * ex_hubic_0_1_0 - * ex_orient_1_3_0 - * ex_ovh_0_1_2 - * ex_parsec_0_2_1 - * ex_queb_0_1_2 - * ex_sharp_0_0_6 - * ex_slp_0_1_0 - * ex_unit_emacs_0_1_2 - * exauth_0_0_1 - * excheck_0_3_3 - * excountries_0_0_3 - * excoveralls_0_5_4 - * exdjango_0_3_1 - * exdm_0_0_4 - * exdn_2_1_2 - * exdns_0_0_1 - * exdweet_0_0_1 - * exeque_0_1_0 - * exfile_0_1_5 - * exfile_0_3_3 - * exfile_b2_0_2_2 - * exfile_encryption_0_0_2 - * exfile_imagemagick_0_1_2 - * exfile_memory_0_1_0 - * exfile_s3_0_0_1 - * exgpg_0_0_3 - * exgrid_0_3_0 - * exhal_4_12_3 - * exintercom_0_1_6 - * exjira_0_0_1 - * exjprop_0_0_5 - * exkad_0_0_2 - * exmagick_0_0_1 - * exometer_core_1_0_0 - * exometer_core_1_4_0 - * exometer_datadog_0_4_3 - * exometer_zabbix_0_0_3 - * exos_1_0_0 - * expcap_0_1_0 - * exprotobuf_0_10_2 - * exprotobuf_0_13_0 - * exprotobuf_1_0_0 - * exq_0_7_1 - * exq_ui_0_7_1 - * exquery_0_0_11 - * exrabbit_0_0_2 - * exrecaptcha_0_0_3 - * exrm_0_14_10 - * exrm_0_14_17 - * exrm_0_18_8 - * exrm_0_19_9 - * exrm_1_0_5 - * exrm_deb_0_0_6 - * exrm_docker_0_1_0 - * exrm_heroku_0_1_1 - * exrm_rpm_0_3_3 - * exrm_smartos_gz_1_0_0 - * exseed_0_0_3 - * exsentry_0_5_0 - * exsyslog_1_0_1 - * extreme_0_5_1 - * exurban_0_0_1 - * ezlib_1_0_1 - * ezmq_0_2_0 - * facebook_0_10_0 - * fast_tls_1_0_3 - * fast_xml_1_1_11 - * fast_yaml_1_0_3 - * favicon_0_0_7 - * feedistiller_2_0_2 - * feedlex_0_0_1 - * fernet_ecto_0_2_0 - * ffi_0_0_1_alpha - * fifo_db_0_2_2 - * fifo_dt_0_1_66 - * fifo_dt_0_1_69 - * fifo_lager_0_1_4 - * fifo_spec_0_1_27 - * fifo_utils_0_1_20 - * fifo_utils_0_1_22 - * figaro_0_1_0 - * filepreviews_1_0_1 - * filtrex_0_2_0 - * finch_0_0_3 - * fintex_0_3_0 - * fireworks_0_5_1 - * fitbit_0_0_1 - * fitex_0_0_1 - * flames_0_1_0 - * fleet_api_0_0_15 - * floorplan_0_1_1 - * flower_power_0_3_2 - * flub_0_9_0 - * fluent_client_0_1_0 - * folsom_ddb_0_1_22 - * font_awesome_phoenix_0_3_2 - * form_data_0_1_1 - * forms_0_0_1 - * fqc_0_1_7 - * frank_0_0_3 - * fuentes_0_0_3 - * funnel_0_4_1 - * gcloudex_0_4_4 - * gcm_1_3_1 - * gcmex_0_0_1 - * gen_leader_0_1_0 - * gen_rpc_1_0_2 - * gen_state_machine_0_0_2 - * geo_1_0_4 - * geocoder_0_4_2 - * gil_0_0_3 - * gimei_0_0_2 - * gimei_ex_1_0_0 - * gpb_3_18_10 - * gpb_3_18_8 - * gpb_3_21_2 - * gpb_3_22_2 - * graphql_parser_0_0_3 - * graphql_relay_0_3_0 - * group_manager_0_0_8 - * guardian_0_10_1 - * guardian_0_12_0 - * guardian_0_9_1 - * guardian_db_0_4_0 - * guardian_db_0_7_0 - * hackney_1_1_0 - * hackney_1_3_1 - * hackney_1_3_2 - * hackney_1_4_10 - * hackney_1_4_4 - * hackney_1_4_8 - * hamcrest_0_1_1 - * hash_ring_ex_1_1_2 - * hdr_histogram_0_2_0 - * hedwig_flowdock_0_1_1 - * hedwig_hipchat_0_9_4 - * hedwig_irc_0_1_3 - * hedwig_slack_0_1_0 - * hedwig_sms_0_1_0 - * hedwig_xmpp_1_0_0_rc2 - * hello_world_header_0_0_1 - * hexoku_0_1_0 - * hmc5883l_0_5_0 - * honeydew_0_0_9 - * hr_0_2_2 - * hstore_0_0_2 - * htpasswd_1_0_2 - * http_0_0_1 - * httpc_aws_0_1_3 - * httpoison_0_7_1 - * httpoison_0_7_5 - * httpoison_0_8_0 - * httprot_0_1_7 - * iconv_1_0_0 - * ielixir_0_9_5 - * ifttt_oauth_0_0_1 - * inch_ex_0_5_3 - * inch_test_0_0_1 - * inflex_0_2_0 - * inquisitor_0_1_0 - * instream_0_12_0 - * intellij_elixir_0_1_2 - * iona_0_2_1 - * ipgeobase_0_0_1 - * isn_1_0_0 - * ja_serializer_0_9_0 - * japanese_holiday_0_0_2 - * jazz_0_1_1 - * jazz_0_2_1 - * jiffy_0_14_7 - * joken_0_13_1 - * joken_1_2_1 - * jsxn_0_2_1 - * kafka_protocol_0_3_2 - * kalecto_0_3_3 - * kalends_0_6_5 - * kane_0_1_1 - * katipo_0_3_4 - * kcl_0_6_2 - * keccakf1600_2_0_0 - * keelless_0_1_0 - * keenex_0_3_0 - * kerosene_0_0_1 - * kindred_0_0_1 - * kovacs_0_9_2 - * kvs_2_1_0 - * lager_2_1_1 - * lager_graylog_0_1_1 - * lager_logstash_backend_0_1_1 - * lager_watchdog_0_1_10 - * lasp_0_0_5 - * lazymaru_0_2_5 - * ledx_0_0_1 - * letsencrypt_0_5_0 - * lfe_1_0_2 - * libchunter_0_1_48 - * libdecaf_0_0_2 - * libex_config_0_2_0 - * libhowl_0_1_36 - * libleofs_0_1_2 - * librex_1_0_1 - * libsnarl_0_3_40 - * libsnarl_0_3_46 - * libsniffle_0_3_47 - * libsodium_0_0_7 - * link_shrinkex_1_0_0 - * locker_1_0_8 - * logger_json_file_backend_0_1_2 - * logger_logentries_backend_0_0_1 - * logster_0_2_0 - * lyn_0_0_16 - * mad_0_9_0 - * mailchimp_0_0_5 - * mailgun_webhook_auth_1_0_0 - * mailibex_0_1_0 - * mailman_0_2_2 - * mandrag_0_1_1 - * mandrillex_0_2_0 - * mariaex_0_7_5 - * maru_0_10_1 - * maru_swagger_0_8_0 - * marvel_1_0_0 - * marvin_0_3_0 - * mc_protocol_0_0_2 - * mcrypt_0_1_1 - * mdns_client_0_1_7 - * mdns_client_lib_0_1_33 - * mdns_client_lib_0_1_39 - * medex_0_1_2 - * merkle_0_0_4 - * message_pack_0_2_0 - * meta_0_0_1 - * migratrex_0_0_1 - * mimerl_1_0_0 - * mixstar_0_0_1 - * mmath_0_1_15 - * mobiledoc_0_0_1 - * moebius_2_0_1 - * monetized_0_4_0 - * money_1_0_0 - * mongo_0_5_4 - * mongodb_ecto_0_1_4 - * motor_hat_0_6_1 - * mstore_0_1_11 - * mt940_1_0_0 - * mustachex_0_0_1 - * mynumber_1_0_0 - * nacl_0_3_0 - * naughtygram_0_2_0 - * neo4j_0_3_0 - * neo4j_sips_0_1_26 - * neo4j_sips_models_0_1_1 - * neotoma_1_7_3 - * neotomex_0_1_4 - * nerves_0_3_2 - * nerves_interim_wifi_0_0_1 - * nerves_network_interface_0_3_1 - * nerves_system_ag150_0_5_1 - * nerves_system_alix_0_5_1 - * nerves_system_bbb_0_6_2 - * nerves_system_ev3_0_5_1 - * nerves_system_galileo_0_5_1 - * nerves_system_qemu_arm_0_5_1 - * nerves_system_rpi_0_5_2 - * nerves_system_rpi2_0_5_2 - * nerves_system_rpi3_0_5_2 - * nerves_toolchain_arm_unknown_linux_gnueabi_0_6_2 - * nerves_toolchain_arm_unknown_linux_gnueabihf_0_6_1 - * nerves_toolchain_armv6_rpi_linux_gnueabi_0_6_1 - * nerves_toolchain_i586_unknown_linux_gnu_0_6_1 - * nerves_wpa_supplicant_0_2_1 - * nested_set_0_0_2 - * new_relixir_0_1_0 - * newrelic_0_1_0 - * nice_nickname_0_0_1 - * nifty_0_0_3 - * nio_google_authenticator_1_0_1 - * nio_google_geocoder_0_7_0 - * nodefinder_1_4_0 - * nodefinder_1_5_1 - * nomad_0_6_0 - * normalixr_0_4_0 - * oauth2_0_6_0 - * oauth2_server_0_1_1 - * oauth2cli_0_0_4 - * oauth2ex_0_0_9 - * obelisk_0_10_0 - * observer_cli_1_0_5 - * okta_0_0_1 - * omise_0_2_2 - * openmaize_0_18_1 - * overpass_0_1_1 - * oxr_0_3_1 - * p1_mysql_1_0_1 - * p1_oauth2_0_6_1 - * p1_pgsql_1_1_0 - * p1_stringprep_1_0_1 - * p1_utils_1_0_0 - * p1_utils_1_0_3 - * p1_utils_1_0_4 - * p1_xml_1_1_1 - * p1_xmlrpc_1_15_1 - * params_2_0_0_beta_0 - * parse_client_0_2_3 - * parse_trans_2_9_0 - * parsex_0_0_2 - * passport_0_0_4 - * peatio_client_1_5_0 - * pet_0_1_1 - * pgpool_1_0_0 - * phoenix_0_2_6 - * phoenix_0_4_1 - * phoenix_1_2_0_rc_1 - * phoenix_active_link_0_0_1 - * phoenix_calendar_0_1_2 - * phoenix_dtl_0_0_1 - * phoenix_ecto_3_0_0_rc_0 - * phoenix_ember_0_0_1 - * phoenix_facebook_messenger_0_3_0 - * phoenix_gen_gulp_jspm_1_0_0 - * phoenix_haml_0_2_1 - * phoenix_html_2_4_0_dev - * phoenix_html_2_5_1 - * phoenix_html_sanitizer_1_0_2 - * phoenix_html_simplified_helpers_0_3_3 - * phoenix_linguist_0_0_1 - * phoenix_live_reload_1_0_5 - * phoenix_microsoftbot_0_1_0 - * phoenix_pubsub_postgres_0_0_2 - * phoenix_pubsub_rabbitmq_0_0_1 - * phoenix_pubsub_redis_2_0_0 - * phoenix_ratchet_0_2_0 - * phoenix_reactor_0_0_3 - * phoenix_simple_form_0_0_2 - * phoenix_slim_0_4_1 - * phoenix_slime_0_6_0 - * phoenix_swoosh_0_1_2 - * phoenix_timex_1_0_1 - * phoenix_token_auth_0_4_0 - * picosat_0_1_0 - * pin_elixir_0_0_1 - * pixie_0_3_5 - * placid_0_1_3 - * plain_sitemap_0_0_1 - * plasm_0_3_0 - * plug_0_4_4 - * plug_0_5_3 - * plug_0_7_0 - * plug_abort_2_1_1 - * plug_auth_0_3_0 - * plug_basic_auth_1_1_0 - * plug_byte_serve_0_3_2 - * plug_cors_0_8_2 - * plug_exception_handler_0_0_4 - * plug_graphql_0_3_1 - * plug_json_parser_0_0_6 - * plug_jwt_0_7_1 - * plug_newrelic_0_0_5 - * plug_secure_headers_0_0_1 - * plug_session_memcached_0_3_3 - * plug_session_redis_0_1_0 - * png_0_1_1 - * poison_1_0_3 - * poison_1_1_1 - * poison_1_2_1 - * pool_0_0_2 - * pooler_1_4_0 - * portal_0_0_1 - * porterstemmer_0_0_1 - * portmidi_5_0_0 - * posterize_0_11_0 - * postgrex_0_11_1 - * postgrex_0_6_0 - * pqueue_1_4_0 - * proper_1_1_1_beta - * protego_0_1_0 - * protobuffs_0_8_2 - * provider_asn1_0_2_1 - * pulse_0_1_3 - * pulse_libs_1_0_0 - * pusher_0_1_3 - * pushex_0_0_5 - * pynchon_0_1_1 - * quick_chex_0_2_1 - * quinn_0_0_4 - * rackla_1_0_0 - * radpath_0_0_5 - * random_0_2_2 - * ratchet_0_3_1 - * raven_0_0_5 - * raygun_0_3_0 - * reactive_0_0_1 - * readme_md_doc_0_1_2 - * reagent_0_1_9 - * reaxt_0_3_2 - * rebar3_abnfc_plugin_0_1_0 - * rebar3_auto_0_3_0 - * rebar3_auto_applications_1_0_0 - * rebar3_autotest_0_1_1 - * rebar3_cuttlefish_0_11_0 - * rebar3_diameter_compiler_0_4_0 - * rebar3_elixir_0_0_5 - * rebar3_elixirc_0_1_0 - * rebar3_eqc_0_0_10 - * rebar3_exunit_0_1_1 - * rebar3_git_vsn_1_1_0 - * rebar3_gpb_plugin_1_3_3 - * rebar3_hex_2_5_1 - * rebar3_idl_compiler_0_4_0 - * rebar3_lfe_compile_0_4_1 - * rebar3_live_0_1_3 - * rebar3_neotoma_plugin_0_2_0 - * rebar3_proper_0_6_0 - * rebar3_proper_plugin_0_1_0 - * rebar3_protobuffs_0_2_0 - * rebar3_raw_deps_2_0_0 - * rebar3_run_0_2_0 - * rebar3_shellrpc_0_1_0 - * rebar3_tsung_0_1_4 - * rebar3_vendor_0_3_0 - * rebar3_yang_plugin_0_2_1 - * rebar_alias_0_1_0 - * rebar_cmd_0_2_3 - * rebar_erl_vsn_0_1_0 - * rebar_protobuffs_0_1_0 - * rebind_0_1_3 - * recaptcha_1_1_1 - * receipt_verifier_0_0_1 - * recon_2_2_1 - * recon_2_3_1 - * recon_ex_0_9_1 - * record_translator_0_0_3 - * red_0_0_5 - * red_black_tree_1_2_0 - * reddhl_0_0_1 - * redis_pool_0_2_3 - * redis_poolex_0_0_5 - * redix_0_3_6 - * redo_2_0_1 - * redtube_1_0_0 - * ref_inspector_0_9_0 - * regdom_0_0_1 - * relax_0_3_0 - * relflow_1_0_5 - * relief_0_0_1 - * relisa_0_1_0 - * relocker_0_0_8 - * reltool_util_1_4_0 - * reltool_util_1_5_1 - * relx_3_1_0 - * relx_3_19_0 - * relx_3_5_0 - * remix_0_0_2 - * remodel_0_0_1 - * remote_ip_rewriter_0_0_2 - * rendezvous_0_0_1 - * repg2_0_0_4 - * repo_0_4_1 - * repoquery_0_0_2 - * reporter_0_5_1 - * reprise_0_5_0 - * resin_0_4_1 - * rest_1_5_0 - * rest_client_0_0_1 - * rethinkdb_0_4_0 - * rethinkdb_changefeed_0_0_1 - * retrieval_0_9_1 - * retry_0_1_0 - * reup_0_1_0 - * reverse_proxy_0_1_0 - * revision_plate_ex_0_1_0 - * rfc3339_0_9_0 - * riak_1_0_0 - * riak_core_ng_2_2_5 - * riak_dt_2_1_1 - * riak_ensemble_2_1_3 - * riak_pb_2_1_0 - * riak_sysmon_2_1_2 - * riakc_2_1_1 - * riboflavin_0_0_2 - * riemann_0_0_15 - * rlist_0_0_1 - * robotex_0_0_1 - * rogger_0_1_0 - * rollbax_0_6_0 - * rollex_0_4_0 - * roman_numerals_1_0_1 - * romanex_0_1_0 - * romeo_0_5_0 - * roombex_0_0_4 - * rop_0_5_3 - * rotor_0_2_2 - * rquote_0_0_1 - * rsa_0_0_1 - * rss_0_2_1 - * rstats_1_0_2 - * rubix_0_0_2 - * rulex_0_2_0 - * russian_0_1_0 - * rustler_0_0_7 - * safetybox_0_1_2 - * sage_0_0_1 - * salsa20_0_3_0 - * saltie_0_3_2 - * saltpack_1_0_1 - * sap_0_0_2 - * sasl_ex_0_1_0 - * sass_elixir_0_0_1 - * savory_0_0_2 - * sbroker_0_6_2 - * sbroker_0_7_0 - * sbroker_1_0_0_beta_2 - * scaffold_0_0_5 - * scarab_0_1_0 - * schedule_0_1_0 - * schizo_0_0_1 - * scientist_0_2_0 - * scientist_ex_0_1_0 - * scrape_1_0_4 - * scrivener_1_1_4 - * scrivener_1_2_1 - * scrivener_headers_1_0_1 - * scrivener_html_1_1_1 - * seasonal_0_3_0 - * seat_json_0_0_18 - * sec_cik_ticker_mapper_0_0_2 - * sec_company_filings_rss_feed_parser_0_0_2 - * sec_recent_filings_rss_feed_parser_0_0_6 - * secure_0_1_0 - * secure_compare_0_0_1 - * secure_headers_0_0_1 - * secure_password_0_4_3 - * secure_random_0_1_1 - * secure_random_0_3_0 - * seedex_0_1_2 - * seg_seg_0_0_1 - * seg_seg_0_1_0 - * segment_0_1_0 - * select_0_0_1 - * selenium_0_0_2 - * semver_0_1_2 - * sendgrid_0_1_0 - * sentient_0_0_2 - * sentinel_0_1_0 - * sentry_0_3_2 - * sequences_1_1_0 - * serial_0_1_2 - * serve_this_1_0_0 - * service_1_5_1 - * setup_1_7_0 - * setup_tag_0_1_2 - * sfmt_0_12_7 - * sfmt_0_13_0 - * sfsobject_0_0_3 - * sh_1_1_2 - * sha3_1_0_0 - * shameless_plug_1_0_0 - * shape_0_0_2 - * shell_stream_0_0_1 - * short_maps_0_1_1 - * shorter_maps_1_0_0 - * shotgun_0_3_0 - * shouldi_0_3_0 - * shove_0_0_1 - * shrivel_0_0_3 - * sidejob_2_0_0 - * sideshow_0_0_2 - * sidetask_1_1_0 - * signaturex_1_0_1 - * simetric_0_1_0 - * simple_agent_0_0_7 - * simple_bar_0_0_7 - * simple_format_0_1_0 - * simple_markdown_0_0_1 - * simple_secrets_1_0_0 - * simple_statistics_0_0_1 - * simplex_0_4_0 - * simplify_0_2_1 - * simpre_0_1_0 - * siphash_3_1_0 - * sips_downloader_0_2_2 - * sitemap_0_7_0 - * skills_0_0_1 - * skroutz_0_1_0 - * slack_0_3_0 - * slack_0_4_2 - * slack_0_5_0 - * slack_logger_backend_0_1_4 - * slack_webhook_0_0_2 - * slacker_0_0_2 - * slackex_0_0_1 - * slim_fast_0_10_0 - * slime_0_13_0 - * slp_0_0_2 - * slugerl_1_0_0 - * slugger_0_1_0 - * smex_0_0_1 - * sms506_0_2_0 - * sms_blitz_0_0_1 - * smurf_0_1_3 - * snappy_1_1_1 - * snowflake_client_0_1_1 - * socket_0_2_8 - * socket_0_3_4 - * solage_0_0_1 - * sonic_0_1_3 - * sorted_set_1_1_0 - * soundcloud_ex_0_0_1 - * spaceapi_0_1_2 - * spaced_repetitions_0_0_1 - * spacesaving_0_0_3 - * spaghetti_pool_0_1_0 - * sparkpost_0_1_0 - * spartan_0_0_1 - * spawndir_0_1_1 - * spirit_0_0_1 - * sql_dust_0_3_4 - * sqlite3_1_1_5 - * sqlite_ecto_0_5_0 - * sqlite_ecto_1_0_2 - * sqlite_ecto_1_1_0 - * ssdb_0_3_0 - * ssdb_elixir_0_2_2 - * sshex_1_1_0 - * ssl_verify_hostname_1_0_0 - * ssl_verify_hostname_1_0_5 - * ssl_verify_hostname_1_0_6 - * statman_0_5_0 - * stmd_0_0_2 - * strava_0_0_1 - * stringprep_1_0_3 - * stripe_0_0_1 - * stripe_client_0_0_3 - * stripe_eventex_1_0_0 - * stripity_stripe_1_4_0 - * structurez_0_0_1 - * stun_1_0_3 - * sugar_0_4_11 - * supermemo_1_0_0 - * supervisord_0_1_0 - * swaggerdoc_0_0_1 - * sweet_xml_0_4_0 - * switchboard_0_3_2 - * swoosh_0_3_0 - * syslog_1_0_2 - * tagplay_0_1_0 - * tarantool_0_0_2 - * tcs34725_0_0_1 - * tds_ecto_1_0_2 - * telebot_0_1_2 - * templates_0_0_5 - * texas_0_0_2 - * theriac_0_0_1 - * thesis_0_0_14 - * thing_0_0_1 - * timex_0_12_9 - * timex_0_13_5 - * timex_0_16_2 - * timex_1_0_0_rc4 - * timex_ecto_1_0_4 - * timex_ecto_1_1_3 - * timex_interval_0_6_0 - * tirerl_1_0_1 - * tomlex_0_0_4 - * topo_0_1_1 - * tracker_request_0_0_4 - * tractor_0_1_0 - * traitify_elixir_0_1_1 - * trans_0_1_0 - * translator_0_0_1 - * tributary_0_0_2 - * tuco_tuco_0_8_1 - * twittertex_0_1_0 - * twittex_0_0_4 - * u2f_0_1_3 - * u_token_0_0_2 - * ucol_2_0_0 - * ucol_nif_1_1_5 - * ueberauth_facebook_0_3_2 - * ueberauth_fitbit_0_2_1 - * ueberauth_github_0_2_0 - * ueberauth_google_0_2_0 - * ueberauth_linkedin_0_2_0 - * ueberauth_paypal_0_1_0 - * ueberauth_slack_0_2_0 - * ueberauth_spotify_0_0_1 - * ueberauth_strava_0_1_1 - * ueberauth_vk_0_1_1 - * ueberauth_vkontakte_0_1_0 - * ueberauth_weibo_0_0_3 - * ui_0_1_1 - * ulitos_0_3_0 - * unsplash_0_4_0 - * upyun_0_0_1 - * uri_template_1_2_0 - * urna_0_1_4 - * uuid_erl_1_4_0 - * uuid_erl_1_5_1 - * valid_field_0_3_0 - * velkoz_1_2_0 - * verk_0_12_0 - * verk_web_0_11_0 - * vimeo_0_0_2 - * voorhees_0_1_1 - * wayback_archiver_0_0_1 - * webdriver_0_8_1 - * weber_0_1_0 - * weebo_0_1_2 - * wifi_0_2_0 - * win_notify_0_0_4 - * wire_0_2_0 - * xlsx_parser_0_0_7 - * xref_runner_1_0_0 - * yar_0_1_0 - * yggdrasil_1_2_3 - * yodlee_0_1_4 - * yomel_0_5_0 - * zanox_0_0_1 - * zencoder_1_0_1 - * zipper_1_0_0 - * zuppler_users_client_0_0_5 - -*/ -{ stdenv, pkgs, callPackage, overrides ? (self: super: {}) }: - -let - packages = self: rec { - abnf_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "abnf"; - version = "0.0.1"; - src = fetchHex { - pkg = "abnf"; - version = "0.0.1"; - sha256 = - "81e263f061ba677bda3e0d7f8884730eb51c14d7bc6526647c46cce659f1b054"; - }; - - meta = { - description = ''ABNF parser for Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/vanstee/abnf"; - }; - } // packageOverrides) - ) {}; - - abnf = abnf_0_0_1; - - absinthe_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "absinthe"; - version = "1.0.0"; - src = fetchHex { - pkg = "absinthe"; - version = "1.0.0"; - sha256 = - "c5606be8b46003e7ac47e87c924908cb390b892fef0eae390deb66f8ee123a1c"; - }; - - meta = { - description = ''GraphQL for Elixir''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/absinthe-graphql/absinthe"; - }; - } // packageOverrides) - ) {}; - - absinthe_1_1_6 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "absinthe"; - version = "1.1.6"; - src = fetchHex { - pkg = "absinthe"; - version = "1.1.6"; - sha256 = - "3e83ea139967975a025850c0efc5aba7a864aded6b10d6483a60264a3523411f"; - }; - - meta = { - description = ''GraphQL for Elixir''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/absinthe-graphql/absinthe"; - }; - } // packageOverrides) - ) {}; - - absinthe = absinthe_1_1_6; - - absinthe_plug_1_0_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - plug_1_1_5, - absinthe_1_0_0 - }: - buildMix ({ - name = "absinthe_plug"; - version = "1.0.0"; - src = fetchHex { - pkg = "absinthe_plug"; - version = "1.0.0"; - sha256 = - "08459823fe1fd4f0325a8bf0c937a4520583a5a26d73b193040ab30a1dfc0b33"; - }; - beamDeps = [ plug_1_1_5 absinthe_1_0_0 ]; - - meta = { - description = ''A plug for Absinthe, an experimental GraphQL - toolkit''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/CargoSense/absinthe_plug"; - }; - } // packageOverrides) - ) {}; - - absinthe_plug_1_1_3 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - plug_1_1_5, - absinthe_1_1_6 - }: - buildMix ({ - name = "absinthe_plug"; - version = "1.1.3"; - src = fetchHex { - pkg = "absinthe_plug"; - version = "1.1.3"; - sha256 = - "9fa66d56b4ddbd42fc11510780ed6c9758d539b9c8e538930ff8b383ae71814e"; - }; - beamDeps = [ plug_1_1_5 absinthe_1_1_6 ]; - - meta = { - description = ''A plug for Absinthe, an experimental GraphQL - toolkit''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/CargoSense/absinthe_plug"; - }; - } // packageOverrides) - ) {}; - - absinthe_plug = absinthe_plug_1_1_3; - - access_token_extractor_0_1_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - plug_1_1_5, - cowboy_1_0_4 - }: - buildMix ({ - name = "access_token_extractor"; - version = "0.1.1"; - src = fetchHex { - pkg = "access_token_extractor"; - version = "0.1.1"; - sha256 = - "40f76799f8fbb5b03230b31d4d55c5a169e7c3ad82d776a9d87fe0c65c85396d"; - }; - beamDeps = [ plug_1_1_5 cowboy_1_0_4 ]; - - meta = { - longDescription = ''Simple Plug to extract access_token from - request and add it to private map in Plug.Conn - struct.''; - license = stdenv.lib.licenses.mit; - homepage = - "https://github.com/rohanpujaris/access_token_extractor"; - }; - } // packageOverrides) - ) {}; - - access_token_extractor = access_token_extractor_0_1_1; - - adam7_0_4_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, apex_0_3_7 }: - buildMix ({ - name = "adam7"; - version = "0.4.0"; - src = fetchHex { - pkg = "adam7"; - version = "0.4.0"; - sha256 = - "8b540817f2fa92ba4b198d42d1ee4af348ed1edf8bd02d69691e0d8bdbecdcee"; - }; - beamDeps = [ apex_0_3_7 ]; - - meta = { - longDescription = ''Adam7 interlacing library for Elixir. - Primarily used for interlacing and - de-interlacing image data for PNGs.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/SenecaSystems/imagineer"; - }; - } // packageOverrides) - ) {}; - - adam7 = adam7_0_4_0; - - adap_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "adap"; - version = "0.0.1"; - src = fetchHex { - pkg = "adap"; - version = "0.0.1"; - sha256 = - "10679369764e2aa68560008c1f8bea40d5c715389e27e10b35b1ceda3fedadbb"; - }; - - meta = { - longDescription = '' Create a data stream across your information - systems to query, augment and transform data - according to Elixir matching rules. ''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/awetzel/adap"; - }; - } // packageOverrides) - ) {}; - - adap = adap_0_0_1; - - adt_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "adt"; - version = "0.0.2"; - src = fetchHex { - pkg = "adt"; - version = "0.0.2"; - sha256 = - "a5b310b1ed8093b0f786ca4facdd0c9ff073acf3e47db6a9771005b77e0d7259"; - }; - - meta = { - description = ''A light ADT module for Elixir.''; - - }; - } // packageOverrides) - ) {}; - - adt = adt_0_0_2; - - aeacus_0_3_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, comeonin_1_6_0 }: - buildMix ({ - name = "aeacus"; - version = "0.3.0"; - src = fetchHex { - pkg = "aeacus"; - version = "0.3.0"; - sha256 = - "3cc138cfc7c508cfd85afddd0881632dde2e663d222c9e3749fae8c80ebb2c0b"; - }; - beamDeps = [ comeonin_1_6_0 ]; - - meta = { - longDescription = ''A simple, secure, and highly configurable - Elixir identity [username | email | id | - etc.]/password authentication module; Compatible - with Ecto.''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/zmoshansky/aeacus"; - }; - } // packageOverrides) - ) {}; - - aeacus = aeacus_0_3_0; - - ahab_0_1_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "ahab"; - version = "0.1.1"; - src = fetchHex { - pkg = "ahab"; - version = "0.1.1"; - sha256 = - "c981c2f62dccd15a055083f9bc088aa0e4a029625ef9aa45104c4ba0ead12bd2"; - }; - - meta = { - description = ''A lightweight, low latency TCP acceptor pool for - Elixir.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/jquadrin/ahab"; - }; - } // packageOverrides) - ) {}; - - ahab = ahab_0_1_1; - - airbrakify_0_0_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - plug_1_1_5, - httpoison_0_8_3 - }: - buildMix ({ - name = "airbrakify"; - version = "0.0.1"; - src = fetchHex { - pkg = "airbrakify"; - version = "0.0.1"; - sha256 = - "973f895ba83e6dd71cf87182419e144db5c3ac23e43b7a1247e51559bf2737b6"; - }; - beamDeps = [ poison_2_1_0 plug_1_1_5 httpoison_0_8_3 ]; - - meta = { - longDescription = ''A simple Airbrake/Errbit library for - Elixir/Phoenix projects. Currently only supports - error/exception notifications via a Plug.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/Diamond/airbrakify"; - }; - } // packageOverrides) - ) {}; - - airbrakify = airbrakify_0_0_1; - - alambic_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "alambic"; - version = "0.1.0"; - src = fetchHex { - pkg = "alambic"; - version = "0.1.0"; - sha256 = - "04dc4cc88d56539ec4006a84668186501be9be4c369f145af6a606bb63d97ce0"; - }; - - meta = { - longDescription = ''A collection of small elixir utilities. - Semaphore: quick way of limiting access to a - resource CountDown: quick way of counting fan - in/out events''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/sdanzan/alambic"; - }; - } // packageOverrides) - ) {}; - - alambic = alambic_0_1_0; - - alchemic_avatar_0_1_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "alchemic_avatar"; - version = "0.1.2"; - src = fetchHex { - pkg = "alchemic_avatar"; - version = "0.1.2"; - sha256 = - "329ae15eb6a304d6d425f86e6890f1d5c3901475b3fbc9eb07ad03f1394144b4"; - }; - - meta = { - description = ''Creating letter avatar from user`s name(or any - other strong / character).''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/zhangsoledad/alchemic_avatar"; - }; - } // packageOverrides) - ) {}; - - alchemic_avatar = alchemic_avatar_0_1_2; - - alchemic_pinyin_0_1_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "alchemic_pinyin"; - version = "0.1.2"; - src = fetchHex { - pkg = "alchemic_pinyin"; - version = "0.1.2"; - sha256 = - "1fbd8300984699370b4a97ab10b64023494d2f9755eddf0abe1dcd9a5f2498c6"; - }; - - meta = { - description = ''中文汉字转拼音.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/zhangsoledad/alchemic_pinyin"; - }; - } // packageOverrides) - ) {}; - - alchemic_pinyin = alchemic_pinyin_0_1_2; - - alchemist_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "alchemist"; - version = "0.0.2"; - src = fetchHex { - pkg = "alchemist"; - version = "0.0.2"; - sha256 = - "095ad9b47258b2d482b782a5794ed800df1c4024abbc126f347738be72a1aa51"; - }; - - meta = { - description = ''Carefully refactor critical paths''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/jkakar/alchemist"; - }; - } // packageOverrides) - ) {}; - - alchemist = alchemist_0_0_2; - - alchemy_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, uuid_1_1_4 }: - buildMix ({ - name = "alchemy"; - version = "0.0.1"; - src = fetchHex { - pkg = "alchemy"; - version = "0.0.1"; - sha256 = - "109ce3f83d596a6ab9a947f472516f87da7b0df823fe2d91e27bc6594a305c3d"; - }; - beamDeps = [ uuid_1_1_4 ]; - - meta = { - description = ''Perform experiments in production''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/keathley/alchemy"; - }; - } // packageOverrides) - ) {}; - - alchemy = alchemy_0_0_1; - - aleppo_0_9_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "aleppo"; - version = "0.9.0"; - src = fetchHex { - pkg = "aleppo"; - version = "0.9.0"; - sha256 = - "2f360631d64da53f40621714e157fd33805a95d0160d5c62fcfb3e132986ce71"; - }; - - meta = { - description = ''Aleppo: ALternative Erlang Pre-ProcessOr''; - license = stdenv.lib.licenses.apsl20; - homepage = "https://github.com/ErlyORM/aleppo"; - }; - } // packageOverrides) - ) {}; - - aleppo = aleppo_0_9_0; - - alexa_0_1_14 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, poison_2_1_0 }: - buildMix ({ - name = "alexa"; - version = "0.1.14"; - src = fetchHex { - pkg = "alexa"; - version = "0.1.14"; - sha256 = - "a15cc63ef736f45326a3065ff59e1211365929387957f246e7b8cee76a31bbe8"; - }; - beamDeps = [ poison_2_1_0 ]; - - meta = { - description = ''Framework for implementing an Amazon Alexa - Skill.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/col/alexa"; - }; - } // packageOverrides) - ) {}; - - alexa = alexa_0_1_14; - - alexa_plug_0_2_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, plug_1_1_5 }: - buildMix ({ - name = "alexa_plug"; - version = "0.2.0"; - src = fetchHex { - pkg = "alexa_plug"; - version = "0.2.0"; - sha256 = - "a78f6fa5e3ba33ce0943f4cb96d6cfcc9b36637a4575314469c8a0d45fff40d0"; - }; - beamDeps = [ plug_1_1_5 ]; - - meta = { - longDescription = ''A simple set of plugs and utilities for - interfacing with the Amazon Echo and the Alexa - Skills Kit.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/jordantdavis/alexa_plug"; - }; - } // packageOverrides) - ) {}; - - alexa_plug = alexa_plug_0_2_0; - - alexa_web_0_0_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - plug_1_1_5, - cowboy_1_0_4, - alexa_0_1_14 - }: - buildMix ({ - name = "alexa_web"; - version = "0.0.2"; - src = fetchHex { - pkg = "alexa_web"; - version = "0.0.2"; - sha256 = - "e60a7fa60eb52bbb91e445cf0ee3781e0e2a148855befa638b274e6720421126"; - }; - beamDeps = [ plug_1_1_5 cowboy_1_0_4 alexa_0_1_14 ]; - - meta = { - description = ''A web endpoint for deploying one or a collection - of Amazon Alexa Skills''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/col/alexa_web"; - }; - } // packageOverrides) - ) {}; - - alexa_web = alexa_web_0_0_2; - - algae_0_10_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, quark_1_0_2 }: - buildMix ({ - name = "algae"; - version = "0.10.0"; - src = fetchHex { - pkg = "algae"; - version = "0.10.0"; - sha256 = - "02d89132d99da1e13271007d1109be958ef8b3b7a5e64323299b84d0aa2353e1"; - }; - beamDeps = [ quark_1_0_2 ]; - - meta = { - description = ''Bootstrapped algebraic data types for Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/robot-overlord/algae"; - }; - } // packageOverrides) - ) {}; - - algae = algae_0_10_0; - - amazon_product_advertising_client_0_1_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - timex_1_0_2, - sweet_xml_0_6_1, - httpoison_0_8_3 - }: - buildMix ({ - name = "amazon_product_advertising_client"; - version = "0.1.1"; - src = fetchHex { - pkg = "amazon_product_advertising_client"; - version = "0.1.1"; - sha256 = - "406111cedbd475cab29bdcc69f48ddc3670e57d2e3294e8d948c117ae492951c"; - }; - beamDeps = [ timex_1_0_2 sweet_xml_0_6_1 httpoison_0_8_3 ]; - - meta = { - description = ''An Amazon Product Advertising API client for - Elixir''; - license = stdenv.lib.licenses.mit; - homepage = - "https://github.com/zachgarwood/elixir-amazon-product-advertising-client"; - }; - } // packageOverrides) - ) {}; - - amazon_product_advertising_client = - amazon_product_advertising_client_0_1_1; - - amnesia_0_2_4 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, exquisite_0_1_6 }: - buildMix ({ - name = "amnesia"; - version = "0.2.4"; - src = fetchHex { - pkg = "amnesia"; - version = "0.2.4"; - sha256 = - "fba1e39f5c51d860b22618046a25525170530bc595d0f2dbb45f070c3b40da8f"; - }; - beamDeps = [ exquisite_0_1_6 ]; - - meta = { - description = ''mnesia wrapper for Elixir''; - license = stdenv.lib.licenses.wtfpl; - homepage = "https://github.com/meh/amnesia"; - }; - } // packageOverrides) - ) {}; - - amnesia = amnesia_0_2_4; - - anagram_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "anagram"; - version = "1.0.0"; - src = fetchHex { - pkg = "anagram"; - version = "1.0.0"; - sha256 = - "8c41013b8b586728adbf821fe809c277e30f99323138b8e8ccff2311317c8fac"; - }; - - meta = { - longDescription = ''Find anagrams of words and \"words that can - be made with a set of letters\" (sort of a sub - anagram)''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/ewildgoose/elixir-anagram"; - }; - } // packageOverrides) - ) {}; - - anagram = anagram_1_0_0; - - anaphora_0_1_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "anaphora"; - version = "0.1.2"; - src = fetchHex { - pkg = "anaphora"; - version = "0.1.2"; - sha256 = - "fb60a214b2be57d7a08aa8237cd7afb009b637563d64ed5e6ec486e36c484001"; - }; - - meta = { - description = ''The anaphoric macro collection for Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/sviridov/anaphora-elixir"; - }; - } // packageOverrides) - ) {}; - - anaphora = anaphora_0_1_2; - - anilixir_1_0_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - httpoison_0_8_3 - }: - buildMix ({ - name = "anilixir"; - version = "1.0.0"; - src = fetchHex { - pkg = "anilixir"; - version = "1.0.0"; - sha256 = - "ee5c6dfa7e5250d8ec5c9b04910e3202788ceeba231cb3ff8b22e479cc64f1c3"; - }; - beamDeps = [ poison_1_5_2 httpoison_0_8_3 ]; - - meta = { - description = ''Anilist API client for Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/sotojuan/anilixir"; - }; - } // packageOverrides) - ) {}; - - anilixir = anilixir_1_0_0; - - apex_0_3_7 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "apex"; - version = "0.3.7"; - src = fetchHex { - pkg = "apex"; - version = "0.3.7"; - sha256 = - "a1c8313e9c909ff2489f004b3514430293b1aafb81569b93a1822d486f56080d"; - }; - - meta = { - description = ''Elixir clone of Ruby`s awesome_print gem''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/bjro/apex"; - }; - } // packageOverrides) - ) {}; - - apex_0_5_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "apex"; - version = "0.5.0"; - src = fetchHex { - pkg = "apex"; - version = "0.5.0"; - sha256 = - "dd8863ebef2a42be331eece2d3a2f721c4ec3c8495bc0e198703aea7927f156a"; - }; - - meta = { - description = ''Elixir clone of Ruby`s awesome_print gem''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/bjro/apex"; - }; - } // packageOverrides) - ) {}; - - apex = apex_0_5_0; - - apix_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "apix"; - version = "0.1.0"; - src = fetchHex { - pkg = "apix"; - version = "0.1.0"; - sha256 = - "d1d809cf41731e39a6c23e02fb41c9375bf04db35c8ce595c99c03eea694f30e"; - }; - - meta = { - longDescription = ''Simple convention and DSL for transformation - of elixir functions to a documented and ready - for validation API.''; - - homepage = "https://github.com/liveforeverx/apix"; - }; - } // packageOverrides) - ) {}; - - apix = apix_0_1_0; - - apns_0_9_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poolboy_1_5_1, - poison_2_1_0, - connection_1_0_2 - }: - buildMix ({ - name = "apns"; - version = "0.9.2"; - src = fetchHex { - pkg = "apns"; - version = "0.9.2"; - sha256 = - "7d63bd108572fadac777006957e45db5da1a8adf2e94e76f83c89942adf54f68"; - }; - beamDeps = [ poolboy_1_5_1 poison_2_1_0 connection_1_0_2 ]; - - meta = { - description = ''APNS (Apple Push Notification Service) library - for Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/chvanikoff/apns4ex"; - }; - } // packageOverrides) - ) {}; - - apns = apns_0_9_2; - - ar2ecto_0_1_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "ar2ecto"; - version = "0.1.2"; - src = fetchHex { - pkg = "ar2ecto"; - version = "0.1.2"; - sha256 = - "a32322d39f1c0cff335b05b5c2252e531091565c3cf754811087edd2e115a718"; - }; - - meta = { - description = ''Ar2ecto is a set of mix tasks to help you migrate - from ActiveRecord to Ecto.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/aforward/ar2ecto"; - }; - } // packageOverrides) - ) {}; - - ar2ecto = ar2ecto_0_1_2; - - argent_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "argent"; - version = "0.0.1"; - src = fetchHex { - pkg = "argent"; - version = "0.0.1"; - sha256 = - "dde0920308efca2c8dd9681057e5196f625b53ed8dff86a27242807c3653d645"; - }; - - meta = { - description = ''A currency management library for elixir.''; - - }; - } // packageOverrides) - ) {}; - - argent = argent_0_0_1; - - argument_parser_0_1_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "argument_parser"; - version = "0.1.3"; - src = fetchHex { - pkg = "argument_parser"; - version = "0.1.3"; - sha256 = - "2c56a6c9dfa9790aabdb8f9268ac501404376ffb13396ff515e66f1ebf64817d"; - }; - - meta = { - description = ''More powerful argument parser for creating nice - scripts''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/jisaacstone/ex_argument_parser"; - }; - } // packageOverrides) - ) {}; - - argument_parser = argument_parser_0_1_3; - - array_1_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "array"; - version = "1.0.1"; - src = fetchHex { - pkg = "array"; - version = "1.0.1"; - sha256 = - "626ac1383566dadee3a10357cd6d192151c6d604ee3266809daf0da6b5e33bbb"; - }; - - meta = { - description = ''An elixir wrapper library for Erlang`s array.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/takscape/elixir-array"; - }; - } // packageOverrides) - ) {}; - - array = array_1_0_1; - - artifact_0_4_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - porcelain_2_0_1, - poolboy_1_5_1, - plug_1_1_5 - }: - buildMix ({ - name = "artifact"; - version = "0.4.0"; - src = fetchHex { - pkg = "artifact"; - version = "0.4.0"; - sha256 = - "6c66a3c745418e1f1207940c3815828d1a0f022d8186e5da593599d1f460197f"; - }; - beamDeps = [ porcelain_2_0_1 poolboy_1_5_1 plug_1_1_5 ]; - - meta = { - description = ''File upload and on-the-fly processing for - Elixir''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/doomspork/artifact"; - }; - } // packageOverrides) - ) {}; - - artifact = artifact_0_4_0; - - aruspex_0_1_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - zipper_tree_0_1_1, - exyz_1_0_0 - }: - buildMix ({ - name = "aruspex"; - version = "0.1.0"; - src = fetchHex { - pkg = "aruspex"; - version = "0.1.0"; - sha256 = - "2effd16e1081a7af2e5ade9c58cdf4c4d90e2095749ccf733332be2924a6d771"; - }; - beamDeps = [ zipper_tree_0_1_1 exyz_1_0_0 ]; - - meta = { - description = ''A configurable constraint solver with an API - based on JSR 331.''; - license = stdenv.lib.licenses.mit; - homepage = "https://www.github.com/dkendal/aruspex"; - }; - } // packageOverrides) - ) {}; - - aruspex = aruspex_0_1_0; - - ashes_0_0_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "ashes"; - version = "0.0.3"; - src = fetchHex { - pkg = "ashes"; - version = "0.0.3"; - sha256 = - "2178ab8c0fa1cf53b6d6152773ae79ca6100c80861d59e55e5fa06c5979b042b"; - }; - - meta = { - description = ''A code generation tool for the phoenix web - framework''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/nickgartmann/ashes"; - }; - } // packageOverrides) - ) {}; - - ashes = ashes_0_0_3; - - assembla_api_0_1_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - httpoison_0_8_3 - }: - buildMix ({ - name = "assembla_api"; - version = "0.1.0"; - src = fetchHex { - pkg = "assembla_api"; - version = "0.1.0"; - sha256 = - "b4a3898de536e4820702c0f119993fd2804e91e2525d1e7eba57d8744983ef24"; - }; - beamDeps = [ poison_1_5_2 httpoison_0_8_3 ]; - - meta = { - description = ''Assembla API client''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/Assembla/ex_assembla_api"; - }; - } // packageOverrides) - ) {}; - - assembla_api = assembla_api_0_1_0; - - assembly_line_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, gproc_0_5_0 }: - buildMix ({ - name = "assembly_line"; - version = "1.0.0"; - src = fetchHex { - pkg = "assembly_line"; - version = "1.0.0"; - sha256 = - "3b687890bf750cd893e8a73c261710c1014ba4d5b2247f695f7730b2a84a5473"; - }; - beamDeps = [ gproc_0_5_0 ]; - - meta = { - description = ''A light-weight job queue (think DAG) manager.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/LeakyBucket/assembly_line"; - }; - } // packageOverrides) - ) {}; - - assembly_line = assembly_line_1_0_0; - - assert_diff_0_0_5 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "assert_diff"; - version = "0.0.5"; - src = fetchHex { - pkg = "assert_diff"; - version = "0.0.5"; - sha256 = - "ad53a2819c33d39ad2f71404a964625691e9d6bf3d63dbc28442acda71109426"; - }; - - meta = { - description = ''assert_diff which fallbacks to git diff''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/ske77/assert_diff"; - }; - } // packageOverrides) - ) {}; - - assert_diff = assert_diff_0_0_5; - - atomic_map_0_9_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "atomic_map"; - version = "0.9.0"; - src = fetchHex { - pkg = "atomic_map"; - version = "0.9.0"; - sha256 = - "f95d5fd4e0f5e4a8ecfead77fa1957cfbcee52307692bcd632159e01326cbf78"; - }; - - meta = { - longDescription = ''A small utility to convert deep Elixir maps - with mixed string/atom keys to atom-only keyed - maps''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/ruby2elixir/atomic_map"; - }; - } // packageOverrides) - ) {}; - - atomic_map = atomic_map_0_9_0; - - auth_test_support_0_0_6 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, plug_1_1_5 }: - buildMix ({ - name = "auth_test_support"; - version = "0.0.6"; - src = fetchHex { - pkg = "auth_test_support"; - version = "0.0.6"; - sha256 = - "930596c61d237fbf74b86d87819f0a7df8da8ef79051294a1982ded403cb2401"; - }; - beamDeps = [ plug_1_1_5 ]; - - meta = { - description = ''Authentication and authorization test support - functions''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/DockYard/auth_test_support"; - }; - } // packageOverrides) - ) {}; - - auth_test_support = auth_test_support_0_0_6; - - authentic_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "authentic"; - version = "0.0.1"; - src = fetchHex { - pkg = "authentic"; - version = "0.0.1"; - sha256 = - "2fba6e1efde9fef4866d17499907811a3957ded8c07866c7b34474f0f0d59e29"; - }; - - meta = { - description = ''Auth for Phoenix''; - license = stdenv.lib.licenses.mit; - }; - } // packageOverrides) - ) {}; - - authentic = authentic_0_0_1; - - auto_doc_0_0_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - plug_1_1_5 - }: - buildMix ({ - name = "auto_doc"; - version = "0.0.2"; - src = fetchHex { - pkg = "auto_doc"; - version = "0.0.2"; - sha256 = - "9c4b30c526e59f63173fe2f0d0c360ac678f1e7a11adcf209dfc843a3e63e6f7"; - }; - beamDeps = [ poison_1_5_2 plug_1_1_5 ]; - - meta = { - description = ''A package that will create REST API docs based on - your ExUnit tests.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/meatherly/auto_doc"; - }; - } // packageOverrides) - ) {}; - - auto_doc = auto_doc_0_0_2; - - autobots_license_0_1_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - plug_1_1_5, - cowboy_1_0_4 - }: - buildMix ({ - name = "autobots_license"; - version = "0.1.0"; - src = fetchHex { - pkg = "autobots_license"; - version = "0.1.0"; - sha256 = - "7cfa258ce5eff01018dfd6faf509b430d03770fb733c1b10217b9e52770014b3"; - }; - beamDeps = [ plug_1_1_5 cowboy_1_0_4 ]; - - meta = { }; - } // packageOverrides) - ) {}; - - autobots_license = autobots_license_0_1_0; - - avex_0_2_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "avex"; - version = "0.2.0"; - src = fetchHex { - pkg = "avex"; - version = "0.2.0"; - sha256 = - "e63970026cc566e9aa9c24c261f43843a7553835d2009b16e838217644ded815"; - }; - - meta = { - description = ''Awesome validations for Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/jonhkr/avex"; - }; - } // packageOverrides) - ) {}; - - avex = avex_0_2_0; - - aws_0_0_11 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - timex_2_1_6, - poison_1_5_2, - httpoison_0_8_3 - }: - buildMix ({ - name = "aws"; - version = "0.0.11"; - src = fetchHex { - pkg = "aws"; - version = "0.0.11"; - sha256 = - "f9f3f9b0e02bb6aa29268a746b2110deaebe34f205d689e9d57ccb90f0caf072"; - }; - beamDeps = [ timex_2_1_6 poison_1_5_2 httpoison_0_8_3 ]; - - meta = { - description = ''AWS clients for Elixir''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/jkakar/aws-elixir"; - }; - } // packageOverrides) - ) {}; - - aws = aws_0_0_11; - - aws_auth_0_4_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, timex_2_1_6 }: - buildMix ({ - name = "aws_auth"; - version = "0.4.0"; - src = fetchHex { - pkg = "aws_auth"; - version = "0.4.0"; - sha256 = - "67f28f8e4ffdd3f3155e124f20ef325ff32ea3f525cf85e2df96f2f09d245976"; - }; - beamDeps = [ timex_2_1_6 ]; - - meta = { - description = ''AWS Signature Version 4 Signing Library''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/bryanjos/aws_auth"; - }; - } // packageOverrides) - ) {}; - - aws_auth = aws_auth_0_4_0; - - aws_cli_0_1_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex, erlexec_1_1_0 }: - buildRebar3 ({ - name = "aws_cli"; - version = "0.1.0"; - src = fetchHex { - pkg = "aws_cli"; - version = "0.1.0"; - sha256 = - "14fd91c4752a5eb5b2c781c4843589824b35750d7785b57e0460ba6d96bfe8c1"; - }; - - beamDeps = [ erlexec_1_1_0 ]; - - meta = { - description = ''AWS cli wrapper for Erlang''; - - homepage = "https://github.com/fyler/aws_cli"; - }; - } // packageOverrides) - ) {}; - - aws_cli = aws_cli_0_1_0; - - azure_push_client_0_0_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "azure_push_client"; - version = "0.0.2"; - src = fetchHex { - pkg = "azure_push_client"; - version = "0.0.2"; - sha256 = - "d58bbac5e5260d92ef62916e74dbb8743e413a9f69afa2d8e1940071407a2f06"; - }; - beamDeps = [ poison_2_1_0 httpoison_0_8_3 ]; - - meta = { - description = ''Azure Push Client''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/chaione/azure_push_client"; - }; - } // packageOverrides) - ) {}; - - azure_push_client = azure_push_client_0_0_2; - - b2_0_0_6 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - httpoison_0_8_3 - }: - buildMix ({ - name = "b2"; - version = "0.0.6"; - src = fetchHex { - pkg = "b2"; - version = "0.0.6"; - sha256 = - "f8b33d1ec36576dfbca3f2f4c5fad1a9a227207d1ef63b3a388778e8fad3333a"; - }; - beamDeps = [ poison_1_5_2 httpoison_0_8_3 ]; - - meta = { - description = ''Elixir B2 cloud API wrapper''; - - }; - } // packageOverrides) - ) {}; - - b2 = b2_0_0_6; - - bamboo_0_3_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "bamboo"; - version = "0.3.2"; - src = fetchHex { - pkg = "bamboo"; - version = "0.3.2"; - sha256 = - "1b4bfdddae49f6fc66616c63b4d2d9a0e99d40a08619004f5c4f4e4aebfa20ed"; - }; - beamDeps = [ poison_2_1_0 httpoison_0_8_3 ]; - - meta = { - longDescription = ''Straightforward, powerful, and adapter based - Elixir email library. Works with Mandrill, - Mailgun, SendGrid, SparkPost, in-memory, and - test.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/paulcsmith/bamboo"; - }; - } // packageOverrides) - ) {}; - - bamboo_0_5_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - plug_1_1_5, - httpoison_0_8_3 - }: - buildMix ({ - name = "bamboo"; - version = "0.5.0"; - src = fetchHex { - pkg = "bamboo"; - version = "0.5.0"; - sha256 = - "29e46e8c9e861e93103cde6fab9712bb077317e517af75a05e118763f7c5fc35"; - }; - beamDeps = [ poison_2_1_0 plug_1_1_5 httpoison_0_8_3 ]; - - meta = { - longDescription = ''Straightforward, powerful, and adapter based - Elixir email library. Works with Mandrill, - Mailgun, SendGrid, SparkPost, in-memory, and - test.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/paulcsmith/bamboo"; - }; - } // packageOverrides) - ) {}; - - bamboo_0_6_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - plug_1_1_5, - httpoison_0_8_3 - }: - buildMix ({ - name = "bamboo"; - version = "0.6.0"; - src = fetchHex { - pkg = "bamboo"; - version = "0.6.0"; - sha256 = - "81a48add86d8b08da8a4ca8249caa0d42cb51d0cb654bf8ed921f3055995441d"; - }; - beamDeps = [ poison_2_1_0 plug_1_1_5 httpoison_0_8_3 ]; - - meta = { - longDescription = ''Straightforward, powerful, and adapter based - Elixir email library. Works with Mandrill, - Mailgun, SendGrid, SparkPost, in-memory, and - test.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/paulcsmith/bamboo"; - }; - } // packageOverrides) - ) {}; - - bamboo = bamboo_0_6_0; - - bamboo_smtp_0_0_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - gen_smtp_0_10_0, - bamboo_0_5_0 - }: - buildMix ({ - name = "bamboo_smtp"; - version = "0.0.2"; - src = fetchHex { - pkg = "bamboo_smtp"; - version = "0.0.2"; - sha256 = - "34c621806c8f9a2e316d5bc5f63bf85f5387418ff60222a383189611a367de4d"; - }; - beamDeps = [ gen_smtp_0_10_0 bamboo_0_5_0 ]; - - meta = { - description = ''A Bamboo adapter for SMTP''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/fewlinesco/bamboo_smtp"; - }; - } // packageOverrides) - ) {}; - - bamboo_smtp = bamboo_smtp_0_0_2; - - bamboo_sparkpost_0_5_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, bamboo_0_6_0 }: - buildMix ({ - name = "bamboo_sparkpost"; - version = "0.5.1"; - src = fetchHex { - pkg = "bamboo_sparkpost"; - version = "0.5.1"; - sha256 = - "dc4165282d13fe431b78dbf04db5e280bc4fef9f87d3b0e20e78e008c8c6b3de"; - }; - beamDeps = [ bamboo_0_6_0 ]; - - meta = { - description = ''A Bamboo adapter for the SparkPost email - service''; - license = stdenv.lib.licenses.mit; - homepage = - "https://github.com/andrewtimberlake/bamboo_sparkpost"; - }; - } // packageOverrides) - ) {}; - - bamboo_sparkpost = bamboo_sparkpost_0_5_1; - - bankster_0_2_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "bankster"; - version = "0.2.2"; - src = fetchHex { - pkg = "bankster"; - version = "0.2.2"; - sha256 = - "000df06a7701e11f1b9cba4595873f8c7d8e55afde22153fd3d6d19e55bc29f7"; - }; - - meta = { - description = ''Bankster is an IBAN and BIC validation tool for - Elixir.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/railsmechanic/bankster"; - }; - } // packageOverrides) - ) {}; - - bankster = bankster_0_2_2; - - banner_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "banner"; - version = "0.1.0"; - src = fetchHex { - pkg = "banner"; - version = "0.1.0"; - sha256 = - "309a752cd592bd8dda3526865d050b1e20a953baed8b7480d0489001688f7a0f"; - }; - - meta = { - description = ''It is Elixir sysvbanner port from - https://github.com/uffejakobsen/sysvbanner.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/winebarrel/elixir-sysvbanner"; - }; - } // packageOverrides) - ) {}; - - banner = banner_0_1_0; - - barrel_ibrowse_4_2_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "barrel_ibrowse"; - version = "4.2.0"; - src = fetchHex { - pkg = "barrel_ibrowse"; - version = "4.2.0"; - sha256 = - "58bd9e45932c10fd3d0ceb5c4e47952c3243ea300b388192761ac20be197b2ca"; - }; - - meta = { - description = ''Erlang HTTP client application''; - - homepage = "https://github.com/barrel-db/ibrowse"; - }; - } // packageOverrides) - ) {}; - - barrel_ibrowse = barrel_ibrowse_4_2_0; - - barrel_oauth_1_6_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "barrel_oauth"; - version = "1.6.0"; - src = fetchHex { - pkg = "barrel_oauth"; - version = "1.6.0"; - sha256 = - "b2a800b771d45f32a9a55d416054b3bdfab3a925b62e8000f2c08b719390d4dd"; - }; - - meta = { - description = ''An Erlang OAuth 1.0 implementation''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/barrel-db/erlang-oauth"; - }; - } // packageOverrides) - ) {}; - - barrel_oauth = barrel_oauth_1_6_0; - - base16_1_0_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "base16"; - version = "1.0.0"; - src = fetchHex { - pkg = "base16"; - version = "1.0.0"; - sha256 = - "02afd0827e61a7b07093873e063575ca3a2b07520567c7f8cec7c5d42f052d76"; - }; - - meta = { - description = ''Base16 encoding and decoding''; - license = with stdenv.lib.licenses; [ bsd3 free ]; - homepage = "https://github.com/goj/base16"; - }; - } // packageOverrides) - ) {}; - - base16 = base16_1_0_0; - - base36_1_0_0 = callPackage - ( - { - buildMix, packageOverrides ? {}, fetchHex, custom_base_0_2_0 - }: - buildMix ({ - name = "base36"; - version = "1.0.0"; - src = fetchHex { - pkg = "base36"; - version = "1.0.0"; - sha256 = - "6022d73272ebd0a6f600248da05b47576b94f064c6444dd0401df67e717c189e"; - }; - beamDeps = [ custom_base_0_2_0 ]; - - meta = { - description = ''Base36 encoder/decoder.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/nscyclone/base36"; - }; - } // packageOverrides) - ) {}; - - base36 = base36_1_0_0; - - base58_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "base58"; - version = "0.1.0"; - src = fetchHex { - pkg = "base58"; - version = "0.1.0"; - sha256 = - "e9746b7fa618f15d22e3098e06b35083977aff8fe0594628baae282769a2ceff"; - }; - - meta = { - description = ''Base58 encoding/decoding for Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/jrdnull/base58"; - }; - } // packageOverrides) - ) {}; - - base58 = base58_0_1_0; - - base58check_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "base58check"; - version = "0.1.0"; - src = fetchHex { - pkg = "base58check"; - version = "0.1.0"; - sha256 = - "29617beb2aaffe27ef40d7232a60beb5ad208667df4f2b619552367698cd4ca4"; - }; - - meta = { - description = ''Elixir implementation of Base58Check encoding - meant for Bitcoin ''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/gjaldon/base58check"; - }; - } // packageOverrides) - ) {}; - - base58check = base58check_0_1_0; - - base62_1_2_0 = callPackage - ( - { - buildMix, packageOverrides ? {}, fetchHex, custom_base_0_2_0 - }: - buildMix ({ - name = "base62"; - version = "1.2.0"; - src = fetchHex { - pkg = "base62"; - version = "1.2.0"; - sha256 = - "14aac55c7978b7a710906ee29df65ba1cee5af2d43efe236c96311696618088b"; - }; - beamDeps = [ custom_base_0_2_0 ]; - - meta = { - description = ''Base62 encoder/decoder in pure Elixir.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/igas/base62"; - }; - } // packageOverrides) - ) {}; - - base62 = base62_1_2_0; - - base64url_0_0_1 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "base64url"; - version = "0.0.1"; - src = fetchHex { - pkg = "base64url"; - version = "0.0.1"; - sha256 = - "fab09b20e3f5db886725544cbcf875b8e73ec93363954eb8a1a9ed834aa8c1f9"; - }; - - meta = { - description = ''URL safe base64-compatible codec''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/dvv/base64url"; - }; - } // packageOverrides) - ) {}; - - base64url = base64url_0_0_1; - - basex_0_2_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "basex"; - version = "0.2.1"; - src = fetchHex { - pkg = "basex"; - version = "0.2.1"; - sha256 = - "190fcbb9d03fe325aee3bc1eea67e663ace1209d4515518c25098e307070f551"; - }; - - meta = { - description = ''BaseX - arbitrary alphabet encoding''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/mwmiller/basex_ex"; - }; - } // packageOverrides) - ) {}; - - basex = basex_0_2_1; - - basho_poolboy_0_8_1_p3 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "basho_poolboy"; - version = "0.8.1-p3"; - src = fetchHex { - pkg = "basho_poolboy"; - version = "0.8.1-p3"; - sha256 = - "8e2ead104eaa80bbfcf5c688774f4ddab73733cab79230e78d097c7ba880c42d"; - }; - - meta = { - description = ''A hunky Erlang worker pool factory''; - license = stdenv.lib.licenses.apsl20; - homepage = "https://github.com/basho/riak_sysmon"; - }; - } // packageOverrides) - ) {}; - - basho_poolboy = basho_poolboy_0_8_1_p3; - - basho_stats_1_0_3 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "basho_stats"; - version = "1.0.3"; - src = fetchHex { - pkg = "basho_stats"; - version = "1.0.3"; - sha256 = - "d739e733b1c8afcaa467289fca50221753fc8cde6e7b53a79b67f98a2a261f5a"; - }; - - meta = { - description = ''Basic Erlang statistics library''; - license = stdenv.lib.licenses.free; - homepage = "https://github.com/basho/basho_stats"; - }; - } // packageOverrides) - ) {}; - - basho_stats = basho_stats_1_0_3; - - batcher_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "batcher"; - version = "0.0.1"; - src = fetchHex { - pkg = "batcher"; - version = "0.0.1"; - sha256 = - "738a930f809603dc21e6612c1df38cbc452887ddf34670d20f05e136231f3671"; - }; - - meta = { - longDescription = ''Process a backlog of items after it has grown - to a certain size or a defined time has - passed''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/behe/batcher"; - }; - } // packageOverrides) - ) {}; - - batcher = batcher_0_0_1; - - battlenet_0_0_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - httpoison_0_8_3 - }: - buildMix ({ - name = "battlenet"; - version = "0.0.2"; - src = fetchHex { - pkg = "battlenet"; - version = "0.0.2"; - sha256 = - "cdd4e182da5a2db478e0da9ac1a467fc8f2b8ec638e3e38dd7962ff3fe8c9342"; - }; - beamDeps = [ poison_1_5_2 httpoison_0_8_3 ]; - - meta = { - description = ''Elixir library for the Battle.net API.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/cazrin/battlenet"; - }; - } // packageOverrides) - ) {}; - - battlenet = battlenet_0_0_2; - - bbmustache_1_0_3 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "bbmustache"; - version = "1.0.3"; - src = fetchHex { - pkg = "bbmustache"; - version = "1.0.3"; - sha256 = - "d79d9f3f90d14e20bda0c801063801ce9b72b71f5831d70b8d36065fb1a52208"; - }; - - meta = { - description = ''Binary pattern match Based Mustache template - engine for Erlang/OTP''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/soranoba/bbmustache"; - }; - } // packageOverrides) - ) {}; - - bbmustache_1_0_4 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "bbmustache"; - version = "1.0.4"; - src = fetchHex { - pkg = "bbmustache"; - version = "1.0.4"; - sha256 = - "03b0d47db66e86df993896dce7578d7e4aae5f84636809b45fa8a3e34ee59b12"; - }; - - meta = { - description = ''Binary pattern match Based Mustache template - engine for Erlang/OTP''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/soranoba/bbmustache"; - }; - } // packageOverrides) - ) {}; - - bbmustache_1_1_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "bbmustache"; - version = "1.1.0"; - src = fetchHex { - pkg = "bbmustache"; - version = "1.1.0"; - sha256 = - "aa22469836bb8a9928ad741bdd2038d49116228bfbe0c2d6c792e1bdd4b256d9"; - }; - - meta = { - description = ''Binary pattern match Based Mustache template - engine for Erlang/OTP''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/soranoba/bbmustache"; - }; - } // packageOverrides) - ) {}; - - bbmustache = bbmustache_1_1_0; - - bcrypt_0_5_0_p3a = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "bcrypt"; - version = "0.5.0-p3a"; - src = fetchHex { - pkg = "bcrypt"; - version = "0.5.0-p3a"; - sha256 = - "492decdc633399b356a3bbfe8279c10a49b1040fc082c8cbf2d30b41ff88f310"; - }; - compilePorts = true; - buildPlugins = [ pc ]; - - - meta = { - description = ''An Erlang wrapper (NIF or port program) for the - OpenBSD password scheme, bcrypt.''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/chef/erlang-bcrypt"; - }; - } // packageOverrides) - ) {}; - - bcrypt = bcrypt_0_5_0_p3a; - - beam_analyzer_0_0_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "beam_analyzer"; - version = "0.0.3"; - src = fetchHex { - pkg = "beam_analyzer"; - version = "0.0.3"; - sha256 = - "acfb7b4d92c1147401f2de8e0fe5ad33236814a57fdcfbcb184e9292e43c7d27"; - }; - - meta = { - description = ''Get information about Erlang/Elixir modules and - BEAM files''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/joeyates/beam_analyzer"; - }; - } // packageOverrides) - ) {}; - - beam_analyzer = beam_analyzer_0_0_3; - - bear_0_8_3 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "bear"; - version = "0.8.3"; - src = fetchHex { - pkg = "bear"; - version = "0.8.3"; - sha256 = - "0a04ce4702e00e0a43c0fcdd63e38c9c7d64dceb32b27ffed261709e7c3861ad"; - }; - - meta = { - description = ''Statistics functions for Erlang''; - - homepage = "https://github.com/puzza007/bear"; - }; - } // packageOverrides) - ) {}; - - bear = bear_0_8_3; - - beersearch_0_0_6 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - httpotion_2_2_2, - floki_0_8_1 - }: - buildMix ({ - name = "beersearch"; - version = "0.0.6"; - src = fetchHex { - pkg = "beersearch"; - version = "0.0.6"; - sha256 = - "d830a7e1a6384d62b1dca430b6ab7dd99467f4ca1555a2ce7fed9422c3c86c6a"; - }; - beamDeps = [ httpotion_2_2_2 floki_0_8_1 ]; - - meta = { - description = ''A simple Elixir module that searches for beers on - Untappd.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/nicksergeant/elixir-beersearch"; - }; - } // packageOverrides) - ) {}; - - beersearch = beersearch_0_0_6; - - bees_0_0_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - plug_1_1_5, - jsx_2_8_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "bees"; - version = "0.0.2"; - src = fetchHex { - pkg = "bees"; - version = "0.0.2"; - sha256 = - "3b6c0eee9359a87aff7b7e625a571a646d1932f8b4835fc18cc14f07cf0810fc"; - }; - beamDeps = [ poison_2_1_0 plug_1_1_5 jsx_2_8_0 httpoison_0_8_3 - ]; - - meta = { - description = ''Foursquare API client for Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/danieltomlinson/bees"; - }; - } // packageOverrides) - ) {}; - - bees = bees_0_0_2; - - belixir_0_2_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "belixir"; - version = "0.2.0"; - src = fetchHex { - pkg = "belixir"; - version = "0.2.0"; - sha256 = - "1d4cea63bf593f8ccdbad32270158704d65aa6f88ee2df48422aced2566465e3"; - }; - - meta = { - longDescription = ''Benchmark ips tool for elixir-lang. Runs - given codes in given seconds and compares - them.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/meinac/belixir"; - }; - } // packageOverrides) - ) {}; - - belixir = belixir_0_2_0; - - belvedere_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "belvedere"; - version = "0.0.1"; - src = fetchHex { - pkg = "belvedere"; - version = "0.0.1"; - sha256 = - "b222f5c3ab855655b7950681542e2c3941c52533bd8b6cbb08be60f91427113e"; - }; - - meta = { - description = ''An example Elixir project with CircleCI, Docker, - Dialyzer integration.''; - license = stdenv.lib.licenses.mit; - homepage = "http://nirvana.io"; - }; - } // packageOverrides) - ) {}; - - belvedere = belvedere_0_0_1; - - benchee_0_2_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "benchee"; - version = "0.2.0"; - src = fetchHex { - pkg = "benchee"; - version = "0.2.0"; - sha256 = - "892b4463b3add8cb0a1c68fc45e03c6297895979bd0c77283460bad90d029dc3"; - }; - - meta = { - longDescription = ''Versatile (micro) benchmarking that is - extensible. Get statistics such as: average, - iterations per second, standard deviation and - the median.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/PragTob/benchee"; - }; - } // packageOverrides) - ) {}; - - benchee = benchee_0_2_0; - - benchee_csv_0_2_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - csv_1_4_1, - benchee_0_2_0 - }: - buildMix ({ - name = "benchee_csv"; - version = "0.2.0"; - src = fetchHex { - pkg = "benchee_csv"; - version = "0.2.0"; - sha256 = - "43a864f1be2e9755a7cfed9e7a26aec466887773a76d1a9ef04f8737fe5b3968"; - }; - beamDeps = [ csv_1_4_1 benchee_0_2_0 ]; - - meta = { - description = ''Get CSV from your benchee benchmarks to them into - graphs or whatever!''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/PragTob/benchee_csv"; - }; - } // packageOverrides) - ) {}; - - benchee_csv = benchee_csv_0_2_0; - - benchfella_0_3_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "benchfella"; - version = "0.3.2"; - src = fetchHex { - pkg = "benchfella"; - version = "0.3.2"; - sha256 = - "322270993f38246b02c8a98d64491a2b46a4efef5667a479d55a49ec53ea6dcf"; - }; - - meta = { - description = ''Microbenchmarking tool for Elixir.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/alco/benchfella"; - }; - } // packageOverrides) - ) {}; - - benchfella = benchfella_0_3_2; - - benchmark_ips_0_2_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "benchmark_ips"; - version = "0.2.0"; - src = fetchHex { - pkg = "benchmark_ips"; - version = "0.2.0"; - sha256 = - "7c55c4317dae5b8dae6a655e25a7aa491acd076e36efb9c9852a789a3592b703"; - }; - - meta = { - description = ''A tool to run benchmarks to determine iteration - per second.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/mxhold/benchmark_ips"; - }; - } // packageOverrides) - ) {}; - - benchmark_ips = benchmark_ips_0_2_0; - - bencode_0_3_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, eqc_ex_1_2_4 }: - buildMix ({ - name = "bencode"; - version = "0.3.0"; - src = fetchHex { - pkg = "bencode"; - version = "0.3.0"; - sha256 = - "98d397fd0a13ba47bfb51927fede25c780539d38946e6d53c6b83c998636a002"; - }; - beamDeps = [ eqc_ex_1_2_4 ]; - - meta = { - longDescription = ''A complete and correct Bencode encoder and - decoder written in pure Elixir. The decoder will - return the info hash with along with the decoded - data, and the encoder is implemented as a - protocol, allowing any data structure to be - bcode encoded.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/gausby/bencode"; - }; - } // packageOverrides) - ) {}; - - bencode_0_3_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, eqc_ex_1_2_4 }: - buildMix ({ - name = "bencode"; - version = "0.3.1"; - src = fetchHex { - pkg = "bencode"; - version = "0.3.1"; - sha256 = - "a66ba85941c0115fae4f96309d6a1eeeee12571aef72a53bf2c990f236b895be"; - }; - beamDeps = [ eqc_ex_1_2_4 ]; - - meta = { - longDescription = ''A complete and correct Bencode encoder and - decoder written in pure Elixir. The decoder will - return the info hash with along with the decoded - data, and the encoder is implemented as a - protocol, allowing any data structure to be - bcode encoded.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/gausby/bencode"; - }; - } // packageOverrides) - ) {}; - - bencode = bencode_0_3_1; - - bencodex_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "bencodex"; - version = "1.0.0"; - src = fetchHex { - pkg = "bencodex"; - version = "1.0.0"; - sha256 = - "a70c319eed907d4d0520bf2ed6eedc77cbf1312274b144341dc4ecc74136124d"; - }; - - meta = { - description = ''Encoder and decoder for the bencode format''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/patrickgombert/bencodex"; - }; - } // packageOverrides) - ) {}; - - bencodex = bencodex_1_0_0; - - bento_0_9_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, poison_2_1_0 }: - buildMix ({ - name = "bento"; - version = "0.9.2"; - src = fetchHex { - pkg = "bento"; - version = "0.9.2"; - sha256 = - "8be4312c4eacf57ef0c319f5ddd0b31872b510dc8ca02c64206ee648ec0f91d1"; - }; - beamDeps = [ poison_2_1_0 ]; - - meta = { - description = ''An incredibly fast, pure Elixir Bencoding - library.''; - license = stdenv.lib.licenses.mpl20; - homepage = "https://github.com/folz/bento"; - }; - } // packageOverrides) - ) {}; - - bento = bento_0_9_2; - - bert_0_1_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "bert"; - version = "0.1.0"; - src = fetchHex { - pkg = "bert"; - version = "0.1.0"; - sha256 = - "2a561521ec3529b248658a3e2d3d4bfe6729b0ab8291c701bf15ef413eda1506"; - }; - - meta = { - description = ''BERT Encoder/Decoder''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/yuce/bert.erl"; - }; - } // packageOverrides) - ) {}; - - bert = bert_0_1_0; - - big_query_0_0_5 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - jose_1_4_2, - httpoison_0_8_2 - }: - buildMix ({ - name = "big_query"; - version = "0.0.5"; - src = fetchHex { - pkg = "big_query"; - version = "0.0.5"; - sha256 = - "f15795ee81245699d2d7a5cbf667637cbfc56a6b52143cacdfa145c0c4c11fbf"; - }; - beamDeps = [ poison_2_1_0 jose_1_4_2 httpoison_0_8_2 ]; - - meta = { - description = ''A Google BigQuery API client.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/companykitchen/big_query"; - }; - } // packageOverrides) - ) {}; - - big_query = big_query_0_0_5; - - bigflake_0_3_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, base62_1_2_0 }: - buildMix ({ - name = "bigflake"; - version = "0.3.0"; - src = fetchHex { - pkg = "bigflake"; - version = "0.3.0"; - sha256 = - "18505f0ca3a7b77fe267840b9172ec5000e118587cb36d148d73c5e642c400a5"; - }; - beamDeps = [ base62_1_2_0 ]; - - meta = { - description = ''128-bit, k-ordered, conflict-free IDs Elixir.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/stevedomin/bigflake"; - }; - } // packageOverrides) - ) {}; - - bigflake = bigflake_0_3_0; - - billiards_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "billiards"; - version = "0.0.1"; - src = fetchHex { - pkg = "billiards"; - version = "0.0.1"; - sha256 = - "5b8d8eab12e35c0c7eff5be02a4adf0a7aa4cf10688a5faeec9b10f2c2f04046"; - }; - meta = { }; - } // packageOverrides) - ) {}; - - billiards = billiards_0_0_1; - - bin_format_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "bin_format"; - version = "0.0.1"; - src = fetchHex { - pkg = "bin_format"; - version = "0.0.1"; - sha256 = - "f73b9d1691499964d248b4a19b56284b2c51652015a63b77c2688b92cb55d66a"; - }; - - meta = { - longDescription = ''Automatically generate the boilerplate to - convert between binaries and Elixir structs.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/willpenington/bin_format"; - }; - } // packageOverrides) - ) {}; - - bin_format = bin_format_0_0_1; - - bing_translator_0_2_7 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - timex_2_1_6, - poison_1_5_2, - httpoison_0_8_3, - floki_0_8_1 - }: - buildMix ({ - name = "bing_translator"; - version = "0.2.7"; - src = fetchHex { - pkg = "bing_translator"; - version = "0.2.7"; - sha256 = - "6dc4e9680f93ebc3f63bce85cbadf592145e635279dc23da87b2cb83d93b08ff"; - }; - beamDeps = [ - timex_2_1_6 poison_1_5_2 httpoison_0_8_3 floki_0_8_1 - ]; - - meta = { - longDescription = ''Translate strings using the Bing HTTP API. - Requires that you have a Client ID and Secret. - See README.md for information.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/ikeikeikeike/bing_translator"; - }; - } // packageOverrides) - ) {}; - - bing_translator = bing_translator_0_2_7; - - binstructor_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "binstructor"; - version = "0.0.1"; - src = fetchHex { - pkg = "binstructor"; - version = "0.0.1"; - sha256 = - "ab6e619628d4308a47744dcf9dd0c9ff48f4a5cc5e00ce6bb3852d92e654ba74"; - }; - - meta = { - longDescription = ''Automatically generate the boilerplate to - convert between binaries and Elixir structs.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/willpenington/binstructor"; - }; - } // packageOverrides) - ) {}; - - binstructor = binstructor_0_0_1; - - biometrics_facade_1_2_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - httpotion_2_2_2 - }: - buildMix ({ - name = "biometrics_facade"; - version = "1.2.0"; - src = fetchHex { - pkg = "biometrics_facade"; - version = "1.2.0"; - sha256 = - "b0b40c11fc884229936e6547a31c44eae3fedea0bd47355e33153c8b8c7dd81b"; - }; - beamDeps = [ poison_1_5_2 httpotion_2_2_2 ]; - - meta = { - description = ''An API facade for a private biometrics - service.''; - license = stdenv.lib.licenses.mit; - }; - } // packageOverrides) - ) {}; - - biometrics_facade = biometrics_facade_1_2_0; - - bit_field_set_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, eqc_ex_1_2_4 }: - buildMix ({ - name = "bit_field_set"; - version = "0.1.0"; - src = fetchHex { - pkg = "bit_field_set"; - version = "0.1.0"; - sha256 = - "63a9c8eb05dc0f9cd79590d718db56ccc1b41cd48d91457d94754a44a2663044"; - }; - beamDeps = [ eqc_ex_1_2_4 ]; - - meta = { - longDescription = ''Store and manipulate a set of bit flags, - mostly used for syncing the state between peers - in a peer to peer network, such as - BitTorrent.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/gausby/bit_field_set"; - }; - } // packageOverrides) - ) {}; - - bit_field_set = bit_field_set_0_1_0; - - bitcask_2_0_2 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "bitcask"; - version = "2.0.2"; - src = fetchHex { - pkg = "bitcask"; - version = "2.0.2"; - sha256 = - "666bd79d17faabd62a626ed6fc98176b818266f7bb9639d76244f003ed5b2fe2"; - }; - compilePorts = true; - buildPlugins = [ pc ]; - - - meta = { - description = ''Bitcask key value store''; - license = stdenv.lib.licenses.apsl20; - homepage = "https://github.com/basho/bitcask"; - }; - } // packageOverrides) - ) {}; - - bitcask = bitcask_2_0_2; - - bitfield_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "bitfield"; - version = "1.0.0"; - src = fetchHex { - pkg = "bitfield"; - version = "1.0.0"; - sha256 = - "0f1ca3f3e9f8661cc2686561717c326309541f95e4f82f7b7d927e150f5f7b5a"; - }; - - meta = { - description = ''Simple bitfields for erlang/elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/camshaft/bitfield.erl"; - }; - } // packageOverrides) - ) {}; - - bitfield = bitfield_1_0_0; - - bitmap_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "bitmap"; - version = "1.0.0"; - src = fetchHex { - pkg = "bitmap"; - version = "1.0.0"; - sha256 = - "c33ca1dd28d6979e61f3517140ef71e80f8ded4029debabbb6482ef650384b34"; - }; - - meta = { - longDescription = ''Package to help you create and work with - bitmaps - (https://en.wikipedia.org/wiki/Bitmap)''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/hashd/bitmap-elixir"; - }; - } // packageOverrides) - ) {}; - - bitmap = bitmap_1_0_0; - - blacksmith_0_1_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, faker_0_6_0 }: - buildMix ({ - name = "blacksmith"; - version = "0.1.3"; - src = fetchHex { - pkg = "blacksmith"; - version = "0.1.3"; - sha256 = - "d070295cac13fef8d05cc50b900413e8e6dd863f4958bd55986b56d3874a20b4"; - }; - beamDeps = [ faker_0_6_0 ]; - - meta = { - description = ''Elixir fake data generation for testing and - development''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/batate/blacksmith"; - }; - } // packageOverrides) - ) {}; - - blacksmith = blacksmith_0_1_3; - - blaguth_1_2_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - plug_1_1_5, - cowboy_1_0_4 - }: - buildMix ({ - name = "blaguth"; - version = "1.2.1"; - src = fetchHex { - pkg = "blaguth"; - version = "1.2.1"; - sha256 = - "2900dc5b7c6f7810bdf5e0ede8749632997811ae5b72ada34f59699b4310a65a"; - }; - beamDeps = [ plug_1_1_5 cowboy_1_0_4 ]; - - meta = { - description = ''Basic Access Authentication in Plug - applications.''; - license = stdenv.lib.licenses.isc; - homepage = "https://github.com/lexmag/blaguth"; - }; - } // packageOverrides) - ) {}; - - blaguth = blaguth_1_2_1; - - blake2_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "blake2"; - version = "0.1.0"; - src = fetchHex { - pkg = "blake2"; - version = "0.1.0"; - sha256 = - "5d1ac81724568d173ef9fa198b37abe39eb54ecd1f4871d8c62aabaf5d1ace25"; - }; - - meta = { - description = ''BLAKE2 hash functions''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/mwmiller/blake2_ex"; - }; - } // packageOverrides) - ) {}; - - blake2 = blake2_0_1_0; - - blanket_0_3_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "blanket"; - version = "0.3.1"; - src = fetchHex { - pkg = "blanket"; - version = "0.3.1"; - sha256 = - "9d7f382c1254b83ba3334d143b942afd4a03c0ae1d32f7fee5fd3de184f4c016"; - }; - - meta = { - description = ''Blanket covers your tables ! Don`t loose your ETS - tables with Elixir.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/niahoo/blanket"; - }; - } // packageOverrides) - ) {}; - - blanket = blanket_0_3_1; - - blast_furnace_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "blast_furnace"; - version = "0.0.1"; - src = fetchHex { - pkg = "blast_furnace"; - version = "0.0.1"; - sha256 = - "361bff3352803779f481ce56662228825c74ef45d34d05c79df5f56a37a2adb2"; - }; - - meta = { - description = ''Elixir port of invaluable blast furnace - functionality''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/markryall/blast_furnace_exs"; - }; - } // packageOverrides) - ) {}; - - blast_furnace = blast_furnace_0_0_1; - - blaze_cloud_0_0_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_0_1, - httpoison_0_8_3 - }: - buildMix ({ - name = "blaze_cloud"; - version = "0.0.1"; - src = fetchHex { - pkg = "blaze_cloud"; - version = "0.0.1"; - sha256 = - "c5a26f194691d7c40a008c5aded034ca0a43d4fa6a9173952333479cf2661b2b"; - }; - beamDeps = [ poison_2_0_1 httpoison_0_8_3 ]; - - meta = { - description = ''Elixir Library for Backblaze B2 Cloud Storage.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/PerishableDave/blaze_cloud"; - }; - } // packageOverrides) - ) {}; - - blaze_cloud = blaze_cloud_0_0_1; - - blazon_0_2_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "blazon"; - version = "0.2.0"; - src = fetchHex { - pkg = "blazon"; - version = "0.2.0"; - sha256 = - "ef63180cafb9241602feb79155919e18eebd8da62e79544e4dae4273522f58c7"; - }; - - meta = { - description = ''Declarative abstract serializers.''; - license = stdenv.lib.licenses.publicDomain; - homepage = "https://github.com/mtwilliams/blazon"; - }; - } // packageOverrides) - ) {}; - - blazon = blazon_0_2_0; - - blockchain_info_0_0_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "blockchain_info"; - version = "0.0.2"; - src = fetchHex { - pkg = "blockchain_info"; - version = "0.0.2"; - sha256 = - "81593db73e409e008a785798ee7e5482d4274fd5e748e8d74f458c1e187e822b"; - }; - beamDeps = [ poison_2_1_0 httpoison_0_8_3 ]; - - meta = { - longDescription = ''WIP BlockchainInfo API wrapper for Elixir. - Provides access to bitcoin blockchain data.''; - license = stdenv.lib.licenses.mit; - homepage = - "https://github.com/cyberpunk-ventures/blockchain_info_ex"; - }; - } // packageOverrides) - ) {}; - - blockchain_info = blockchain_info_0_0_2; - - blocking_queue_1_3_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "blocking_queue"; - version = "1.3.0"; - src = fetchHex { - pkg = "blocking_queue"; - version = "1.3.0"; - sha256 = - "10f2b942a29f83c3bfef6285096d7f42028201c89f317c731e708b528a7fc17d"; - }; - - meta = { - longDescription = ''BlockingQueue is a simple queue implemented - as a GenServer. It has a fixed maximum length - established when it is created.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/joekain/BlockingQueue"; - }; - } // packageOverrides) - ) {}; - - blocking_queue = blocking_queue_1_3_0; - - bloodhound_0_1_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - httpoison_0_8_3 - }: - buildMix ({ - name = "bloodhound"; - version = "0.1.1"; - src = fetchHex { - pkg = "bloodhound"; - version = "0.1.1"; - sha256 = - "6aaab638fe90fc3714b650b659df774c7cdb12d098fee3910952e0a0f8fcd6ec"; - }; - beamDeps = [ poison_1_5_2 httpoison_0_8_3 ]; - - meta = { - description = ''An ElasticSearch library for Elixir that can be - easily integrated with Ecto''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/ianwalter/bloodhound"; - }; - } // packageOverrides) - ) {}; - - bloodhound = bloodhound_0_1_1; - - bloom_filter_1_0_1 = callPackage - ( - { - buildMix, packageOverrides ? {}, fetchHex, math_0_2_0, fnv_0_3_2 - }: - buildMix ({ - name = "bloom_filter"; - version = "1.0.1"; - src = fetchHex { - pkg = "bloom_filter"; - version = "1.0.1"; - sha256 = - "324d819a3901c0318e9cea51cc4a5555cc15ad6243c7150676e6e1b76d7aa081"; - }; - beamDeps = [ math_0_2_0 fnv_0_3_2 ]; - - meta = { - longDescription = ''Bloom Filter implementation in Elixir. Bloom - filters are probabilistic data structures - designed to efficiently tell you whether an - element is present in a set.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/Leventhan/bloom_filter"; - }; - } // packageOverrides) - ) {}; - - bloom_filter = bloom_filter_1_0_1; - - bloomex_1_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "bloomex"; - version = "1.0.1"; - src = fetchHex { - pkg = "bloomex"; - version = "1.0.1"; - sha256 = - "2d8424142550f226043e4e6fc05c10552022dfb8f5fe3e5f131252c8da45f6e9"; - }; - - meta = { - description = ''Bloomex is a pure Elixir implementation of - Scalable Bloom Filters.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/gmcabrita/bloomex"; - }; - } // packageOverrides) - ) {}; - - bloomex = bloomex_1_0_1; - - blume_0_1_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "blume"; - version = "0.1.0"; - src = fetchHex { - pkg = "blume"; - version = "0.1.0"; - sha256 = - "8a87a43607d9dab1e3138052c18355bc1fc2a98bbcc4cb1657494c395aca0fd6"; - }; - - meta = { - description = ''Pure erlang bloom Filters''; - license = stdenv.lib.licenses.free; - }; - } // packageOverrides) - ) {}; - - blume = blume_0_1_0; - - bmark_1_0_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "bmark"; - version = "1.0.3"; - src = fetchHex { - pkg = "bmark"; - version = "1.0.3"; - sha256 = - "243b04d2e2431d01d93f442896d5e6ee52396782c161ef0a0e4f51a353393d93"; - }; - - meta = { - longDescription = ''A benchmarking tool for Elixir with a focus - on comparing results with confidence.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/joekain/bmark"; - }; - } // packageOverrides) - ) {}; - - bmark = bmark_1_0_3; - - bmfont_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, tonic_0_0_1 }: - buildMix ({ - name = "bmfont"; - version = "0.0.1"; - src = fetchHex { - pkg = "bmfont"; - version = "0.0.1"; - sha256 = - "5b52d65c0345e64b2a72c54641593de19dcd33b0e8af6c80ebc29485a98bd279"; - }; - beamDeps = [ tonic_0_0_1 ]; - - meta = { - description = ''A BMFont file format parser''; - license = stdenv.lib.licenses.bsd2; - homepage = "https://github.com/ScrimpyCat/BMFontEx"; - }; - } // packageOverrides) - ) {}; - - bmfont = bmfont_0_0_1; - - bookingsync_api_client_v3_0_0_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - json_0_3_3, - httpotion_2_2_2 - }: - buildMix ({ - name = "bookingsync_api_client_v3"; - version = "0.0.1"; - src = fetchHex { - pkg = "bookingsync_api_client_v3"; - version = "0.0.1"; - sha256 = - "7f0625828f7c38dd37f5ea0f2054b5b902851dbc9679bd354bb928a1f66c5db0"; - }; - beamDeps = [ json_0_3_3 httpotion_2_2_2 ]; - - meta = { - longDescription = ''Elixir BookingSync - (https://www.bookingsync.com) API v3 client. - Find more at: - http://developers.bookingsync.com''; - license = stdenv.lib.licenses.mit; - homepage = - "https://github.com/Azdaroth/ex_bookingsync_api_client_v3"; - }; - } // packageOverrides) - ) {}; - - bookingsync_api_client_v3 = bookingsync_api_client_v3_0_0_1; - - botan_0_1_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - httpoison_0_8_3 - }: - buildMix ({ - name = "botan"; - version = "0.1.2"; - src = fetchHex { - pkg = "botan"; - version = "0.1.2"; - sha256 = - "43541b5c52c91e46295a015f58857c347c85a7753d7c3cd3a1f835b25fdedaa9"; - }; - beamDeps = [ poison_1_5_2 httpoison_0_8_3 ]; - - meta = { - description = ''Elixir wrapper for Botan.io''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/mendab1e/exBotan"; - }; - } // packageOverrides) - ) {}; - - botan = botan_0_1_2; - - bowfish_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "bowfish"; - version = "0.1.0"; - src = fetchHex { - pkg = "bowfish"; - version = "0.1.0"; - sha256 = - "fcf3cccddd5d39adf5c5aceae924854d500f99bb45af97e118695db1cb633f67"; - }; - - meta = { - longDescription = ''A fun, positional pipe operator macro >>> for - when piping to the first arg just won`t cut - it.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/coconaut/bowfish"; - }; - } // packageOverrides) - ) {}; - - bowfish = bowfish_0_1_0; - - braintree_0_5_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, httpoison_0_8_3 }: - buildMix ({ - name = "braintree"; - version = "0.5.0"; - src = fetchHex { - pkg = "braintree"; - version = "0.5.0"; - sha256 = - "9610f2c63e76732e733ee7a97d6971fb0698ae7425cb9b3faba83acfa8734fac"; - }; - beamDeps = [ httpoison_0_8_3 ]; - - meta = { - description = ''Native Braintree client library for Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/sorentwo/braintree-elixir"; - }; - } // packageOverrides) - ) {}; - - braintree = braintree_0_5_0; - - braise_0_3_4 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, poison_1_3_1 }: - buildMix ({ - name = "braise"; - version = "0.3.4"; - src = fetchHex { - pkg = "braise"; - version = "0.3.4"; - sha256 = - "10325449af9365e886b2731a7709efded8e3443253c10c9af7a50fcfe5597707"; - }; - beamDeps = [ poison_1_3_1 ]; - - meta = { - description = ''A library that converts JSON Schema into ember - models/adapters.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/IoraHealth/braise"; - }; - } // packageOverrides) - ) {}; - - braise = braise_0_3_4; - - brcpfcnpj_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "brcpfcnpj"; - version = "0.1.0"; - src = fetchHex { - pkg = "brcpfcnpj"; - version = "0.1.0"; - sha256 = - "19ba4d572c93c70d571a36d6ada2fca4d03330d8f96c6b7d8e4c47fa9f809c90"; - }; - - meta = { - longDescription = ''Valida Cpf/Cnpj e Formatar em String caso - necessario Number format and Validate, to the - documents brazilians (CPF/CNPJ)''; - license = stdenv.lib.licenses.unlicense; - homepage = "https://github.com/williamgueiros/Brcpfcnpj"; - }; - } // packageOverrides) - ) {}; - - brcpfcnpj = brcpfcnpj_0_1_0; - - breadcrumble_1_0_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, plug_1_1_5 }: - buildMix ({ - name = "breadcrumble"; - version = "1.0.3"; - src = fetchHex { - pkg = "breadcrumble"; - version = "1.0.3"; - sha256 = - "f1d3ec0d3bf74670c58d4ff6c1d10cad0757c003b56ba9f77e3d76a05ac68be3"; - }; - beamDeps = [ plug_1_1_5 ]; - - meta = { - description = ''Elixir port of Breadcrumble library''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/ma2gedev/breadcrumble_ex"; - }; - } // packageOverrides) - ) {}; - - breadcrumble = breadcrumble_1_0_3; - - briefly_0_3_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "briefly"; - version = "0.3.0"; - src = fetchHex { - pkg = "briefly"; - version = "0.3.0"; - sha256 = - "c6ebf8fc3dcd4950dd10c03e953fb4f553a8bcf0ff4c8c40d71542434cd7e046"; - }; - - meta = { - description = ''Simple, robust temporary file support''; - license = stdenv.lib.licenses.apsl20; - homepage = "https://github.com/CargoSense/briefly"; - }; - } // packageOverrides) - ) {}; - - briefly = briefly_0_3_0; - - brighterx_0_0_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - httpoison_0_8_3 - }: - buildMix ({ - name = "brighterx"; - version = "0.0.2"; - src = fetchHex { - pkg = "brighterx"; - version = "0.0.2"; - sha256 = - "f05d90a6e01e6244aa0adfc68e9a5c92bf2a3d740f3093929557c043fc6b87b8"; - }; - beamDeps = [ poison_1_5_2 httpoison_0_8_3 ]; - - meta = { - description = ''A simple brighterlink api implementation''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/Brightergy/brighterx"; - }; - } // packageOverrides) - ) {}; - - brighterx = brighterx_0_0_2; - - browser_0_1_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "browser"; - version = "0.1.3"; - src = fetchHex { - pkg = "browser"; - version = "0.1.3"; - sha256 = - "e009b1af32a665393eb3e81b812e87f29f9e606426e30ae73507bf5c4c592af1"; - }; - - meta = { - description = ''Browser detection library''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/tuvistavie/elixir-browser"; - }; - } // packageOverrides) - ) {}; - - browser = browser_0_1_3; - - bstr_0_3_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "bstr"; - version = "0.3.0"; - src = fetchHex { - pkg = "bstr"; - version = "0.3.0"; - sha256 = - "0fb4e05619663d48dabcd21023915741277ba392f2a5710dde7ab6034760284d"; - }; - - meta = { - description = ''Erlang library that uses binaries as strings''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/jcomellas/bstr"; - }; - } // packageOverrides) - ) {}; - - bstr = bstr_0_3_0; - - buffer_0_3_6 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "buffer"; - version = "0.3.6"; - src = fetchHex { - pkg = "buffer"; - version = "0.3.6"; - sha256 = - "409f4d725b69bd36635ec18df9e2c3b6e78ef6ebc14a0e55a98dc58b4c65b7c3"; - }; - - meta = { - description = ''Provide read and write buffers for Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/adrienmo/buffer"; - }; - } // packageOverrides) - ) {}; - - buffer = buffer_0_3_6; - - bugsnag_1_2_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - httpoison_0_8_3 - }: - buildMix ({ - name = "bugsnag"; - version = "1.2.0"; - src = fetchHex { - pkg = "bugsnag"; - version = "1.2.0"; - sha256 = - "23c6e8eb827ec1294684b5fe788d4d1cd670804ddfb74bb2bd427aed44a68f05"; - }; - beamDeps = [ poison_1_5_2 httpoison_0_8_3 ]; - - meta = { - description = ''An Elixir interface to the Bugsnag API''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/jarednorman/bugsnag-elixir"; - }; - } // packageOverrides) - ) {}; - - bugsnag = bugsnag_1_2_0; - - build_client_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "build_client"; - version = "0.0.1"; - src = fetchHex { - pkg = "build_client"; - version = "0.0.1"; - sha256 = - "ee28ca64db404b76316fa578f30888b7725cbde91d6f89fa7dfc384a32b9c095"; - }; - - meta = { - description = ''AX Deployment Client''; - - homepage = "https://github.com/dapdizzy/build_client"; - }; - } // packageOverrides) - ) {}; - - build_client = build_client_0_0_1; - - bunt_0_1_6 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "bunt"; - version = "0.1.6"; - src = fetchHex { - pkg = "bunt"; - version = "0.1.6"; - sha256 = - "4fb7b2f7b04af13cf210b132f8d10db52d4a57d36cb974e8025d7fdb12ca97fc"; - }; - - meta = { - description = ''256 color ANSI coloring in the terminal''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/rrrene/bunt"; - }; - } // packageOverrides) - ) {}; - - bunt = bunt_0_1_6; - - bus_bar_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "bus_bar"; - version = "0.0.1"; - src = fetchHex { - pkg = "bus_bar"; - version = "0.0.1"; - sha256 = - "1781eebe238d7106cecaf947062684a0658033898282a4a0ab15f037a92ab985"; - }; - - meta = { - description = ''A simple event bus.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/JonRowe/busbar"; - }; - } // packageOverrides) - ) {}; - - bus_bar = bus_bar_0_0_1; - - bypass_0_5_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - plug_1_1_5, - cowboy_1_0_4 - }: - buildMix ({ - name = "bypass"; - version = "0.5.1"; - src = fetchHex { - pkg = "bypass"; - version = "0.5.1"; - sha256 = - "bbff87f453cd98a81c9caeb305e5bcee25fe4fe31089cb19127a36dd224c2454"; - }; - beamDeps = [ plug_1_1_5 cowboy_1_0_4 ]; - - meta = { - longDescription = ''Bypass provides a quick way to create a - custom plug that can be put in place instead of - an actual HTTP server to return prebaked - responses to client requests. This is most - useful in tests, when you want to create a mock - HTTP server and test how your HTTP client - handles different types of responses from the - server.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/pspdfkit-labs/bypass"; - }; - } // packageOverrides) - ) {}; - - bypass = bypass_0_5_1; - - cachex_1_1_1 = callPackage - ( - { - buildMix, packageOverrides ? {}, fetchHex, gen_delegate_1_0_0 - }: - buildMix ({ - name = "cachex"; - version = "1.1.1"; - src = fetchHex { - pkg = "cachex"; - version = "1.1.1"; - sha256 = - "b9f179ee6f61cbaec9d4be604b0001ff035158923aa4d53b56de495ebf025683"; - }; - beamDeps = [ gen_delegate_1_0_0 ]; - - meta = { - description = ''Powerful in-memory key/value storage for - Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/zackehh/cachex"; - }; - } // packageOverrides) - ) {}; - - cachex = cachex_1_1_1; - - calendar_0_12_4 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, tzdata_0_0_1 }: - buildMix ({ - name = "calendar"; - version = "0.12.4"; - src = fetchHex { - pkg = "calendar"; - version = "0.12.4"; - sha256 = - "1df7cc23b7dfa3228498fff3bd298495d8431433be94db62a60e93ffa455a060"; - }; - beamDeps = [ tzdata_0_0_1 ]; - - meta = { - longDescription = ''Calendar is a datetime library for Elixir. - Providing explicit types for datetimes, dates - and times. Full timezone support via its sister - package `tzdata`. Safe parsing and formatting of - standard formats (ISO, RFC, Unix, JS etc.) plus - strftime formatting. Easy and safe - interoperability with erlang style datetime - tuples. Extendable through protocols. Related - packages are available for i18n, Ecto and - Phoenix interoperability.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/lau/calendar"; - }; - } // packageOverrides) - ) {}; - - calendar_0_13_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, tzdata_0_0_1 }: - buildMix ({ - name = "calendar"; - version = "0.13.2"; - src = fetchHex { - pkg = "calendar"; - version = "0.13.2"; - sha256 = - "5be3a69db1a177ed39d24d582ac7be3dab59ee8aeae41ee17c36a263a9818460"; - }; - beamDeps = [ tzdata_0_0_1 ]; - - meta = { - longDescription = ''Calendar is a datetime library for Elixir. - Providing explicit types for datetimes, dates - and times. Full timezone support via its sister - package `tzdata`. Safe parsing and formatting of - standard formats (ISO, RFC, Unix, JS etc.) plus - strftime formatting. Easy and safe - interoperability with erlang style datetime - tuples. Extendable through protocols. Related - packages are available for i18n, Ecto and - Phoenix interoperability.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/lau/calendar"; - }; - } // packageOverrides) - ) {}; - - calendar_0_14_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, tzdata_0_0_1 }: - buildMix ({ - name = "calendar"; - version = "0.14.2"; - src = fetchHex { - pkg = "calendar"; - version = "0.14.2"; - sha256 = - "8b76c5bcfbe77b454c4e38696ea0fb77d52fc212e377a4299884073012960f27"; - }; - beamDeps = [ tzdata_0_0_1 ]; - - meta = { - longDescription = ''Calendar is a datetime library for Elixir. - Providing explicit types for datetimes, dates - and times. Full timezone support via its sister - package `tzdata`. Safe parsing and formatting of - standard formats (ISO, RFC, Unix, JS etc.) plus - strftime formatting. Easy and safe - interoperability with erlang style datetime - tuples. Extendable through protocols. Related - packages are available for i18n, Ecto and - Phoenix interoperability.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/lau/calendar"; - }; - } // packageOverrides) - ) {}; - - calliope_0_3_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "calliope"; - version = "0.3.0"; - src = fetchHex { - pkg = "calliope"; - version = "0.3.0"; - sha256 = - "0a0ccf87616459c36ff1f1551701da38485eb601500e74cffd7e42fe9862f74d"; - }; - - meta = { - description = ''An Elixir library for parsing haml templates.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/nurugger07/calliope"; - }; - } // packageOverrides) - ) {}; - - calliope_0_4_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "calliope"; - version = "0.4.0"; - src = fetchHex { - pkg = "calliope"; - version = "0.4.0"; - sha256 = - "4b5d6c87da9f635e8596f9ebb63f51aa10c6884a1898b308219281c8a897ff3a"; - }; - - meta = { - description = ''An Elixir library for parsing haml templates.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/nurugger07/calliope"; - }; - } // packageOverrides) - ) {}; - - calliope = calliope_0_4_0; - - campminder_0_1_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - timex_2_1_6, - poison_2_1_0, - httpoison_0_8_3, - hackney_1_6_0 - }: - buildMix ({ - name = "campminder"; - version = "0.1.0"; - src = fetchHex { - pkg = "campminder"; - version = "0.1.0"; - sha256 = - "bd54e1c20b5cf566f28a827bcc0e32adb4aaf86206f4d9f90415adee2e9e5189"; - }; - beamDeps = [ - timex_2_1_6 poison_2_1_0 httpoison_0_8_3 hackney_1_6_0 - ]; - - meta = { - description = ''A CampMinder API library for Elixir.''; - license = stdenv.lib.licenses.free; - homepage = "https://github.com/GimliLongBow/campminder-elixir"; - }; - } // packageOverrides) - ) {}; - - campminder = campminder_0_1_0; - - cartel_0_6_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poolboy_1_5_1, - httpotion_2_2_2, - poison_2_1_0 - }: - buildMix ({ - name = "cartel"; - version = "0.6.0"; - src = fetchHex { - pkg = "cartel"; - version = "0.6.0"; - sha256 = - "04615b867d257b6cb9a32da568666f9e490b80f020a069be38fe261a60734fb8"; - }; - beamDeps = [ poolboy_1_5_1 httpotion_2_2_2 poison_2_1_0 ]; - - meta = { - description = ''Multi platform, multi app push notifications''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/lucacorti/cartel"; - }; - } // packageOverrides) - ) {}; - - cartel = cartel_0_6_0; - - cartographer_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "cartographer"; - version = "0.0.1"; - src = fetchHex { - pkg = "cartographer"; - version = "0.0.1"; - sha256 = - "8f070615ca221b94a22e846303a3b9cc7ae31c2dea5c3d8f39a116f0d8c4b18f"; - }; - - meta = { - description = ''Geohash algorithm implementation in Elixir.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/afronski/cartographer"; - }; - } // packageOverrides) - ) {}; - - cartographer = cartographer_0_0_1; - - cassette_1_2_4 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - exml_0_1_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "cassette"; - version = "1.2.4"; - src = fetchHex { - pkg = "cassette"; - version = "1.2.4"; - sha256 = - "945a595edbaeaab781910bba0defedda2c6fc40fc5b35fdd7214dfae8c375137"; - }; - beamDeps = [ exml_0_1_0 httpoison_0_8_3 ]; - - meta = { - description = ''A CAS client and validation library''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/locaweb/elixir-cassette"; - }; - } // packageOverrides) - ) {}; - - cassette = cassette_1_2_4; - - cassette_plug_1_0_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - plug_1_1_5, - cassette_1_2_4 - }: - buildMix ({ - name = "cassette_plug"; - version = "1.0.1"; - src = fetchHex { - pkg = "cassette_plug"; - version = "1.0.1"; - sha256 = - "7c6ca0bacb3660efd1367b95c8a2d70e485e2842b9bfc87bdeb85c33882dc164"; - }; - beamDeps = [ plug_1_1_5 cassette_1_2_4 ]; - - meta = { - description = ''An auth Plug using Cassette''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/locaweb/cassette-plug"; - }; - } // packageOverrides) - ) {}; - - cassette_plug = cassette_plug_1_0_1; - - caylir_0_2_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poolboy_1_5_1, - poison_1_5_2, - hackney_1_6_0 - }: - buildMix ({ - name = "caylir"; - version = "0.2.0"; - src = fetchHex { - pkg = "caylir"; - version = "0.2.0"; - sha256 = - "b3699171f2bef699ce1968394cb2aee3b5ec7db529a395d8bf7d85163067f888"; - }; - beamDeps = [ poolboy_1_5_1 poison_1_5_2 hackney_1_6_0 ]; - - meta = { - description = ''Cayley driver for Elixir''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/mneudert/caylir"; - }; - } // packageOverrides) - ) {}; - - caylir = caylir_0_2_0; - - cep_0_0_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - sweet_xml_0_6_1, - poolboy_1_5_1, - poison_2_1_0, - httpoison_0_8_3, - codepagex_0_1_2 - }: - buildMix ({ - name = "cep"; - version = "0.0.1"; - src = fetchHex { - pkg = "cep"; - version = "0.0.1"; - sha256 = - "f76e67e1d989fc2edbfbd265f79e4a33a0aa7f9ff06934a1f2d49903df72b79f"; - }; - beamDeps = [ - sweet_xml_0_6_1 - poolboy_1_5_1 - poison_2_1_0 - httpoison_0_8_3 - codepagex_0_1_2 - ]; - - meta = { - longDescription = ''A package to query Brazilian CEP codes. Has - support for multiple source APIs (Correios, - ViaCep, Postmon, etc). It can query one specific - source or query until one source returns a valid - result.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/douglascamata/cep"; - }; - } // packageOverrides) - ) {}; - - cep = cep_0_0_1; - - certifi_0_3_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "certifi"; - version = "0.3.0"; - src = fetchHex { - pkg = "certifi"; - version = "0.3.0"; - sha256 = - "42ae85fe91c038a634a5fb8d0c77f4fc581914c508f087c7138e9366a1517f6a"; - }; - - meta = { - description = ''An OTP library''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/certifi/erlang-certifi"; - }; - } // packageOverrides) - ) {}; - - certifi_0_4_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "certifi"; - version = "0.4.0"; - src = fetchHex { - pkg = "certifi"; - version = "0.4.0"; - sha256 = - "1cc233bee2d6990e7b0ff4c5824d7f401edda8a3cfad04d3328e35ad97de7611"; - }; - - meta = { - description = ''An OTP library''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/certifi/erlang-certifi"; - }; - } // packageOverrides) - ) {}; - - certifi = certifi_0_4_0; - - cf_0_1_2 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "cf"; - version = "0.1.2"; - src = fetchHex { - pkg = "cf"; - version = "0.1.2"; - sha256 = - "c86f56bca74dd3616057b28574d920973fe665ecb064aa458dc6a2447f3f4924"; - }; - - meta = { - description = ''Terminal colour helper''; - license = stdenv.lib.licenses.mit; - }; - } // packageOverrides) - ) {}; - - cf_0_2_1 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "cf"; - version = "0.2.1"; - src = fetchHex { - pkg = "cf"; - version = "0.2.1"; - sha256 = - "baee9aa7ec2dfa3cb4486b67211177caa293f876780f0b313b45718edef6a0a5"; - }; - - meta = { - description = ''Terminal colour helper''; - license = stdenv.lib.licenses.mit; - }; - } // packageOverrides) - ) {}; - - cf = cf_0_2_1; - - chacha20_0_3_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "chacha20"; - version = "0.3.2"; - src = fetchHex { - pkg = "chacha20"; - version = "0.3.2"; - sha256 = - "26882c84da45dd1158a0249031f5a67329a6c4cd89e075d409324eee30444410"; - }; - - meta = { - description = ''Chacha20 symmetric stream cipher''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/mwmiller/chacha20_ex"; - }; - } // packageOverrides) - ) {}; - - chacha20 = chacha20_0_3_2; - - changeset_0_2_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, defmemo_0_1_1 }: - buildMix ({ - name = "changeset"; - version = "0.2.2"; - src = fetchHex { - pkg = "changeset"; - version = "0.2.2"; - sha256 = - "81aebf1c232620193fb4eab90962e4a69bbb84709fa4296bdc5593578d7d2758"; - }; - beamDeps = [ defmemo_0_1_1 ]; - - meta = { - description = ''A package for calculating between-list edit - distances.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/erwald/elixir-changeset"; - }; - } // packageOverrides) - ) {}; - - changeset = changeset_0_2_2; - - changex_0_1_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "changex"; - version = "0.1.1"; - src = fetchHex { - pkg = "changex"; - version = "0.1.1"; - sha256 = - "e087a4c3cc8eb3e94eba6050c5b1cc24dba3427eb4e4e15cebdb4000582c9851"; - }; - - meta = { - description = ''Automatically generate a CHANGELOG.md file based - on git commit history. ''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/Gazler/changex"; - }; - } // packageOverrides) - ) {}; - - changex = changex_0_1_1; - - chaos_spawn_0_7_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - timex_0_19_5, - exactor_2_2_0 - }: - buildMix ({ - name = "chaos_spawn"; - version = "0.7.0"; - src = fetchHex { - pkg = "chaos_spawn"; - version = "0.7.0"; - sha256 = - "c4c8e985e750706fb4351d6eb036b513a4b7ea3e689a9aecd424251991f21eaa"; - }; - beamDeps = [ timex_0_19_5 exactor_2_2_0 ]; - - meta = { - longDescription = ''Providing tools to randomly kill proceses. - With the goal of creating robust supevision - trees.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/meadsteve/chaos-spawn"; - }; - } // packageOverrides) - ) {}; - - chaos_spawn = chaos_spawn_0_7_0; - - chartkick_0_0_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - uuid_1_1_4, - poison_1_5_2 - }: - buildMix ({ - name = "chartkick"; - version = "0.0.2"; - src = fetchHex { - pkg = "chartkick"; - version = "0.0.2"; - sha256 = - "6a4f4170b162117f3be9d0a9d98b63b58da8ec2cea4e29155d14441a0b12ac6c"; - }; - beamDeps = [ uuid_1_1_4 poison_1_5_2 ]; - - meta = { }; - } // packageOverrides) - ) {}; - - chartkick = chartkick_0_0_2; - - chash_0_1_1 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "chash"; - version = "0.1.1"; - src = fetchHex { - pkg = "chash"; - version = "0.1.1"; - sha256 = - "607d369e56016a51218c42f2692312cd116834193805c99debbe02889013c84a"; - }; - - meta = { - description = ''Riaks CHash implementation''; - license = stdenv.lib.licenses.apsl20; - homepage = "https://github.com/project-fifo/chash"; - }; - } // packageOverrides) - ) {}; - - chash = chash_0_1_1; - - chinese_translation_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, httpoison_0_8_3 }: - buildMix ({ - name = "chinese_translation"; - version = "0.1.0"; - src = fetchHex { - pkg = "chinese_translation"; - version = "0.1.0"; - sha256 = - "d5e4f59421bad59e465322ce7a8f366179e5f6a732d7e06435e8a7c01f42e7ab"; - }; - beamDeps = [ httpoison_0_8_3 ]; - - meta = { - longDescription = ''ChineseTranslation provides traditional - chinese <-> simplified chinese translation, as - well as pinyin translation and slugify for - chinese phrases/characters. ''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/tyrchen/chinese_translation"; - }; - } // packageOverrides) - ) {}; - - chinese_translation = chinese_translation_0_1_0; - - chronos_0_3_9 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "chronos"; - version = "0.3.9"; - src = fetchHex { - pkg = "chronos"; - version = "0.3.9"; - sha256 = - "973e1273088677a12afc1a72aad78fe5070fb0ad6f9b1c648d79dd251292dee4"; - }; - - meta = { - longDescription = ''An Elixir library for handling dates. It can - be used to quickly determine a date. In a human - readable format.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/nurugger07/chronos"; - }; - } // packageOverrides) - ) {}; - - chronos_1_5_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "chronos"; - version = "1.5.1"; - src = fetchHex { - pkg = "chronos"; - version = "1.5.1"; - sha256 = - "015d881b1d095b53f626dc32f8db05e5faca8635b199d3cc2022a057c469904b"; - }; - - meta = { - longDescription = ''An Elixir library for handling dates. It can - be used to quickly determine a date. In a human - readable format.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/nurugger07/chronos"; - }; - } // packageOverrides) - ) {}; - - chronos = chronos_1_5_1; - - chunky_svg_0_0_4 = callPackage - ( - { - buildMix, packageOverrides ? {}, fetchHex, xml_builder_0_0_8 - }: - buildMix ({ - name = "chunky_svg"; - version = "0.0.4"; - src = fetchHex { - pkg = "chunky_svg"; - version = "0.0.4"; - sha256 = - "c8d7212148d72b03b6ed102410017a2cf77987a09fb889320fc381d383e68c75"; - }; - beamDeps = [ xml_builder_0_0_8 ]; - - meta = { - description = '' A library for drawing things with SVG ''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/mmmries/chunky_svg"; - }; - } // packageOverrides) - ) {}; - - chunky_svg = chunky_svg_0_0_4; - - cidr_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "cidr"; - version = "1.0.0"; - src = fetchHex { - pkg = "cidr"; - version = "1.0.0"; - sha256 = - "3bffa78af48cfbcd89461144bd2e1990b4f2631a8328c42cb033fa71c14b8f46"; - }; - - meta = { - description = ''Classless Inter-Domain Routing (CIDR) for - Elixir''; - license = stdenv.lib.licenses.free; - homepage = "https://github.com/c-rack/cidr-elixir"; - }; - } // packageOverrides) - ) {}; - - cidr = cidr_1_0_0; - - cirru_parser_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "cirru_parser"; - version = "0.0.1"; - src = fetchHex { - pkg = "cirru_parser"; - version = "0.0.1"; - sha256 = - "259f533ee97805c50eb12fa8472b5553eaca5bfd58216d54a734dfa1c4d0c678"; - }; - - meta = { - description = ''Cirru Parser in Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/Cirru/parser.ex"; - }; - } // packageOverrides) - ) {}; - - cirru_parser = cirru_parser_0_0_1; - - ckan_0_0_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - httpotion_2_2_2 - }: - buildMix ({ - name = "ckan"; - version = "0.0.2"; - src = fetchHex { - pkg = "ckan"; - version = "0.0.2"; - sha256 = - "471a58f1d38df7a6ff36af9a1e9d4c6cb9d310c5acb2db95ff3184717d7762a0"; - }; - beamDeps = [ poison_1_5_2 httpotion_2_2_2 ]; - - meta = { - description = ''A small library for interacting with CKAN - (ckan.org) instances''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/rossjones/ckan_ex"; - }; - } // packageOverrides) - ) {}; - - ckan = ckan_0_0_2; - - clicksign_0_0_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - plug_1_1_5, - httpoison_0_8_3, - exjsx_3_2_0, - cowboy_1_0_4, - bypass_0_5_1 - }: - buildMix ({ - name = "clicksign"; - version = "0.0.2"; - src = fetchHex { - pkg = "clicksign"; - version = "0.0.2"; - sha256 = - "e6e9335c86298d5d5af6c18b85f3533554eca74d6129e1aea7dae17849b48ed2"; - }; - beamDeps = [ - plug_1_1_5 - httpoison_0_8_3 - exjsx_3_2_0 - cowboy_1_0_4 - bypass_0_5_1 - ]; - - meta = { - description = ''Clicksign client''; - - }; - } // packageOverrides) - ) {}; - - clicksign = clicksign_0_0_2; - - clint_0_0_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - plug_0_11_3, - cowboy_1_0_4 - }: - buildMix ({ - name = "clint"; - version = "0.0.1"; - src = fetchHex { - pkg = "clint"; - version = "0.0.1"; - sha256 = - "41c6781b5f4b986bce14c3578d39c497bcb8427f1d36d8cde5fcaa6e03cae2b1"; - }; - beamDeps = [ plug_0_11_3 cowboy_1_0_4 ]; - - meta = { - description = ''An Elixir web micro-framework, inspired by - Sinatra''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/lpil/clint"; - }; - } // packageOverrides) - ) {}; - - clint = clint_0_0_1; - - clique_3_0_1 = callPackage - ( - { - buildRebar3, packageOverrides ? {}, fetchHex, cuttlefish_2_0_7 - }: - buildRebar3 ({ - name = "clique"; - version = "3.0.1"; - src = fetchHex { - pkg = "clique"; - version = "3.0.1"; - sha256 = - "f26bd1d293a88223b9dc21dc5a2643e64823f3e8e178536fb66e97c4ff4a2ac2"; - }; - - beamDeps = [ cuttlefish_2_0_7 ]; - - meta = { - description = ''A CLI library for erlang''; - license = stdenv.lib.licenses.apsl20; - homepage = "https://github.com/basho/clique"; - }; - } // packageOverrides) - ) {}; - - clique = clique_3_0_1; - - close_enough_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "close_enough"; - version = "0.0.1"; - src = fetchHex { - pkg = "close_enough"; - version = "0.0.1"; - sha256 = - "cbd73a651bffc50259035a311e5a03cb01176667b76aece059778dda9bd72079"; - }; - - meta = { - description = ''Forget typos in function names name, CloseEnough - handles them.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/sivsushruth/close_enough"; - }; - } // packageOverrides) - ) {}; - - close_enough = close_enough_0_0_1; - - cloudex_0_0_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - tzdata_0_5_8, - timex_0_19_5, - poison_1_5_2, - httpoison_0_8_3 - }: - buildMix ({ - name = "cloudex"; - version = "0.0.2"; - src = fetchHex { - pkg = "cloudex"; - version = "0.0.2"; - sha256 = - "eb424a8e6610de6f7a2f2be074937c571a86d11e4b942d2ea39900855a66b306"; - }; - beamDeps = [ - tzdata_0_5_8 timex_0_19_5 poison_1_5_2 httpoison_0_8_3 - ]; - - meta = { - longDescription = ''A library that helps with uploading image - files and urls to cloudinary. Also provides an - helper to generate transformations and - cloudinary urls pointing to your images''; - license = stdenv.lib.licenses.wtfpl; - homepage = "https://github.com/smeevil/cloudex"; - }; - } // packageOverrides) - ) {}; - - cloudex = cloudex_0_0_2; - - cloudinary_0_0_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_4_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "cloudinary"; - version = "0.0.2"; - src = fetchHex { - pkg = "cloudinary"; - version = "0.0.2"; - sha256 = - "9e32b21717b193f90a526203725811b96294d7c88391e5ad4a57bf178678cc4c"; - }; - beamDeps = [ poison_1_4_0 httpoison_0_8_3 ]; - - meta = { - description = ''Library to upload to Cloudinary''; - license = stdenv.lib.licenses.mit; - }; - } // packageOverrides) - ) {}; - - cloudinary = cloudinary_0_0_2; - - cloudinaryex_0_0_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - timex_1_0_2, - poison_1_5_2, - httpoison_0_8_3 - }: - buildMix ({ - name = "cloudinaryex"; - version = "0.0.2"; - src = fetchHex { - pkg = "cloudinaryex"; - version = "0.0.2"; - sha256 = - "31518baacfcca428e30ee8f1c411d76568344e7032ed93cf34535e279c8472fc"; - }; - beamDeps = [ timex_1_0_2 poison_1_5_2 httpoison_0_8_3 ]; - - meta = { - description = ''A library for connecting with Cloudinary in - Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/micahwedemeyer/cloudinaryex"; - }; - } // packageOverrides) - ) {}; - - cloudinaryex = cloudinaryex_0_0_2; - - cmark_0_6_10 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "cmark"; - version = "0.6.10"; - src = fetchHex { - pkg = "cmark"; - version = "0.6.10"; - sha256 = - "df6dd77f8fe0774b6e4cdedcadef56c1c7cb478c6aaed7445535ec87dba3a608"; - }; - - meta = { - longDescription = ''Elixir NIF for cmark (C), a parser library - following the CommonMark spec, a compatible - implementation of Markdown.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/asaaki/cmark.ex"; - }; - } // packageOverrides) - ) {}; - - cmark = cmark_0_6_10; - - cobertura_cover_0_9_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "cobertura_cover"; - version = "0.9.0"; - src = fetchHex { - pkg = "cobertura_cover"; - version = "0.9.0"; - sha256 = - "870bc4658cacc5c80d13f1206b688925234d2dc4e00278e8a3e72fbbd6bea0b1"; - }; - - meta = { - longDescription = ''A plugin for `mix test --cover` that writes a - `coverage.xml` file compatible with Jenkins` - Cobertura plugin. ''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/PSPDFKit-labs/cobertura_cover"; - }; - } // packageOverrides) - ) {}; - - cobertura_cover = cobertura_cover_0_9_0; - - codepagex_0_1_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "codepagex"; - version = "0.1.2"; - src = fetchHex { - pkg = "codepagex"; - version = "0.1.2"; - sha256 = - "cb6fbd1ebf1b1748aee9d956fb15115af407db3348efc26bc9d3d637c6441074"; - }; - - meta = { - longDescription = ''Codepagex is an elixir library to convert - between string encodings to and from utf-8. Like - iconv, but written in pure Elixir.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/tallakt/codepagex"; - }; - } // packageOverrides) - ) {}; - - codepagex = codepagex_0_1_2; - - coincap_io_0_0_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - httpoison_0_8_3, - exconstructor_1_0_2 - }: - buildMix ({ - name = "coincap_io"; - version = "0.0.2"; - src = fetchHex { - pkg = "coincap_io"; - version = "0.0.2"; - sha256 = - "23492902655cfff97d9988278dc1478562e236be631608a50d4d47106f132664"; - }; - beamDeps = [ poison_2_1_0 httpoison_0_8_3 exconstructor_1_0_2 ]; - - meta = { - longDescription = ''WIP, unstable Elixir API wrapper for - coincap.io. Provides access to market - capitalization data of bitcoin, altcoins and - cryptotokens.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/cyberpunk-ventures/coincap_io_ex"; - }; - } // packageOverrides) - ) {}; - - coincap_io = coincap_io_0_0_2; - - colixir_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "colixir"; - version = "0.0.1"; - src = fetchHex { - pkg = "colixir"; - version = "0.0.1"; - sha256 = - "38dc49351419c6fcfdb76bbc785e07c3acf83cc29f632719dd601ecadbfb73b8"; - }; - - meta = { - description = ''Colixir creates colorized text for terminal - output''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/mondok/colixir"; - }; - } // packageOverrides) - ) {}; - - colixir = colixir_0_0_1; - - color_stream_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "color_stream"; - version = "0.0.2"; - src = fetchHex { - pkg = "color_stream"; - version = "0.0.2"; - sha256 = - "b1181f32b310311016006f4f8d52b3418d1af6f06e71903daabafdcaa602a29d"; - }; - - meta = { - description = ''Generate random colors that are fairly spaced out - and look nice.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/code-lever/color-stream-elixir"; - }; - } // packageOverrides) - ) {}; - - color_stream = color_stream_0_0_2; - - color_utils_0_2_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "color_utils"; - version = "0.2.0"; - src = fetchHex { - pkg = "color_utils"; - version = "0.2.0"; - sha256 = - "bf16a1a9de7d837a68ede139c6e06bc9d57f9eccedff302f730105bd80d98647"; - }; - - meta = { - description = ''A Color Util library for Elixir.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/barakyo/color_utils"; - }; - } // packageOverrides) - ) {}; - - color_utils = color_utils_0_2_0; - - colorful_0_6_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "colorful"; - version = "0.6.0"; - src = fetchHex { - pkg = "colorful"; - version = "0.6.0"; - sha256 = - "6b00225f137efdde7901d3ddc7626a3b33031c20ea145097b2442680e72adc3d"; - }; - - meta = { - description = ''Modules which manage colors''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/Joe-noh/colorful"; - }; - } // packageOverrides) - ) {}; - - colorful = colorful_0_6_0; - - colorize_0_2_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "colorize"; - version = "0.2.0"; - src = fetchHex { - pkg = "colorize"; - version = "0.2.0"; - sha256 = - "d43757bae49d6da310d641cf7ec809bdc0b6a9eb40fb7ac4c57c1dbbb7d4e32e"; - }; - - meta = { - description = ''Colorize your text in the console''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/shiroyasha/colorize"; - }; - } // packageOverrides) - ) {}; - - colorize = colorize_0_2_0; - - colors_1_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "colors"; - version = "1.0.1"; - src = fetchHex { - pkg = "colors"; - version = "1.0.1"; - sha256 = - "960aa874a3cbbf4356c64ef8194d5215c8373537a720fc0ab46c90400ecf8949"; - }; - - meta = { - description = ''a colors util''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/lidashuang/colors"; - }; - } // packageOverrides) - ) {}; - - colors = colors_1_0_1; - - combination_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "combination"; - version = "0.0.2"; - src = fetchHex { - pkg = "combination"; - version = "0.0.2"; - sha256 = - "f3e4934d2077d161e4ec8c6e54a2c4b6b39d8189a1434866ca3e2afedd38be04"; - }; - - meta = { - description = ''Elixir library computing simple combination and - permutation on Enumerables.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/seantanly/elixir-combination"; - }; - } // packageOverrides) - ) {}; - - combination = combination_0_0_2; - - combine_0_7_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "combine"; - version = "0.7.0"; - src = fetchHex { - pkg = "combine"; - version = "0.7.0"; - sha256 = - "3ac1b6622e6149204899c7069b850a53ed38d1a749cc7357aeffe86e8bfc593c"; - }; - - meta = { - description = ''A parser combinator library for Elixir - projects.''; - license = stdenv.lib.licenses.mit; - }; - } // packageOverrides) - ) {}; - - combine_0_8_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "combine"; - version = "0.8.0"; - src = fetchHex { - pkg = "combine"; - version = "0.8.0"; - sha256 = - "3adc5354d03ef96bc494850e5014e11150ddf16b3feee9ff3292a0da55f64301"; - }; - - meta = { - description = ''A parser combinator library for Elixir - projects.''; - license = stdenv.lib.licenses.mit; - }; - } // packageOverrides) - ) {}; - - combine = combine_0_8_0; - - comeonin_1_6_0 = callPackage - ( - { - buildMix, packageOverrides ? {}, fetchHex, comeonin_i18n_0_1_3 - }: - buildMix ({ - name = "comeonin"; - version = "1.6.0"; - src = fetchHex { - pkg = "comeonin"; - version = "1.6.0"; - sha256 = - "40dd0da2c33696d19515888fd86b9ffdcad92d49e9a6b3b13df98e824897a1b1"; - }; - beamDeps = [ comeonin_i18n_0_1_3 ]; - - meta = { - description = ''Password hashing (bcrypt, pbkdf2_sha512) library - for Elixir.''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/elixircnx/comeonin"; - }; - } // packageOverrides) - ) {}; - - comeonin_2_0_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "comeonin"; - version = "2.0.3"; - src = fetchHex { - pkg = "comeonin"; - version = "2.0.3"; - sha256 = - "a9a6f87107ebf6898adeca7130adb1b9e421c1be7e8b30b13ac1e0354ea15198"; - }; - - meta = { - description = ''Password hashing (bcrypt, pbkdf2_sha512) library - for Elixir.''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/elixircnx/comeonin"; - }; - } // packageOverrides) - ) {}; - - comeonin_2_1_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "comeonin"; - version = "2.1.1"; - src = fetchHex { - pkg = "comeonin"; - version = "2.1.1"; - sha256 = - "7f85774ae5d453f664d0e7809cc1ab32ff22855d16ff6a2edd68c6d36cb1a1aa"; - }; - - meta = { - description = ''Password hashing (bcrypt, pbkdf2_sha512) library - for Elixir.''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/elixircnx/comeonin"; - }; - } // packageOverrides) - ) {}; - - comeonin_2_4_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "comeonin"; - version = "2.4.0"; - src = fetchHex { - pkg = "comeonin"; - version = "2.4.0"; - sha256 = - "b326290a3143fdf4847a735f272ebd16d15216e97e968266a7b24125af4620be"; - }; - - meta = { - description = ''Password hashing (bcrypt, pbkdf2_sha512) library - for Elixir.''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/elixircnx/comeonin"; - }; - } // packageOverrides) - ) {}; - - comeonin = comeonin_2_4_0; - - comeonin_i18n_0_1_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, gettext_0_11_0 }: - buildMix ({ - name = "comeonin_i18n"; - version = "0.1.3"; - src = fetchHex { - pkg = "comeonin_i18n"; - version = "0.1.3"; - sha256 = - "4b45ca5af3cbf20bf7d3f7e874629041a2a921ad5a62ca9b94546a1e559023a6"; - }; - beamDeps = [ gettext_0_11_0 ]; - - meta = { - description = ''Internationalization support for the Comeonin - password hashing library.''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/elixircnx/comeonin_i18n"; - }; - } // packageOverrides) - ) {}; - - comeonin_i18n = comeonin_i18n_0_1_3; - - commander_0_1_4 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "commander"; - version = "0.1.4"; - src = fetchHex { - pkg = "commander"; - version = "0.1.4"; - sha256 = - "091cd4de551771fed7eb258dbf1918875822896d44a730414fc6ac268e9ad3e4"; - }; - - meta = { - description = ''A macro library to help create telegram bot''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/carlo-colombo/commander"; - }; - } // packageOverrides) - ) {}; - - commander = commander_0_1_4; - - complex_0_2_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - exprintf_0_1_6, - earmark_0_2_1 - }: - buildMix ({ - name = "complex"; - version = "0.2.0"; - src = fetchHex { - pkg = "complex"; - version = "0.2.0"; - sha256 = - "6db6a2850ed907c4d9e062591110dc70c35c3818ccf609f1268052a3f4bf10b0"; - }; - beamDeps = [ exprintf_0_1_6 earmark_0_2_1 ]; - - meta = { - description = ''Complex is a library for types and mathematical - functions for complex numbers.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/twist-vector/elixir-complex.git"; - }; - } // packageOverrides) - ) {}; - - complex = complex_0_2_0; - - comredis_1_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, poison_2_1_0 }: - buildMix ({ - name = "comredis"; - version = "1.0.1"; - src = fetchHex { - pkg = "comredis"; - version = "1.0.1"; - sha256 = - "03aa3a9235f39c666854027b88915b9f256c357ce6e0a493da54d6dec7b3a207"; - }; - beamDeps = [ poison_2_1_0 ]; - - meta = { - description = ''Comredis is your comrade for Redis command - generation in Elixir.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/iurifq/comredis"; - }; - } // packageOverrides) - ) {}; - - comredis = comredis_1_0_1; - - con_cache_0_11_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, exactor_2_2_0 }: - buildMix ({ - name = "con_cache"; - version = "0.11.0"; - src = fetchHex { - pkg = "con_cache"; - version = "0.11.0"; - sha256 = - "cd6d3dd4f6900520e3975592e1bbb57ac217e15f1f350f5bcba0c63578cb0a49"; - }; - beamDeps = [ exactor_2_2_0 ]; - - meta = { - longDescription = ''ETS based key-value storage with support for - row-level isolated writes, TTL auto-purge, and - modification callbacks.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/sasa1977/con_cache"; - }; - } // packageOverrides) - ) {}; - - con_cache = con_cache_0_11_0; - - con_cache_0_9_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, exactor_2_2_0 }: - buildMix ({ - name = "con_cache"; - version = "0.9.0"; - src = fetchHex { - pkg = "con_cache"; - version = "0.9.0"; - sha256 = - "600b122653d7e5f6414bb0728fa6133c656e2d24fad7f0a31bb89c1c70ec68bb"; - }; - beamDeps = [ exactor_2_2_0 ]; - - meta = { - longDescription = ''ETS based key-value storage with support for - row-level isolated writes, TTL auto-purge, and - modification callbacks.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/sasa1977/con_cache"; - }; - } // packageOverrides) - ) {}; - - concerto_0_1_4 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "concerto"; - version = "0.1.4"; - src = fetchHex { - pkg = "concerto"; - version = "0.1.4"; - sha256 = - "3c8337ecc810f8812ab9dec8a63b4aa8feaed6142b24acbb89ad7938481ae912"; - }; - - meta = { - description = ''file-based routing library for elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/exstruct/concerto"; - }; - } // packageOverrides) - ) {}; - - concerto = concerto_0_1_4; - - config_values_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "config_values"; - version = "1.0.0"; - src = fetchHex { - pkg = "config_values"; - version = "1.0.0"; - sha256 = - "cdbd33fd68cf7fa4fe88dfc1f73e5d26f69d86132650dfba9a636dc75f6cb26c"; - }; - - meta = { - description = ''Interpolated configuration values''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/hassox/config_values"; - }; - } // packageOverrides) - ) {}; - - config_values = config_values_1_0_0; - - configparser_ex_0_2_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "configparser_ex"; - version = "0.2.1"; - src = fetchHex { - pkg = "configparser_ex"; - version = "0.2.1"; - sha256 = - "3319861498f5e711058b1b3b54f88275af85e1bf9493bd0b904393d5971f117e"; - }; - - meta = { - description = ''A module that parses INI-like files. Not unlike - Python configparser package.''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/easco/configparser_ex"; - }; - } // packageOverrides) - ) {}; - - configparser_ex = configparser_ex_0_2_1; - - connection_1_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "connection"; - version = "1.0.2"; - src = fetchHex { - pkg = "connection"; - version = "1.0.2"; - sha256 = - "b4ffd56c0ad3caac8dc6125a007e416ba2dab54a1d4b380766bb9e87c56120fb"; - }; - - meta = { - description = ''Connection behaviour for connection processes''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/fishcakez/connection"; - }; - } // packageOverrides) - ) {}; - - connection = connection_1_0_2; - - conqueuer_0_5_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poolboy_1_5_1, - inflex_1_5_0 - }: - buildMix ({ - name = "conqueuer"; - version = "0.5.1"; - src = fetchHex { - pkg = "conqueuer"; - version = "0.5.1"; - sha256 = - "7370e2a0201f73ced6b202877b4dcb6872e1b6bbb0c024b1edee3a058dd653ab"; - }; - beamDeps = [ poolboy_1_5_1 inflex_1_5_0 ]; - - meta = { - description = ''An Elixir in memory work queue.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/midas/conqueuer"; - }; - } // packageOverrides) - ) {}; - - conqueuer = conqueuer_0_5_1; - - console_tree_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "console_tree"; - version = "0.0.1"; - src = fetchHex { - pkg = "console_tree"; - version = "0.0.1"; - sha256 = - "c7dea20c14fd8bc6697a68f2917def38d20c772eb4b5715b18197672e7ddc0eb"; - }; - - meta = { - longDescription = ''A simple library to print a text - representation of a tree structure, intended for - use in a terminal environment.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/ciaran/console_tree"; - }; - } // packageOverrides) - ) {}; - - console_tree = console_tree_0_0_1; - - consolex_0_1_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - exjsx_3_2_0, - cowboy_1_0_4 - }: - buildMix ({ - name = "consolex"; - version = "0.1.0"; - src = fetchHex { - pkg = "consolex"; - version = "0.1.0"; - sha256 = - "d258becb7d14295e4df337ca1f5466de55c54d0be2761b9a93003814427c0ec1"; - }; - beamDeps = [ exjsx_3_2_0 cowboy_1_0_4 ]; - - meta = { - description = ''An IEx web console''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/sivsushruth/consolex"; - }; - } // packageOverrides) - ) {}; - - consolex = consolex_0_1_0; - - control_0_0_4 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "control"; - version = "0.0.4"; - src = fetchHex { - pkg = "control"; - version = "0.0.4"; - sha256 = - "c806da1d82614a27f876aea5d222edb1cdb52d883553ada03f1ff79c09c024d9"; - }; - - meta = { - description = ''An exploratory look into functors, applicatives, - and monads for Elixir.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/slogsdon/elixir-control"; - }; - } // packageOverrides) - ) {}; - - control = control_0_0_4; - - convertat_1_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "convertat"; - version = "1.1.0"; - src = fetchHex { - pkg = "convertat"; - version = "1.1.0"; - sha256 = - "603229c43df6769f2166c78c5c3f31316390bf6e19fa8e15f02026170ab51a79"; - }; - - meta = { - description = ''Provides functions for converting from and to - arbitrary bases. ''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/whatyouhide/convertat"; - }; - } // packageOverrides) - ) {}; - - convertat = convertat_1_1_0; - - core_data_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, floki_0_1_1 }: - buildMix ({ - name = "core_data"; - version = "0.1.0"; - src = fetchHex { - pkg = "core_data"; - version = "0.1.0"; - sha256 = - "09b308a42f0697053c68f253e7f687c0f6b5f96bb1b114a7b1852c5b6804122e"; - }; - beamDeps = [ floki_0_1_1 ]; - - meta = { - description = ''iOS Core Data parser''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/evolet-project/core_data"; - }; - } // packageOverrides) - ) {}; - - core_data = core_data_0_1_0; - - cors_plug_1_1_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - plug_1_1_5, - cowboy_1_0_4 - }: - buildMix ({ - name = "cors_plug"; - version = "1.1.2"; - src = fetchHex { - pkg = "cors_plug"; - version = "1.1.2"; - sha256 = - "2604f8352d3c072a8fd94dd1b6ed076b74f0952710c4a58269ffea56bfb6b2a7"; - }; - beamDeps = [ plug_1_1_5 cowboy_1_0_4 ]; - - meta = { - longDescription = ''An elixir plug that adds CORS headers to - requests and responds to preflight requests - (OPTIONS)''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/mschae/cors_plug"; - }; - } // packageOverrides) - ) {}; - - cors_plug = cors_plug_1_1_2; - - corsica_0_4_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - plug_1_1_5, - cowboy_1_0_4 - }: - buildMix ({ - name = "corsica"; - version = "0.4.2"; - src = fetchHex { - pkg = "corsica"; - version = "0.4.2"; - sha256 = - "6a06d3ffb4395cec11f253618d6411db4b14edb6e76e700abc757722deaf0f8d"; - }; - beamDeps = [ plug_1_1_5 cowboy_1_0_4 ]; - - meta = { - description = ''Plug-based swiss-army knife for CORS requests.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/whatyouhide/corsica"; - }; - } // packageOverrides) - ) {}; - - corsica = corsica_0_4_2; - - couch_factory_0_1_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "couch_factory"; - version = "0.1.1"; - src = fetchHex { - pkg = "couch_factory"; - version = "0.1.1"; - sha256 = - "79b2e2c48bf6b036f959ff70c14b0d4da767e4bca7efae8f6c758eefab1a28d5"; - }; - - meta = { - description = ''Factory Girl implementation with CouchDb - persistence.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/javierg/couch_factory"; - }; - } // packageOverrides) - ) {}; - - couch_factory = couch_factory_0_1_1; - - couchbeam_1_3_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - jsx_2_8_0, - hackney_1_5_7 - }: - buildMix ({ - name = "couchbeam"; - version = "1.3.0"; - src = fetchHex { - pkg = "couchbeam"; - version = "1.3.0"; - sha256 = - "5d94bfc80532999e4f8e7f5da3abff74fbf3b59d5e02e0a99eb0dc3697c97a50"; - }; - beamDeps = [ jsx_2_8_0 hackney_1_5_7 ]; - - meta = { - description = ''Erlang CouchDB client''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/benoitc/couchbeam"; - }; - } // packageOverrides) - ) {}; - - couchbeam = couchbeam_1_3_0; - - couchex_0_6_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "couchex"; - version = "0.6.0"; - src = fetchHex { - pkg = "couchex"; - version = "0.6.0"; - sha256 = - "44e02558dc29d739cf27dad76bfc8e8632c4779ce2c701a418409912641b7c3b"; - }; - - meta = { - description = ''CouchDB client, wrapping couchbeam erlang - client.''; - license = stdenv.lib.licenses.unlicense; - homepage = "https://github.com/ringling/couchex"; - }; - } // packageOverrides) - ) {}; - - couchex = couchex_0_6_0; - - count_buffer_0_1_5 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, pool_ring_0_1_5 }: - buildMix ({ - name = "count_buffer"; - version = "0.1.5"; - src = fetchHex { - pkg = "count_buffer"; - version = "0.1.5"; - sha256 = - "6e78dc0458dac8dae9d41d7857c7185b3164cecd9992a1407265ebfa3455544e"; - }; - beamDeps = [ pool_ring_0_1_5 ]; - - meta = { - description = ''buffer a large set of counters and flush - periodically''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/camshaft/count_buffer"; - }; - } // packageOverrides) - ) {}; - - count_buffer = count_buffer_0_1_5; - - courier_0_0_3 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - mail_0_0_4, - gen_smtp_0_9_0 - }: - buildMix ({ - name = "courier"; - version = "0.0.3"; - src = fetchHex { - pkg = "courier"; - version = "0.0.3"; - sha256 = - "8c8c560da7011c8846ed5ee60af867124ff043a7d37773156b6d8a08390b73fc"; - }; - beamDeps = [ mail_0_0_4 gen_smtp_0_9_0 ]; - - meta = { - description = ''Adapter based email delivery''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/DockYard/courier"; - }; - } // packageOverrides) - ) {}; - - courier = courier_0_0_3; - - cowbell_0_1_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "cowbell"; - version = "0.1.0"; - src = fetchHex { - pkg = "cowbell"; - version = "0.1.0"; - sha256 = - "8a75f73afd29421150cc4dbe2993b5a2a7e3fe5fa5628a06ddb22adc2c36c998"; - }; - - meta = { - description = ''A node connection manager.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/ostinelli/cowbell"; - }; - } // packageOverrides) - ) {}; - - cowbell = cowbell_0_1_0; - - cowboy_1_0_4 = callPackage - ( - { - buildErlangMk, - packageOverrides ? {}, - fetchHex, - cowlib_1_0_2, - ranch_1_2_1 - }: - buildErlangMk ({ - name = "cowboy"; - version = "1.0.4"; - src = fetchHex { - pkg = "cowboy"; - version = "1.0.4"; - sha256 = - "6a0edee96885fae3a8dd0ac1f333538a42e807db638a9453064ccfdaa6b9fdac"; - }; - beamDeps = [ cowlib_1_0_2 ranch_1_2_1 ]; - - meta = { - description = ''Small, fast, modular HTTP server written in - Erlang.''; - license = stdenv.lib.licenses.isc; - homepage = "https://github.com/ninenines/cowboy"; - }; - } // packageOverrides) - ) {}; - - cowboy = cowboy_1_0_4; - - cowgirl_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "cowgirl"; - version = "0.0.1"; - src = fetchHex { - pkg = "cowgirl"; - version = "0.0.1"; - sha256 = - "3b06ca6bb82fa3674ddad182cc479d9ab1538b83a4cf616c666e0d6f873c44e5"; - }; - - meta = { - description = ''Small, fast, modular HTTP server written in - Elixir.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/larrylv/cowgirl"; - }; - } // packageOverrides) - ) {}; - - cowgirl = cowgirl_0_0_1; - - cowlib_1_0_0 = callPackage - ( - { buildErlangMk, packageOverrides ? {}, fetchHex }: - buildErlangMk ({ - name = "cowlib"; - version = "1.0.0"; - src = fetchHex { - pkg = "cowlib"; - version = "1.0.0"; - sha256 = - "4dacd60356177ec8cf93dbff399de17435b613f3318202614d3d5acbccee1474"; - }; - - meta = { - description = ''Support library for manipulating Web - protocols.''; - license = stdenv.lib.licenses.isc; - homepage = "https://github.com/ninenines/cowlib"; - }; - } // packageOverrides) - ) {}; - - cowlib_1_0_2 = callPackage - ( - { buildErlangMk, packageOverrides ? {}, fetchHex }: - buildErlangMk ({ - name = "cowlib"; - version = "1.0.2"; - src = fetchHex { - pkg = "cowlib"; - version = "1.0.2"; - sha256 = - "db622da03aa039e6366ab953e31186cc8190d32905e33788a1acb22744e6abd2"; - }; - - meta = { - description = ''Support library for manipulating Web - protocols.''; - license = stdenv.lib.licenses.isc; - homepage = "https://github.com/ninenines/cowlib"; - }; - } // packageOverrides) - ) {}; - - cowlib_1_3_0 = callPackage - ( - { buildErlangMk, packageOverrides ? {}, fetchHex }: - buildErlangMk ({ - name = "cowlib"; - version = "1.3.0"; - src = fetchHex { - pkg = "cowlib"; - version = "1.3.0"; - sha256 = - "2b1ac020ec92e7a59cb7322779870c2d3adc7c904ecb3b9fa406f04dc9816b73"; - }; - - meta = { - description = ''Support library for manipulating Web - protocols.''; - license = stdenv.lib.licenses.isc; - homepage = "https://github.com/ninenines/cowlib"; - }; - } // packageOverrides) - ) {}; - - cowlib = cowlib_1_3_0; - - cowsay_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "cowsay"; - version = "0.0.1"; - src = fetchHex { - pkg = "cowsay"; - version = "0.0.1"; - sha256 = - "9f8a6634710974787751279b22ef5d7cb3c6a74db42636540ae5db37c4632e2a"; - }; - - meta = { - description = ''A cow-friend who will speak your mind''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/bbrock25/cowsay"; - }; - } // packageOverrides) - ) {}; - - cowsay = cowsay_0_0_1; - - cqex_0_2_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "cqex"; - version = "0.2.0"; - src = fetchHex { - pkg = "cqex"; - version = "0.2.0"; - sha256 = - "2180cb8083d38765bd3912f128b603826686300aef6f61adf9dc89fde3bb5429"; - }; - - meta = { - description = ''Idiomatic Elixir client for Cassandra.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/matehat/cqex"; - }; - } // packageOverrides) - ) {}; - - cqex = cqex_0_2_0; - - cqrs_commands_0_0_6 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - vex_0_5_5, - uuid_1_1_4, - poison_2_0_1, - plug_1_1_5, - exconstructor_1_0_2 - }: - buildMix ({ - name = "cqrs_commands"; - version = "0.0.6"; - src = fetchHex { - pkg = "cqrs_commands"; - version = "0.0.6"; - sha256 = - "3bc8419a057daf10db5a0a8895d7b917948e6e901f3e8286163f829b2f5652f3"; - }; - beamDeps = [ - vex_0_5_5 - uuid_1_1_4 - poison_2_0_1 - plug_1_1_5 - exconstructor_1_0_2 - ]; - - meta = { - description = ''This is not production ready yet but I want your - feedback.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/amberbit/cqrs_commands"; - }; - } // packageOverrides) - ) {}; - - cqrs_commands = cqrs_commands_0_0_6; - - crazy_pants_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "crazy_pants"; - version = "0.0.1"; - src = fetchHex { - pkg = "crazy_pants"; - version = "0.0.1"; - sha256 = - "46e50adccb0d858e5a540c834d4e358ffa43ed9cdcac20ae36569fc7eaffa532"; - }; - - meta = { - description = ''These pretzels are making me thirsty''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/whodat/crazy_pants"; - }; - } // packageOverrides) - ) {}; - - crazy_pants = crazy_pants_0_0_1; - - crc_0_4_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "crc"; - version = "0.4.0"; - src = fetchHex { - pkg = "crc"; - version = "0.4.0"; - sha256 = - "4f0d872d46faea966aeb687158b7e02bfc61c49c4f2fb33f5e52e3d167f4faeb"; - }; - - meta = { - description = ''A library used to calculate CRC checksums for - binary data''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/TattdCodeMonkey/crc"; - }; - } // packageOverrides) - ) {}; - - crc = crc_0_4_0; - - credit_card_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "credit_card"; - version = "1.0.0"; - src = fetchHex { - pkg = "credit_card"; - version = "1.0.0"; - sha256 = - "c7dee15035f4ff925f08bc806c4bd1817209c64d8ba089d0731808ee35e97ba0"; - }; - - meta = { - description = ''A library for validating credit card numbers''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/abakhi/credit_card"; - }; - } // packageOverrides) - ) {}; - - credit_card = credit_card_1_0_0; - - credo_0_4_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, bunt_0_1_6 }: - buildMix ({ - name = "credo"; - version = "0.4.3"; - src = fetchHex { - pkg = "credo"; - version = "0.4.3"; - sha256 = - "2ab51e2446ebad5abc327fb18a4410f41bbab311cd760379e75d696dea8ed6ee"; - }; - beamDeps = [ bunt_0_1_6 ]; - - meta = { - longDescription = ''A static code analysis tool for the Elixir - language with a focus on code consistency and - teaching.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/rrrene/credo"; - }; - } // packageOverrides) - ) {}; - - credo = credo_0_4_3; - - croma_0_4_4 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "croma"; - version = "0.4.4"; - src = fetchHex { - pkg = "croma"; - version = "0.4.4"; - sha256 = - "8dbcf50e925aa765f521d948250cafd5409fd4dbd5f23b2db6d6032e9397e312"; - }; - - meta = { - description = ''Elixir macro utilities''; - license = stdenv.lib.licenses.mit; - }; - } // packageOverrides) - ) {}; - - croma = croma_0_4_4; - - cronitor_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "cronitor"; - version = "1.0.0"; - src = fetchHex { - pkg = "cronitor"; - version = "1.0.0"; - sha256 = - "d1353c83d1949b60e824ed934be02e7a4cc536fb5b7c912618b0052e0e01d490"; - }; - - meta = { - description = ''An extremely simple wrapper for the cronitor.io - ping endpoints.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/jordan0day/cronitor"; - }; - } // packageOverrides) - ) {}; - - cronitor = cronitor_1_0_0; - - crutches_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "crutches"; - version = "1.0.0"; - src = fetchHex { - pkg = "crutches"; - version = "1.0.0"; - sha256 = - "cfd97962a22fe30820e6ca6d0671c763232a7edf149aa11bd62ee77dff0ffff0"; - }; - - meta = { - description = ''An Elixir toolbelt freely inspired from Ruby`s - ActiveSupport''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/mykewould/crutches"; - }; - } // packageOverrides) - ) {}; - - crutches = crutches_1_0_0; - - cryptex_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "cryptex"; - version = "0.0.1"; - src = fetchHex { - pkg = "cryptex"; - version = "0.0.1"; - sha256 = - "19d709c6ffbda3c74ec811190d168170db0435720cbe788c0233bea4afee1d16"; - }; - - meta = { - description = ''An Elixir library for encrypting/decrypting, - signing/verifying data. ''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/scrogson/cryptex"; - }; - } // packageOverrides) - ) {}; - - cryptex = cryptex_0_0_1; - - crypto_rsassa_pss_1_0_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "crypto_rsassa_pss"; - version = "1.0.0"; - src = fetchHex { - pkg = "crypto_rsassa_pss"; - version = "1.0.0"; - sha256 = - "d8f48874dbef940a8954126249499714e702d8ae0a8f23230a6c2f4a92833313"; - }; - - meta = { - description = ''RSASSA-PSS Public Key Cryptographic Signature - Algorithm for Erlang''; - license = stdenv.lib.licenses.mpl20; - homepage = - "https://github.com/potatosalad/erlang-crypto_rsassa_pss"; - }; - } // packageOverrides) - ) {}; - - crypto_rsassa_pss = crypto_rsassa_pss_1_0_0; - - cspex_1_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "cspex"; - version = "1.1.0"; - src = fetchHex { - pkg = "cspex"; - version = "1.1.0"; - sha256 = - "1eb6d83e0f4c43c68fe14ede5bb711654a6a653e94aa39d75ad67cf53ba79df1"; - }; - - meta = { - description = ''A library that brings all the CSP joy to the - Elixir land.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/vidalraphael/cspex"; - }; - } // packageOverrides) - ) {}; - - cspex = cspex_1_1_0; - - csv_1_4_1 = callPackage - ( - { - buildMix, packageOverrides ? {}, fetchHex, parallel_stream_1_0_3 - }: - buildMix ({ - name = "csv"; - version = "1.4.1"; - src = fetchHex { - pkg = "csv"; - version = "1.4.1"; - sha256 = - "167e5d3dd2e7716e5865f5a8d064d7a9f7004516c796684083f1cd180c2d4296"; - }; - beamDeps = [ parallel_stream_1_0_3 ]; - - meta = { - description = ''CSV Decoding and Encoding for Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/beatrichartz/csv"; - }; - } // packageOverrides) - ) {}; - - csv = csv_1_4_1; - - csvlixir_2_0_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "csvlixir"; - version = "2.0.3"; - src = fetchHex { - pkg = "csvlixir"; - version = "2.0.3"; - sha256 = - "8539326c9a484f94f9443878f5df21b3ed12d5a00be069b8b8346dff8cf35436"; - }; - - meta = { - longDescription = ''CSVLixir is a CSV reader/writer for Elixir. - It operates on files and strings. The reader can - read CSV files or CSV strings. Reading from - files returns a stream of lists. Reading from - strings returns a list of lists. The writer - transforms a (possibly lazy) list of lists into - a stream of CSV strings. It can also take a - single list and return a single CSV string.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/jimm/csvlixir"; - }; - } // packageOverrides) - ) {}; - - csvlixir = csvlixir_2_0_3; - - cth_readable_1_2_2 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex, cf_0_2_1 }: - buildRebar3 ({ - name = "cth_readable"; - version = "1.2.2"; - src = fetchHex { - pkg = "cth_readable"; - version = "1.2.2"; - sha256 = - "77585432b98b45b9ee086399cefa97b2191b6d780c4e795bf43c529412d9694d"; - }; - - beamDeps = [ cf_0_2_1 ]; - - meta = { - description = ''Common Test hooks for more readable logs''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/ferd/cth_readable"; - }; - } // packageOverrides) - ) {}; - - cth_readable = cth_readable_1_2_2; - - cuckoo_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, murmur_1_0_0 }: - buildMix ({ - name = "cuckoo"; - version = "1.0.0"; - src = fetchHex { - pkg = "cuckoo"; - version = "1.0.0"; - sha256 = - "18f31763c50c20bb89e1fbc4b9eb5b97f6ffc23e3a90ba4cf5e97ccd96da8df2"; - }; - beamDeps = [ murmur_1_0_0 ]; - - meta = { - description = ''Cuckoo is a pure Elixir implementation of Cuckoo - Filters.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/gmcabrita/cuckoo"; - }; - } // packageOverrides) - ) {}; - - cuckoo = cuckoo_1_0_0; - - cucumberl_0_0_10 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "cucumberl"; - version = "0.0.10"; - src = fetchHex { - pkg = "cucumberl"; - version = "0.0.10"; - sha256 = - "53bd73d016602c8c46883dbcc5a57ee814fe4708b14e4406d566b5ca9d119110"; - }; - - meta = { - longDescription = ''A pure-erlang, open-source, implementation of - Cucumber (http://cukes.info). This provides a - subset of the Cucumber feature definition - language.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/ericbmerritt/cucumberl"; - }; - } // packageOverrides) - ) {}; - - cucumberl = cucumberl_0_0_10; - - cuid_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "cuid"; - version = "0.1.0"; - src = fetchHex { - pkg = "cuid"; - version = "0.1.0"; - sha256 = - "80cd46bd323e05b706c60008368e631b559307b554c0acc54292ab2c73a3340b"; - }; - - meta = { - description = ''Generate collision-resistant ids, in Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/duailibe/cuid"; - }; - } // packageOverrides) - ) {}; - - cuid = cuid_0_1_0; - - curl2httpoison_0_2_6 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "curl2httpoison"; - version = "0.2.6"; - src = fetchHex { - pkg = "curl2httpoison"; - version = "0.2.6"; - sha256 = - "d22fda1a85db812e9f6e0c8770f004cb7942f463bc59b07ad272c01330a7bfca"; - }; - - meta = { - description = ''Curl2HTTPoison transform your curl request to - HTTPPoison request code''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/edgurgel/httpoison"; - }; - } // packageOverrides) - ) {}; - - curl2httpoison = curl2httpoison_0_2_6; - - currency_formatter_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, poison_2_1_0 }: - buildMix ({ - name = "currency_formatter"; - version = "0.0.1"; - src = fetchHex { - pkg = "currency_formatter"; - version = "0.0.1"; - sha256 = - "dab55279ae6377f00a9d01a0a7ab015d380d550d71f303900ae554f8d0065606"; - }; - beamDeps = [ poison_2_1_0 ]; - - meta = { - description = ''A function to format a number to a currency using - iso standards''; - license = stdenv.lib.licenses.wtfpl; - homepage = "https://github.com/smeevil/currency_formatter"; - }; - } // packageOverrides) - ) {}; - - currency_formatter = currency_formatter_0_0_1; - - current_streak_ex_0_1_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - httpoison_0_8_3, - floki_0_8_1 - }: - buildMix ({ - name = "current_streak_ex"; - version = "0.1.1"; - src = fetchHex { - pkg = "current_streak_ex"; - version = "0.1.1"; - sha256 = - "1c62bcd7bdd69818dc05f0602e03a5aca6b21554206cb6634bedb807ee27d5a7"; - }; - beamDeps = [ httpoison_0_8_3 floki_0_8_1 ]; - - meta = { - description = ''Get github current streak which support only - public repositories.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/KazuCocoa/current_streak_ex"; - }; - } // packageOverrides) - ) {}; - - current_streak_ex = current_streak_ex_0_1_1; - - current_user_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "current_user"; - version = "0.0.1"; - src = fetchHex { - pkg = "current_user"; - version = "0.0.1"; - sha256 = - "8a400d8cbd02da89bccf67a357733b682e0d6d4c421b7230405ac16b1988809c"; - }; - - meta = { - description = ''Configurable user authentication for Phoenix''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/halogenandtoast/current_user"; - }; - } // packageOverrides) - ) {}; - - current_user = current_user_0_0_1; - - curry_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "curry"; - version = "0.0.1"; - src = fetchHex { - pkg = "curry"; - version = "0.0.1"; - sha256 = - "e8f56fee1cb82ae2616c36021d4dd8c2b4169490e224dea84f63feb47475d6f0"; - }; - - meta = { - description = ''A simple currying macro allowing to define - curried functions in Elixir modules.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/niahoo/elixir-curry"; - }; - } // packageOverrides) - ) {}; - - curry = curry_0_0_1; - - curtail_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "curtail"; - version = "0.1.0"; - src = fetchHex { - pkg = "curtail"; - version = "0.1.0"; - sha256 = - "0d43f4bcecf91c935a89cd52af62efa62e264b4c82a07e29e9945988735fdc1f"; - }; - - meta = { - description = ''HTML-safe string truncation.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/seankay/curtail"; - }; - } // packageOverrides) - ) {}; - - curtail = curtail_0_1_0; - - curtains_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, plug_1_0_3 }: - buildMix ({ - name = "curtains"; - version = "0.0.1"; - src = fetchHex { - pkg = "curtains"; - version = "0.0.1"; - sha256 = - "d547bd024049630fd072994a759befaab908fa69f5e200b2b584e12f12e9842f"; - }; - beamDeps = [ plug_1_0_3 ]; - - meta = { - longDescription = ''Curtains is a Elixir package that \"takes - over\" your Elixir website by returning content - of a specified file (if it exists). This makes - it perfect for \"Under construction\" and - \"Maintenance\" pages. At it`s heart, it`s just - a Plug.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/fteem/curtains"; - }; - } // packageOverrides) - ) {}; - - curtains = curtains_0_0_1; - - curve25519_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "curve25519"; - version = "0.1.0"; - src = fetchHex { - pkg = "curve25519"; - version = "0.1.0"; - sha256 = - "786f9ede0aa9503f65015c19d9cd1b9263c5e7523cd215ee23d6d94ba16473d1"; - }; - - meta = { - description = ''Curve25519 Diffie-Hellman functions''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/mwmiller/curve25519_ex"; - }; - } // packageOverrides) - ) {}; - - curve25519 = curve25519_0_1_0; - - cushion_0_0_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, httpotion_2_2_2 }: - buildMix ({ - name = "cushion"; - version = "0.0.3"; - src = fetchHex { - pkg = "cushion"; - version = "0.0.3"; - sha256 = - "1371ab210bd3b7ef7381dbe3f53fedb8afbbb0c562f45d614e4849373919482b"; - }; - beamDeps = [ httpotion_2_2_2 ]; - - meta = { - longDescription = ''A really simple Buffer API client for sending - updates. Right now it only supports sending text - updates, but hopefully will support more in the - future.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/ryanbillingsley/cushion"; - }; - } // packageOverrides) - ) {}; - - cushion = cushion_0_0_3; - - custom_base_0_2_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "custom_base"; - version = "0.2.0"; - src = fetchHex { - pkg = "custom_base"; - version = "0.2.0"; - sha256 = - "d7c26409eb22b00d69f591fd89cc4e84550656862c655c7ae3edf63f7381899b"; - }; - - meta = { - description = ''Allow you to make custom base conversion in - Elixir.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/igas/custom_base"; - }; - } // packageOverrides) - ) {}; - - custom_base = custom_base_0_2_0; - - cuttlefish_2_0_7 = callPackage - ( - { - buildRebar3, - packageOverrides ? {}, - fetchHex, - lager_3_0_2, - getopt_0_8_2 - }: - buildRebar3 ({ - name = "cuttlefish"; - version = "2.0.7"; - src = fetchHex { - pkg = "cuttlefish"; - version = "2.0.7"; - sha256 = - "57589747ba40a75c53872002cd251a2933102457cdcc99b8ed72823ba1288869"; - }; - - beamDeps = [ lager_3_0_2 getopt_0_8_2 ]; - - meta = { - description = ''cuttlefish configuration abstraction''; - license = stdenv.lib.licenses.apsl20; - homepage = "https://github.com/tsloughter/cuttlefish"; - }; - } // packageOverrides) - ) {}; - - cuttlefish = cuttlefish_2_0_7; - - cypher_query_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "cypher_query"; - version = "0.0.1"; - src = fetchHex { - pkg = "cypher_query"; - version = "0.0.1"; - sha256 = - "068bee4f13275d3448a4676bf113d5b2e414b47a9f84bb6e1614a009104c3f30"; - }; - - meta = { - description = ''A dumb string-based query builder for neo4j - Cypher queries''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/collin/cypher_query"; - }; - } // packageOverrides) - ) {}; - - cypher_query = cypher_query_0_0_1; - - damm_0_1_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "damm"; - version = "0.1.0"; - src = fetchHex { - pkg = "damm"; - version = "0.1.0"; - sha256 = - "2d2d0adbf0ffe5888d0aaee784a25b3bb9b99acf33b6de350aee9f58c588cbd5"; - }; - - meta = { - description = ''Damm algorithm implementation''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/mururu/damm"; - }; - } // packageOverrides) - ) {}; - - damm = damm_0_1_0; - - data_leaf_walker_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "data_leaf_walker"; - version = "0.1.0"; - src = fetchHex { - pkg = "data_leaf_walker"; - version = "0.1.0"; - sha256 = - "9d3a8688c3751765453f04e8f60f3826757396dce66baf7e2cf7335c9c373bbd"; - }; - - meta = { - longDescription = ''Traverse and map values of deeply nested data - structures: Provides a `map_deeply/2` function - for Maps and Lists and Keyword Lists''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/gutschilla/elixir-map-deeply"; - }; - } // packageOverrides) - ) {}; - - data_leaf_walker = data_leaf_walker_0_1_0; - - data_pool_1_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, e_queue_1_0_1 }: - buildMix ({ - name = "data_pool"; - version = "1.0.1"; - src = fetchHex { - pkg = "data_pool"; - version = "1.0.1"; - sha256 = - "ad5a2bdf81215d71e47f87624142f58d32a808ea98f4837fc1d28dc971124613"; - }; - beamDeps = [ e_queue_1_0_1 ]; - - meta = { - longDescription = ''Utility to buffer items into a queue that - follow a simple block pattern on calls to push - and pop when the queue at a max size or - empty.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/benfalk/data_pool"; - }; - } // packageOverrides) - ) {}; - - data_pool = data_pool_1_0_1; - - database_url_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "database_url"; - version = "0.1.0"; - src = fetchHex { - pkg = "database_url"; - version = "0.1.0"; - sha256 = - "273c8c926761d5716fee17c8a8494583d729a4419e30479a292eb6cea3d9a756"; - }; - - meta = { - description = ''Parse database URL and renturn keyword list for - use with Ecto.''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/s-m-i-t-a/database_url"; - }; - } // packageOverrides) - ) {}; - - database_url = database_url_0_1_0; - - datastructures_0_2_5 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "datastructures"; - version = "0.2.5"; - src = fetchHex { - pkg = "datastructures"; - version = "0.2.5"; - sha256 = - "ef4387043ecaa635995832f32473e8b6708044a6bc73983168eee4ab71b01f92"; - }; - - meta = { - description = ''Elixir protocols and implementations for various - data structures.''; - license = stdenv.lib.licenses.wtfpl; - homepage = "https://github.com/meh/elixir-datastructures"; - }; - } // packageOverrides) - ) {}; - - datastructures = datastructures_0_2_5; - - dbg_1_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "dbg"; - version = "1.0.1"; - src = fetchHex { - pkg = "dbg"; - version = "1.0.1"; - sha256 = - "866159f496a1ad9b959501f16db3d1338bb6cef029a75a67ca5615d25b38345f"; - }; - - meta = { - description = ''Distributed tracing''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/fishcakez/dbg"; - }; - } // packageOverrides) - ) {}; - - dbg = dbg_1_0_1; - - dbux_1_0_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, connection_1_0_2 }: - buildMix ({ - name = "dbux"; - version = "1.0.3"; - src = fetchHex { - pkg = "dbux"; - version = "1.0.3"; - sha256 = - "79d01f620dd32ec4ed11423e0724bf7d8a46353e56f8d28cbdbf499a352caa1e"; - }; - beamDeps = [ connection_1_0_2 ]; - - meta = { - description = ''Bindings for the D-Bus IPC protocol.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/mspanc/dbux"; - }; - } // packageOverrides) - ) {}; - - dbux = dbux_1_0_3; - - dealer_0_8_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - httpoison_0_8_3 - }: - buildMix ({ - name = "dealer"; - version = "0.8.0"; - src = fetchHex { - pkg = "dealer"; - version = "0.8.0"; - sha256 = - "c8c72d38e1cff6a181a6b6f627fb6fd5998279827519e598eb28bcef2be721ee"; - }; - beamDeps = [ poison_1_5_2 httpoison_0_8_3 ]; - - meta = { - description = ''An API Client for Stockfighter.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/larrylv/dealer"; - }; - } // packageOverrides) - ) {}; - - dealer = dealer_0_8_0; - - decimal_1_1_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "decimal"; - version = "1.1.2"; - src = fetchHex { - pkg = "decimal"; - version = "1.1.2"; - sha256 = - "7a6dfa1f4d389497acd7b807bf38c55022487c68b73d339d5114e3a691e006c5"; - }; - - meta = { - description = ''Arbitrary precision decimal arithmetic for - Elixir.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/ericmj/decimal"; - }; - } // packageOverrides) - ) {}; - - decimal = decimal_1_1_2; - - decimal_arithmetic_0_1_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, decimal_1_1_2 }: - buildMix ({ - name = "decimal_arithmetic"; - version = "0.1.1"; - src = fetchHex { - pkg = "decimal_arithmetic"; - version = "0.1.1"; - sha256 = - "b9c5dc722cc770aa5b905418d56e23eaa16e64659da0ccb552341a75068e0cfe"; - }; - beamDeps = [ decimal_1_1_2 ]; - - meta = { - description = ''Extended arithmetic for Decimal library.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/jacek-adamek/decimal_arithmetic"; - }; - } // packageOverrides) - ) {}; - - decimal_arithmetic = decimal_arithmetic_0_1_1; - - decks_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "decks"; - version = "0.0.1"; - src = fetchHex { - pkg = "decks"; - version = "0.0.1"; - sha256 = - "de75b96c66f23c365935949ec53efab1f2f5d187803c26d733dd3b2df535af7d"; - }; - - meta = { - description = ''Implements standard card decks for Elixir-based - card games.''; - - }; - } // packageOverrides) - ) {}; - - decks = decks_0_0_1; - - decoction_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "decoction"; - version = "0.0.1"; - src = fetchHex { - pkg = "decoction"; - version = "0.0.1"; - sha256 = - "cdf7ad35cdf87962e153bb56d9c68f8dd061469d58cae8923cbdcd2980d7adc0"; - }; - - meta = { - description = ''Decoction is a static site generator written in - Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/aarvay/decoction"; - }; - } // packageOverrides) - ) {}; - - decoction = decoction_0_0_1; - - defmemo_0_1_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "defmemo"; - version = "0.1.1"; - src = fetchHex { - pkg = "defmemo"; - version = "0.1.1"; - sha256 = - "8fefc49ff64b06fdb1ee15292419c16919a7a3c6b8e5cac6afd7a13919715e0f"; - }; - - meta = { - description = '' A memoization macro (defmemo) for elixir using a - genserver backing store. ''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/os6sense/DefMemo"; - }; - } // packageOverrides) - ) {}; - - defmemo = defmemo_0_1_1; - - delayed_otp_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "delayed_otp"; - version = "0.0.2"; - src = fetchHex { - pkg = "delayed_otp"; - version = "0.0.2"; - sha256 = - "22fe457d78fe1f216dcfca8c84431ac1f31e93267fdd563a5ca86c8289e2620f"; - }; - - meta = { - longDescription = ''Delay death of supervisor children or - gen_server : for instance Erlang supervisor with - exponential backoff restart strategy.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/awetzel/delayed_otp"; - }; - } // packageOverrides) - ) {}; - - delayed_otp = delayed_otp_0_0_2; - - delegate_behaviour_0_1_5 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "delegate_behaviour"; - version = "0.1.5"; - src = fetchHex { - pkg = "delegate_behaviour"; - version = "0.1.5"; - sha256 = - "d46e9c39d5be4e6b1ee62a9419d1a44d138aca5af0161f42f78b4eb24659ca58"; - }; - - meta = { - description = ''Macros to define modules that delegate to - concrete implementations of behaviours''; - license = stdenv.lib.licenses.mit; - }; - } // packageOverrides) - ) {}; - - delegate_behaviour = delegate_behaviour_0_1_5; - - deltek_0_0_4 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - sweet_xml_0_6_1, - html_entities_0_3_0 - }: - buildMix ({ - name = "deltek"; - version = "0.0.4"; - src = fetchHex { - pkg = "deltek"; - version = "0.0.4"; - sha256 = - "274eecc6aba76e19e30e5850746ee81241ac8cc334d9729588b2ba770ac53988"; - }; - beamDeps = [ sweet_xml_0_6_1 html_entities_0_3_0 ]; - - meta = { - description = ''An Elixir wrapper for the SOAP Deltek API''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/lucidstack/elixir-deltek"; - }; - } // packageOverrides) - ) {}; - - deltek = deltek_0_0_4; - - demacro_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "demacro"; - version = "0.0.1"; - src = fetchHex { - pkg = "demacro"; - version = "0.0.1"; - sha256 = - "e2a83d48f6b3e03764baf2e149dd5420e632d0d4daa77c5226697a3755a89d16"; - }; - meta = { }; - } // packageOverrides) - ) {}; - - demacro = demacro_0_0_1; - - depcache_1_2_2 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "depcache"; - version = "1.2.2"; - src = fetchHex { - pkg = "depcache"; - version = "1.2.2"; - sha256 = - "0e70807140d485f1bf5ac50cd9a87b71ba5c5496a8ad02029847e569af80ed91"; - }; - - meta = { - description = ''In-memory cache with cache key dependencies''; - license = stdenv.lib.licenses.apsl20; - homepage = "https://github.com/zotonic/depcache"; - }; - } // packageOverrides) - ) {}; - - depcache = depcache_1_2_2; - - deppie_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "deppie"; - version = "1.0.0"; - src = fetchHex { - pkg = "deppie"; - version = "1.0.0"; - sha256 = - "6712dbae54f274d7f4f92979d82cec2d4636a0598e2474e47b190fc3c0ed378a"; - }; - - meta = { - description = ''Elixir`s coolest deprecation logger''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/zackehh/deppie"; - }; - } // packageOverrides) - ) {}; - - deppie = deppie_1_0_0; - - detergent_0_3_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "detergent"; - version = "0.3.0"; - src = fetchHex { - pkg = "detergent"; - version = "0.3.0"; - sha256 = - "510cfb5d35b4b344762f074b73c8696b4bdde654ea046b3365cf92760ae33362"; - }; - - meta = { - description = ''An emulsifying Erlang SOAP library''; - license = with stdenv.lib.licenses; [ unlicense bsd3 ]; - homepage = "https://github.com/devinus/detergent"; - }; - } // packageOverrides) - ) {}; - - detergent = detergent_0_3_0; - - detergentex_0_0_7 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, detergent_0_3_0 }: - buildMix ({ - name = "detergentex"; - version = "0.0.7"; - src = fetchHex { - pkg = "detergentex"; - version = "0.0.7"; - sha256 = - "6bb1bc2fe9228f97e512ef012c473ed822263dc38c3dbaa727fcd111ce1c4771"; - }; - beamDeps = [ detergent_0_3_0 ]; - - meta = { - description = ''Elixir binding to Detergent erlang library used - to call WSDL SOAP Services''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/r-icarus/detergentex"; - }; - } // packageOverrides) - ) {}; - - detergentex = detergentex_0_0_7; - - deviant_elixir_0_0_4 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - httpoison_0_8_3, - feeder_ex_0_0_2 - }: - buildMix ({ - name = "deviant_elixir"; - version = "0.0.4"; - src = fetchHex { - pkg = "deviant_elixir"; - version = "0.0.4"; - sha256 = - "42473969889a47edab66384988e70ab6b4da158043e9231deab822743e3d9943"; - }; - beamDeps = [ httpoison_0_8_3 feeder_ex_0_0_2 ]; - - meta = { - longDescription = ''WIP. Unstable alpha. Elixir API wrapper for - Deviant Art. At this moment provides only RSS - feeds intergac.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/vdaniuk/deviant-elixir"; - }; - } // packageOverrides) - ) {}; - - deviant_elixir = deviant_elixir_0_0_4; - - dflow_0_1_5 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "dflow"; - version = "0.1.5"; - src = fetchHex { - pkg = "dflow"; - version = "0.1.5"; - sha256 = - "f08e73f22d4c620ef5f358a0b40f8fe3b91219ca3922fbdbe7e42f1cb58f737e"; - }; - - meta = { - description = ''Pipelined flow processing engine''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/dalmatinerdb/dflow"; - }; - } // packageOverrides) - ) {}; - - dflow = dflow_0_1_5; - - di_0_1_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "di"; - version = "0.1.0"; - src = fetchHex { - pkg = "di"; - version = "0.1.0"; - sha256 = - "d7a89568c986c98399667faeb618d5cc42a89965717e758323aa5370d1547260"; - }; - beamDeps = [ poison_2_1_0 httpoison_0_8_3 ]; - - meta = { - description = ''Elixir wrapper for DI.FM''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/JoshuaThompson/di"; - }; - } // packageOverrides) - ) {}; - - di = di_0_1_0; - - dialyxir_0_3_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "dialyxir"; - version = "0.3.3"; - src = fetchHex { - pkg = "dialyxir"; - version = "0.3.3"; - sha256 = - "8851d7c582ce9db43b0564f026b2f6a461df62e139a7891fde50f9b6a7fc496c"; - }; - - meta = { - description = ''Mix tasks to simplify use of Dialyzer in Elixir - projects.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/jeremyjh/dialyxir"; - }; - } // packageOverrides) - ) {}; - - dialyxir = dialyxir_0_3_3; - - dialyze_0_2_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "dialyze"; - version = "0.2.1"; - src = fetchHex { - pkg = "dialyze"; - version = "0.2.1"; - sha256 = - "f485181fa53229356621261a384963cb47511cccf1454e82ca4fde53274fcd48"; - }; - - meta = { - description = ''Dialyzer Mix task''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/fishcakez/dialyze"; - }; - } // packageOverrides) - ) {}; - - dialyze = dialyze_0_2_1; - - dice_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "dice"; - version = "0.0.1"; - src = fetchHex { - pkg = "dice"; - version = "0.0.1"; - sha256 = - "975795636d6374bf120669cdbd6008a64bdd193a2ff202ffbdeefaa03d11bb9c"; - }; - - meta = { - description = ''Library and CLI app for rolling dice ''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/stocks29/dice"; - }; - } // packageOverrides) - ) {}; - - dice = dice_0_0_1; - - dice_roller_1_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "dice_roller"; - version = "1.1.0"; - src = fetchHex { - pkg = "dice_roller"; - version = "1.1.0"; - sha256 = - "90e3485951605338f23686dcc001599354cb6eff7df851b1a1f6514b1c7fbd5c"; - }; - - meta = { - description = ''An Elixir library for simulating dice rolls''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/KevinGreene/DiceRoller"; - }; - } // packageOverrides) - ) {}; - - dice_roller = dice_roller_1_1_0; - - dicon_0_4_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "dicon"; - version = "0.4.0"; - src = fetchHex { - pkg = "dicon"; - version = "0.4.0"; - sha256 = - "d6a5c56e376b13dcfd721bc2571fbabcb41409ac5f2b8fa243a0f14393e6b145"; - }; - - meta = { - description = ''Simple release deliverer for Elixir''; - license = stdenv.lib.licenses.isc; - homepage = "https://github.com/lexmag/dicon"; - }; - } // packageOverrides) - ) {}; - - dicon = dicon_0_4_0; - - diff_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "diff"; - version = "1.0.0"; - src = fetchHex { - pkg = "diff"; - version = "1.0.0"; - sha256 = - "0dbd7abbf558031ccb8d703c751a20349326191026b07b53f4a3c603817728fb"; - }; - - meta = { - description = ''A simple diff library''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/bryanjos/diff"; - }; - } // packageOverrides) - ) {}; - - diff = diff_1_0_0; - - digoc_0_3_3 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_3_1, - httpoison_0_8_3 - }: - buildMix ({ - name = "digoc"; - version = "0.3.3"; - src = fetchHex { - pkg = "digoc"; - version = "0.3.3"; - sha256 = - "23d5c2f1b977b1f3e12567879a20bc211898efdfcac9a0b6802324bc42ea0605"; - }; - beamDeps = [ poison_1_3_1 httpoison_0_8_3 ]; - - meta = { - description = ''An Elixir client for the Digital Ocean API v2.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/kevinmontuori/digoc"; - }; - } // packageOverrides) - ) {}; - - digoc = digoc_0_3_3; - - dir_walker_0_0_6 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "dir_walker"; - version = "0.0.6"; - src = fetchHex { - pkg = "dir_walker"; - version = "0.0.6"; - sha256 = - "5bf891b970cca8df7d6e7d94857c508d2f5b48c615903427edbcbc483358fc92"; - }; - - meta = { - longDescription = ''DirWalker lazily traverses one or more - directory trees, depth first, returning - successive file names. Initialize the walker - using {:ok, walker} = DirWalker.start_link(path) - # or [path, path...] Then return the next `n` - path names using paths = DirWalker.next(walker - <, n \\ 1>) Successive calls to `next` will - return successive file names, until all file - names have been returned. These methods have - also been wrapped into a Stream resource. paths - = DirWalker.stream(path) # or [path,path...] ''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/pragdave/dir_walker"; - }; - } // packageOverrides) - ) {}; - - dir_walker = dir_walker_0_0_6; - - disc_union_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "disc_union"; - version = "0.1.0"; - src = fetchHex { - pkg = "disc_union"; - version = "0.1.0"; - sha256 = - "017f5532d1b444f3e0950771a80ed34b82aa405ca650174529706b8587ea23da"; - }; - - meta = { - description = ''Discriminated unions for Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/X4lldux/disc_union"; - }; - } // packageOverrides) - ) {}; - - disc_union = disc_union_0_1_0; - - discourse_as_sso_erlang_0_7_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex, cowlib_1_3_0 }: - buildRebar3 ({ - name = "discourse_as_sso_erlang"; - version = "0.7.0"; - src = fetchHex { - pkg = "discourse_as_sso_erlang"; - version = "0.7.0"; - sha256 = - "be569178e6b0cb49d3fc48457b5233f9e82dc447bd452e5708a071412c24bc2d"; - }; - - beamDeps = [ cowlib_1_3_0 ]; - - meta = { - longDescription = ''Low-level erlang library to encode/decode - payloads for using the forum software Discourse - as an SSO endpoint.''; - license = stdenv.lib.licenses.apsl20; - homepage = - "https://github.com/reverendpaco/discourse-as-sso-erlang"; - }; - } // packageOverrides) - ) {}; - - discourse_as_sso_erlang = discourse_as_sso_erlang_0_7_0; - - dismake_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "dismake"; - version = "1.0.0"; - src = fetchHex { - pkg = "dismake"; - version = "1.0.0"; - sha256 = - "7eeff4a362ed4b4250e4090caa6861ee7b27a524919f574b9f836067b63ac058"; - }; - - meta = { - description = ''Dismake is a \"compiler\" (as in Mix.compilers) - that just runs make. ''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/jarednorman/dismake"; - }; - } // packageOverrides) - ) {}; - - dismake = dismake_1_0_0; - - distance_0_2_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "distance"; - version = "0.2.1"; - src = fetchHex { - pkg = "distance"; - version = "0.2.1"; - sha256 = - "847cf16e80c6905adc7f359b845358bbfbeb3383459f2bc1e9b310cfa1e917ec"; - }; - - meta = { - description = ''Various distance functions for geometric or - geographic calculations''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/pkinney/distance"; - }; - } // packageOverrides) - ) {}; - - distance = distance_0_2_1; - - distancex_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, poison_1_5_2 }: - buildMix ({ - name = "distancex"; - version = "0.1.0"; - src = fetchHex { - pkg = "distancex"; - version = "0.1.0"; - sha256 = - "62d78de83026d809dc93c1ea92452cffc6e905f157e9dfa25cbc51b44e54d6f4"; - }; - beamDeps = [ poison_1_5_2 ]; - - meta = { - longDescription = ''Elixir-wrapper for Google Directions API. Can - return the drive time and driving distance - between two places.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/vysakh0/distancex"; - }; - } // packageOverrides) - ) {}; - - distancex = distancex_0_1_0; - - diver_0_1_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "diver"; - version = "0.1.1"; - src = fetchHex { - pkg = "diver"; - version = "0.1.1"; - sha256 = - "6860e05da87741be919e0b4264178e0ca1b50a108bcaeb1a2a51c9e1726d3079"; - }; - - meta = { - longDescription = ''A HBase driver for Erlang/Elixir using - jinterface and the Asynchbase Java client to - query the database. ''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/novabyte/diver"; - }; - } // packageOverrides) - ) {}; - - diver = diver_0_1_1; - - dlist_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "dlist"; - version = "0.0.1"; - src = fetchHex { - pkg = "dlist"; - version = "0.0.1"; - sha256 = - "51c9d4a9e02c9a8892450876939d1e18b7f9ae78b237a683f0efad47d46e5f9a"; - }; - - meta = { - description = ''Deque implementations ''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/stocks29/dlist.git"; - }; - } // packageOverrides) - ) {}; - - dlist = dlist_0_0_1; - - dnsimple_0_1_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "dnsimple"; - version = "0.1.0"; - src = fetchHex { - pkg = "dnsimple"; - version = "0.1.0"; - sha256 = - "f10326124aeabcfdcb388100d480413314609cbabfa5de31d0c486150ab28ebc"; - }; - beamDeps = [ poison_2_1_0 httpoison_0_8_3 ]; - - meta = { - description = ''An (experimental) Elixir client for the DNSimple - API v2.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/aetrion/dnsimple-elixir"; - }; - } // packageOverrides) - ) {}; - - dnsimple = dnsimple_0_1_0; - - doc_first_formatter_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "doc_first_formatter"; - version = "0.0.2"; - src = fetchHex { - pkg = "doc_first_formatter"; - version = "0.0.2"; - sha256 = - "88500d55349571173f88d0f691e1ac7908b9663bfc06f9f0862e60ea8378313c"; - }; - - meta = { - longDescription = ''An ExUnit formatter that puts a list of tests - first, distinguishes pending from failed tests, - and saves detailed error information for once - the test suite is finished.''; - license = stdenv.lib.licenses.apsl20; - homepage = "https://github.com/bkerley/doc_first_formatter"; - }; - } // packageOverrides) - ) {}; - - doc_first_formatter = doc_first_formatter_0_0_2; - - doc_plug_1_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, plug_1_1_5 }: - buildMix ({ - name = "doc_plug"; - version = "1.0.2"; - src = fetchHex { - pkg = "doc_plug"; - version = "1.0.2"; - sha256 = - "2813f85dcd4f7228d54c277898d3d7483d03ef27ed4f9abc9eae6f57b00e79b8"; - }; - beamDeps = [ plug_1_1_5 ]; - - meta = { - description = ''Plug to automatically generate and serve project - documentation.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/hild/doc_plug"; - }; - } // packageOverrides) - ) {}; - - doc_plug = doc_plug_1_0_2; - - dogma_0_1_6 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, poison_2_1_0 }: - buildMix ({ - name = "dogma"; - version = "0.1.6"; - src = fetchHex { - pkg = "dogma"; - version = "0.1.6"; - sha256 = - "cd50b91d8b9ef53ee688d1e437bf4b186ec6bc6e922de7dbf7a7df7aea6dde45"; - }; - beamDeps = [ poison_2_1_0 ]; - - meta = { - description = ''A code style linter for Elixir, powered by - shame.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/lpil/dogma"; - }; - } // packageOverrides) - ) {}; - - dogma = dogma_0_1_6; - - dogstatsd_0_0_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "dogstatsd"; - version = "0.0.3"; - src = fetchHex { - pkg = "dogstatsd"; - version = "0.0.3"; - sha256 = - "4632886c61e928f57359790ad345d3cc58c37b0f82fb7d35d485a8e2385cf887"; - }; - - meta = { - description = ''A client for DogStatsd, an extension of the - StatsD metric server for Datadog.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/adamkittelson/dogstatsd-elixir"; - }; - } // packageOverrides) - ) {}; - - dogstatsd = dogstatsd_0_0_3; - - dogstatsde_0_6_0 = callPackage - ( - { - buildRebar3, - packageOverrides ? {}, - fetchHex, - worker_pool_1_0_4, - stillir_1_0_0 - }: - buildRebar3 ({ - name = "dogstatsde"; - version = "0.6.0"; - src = fetchHex { - pkg = "dogstatsde"; - version = "0.6.0"; - sha256 = - "7d24f8a5573fcbdc3f072ff93685e5277900236df4a7d49d73d8579cf566eb45"; - }; - - beamDeps = [ worker_pool_1_0_4 stillir_1_0_0 ]; - - meta = { - description = ''Send StatsD metrics to Datadog''; - license = stdenv.lib.licenses.free; - homepage = "https://github.com/WhoopInc/dogstatsde"; - }; - } // packageOverrides) - ) {}; - - dogstatsde = dogstatsde_0_6_0; - - domainr_0_0_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "domainr"; - version = "0.0.1"; - src = fetchHex { - pkg = "domainr"; - version = "0.0.1"; - sha256 = - "f66ccfe9fdc6b388ce7633974313826f9acffe96b4b369bb904d519e4aa26039"; - }; - beamDeps = [ poison_2_1_0 httpoison_0_8_3 ]; - - meta = { - longDescription = ''Domainr is an [Domainr wrapper - for](https://domainr.build) in Elixir that makes - it easy to search and find available domains and - TLDs.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/e-fu/domainr"; - }; - } // packageOverrides) - ) {}; - - domainr = domainr_0_0_1; - - doorman_0_0_3 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - plug_1_1_5, - comeonin_2_4_0 - }: - buildMix ({ - name = "doorman"; - version = "0.0.3"; - src = fetchHex { - pkg = "doorman"; - version = "0.0.3"; - sha256 = - "07c9e7569ec6a8bf26702b6d6a201840b4e11213c5dc42aaecd23d2e169b8c85"; - }; - beamDeps = [ plug_1_1_5 comeonin_2_4_0 ]; - - meta = { - description = ''Tools to make Elixir authentication simple and - flexible''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/BlakeWilliams/doorman"; - }; - } // packageOverrides) - ) {}; - - doorman = doorman_0_0_3; - - dot_0_0_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "dot"; - version = "0.0.3"; - src = fetchHex { - pkg = "dot"; - version = "0.0.3"; - sha256 = - "3411bf1f70bb8ea0caa64515054a4a161b711667a5cdb0e7c14e766ce04b06ae"; - }; - meta = { }; - } // packageOverrides) - ) {}; - - dot = dot_0_0_3; - - dot_notes_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "dot_notes"; - version = "1.0.0"; - src = fetchHex { - pkg = "dot_notes"; - version = "1.0.0"; - sha256 = - "0689a006ca36716eadac9f8f83699aff6d56520a15403610d08e2f397fd60996"; - }; - - meta = { - description = ''Simple dot/bracket notation parsing/conversion - for Maps/Lists''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/zackehh/dot-notes-elixir"; - }; - } // packageOverrides) - ) {}; - - dot_notes = dot_notes_1_0_0; - - dotenv_2_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "dotenv"; - version = "2.1.0"; - src = fetchHex { - pkg = "dotenv"; - version = "2.1.0"; - sha256 = - "caddac72cac4955ae346306b210608dd6cf380a439b4e18bcdc3d6021f3e4d6b"; - }; - - meta = { - description = ''A port of dotenv to Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/avdi/dotenv_elixir"; - }; - } // packageOverrides) - ) {}; - - dotenv = dotenv_2_1_0; - - dovetail_0_0_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "dovetail"; - version = "0.0.3"; - src = fetchHex { - pkg = "dovetail"; - version = "0.0.3"; - sha256 = - "01b6c3085ebb9cb7d43115c7a2d9780a840017e521daeb7d0a2233f61f8b0306"; - }; - - meta = { - description = ''Dovetail provides a harness for running test - dovecot servers.''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/thusfresh/dovetail"; - }; - } // packageOverrides) - ) {}; - - dovetail = dovetail_0_0_3; - - dp_decoder_0_2_1 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "dp_decoder"; - version = "0.2.1"; - src = fetchHex { - pkg = "dp_decoder"; - version = "0.2.1"; - sha256 = - "66449f7691e4f4c8041d82d910c2c86b8ec1bdc6dd2b008d9b9169fda86b22e0"; - }; - - meta = { - description = ''Collection of decoders for different metric - protocols''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/dalmatinerdb/dp_decoder"; - }; - } // packageOverrides) - ) {}; - - dp_decoder = dp_decoder_0_2_1; - - dqe_idx_0_1_18 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "dqe_idx"; - version = "0.1.18"; - src = fetchHex { - pkg = "dqe_idx"; - version = "0.1.18"; - sha256 = - "6af4897e3e5fdff5055179dd765778450cdf8a43c61b5e2a2aeec483c4309c6c"; - }; - - meta = { - description = ''Dalmatiner QE indexing''; - license = stdenv.lib.licenses.mit; - }; - } // packageOverrides) - ) {}; - - dqe_idx = dqe_idx_0_1_18; - - druuid_0_3_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "druuid"; - version = "0.3.0"; - src = fetchHex { - pkg = "druuid"; - version = "0.3.0"; - sha256 = - "238dfa36cbb4f1277e44cd9ed5900ff3045c4c19724412bb94173ed2659d0ec8"; - }; - - meta = { - longDescription = ''Date-relative (and relatively universally - unique) UUID generation. Based on - https://github.com/recurly/druuid''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/bhelx/druuid"; - }; - } // packageOverrides) - ) {}; - - druuid = druuid_0_3_0; - - dublin_bus_api_0_1_8 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - httpoison_0_8_3, - floki_0_8_1 - }: - buildMix ({ - name = "dublin_bus_api"; - version = "0.1.8"; - src = fetchHex { - pkg = "dublin_bus_api"; - version = "0.1.8"; - sha256 = - "b373da947594dfc4b3a2ef11e77f7e3a1ce7875d6aab90fc39a4f285b1e77e63"; - }; - beamDeps = [ httpoison_0_8_3 floki_0_8_1 ]; - - meta = { - description = ''Access to the Real Time Passenger Information - (RTPI) for Dublin Bus services.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/carlo-colombo/dublin-bus-api"; - }; - } // packageOverrides) - ) {}; - - dublin_bus_api = dublin_bus_api_0_1_8; - - duckduckgo_0_1_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "duckduckgo"; - version = "0.1.0"; - src = fetchHex { - pkg = "duckduckgo"; - version = "0.1.0"; - sha256 = - "349fd4b837634507a8e11280c244b064d1eb4e0d3333994f79e5341eec522c2f"; - }; - beamDeps = [ poison_2_1_0 httpoison_0_8_3 ]; - - meta = { - description = ''An Elixir client for the DuckDuckGo Instant - Answer API.''; - license = stdenv.lib.licenses.isc; - homepage = "https://github.com/pjhampton/DuckDuckElixir"; - }; - } // packageOverrides) - ) {}; - - duckduckgo = duckduckgo_0_1_0; - - durga_transport_1_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "durga_transport"; - version = "1.0.1"; - src = fetchHex { - pkg = "durga_transport"; - version = "1.0.1"; - sha256 = - "42db857eba0e78c4eb15823b5137e8ccad13711cc2c873b6f1b469c4c0771009"; - }; - meta = { }; - } // packageOverrides) - ) {}; - - durga_transport = durga_transport_1_0_1; - - dye_0_4_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "dye"; - version = "0.4.0"; - src = fetchHex { - pkg = "dye"; - version = "0.4.0"; - sha256 = - "95c11e5baafc79531f37bee1256066a8fef63739707723ac1e349739a3217003"; - }; - - meta = { - description = ''Dyeing your terminal!''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/Kabie/dye"; - }; - } // packageOverrides) - ) {}; - - dye = dye_0_4_0; - - dynamic_compile_1_0_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "dynamic_compile"; - version = "1.0.0"; - src = fetchHex { - pkg = "dynamic_compile"; - version = "1.0.0"; - sha256 = - "eb73d8e9a6334914f79c15ee8214acad9659c42222d49beda3e8b6f6789a980a"; - }; - - meta = { - description = ''compile and load erlang modules from string - input''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/okeuday/dynamic_compile"; - }; - } // packageOverrides) - ) {}; - - dynamic_compile = dynamic_compile_1_0_0; - - e2qc_0_1_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "e2qc"; - version = "0.1.0"; - src = fetchHex { - pkg = "e2qc"; - version = "0.1.0"; - sha256 = - "3a97f9b3c60ec723002a816c041ac224dc5aba3360bd922c5e38cfd40f59c65b"; - }; - compilePorts = true; - buildPlugins = [ pc ]; - - - meta = { - description = ''2q cache''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/project-fifo/e2qc"; - }; - } // packageOverrides) - ) {}; - - e2qc = e2qc_0_1_0; - - e_queue_1_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "e_queue"; - version = "1.0.1"; - src = fetchHex { - pkg = "e_queue"; - version = "1.0.1"; - sha256 = - "aff37843191c1229ec49d0d067b18d5e0871a28fe049a4a82c7884e66320b7e8"; - }; - - meta = { - longDescription = ''An Elixir wrapper around the Erlang optimized - `queue` that supports the FIFO, first-in - first-out, pattern. This is useful is when you - can`t predict when an item needs to be taken or - added to the queue. Use this instead of using - `++` or double reversing lists to add items to - the \"back\" of a queue.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/benfalk/e_queue"; - }; - } // packageOverrides) - ) {}; - - e_queue = e_queue_1_0_1; - - e_quip_0_0_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "e_quip"; - version = "0.0.1"; - src = fetchHex { - pkg = "e_quip"; - version = "0.0.1"; - sha256 = - "e6fe9eeb96dbc863b527a792e730ea41aea43caef2a5db68ea2c4c9fc21f552a"; - }; - beamDeps = [ poison_2_1_0 httpoison_0_8_3 ]; - - meta = { - description = ''Simple Quip API Client''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/mmartinson/e_quip"; - }; - } // packageOverrides) - ) {}; - - e_quip = e_quip_0_0_1; - - earmark_0_1_19 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "earmark"; - version = "0.1.19"; - src = fetchHex { - pkg = "earmark"; - version = "0.1.19"; - sha256 = - "db85f989ba3030d40d3a901d7eebbf926ee07355bf6113d730b8aaf9404a6bd7"; - }; - - meta = { - longDescription = ''Earmark is a pure-Elixir Markdown converter. - It is intended to be used as a library (just - call Earmark.to_html), but can also be used as a - command-line tool (just run mix escript.build - first). Output generation is pluggable.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/pragdave/earmark"; - }; - } // packageOverrides) - ) {}; - - earmark_0_2_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "earmark"; - version = "0.2.1"; - src = fetchHex { - pkg = "earmark"; - version = "0.2.1"; - sha256 = - "c86afb8d22a5aa8315afd4257c7512011c0c9a48b0fea43af7612836b958098b"; - }; - - meta = { - longDescription = ''Earmark is a pure-Elixir Markdown converter. - It is intended to be used as a library (just - call Earmark.to_html), but can also be used as a - command-line tool (just run mix escript.build - first). Output generation is pluggable.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/pragdave/earmark"; - }; - } // packageOverrides) - ) {}; - - earmark = earmark_0_2_1; - - eastar_0_4_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "eastar"; - version = "0.4.0"; - src = fetchHex { - pkg = "eastar"; - version = "0.4.0"; - sha256 = - "21a74b1ac6da2a24eb5e6e14e5537389dd671fa2fc94a4594e0e7ddcf4b4c87a"; - }; - - meta = { - longDescription = ''Eastar is a pure-Elixir implementation of A* - graph pathfinding algorithm. All graph - environment, like nodes connectivity, distance & - H-metric are abstracted away - you provide them - as functions.''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/herenowcoder/eastar"; - }; - } // packageOverrides) - ) {}; - - eastar = eastar_0_4_0; - - easy_server_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "easy_server"; - version = "0.0.1"; - src = fetchHex { - pkg = "easy_server"; - version = "0.0.1"; - sha256 = - "af9faac0c7c440cf04bbb5d1f8aea1fc00b0c60da384c8103fafdaf0df00a0bb"; - }; - - meta = { - description = ''Easier GenServer for Elixir''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/termoose/EasyServer"; - }; - } // packageOverrides) - ) {}; - - easy_server = easy_server_0_0_1; - - easypost_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, poison_1_5_2 }: - buildMix ({ - name = "easypost"; - version = "0.0.1"; - src = fetchHex { - pkg = "easypost"; - version = "0.0.1"; - sha256 = - "8339fcfb60a1d4833b99aa611d194bf1ae94f22509dc81cf90d07ee2db0e074e"; - }; - beamDeps = [ poison_1_5_2 ]; - - meta = { - description = ''Elixir Easypost Client''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/Dania02525/easypost"; - }; - } // packageOverrides) - ) {}; - - easypost = easypost_0_0_1; - - ec2_0_9_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, jsx_2_8_0 }: - buildMix ({ - name = "ec2"; - version = "0.9.1"; - src = fetchHex { - pkg = "ec2"; - version = "0.9.1"; - sha256 = - "ae857fe633bca078fd1ee54232dd3bc74566ff46b93aa53e38d74c546c3d9b6f"; - }; - beamDeps = [ jsx_2_8_0 ]; - - meta = { - description = ''helper library for working with aws ec2 - metadata''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/talentdeficit/ec2"; - }; - } // packageOverrides) - ) {}; - - ec2 = ec2_0_9_1; - - echo_0_2_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "echo"; - version = "0.2.0"; - src = fetchHex { - pkg = "echo"; - version = "0.2.0"; - sha256 = - "e03b37ada0457fbf3e91b2e721c9367b1590a17a5fb9be35672a46206309f1a4"; - }; - - meta = { - longDescription = ''A simple & highly extendable, - meta-notification system; Echo checks - notification preferences & dispatch - notifications to different adapters (ex. email, - logger, analytics, sms, etc.)''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/zmoshansky/echo"; - }; - } // packageOverrides) - ) {}; - - echo = echo_0_2_0; - - echo_bot_0_0_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - telegram_0_0_3, - poison_2_1_0, - gproc_0_5_0 - }: - buildMix ({ - name = "echo_bot"; - version = "0.0.2"; - src = fetchHex { - pkg = "echo_bot"; - version = "0.0.2"; - sha256 = - "f353984ab5ea36b423b2a18d788d5eeeb6ae45aca254129b99c5bbab9865b38c"; - }; - beamDeps = [ telegram_0_0_3 poison_2_1_0 gproc_0_5_0 ]; - - meta = { - description = ''A demo telegram bot''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/col/echo_bot"; - }; - } // packageOverrides) - ) {}; - - echo_bot = echo_bot_0_0_2; - - echonest_ex_0_0_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - httpoison_0_8_3 - }: - buildMix ({ - name = "echonest_ex"; - version = "0.0.2"; - src = fetchHex { - pkg = "echonest_ex"; - version = "0.0.2"; - sha256 = - "d8b3d7f2b04eb48b689877aaf9db30f33acea3ea02daca5aad8d105ac785bd98"; - }; - beamDeps = [ poison_1_5_2 httpoison_0_8_3 ]; - - meta = { - description = ''Echonest api wrapper for Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/desmondhume/echonest_ex"; - }; - } // packageOverrides) - ) {}; - - echonest_ex = echonest_ex_0_0_2; - - econfig_0_7_3 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "econfig"; - version = "0.7.3"; - src = fetchHex { - pkg = "econfig"; - version = "0.7.3"; - sha256 = - "bddff19a757209d3e98b6952897fbf8790f6cf33d9e5caf2501263ea4ad46e3c"; - }; - - meta = { - description = ''simple Erlang config handler using INI files''; - license = stdenv.lib.licenses.free; - homepage = "https://github.com/benoitc/econfig"; - }; - } // packageOverrides) - ) {}; - - econfig = econfig_0_7_3; - - ecs_0_3_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "ecs"; - version = "0.3.0"; - src = fetchHex { - pkg = "ecs"; - version = "0.3.0"; - sha256 = - "266fe69adcb3772352bc47b1312e00e8ec0a15a03c412be1b63b147a916f6156"; - }; - - meta = { - description = ''An experimental Entity-Component System (ECS) - game engine.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/joshforisha/ecs"; - }; - } // packageOverrides) - ) {}; - - ecs = ecs_0_3_0; - - ecto_audit_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "ecto_audit"; - version = "0.0.1"; - src = fetchHex { - pkg = "ecto_audit"; - version = "0.0.1"; - sha256 = - "04829a9670d4258b96c6218043093b68a1d3b03c37ee316a1c19366a59dbbd59"; - }; - - meta = { - description = ''Ecto extension to support auditing data changes - in your Schema.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/mattweldon/ecto_audit"; - }; - } // packageOverrides) - ) {}; - - ecto_audit = ecto_audit_0_0_1; - - ed25519_0_2_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "ed25519"; - version = "0.2.0"; - src = fetchHex { - pkg = "ed25519"; - version = "0.2.0"; - sha256 = - "ddd159c41eea85a2fc198a0a8ed06d69ef42b4657f7122610d5e0a5653d2ef03"; - }; - - meta = { - description = ''Ed25519 signature functions''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/mwmiller/ed25519_ex"; - }; - } // packageOverrides) - ) {}; - - ed25519 = ed25519_0_2_0; - - edib_0_7_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "edib"; - version = "0.7.0"; - src = fetchHex { - pkg = "edib"; - version = "0.7.0"; - sha256 = - "4ff16e9397a14d13a0a4bcef30634393999c24ed17e6f90817f5f115e09db5a2"; - }; - - meta = { - longDescription = ''Mix task to create a docker image of your - application release. More detailed information - about release image building at: - https://github.com/edib-tool/elixir-docker-image-builder''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/edib-tool/mix-edib"; - }; - } // packageOverrides) - ) {}; - - edib = edib_0_7_0; - - edip_0_4_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "edip"; - version = "0.4.3"; - src = fetchHex { - pkg = "edip"; - version = "0.4.3"; - sha256 = - "b0b9f34b2048b3f03c1f25b6dc60a1567b6f3ec8c6ad945de30dc313d7608800"; - }; - - meta = { - longDescription = ''Mix task to create a docker image of your - application release. More detailed information - about release image packaging at: - https://github.com/asaaki/elixir-docker-image-packager''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/asaaki/mix-edip"; - }; - } // packageOverrides) - ) {}; - - edip = edip_0_4_3; - - edown_0_7_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "edown"; - version = "0.7.0"; - src = fetchHex { - pkg = "edown"; - version = "0.7.0"; - sha256 = - "6d7365a7854cd724e8d1fd005f5faa4444eae6a87eb6df9b789b6e7f6f09110a"; - }; - - meta = { - description = ''Markdown generated from Edoc.''; - license = stdenv.lib.licenses.free; - homepage = "https://github.com/uwiger/edown"; - }; - } // packageOverrides) - ) {}; - - edown = edown_0_7_0; - - eeb_0_2_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - tzdata_0_1_201603, - timex_1_0_2, - plug_0_14_0, - earmark_0_1_19, - cowboy_1_0_4 - }: - buildMix ({ - name = "eeb"; - version = "0.2.0"; - src = fetchHex { - pkg = "eeb"; - version = "0.2.0"; - sha256 = - "0615ccea012507ae35f6f1f4f8a46eac6d9eceba0cdface2df5c0d70b7caddbc"; - }; - beamDeps = [ - tzdata_0_1_201603 - timex_1_0_2 - plug_0_14_0 - earmark_0_1_19 - cowboy_1_0_4 - ]; - - meta = { - description = ''Elixir extendable blog.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/aborn/eeb"; - }; - } // packageOverrides) - ) {}; - - eeb = eeb_0_2_0; - - efirebirdsql_0_1_1 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "efirebirdsql"; - version = "0.1.1"; - src = fetchHex { - pkg = "efirebirdsql"; - version = "0.1.1"; - sha256 = - "dff29bcd6f5f99baa18dd339c01f441b498030e88ac4a1d7c4524da79b0a4cb7"; - }; - - meta = { - description = ''Firebird Client''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/nakagami/efirebirdsql"; - }; - } // packageOverrides) - ) {}; - - efirebirdsql = efirebirdsql_0_1_1; - - egaugex_0_0_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - httpoison_0_8_3, - floki_0_8_1 - }: - buildMix ({ - name = "egaugex"; - version = "0.0.2"; - src = fetchHex { - pkg = "egaugex"; - version = "0.0.2"; - sha256 = - "307c0a21c196db45431e5472ad090548f956ccb0e02f97491fba07a2a52d0c51"; - }; - beamDeps = [ httpoison_0_8_3 floki_0_8_1 ]; - - meta = { - description = ''A simple egauge parser to retrieve and parse data - from egauge devices''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/Brightergy/egaugex"; - }; - } // packageOverrides) - ) {}; - - egaugex = egaugex_0_0_2; - - eh_0_2_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "eh"; - version = "0.2.0"; - src = fetchHex { - pkg = "eh"; - version = "0.2.0"; - sha256 = - "91013c78138c8854c5699ef42324e66286fed0048c4d4212c4dc3012d764c628"; - }; - - meta = { - description = ''Lookup Elixir documentation from the command line - ''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/Frost/eh.git"; - }; - } // packageOverrides) - ) {}; - - eh = eh_0_2_0; - - eight_ball_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "eight_ball"; - version = "0.0.1"; - src = fetchHex { - pkg = "eight_ball"; - version = "0.0.1"; - sha256 = - "1ba1b2b5f3dfaba751b51f101c3c526a09f0c989768f265e82a6a065447a6aa4"; - }; - - meta = { - description = ''Library that acts like a real life Magic 8 - Ball.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/fteem/eight_ball"; - }; - } // packageOverrides) - ) {}; - - eight_ball = eight_ball_0_0_1; - - eight_ball_dj_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "eight_ball_dj"; - version = "0.0.2"; - src = fetchHex { - pkg = "eight_ball_dj"; - version = "0.0.2"; - sha256 = - "5b0d4f92a76f3d48d5541936ae8540154ed2a14ccda1a45e250d6a577bb541f5"; - }; - - meta = { - description = ''Ask a question to the Magic Eight Ball''; - license = stdenv.lib.licenses.free; - homepage = "https://github.com/djkianoosh/eight_ball"; - }; - } // packageOverrides) - ) {}; - - eight_ball_dj = eight_ball_dj_0_0_2; - - eikon_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "eikon"; - version = "0.0.2"; - src = fetchHex { - pkg = "eikon"; - version = "0.0.2"; - sha256 = - "fc624850b69504dd3f05e65ce40b4480aef70b605045f3d79d218c39c443a205"; - }; - - meta = { - description = ''Eikōn is an Elixir library providing a read-only - interface for image files.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/tchoutri/eikon"; - }; - } // packageOverrides) - ) {}; - - eikon = eikon_0_0_2; - - eio_0_1_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - plug_1_1_5, - cowboy_1_0_4 - }: - buildMix ({ - name = "eio"; - version = "0.1.0"; - src = fetchHex { - pkg = "eio"; - version = "0.1.0"; - sha256 = - "f39f017c73713b36ee27d8a0635634ac2e96b4d540f28db9dd358d8744dccd88"; - }; - beamDeps = [ poison_1_5_2 plug_1_1_5 cowboy_1_0_4 ]; - - meta = { - description = ''Engine.io server for Elixir.''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/falood/eio"; - }; - } // packageOverrides) - ) {}; - - eio = eio_0_1_0; - - ejabberd_dev_15_9_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "ejabberd_dev"; - version = "15.9.0"; - src = fetchHex { - pkg = "ejabberd_dev"; - version = "15.9.0"; - sha256 = - "4c4ca5b3ee1900bd7e5babed76cae361b6350ed5793ce013cbfccc06208c291e"; - }; - - meta = { - longDescription = ''A package to help with building ejabberd - modules. This package includes source and header - files from the ejabberd project that are - necessary in order to build a gen_mod module.''; - license = stdenv.lib.licenses.gpl3; - homepage = "https://github.com/scrogson/ejabberd_dev"; - }; - } // packageOverrides) - ) {}; - - ejabberd_dev = ejabberd_dev_15_9_0; - - ejwt_0_1_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex, jsx_2_8_0 }: - buildRebar3 ({ - name = "ejwt"; - version = "0.1.0"; - src = fetchHex { - pkg = "ejwt"; - version = "0.1.0"; - sha256 = - "c316a4b7fd21b07b401a3a01db9039b7006f5a1c7e96a981b6cbcb36da1a4a84"; - }; - - beamDeps = [ jsx_2_8_0 ]; - - meta = { - description = ''Encode/decode JSON Web Token''; - license = stdenv.lib.licenses.apsl20; - homepage = "https://github.com/artefactop/ejwt"; - }; - } // packageOverrides) - ) {}; - - ejwt = ejwt_0_1_0; - - elastex_0_1_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "elastex"; - version = "0.1.2"; - src = fetchHex { - pkg = "elastex"; - version = "0.1.2"; - sha256 = - "eaab5305db3d5d326e471dc1799606b7055971dfb7d9a27571850d2ce7e97f9b"; - }; - beamDeps = [ poison_2_1_0 httpoison_0_8_3 ]; - - meta = { - description = ''Data driven elixir client for Elasticsearch.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/michaeldoaty/elastex"; - }; - } // packageOverrides) - ) {}; - - elastex = elastex_0_1_2; - - elaxtic_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, httpoison_0_8_3 }: - buildMix ({ - name = "elaxtic"; - version = "0.0.1"; - src = fetchHex { - pkg = "elaxtic"; - version = "0.0.1"; - sha256 = - "a912a0327bfe1c6443cec47a03d11450fed2e649bfdcd4e77bdb9176baa8cd45"; - }; - beamDeps = [ httpoison_0_8_3 ]; - - meta = { - description = ''ElasticSearch client for Elixir and Ecto - driver.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/vic/elaxtic"; - }; - } // packageOverrides) - ) {}; - - elaxtic = elaxtic_0_0_1; - - elixir_ami_0_0_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "elixir_ami"; - version = "0.0.3"; - src = fetchHex { - pkg = "elixir_ami"; - version = "0.0.3"; - sha256 = - "781171af1bcc20466117fb119646b55ad473c93ce57549ffec4c65f7ba8a1ede"; - }; - - meta = { - longDescription = ''Elixir client for the Asterisk AMI protocol. - Find the user guide in the github repo at: - https://github.com/marcelog/elixir_ami.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/marcelog/elixir_ami"; - }; - } // packageOverrides) - ) {}; - - elixir_ami = elixir_ami_0_0_3; - - elixir_authorizenet_0_2_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - xml_builder_0_0_8, - exmerl_0_1_1 - }: - buildMix ({ - name = "elixir_authorizenet"; - version = "0.2.2"; - src = fetchHex { - pkg = "elixir_authorizenet"; - version = "0.2.2"; - sha256 = - "10111f4fe073d69a5ae817838377ba52bf6b04199c8386f48ca13804db6e2f70"; - }; - beamDeps = [ xml_builder_0_0_8 exmerl_0_1_1 ]; - - meta = { - longDescription = ''Elixir client for the Authorize.Net merchant - API. This should help you integrate using the - AIM. A nice number of features are implemented - (probably most of the ones used on a daily basis - are already there), but since the API offers a - big number of features and combinations, I still - consider this as WIP, and pull requests, - suggestions, or other kind of feedback are very - welcome! Find the user guide in the github repo - at: - https://github.com/marcelog/elixir_authorizenet.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/marcelog/elixir_authorizenet"; - }; - } // packageOverrides) - ) {}; - - elixir_authorizenet = elixir_authorizenet_0_2_2; - - elixir_bencode_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "elixir_bencode"; - version = "1.0.0"; - src = fetchHex { - pkg = "elixir_bencode"; - version = "1.0.0"; - sha256 = - "2c4c86843b2377182da7cff125784a227c7bc63ef9e92ce7257f14b132667ebe"; - }; - - meta = { - description = ''Bencode encoder / decoder in Elixir.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/AntonFagerberg/elixir_bencode"; - }; - } // packageOverrides) - ) {}; - - elixir_bencode = elixir_bencode_1_0_0; - - elixir_exif_0_1_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "elixir_exif"; - version = "0.1.1"; - src = fetchHex { - pkg = "elixir_exif"; - version = "0.1.1"; - sha256 = - "a491a3e134c00f2a1f59c8e3a1bd62b9b94c1ce4179a20d737903f3edcc9bd78"; - }; - - meta = { - description = ''Parse exif and thumbnail data from jpeg/tiff - images.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/sschneider1207/ElixirExif"; - }; - } // packageOverrides) - ) {}; - - elixir_exif = elixir_exif_0_1_1; - - elixir_feed_parser_1_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, timex_2_1_6 }: - buildMix ({ - name = "elixir_feed_parser"; - version = "1.1.0"; - src = fetchHex { - pkg = "elixir_feed_parser"; - version = "1.1.0"; - sha256 = - "d623eaf020971979601ff135b56776d1b4a73da7eb75d7ae757a8ea18fd41ca0"; - }; - beamDeps = [ timex_2_1_6 ]; - - meta = { - description = ''An Elixir Atom/RSS2 feed parser.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/fdietz/elixir-feed-parser"; - }; - } // packageOverrides) - ) {}; - - elixir_feed_parser = elixir_feed_parser_1_1_0; - - elixir_freshbooks_0_0_4 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - xml_builder_0_0_8, - exmerl_0_1_1 - }: - buildMix ({ - name = "elixir_freshbooks"; - version = "0.0.4"; - src = fetchHex { - pkg = "elixir_freshbooks"; - version = "0.0.4"; - sha256 = - "404ba66129bb1a756f6c06460d483d72d59990bc460616a1e61bd87af4108628"; - }; - beamDeps = [ xml_builder_0_0_8 exmerl_0_1_1 ]; - - meta = { - description = ''Elixir client for FreshBooks.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/marcelog/elixir_freshbooks"; - }; - } // packageOverrides) - ) {}; - - elixir_freshbooks = elixir_freshbooks_0_0_4; - - elixir_gravatar_url_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "elixir_gravatar_url"; - version = "1.0.0"; - src = fetchHex { - pkg = "elixir_gravatar_url"; - version = "1.0.0"; - sha256 = - "e298fbfc6c4ebf401cf4e62739d79696eff3ce454f037055523c08f2cf815db1"; - }; - - meta = { - description = ''An Elixir module for generating Gravatar urls''; - - }; - } // packageOverrides) - ) {}; - - elixir_gravatar_url = elixir_gravatar_url_1_0_0; - - elixir_make_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "elixir_make"; - version = "0.1.0"; - src = fetchHex { - pkg = "elixir_make"; - version = "0.1.0"; - sha256 = - "940d1a8e6f6ed8f8bc5c349371b200416bcb657e3a7d0fc64e7292263bf02de6"; - }; - - meta = { - description = ''A Make compiler for Mix''; - license = stdenv.lib.licenses.apsl20; - homepage = "https://github.com/elixir-lang/elixir_make"; - }; - } // packageOverrides) - ) {}; - - elixir_make = elixir_make_0_1_0; - - elixir_mbcs_0_1_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "elixir_mbcs"; - version = "0.1.2"; - src = fetchHex { - pkg = "elixir_mbcs"; - version = "0.1.2"; - sha256 = - "45d2572ed4c2bae10e961ddf95846ffd64f83ed7427898b8fdf3221607f610b5"; - }; - - meta = { - description = ''Convert the character encoding''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/woxtu/elixir-mbcs"; - }; - } // packageOverrides) - ) {}; - - elixir_mbcs = elixir_mbcs_0_1_2; - - elixir_mod_event_0_0_5 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, uuid_1_1_4 }: - buildMix ({ - name = "elixir_mod_event"; - version = "0.0.5"; - src = fetchHex { - pkg = "elixir_mod_event"; - version = "0.0.5"; - sha256 = - "d38fe29a32107e889c52f849ceec6267709591b7db98db14bd3890683ca78b0f"; - }; - beamDeps = [ uuid_1_1_4 ]; - - meta = { - longDescription = ''Elixir client for FreeSWITCH - mod_event_socket. Find the user guide in the - github repo at: - https://github.com/marcelog/elixir_mod_event.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/marcelog/elixir_mod_event"; - }; - } // packageOverrides) - ) {}; - - elixir_mod_event = elixir_mod_event_0_0_5; - - elixir_prelude_0_2_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "elixir_prelude"; - version = "0.2.1"; - src = fetchHex { - pkg = "elixir_prelude"; - version = "0.2.1"; - sha256 = - "178d8de9762447e8f8271bd6af356a171af9fb7c20fcd4fa510a05e19b24240d"; - }; - - meta = { - description = ''Small set of useful utility functions''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/ruby2elixir/elixir_prelude"; - }; - } // packageOverrides) - ) {}; - - elixir_prelude = elixir_prelude_0_2_1; - - elixir_radius_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "elixir_radius"; - version = "0.1.0"; - src = fetchHex { - pkg = "elixir_radius"; - version = "0.1.0"; - sha256 = - "40f4c2a792c5967e21d4e7914a91a62fbed3712bf9c6ec5f0a549e659e4ddc94"; - }; - - meta = { - description = ''Decode & encode RADIUS packets ''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/bearice/elixir-radius"; - }; - } // packageOverrides) - ) {}; - - elixir_radius = elixir_radius_0_1_0; - - elixir_script_0_20_0 = callPackage - ( - { - buildMix, packageOverrides ? {}, fetchHex, fs_0_9_2, estree_2_3_0 - }: - buildMix ({ - name = "elixir_script"; - version = "0.20.0"; - src = fetchHex { - pkg = "elixir_script"; - version = "0.20.0"; - sha256 = - "259c8ff57f171eda4a9ac15fe6307063b76630168fd582f27e3dfb1c621e0533"; - }; - beamDeps = [ fs_0_9_2 estree_2_3_0 ]; - - meta = { - description = ''ElixirScript: compiles Elixir code to - JavaScript''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/bryanjos/elixirscript"; - }; - } // packageOverrides) - ) {}; - - elixir_script = elixir_script_0_20_0; - - elixir_talk_1_1_1 = callPackage - ( - { - buildMix, packageOverrides ? {}, fetchHex, yaml_elixir_1_0_0 - }: - buildMix ({ - name = "elixir_talk"; - version = "1.1.1"; - src = fetchHex { - pkg = "elixir_talk"; - version = "1.1.1"; - sha256 = - "29735f954662da43179de5af018e22b54eb44b5680dd526a5a158b3201324b47"; - }; - beamDeps = [ yaml_elixir_1_0_0 ]; - - meta = { - description = ''ElixirTalk is an Elixir client for beanstalkd.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/jsvisa/elixir_talk"; - }; - } // packageOverrides) - ) {}; - - elixir_talk = elixir_talk_1_1_1; - - elixir_tea_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "elixir_tea"; - version = "1.0.0"; - src = fetchHex { - pkg = "elixir_tea"; - version = "1.0.0"; - sha256 = - "c1e46d2d7b07a926ba8730452f517db45cf4f8f35d119b84aa0f0f676048cdcc"; - }; - - meta = { - description = ''A TEA (Tiny Encryption Algorithm) implemented in - pure Elixir. ''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/keichan34/elixir_tea"; - }; - } // packageOverrides) - ) {}; - - elixir_tea = elixir_tea_1_0_0; - - elixir_v8_0_2_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poolboy_1_5_1, - exjsx_3_2_0 - }: - buildMix ({ - name = "elixir_v8"; - version = "0.2.2"; - src = fetchHex { - pkg = "elixir_v8"; - version = "0.2.2"; - sha256 = - "71034e37c2b8113156b19b1ca5b9b772fb454fe11c1cba33567fb61d3c8cedbe"; - }; - beamDeps = [ poolboy_1_5_1 exjsx_3_2_0 ]; - - meta = { - description = ''V8 engine for Elixir with pools.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/le0pard/elixir_v8"; - }; - } // packageOverrides) - ) {}; - - elixir_v8 = elixir_v8_0_2_2; - - elixir_wit_0_1_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - uuid_1_1_4, - poison_2_1_0, - httpotion_2_2_2 - }: - buildMix ({ - name = "elixir_wit"; - version = "0.1.0"; - src = fetchHex { - pkg = "elixir_wit"; - version = "0.1.0"; - sha256 = - "75b9046cd41146c4e3b486541cf37a5e27eea42d179af7fda127bdb391855224"; - }; - beamDeps = [ uuid_1_1_4 poison_2_1_0 httpotion_2_2_2 ]; - - meta = { - longDescription = ''Elixir client for the Wit API. Wit is the - natural language engine for creating Bots.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/zabirauf/elixir_wit"; - }; - } // packageOverrides) - ) {}; - - elixir_wit = elixir_wit_0_1_0; - - elixlsx_0_0_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "elixlsx"; - version = "0.0.3"; - src = fetchHex { - pkg = "elixlsx"; - version = "0.0.3"; - sha256 = - "baa903f52efd18705bc4f11f25674249e38ba22d111f49321b8f750c063fb932"; - }; - - meta = { - description = ''a writer for XLSX spreadsheet files''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/xou/elixlsx"; - }; - } // packageOverrides) - ) {}; - - elixlsx = elixlsx_0_0_3; - - elli_1_0_5 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "elli"; - version = "1.0.5"; - src = fetchHex { - pkg = "elli"; - version = "1.0.5"; - sha256 = - "fb55bab884f1d921f2e86c00738909a9e56aca14604e617b138e163093609c97"; - }; - - meta = { - description = ''Fast and robust web server for building - high-throughput, low-latency apps''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/knutin/elli"; - }; - } // packageOverrides) - ) {}; - - elli = elli_1_0_5; - - elmer_0_0_11 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "elmer"; - version = "0.0.11"; - src = fetchHex { - pkg = "elmer"; - version = "0.0.11"; - sha256 = - "cefb6a31a8e4ab5de698cd24f9a02c1fef690f0111f49ffa3e3d57c027c5160c"; - }; - - meta = { - description = ''Helper mix tasks for generating elm files like - Main, Ports, Models, Msgs, etc.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/nathanjohnson320/elmer"; - }; - } // packageOverrides) - ) {}; - - elmer = elmer_0_0_11; - - elmxir_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "elmxir"; - version = "0.0.1"; - src = fetchHex { - pkg = "elmxir"; - version = "0.0.1"; - sha256 = - "65ad59b4922b75fb7b6c888f3e5c7dea1d01a4a085a376261bcaa3cfd6ce0845"; - }; - - meta = { - description = ''Helper functions for working with Elm + Elixir''; - license = stdenv.lib.licenses.free; - homepage = "https://github.com/NoRedInk/elmxir"; - }; - } // packageOverrides) - ) {}; - - elmxir = elmxir_0_0_1; - - eministat_0_10_1 = callPackage - ( - { buildErlangMk, packageOverrides ? {}, fetchHex }: - buildErlangMk ({ - name = "eministat"; - version = "0.10.1"; - src = fetchHex { - pkg = "eministat"; - version = "0.10.1"; - sha256 = - "1e581fe282e8851c036fb6e4908add91956eba62ce0cce97fceee66067157d5f"; - }; - - meta = { - description = ''Basic statistics for comparing datasets from - benchmarks''; - - }; - } // packageOverrides) - ) {}; - - eministat = eministat_0_10_1; - - eml_0_7_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "eml"; - version = "0.7.1"; - src = fetchHex { - pkg = "eml"; - version = "0.7.1"; - sha256 = - "f03a35e2684455ee9e8b641f9550d41893f5b013c1277751685414f56cee9c0a"; - }; - - meta = { - longDescription = ''Eml makes markup a first class citizen in - Elixir. It provides a flexible and modular - toolkit for generating, parsing and manipulating - markup. It`s main focus is html, but other - markup languages could be implemented as well. - ''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/zambal/eml"; - }; - } // packageOverrides) - ) {}; - - eml = eml_0_7_1; - - env_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "env"; - version = "0.1.0"; - src = fetchHex { - pkg = "env"; - version = "0.1.0"; - sha256 = - "befbc0d4a4fc368c05a693a5d29860932c812f8dff2cd14dd62a590ba49b8875"; - }; - - meta = { - description = ''Env is an improved application configuration - reader for Elixir.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/michalmuskala/env"; - }; - } // packageOverrides) - ) {}; - - env = env_0_1_0; - - env_helper_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "env_helper"; - version = "0.0.2"; - src = fetchHex { - pkg = "env_helper"; - version = "0.0.2"; - sha256 = - "36bb88f51ea9a967a9c86d0c9de790f1d88f8b25863c03e4a733d75b9bfb9f54"; - }; - - meta = { - description = ''A simple add on to make working with environment - variables slightly easier.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/manheim/env_helper"; - }; - } // packageOverrides) - ) {}; - - env_helper = env_helper_0_0_2; - - envy_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "envy"; - version = "0.0.2"; - src = fetchHex { - pkg = "envy"; - version = "0.0.2"; - sha256 = - "01e20425b7b5acfa1f43d7431601015e059d9363bf9d50b00f2aeb6b0e3fa03f"; - }; - - meta = { - description = ''A package for managing env files''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/BlakeWilliams/envy"; - }; - } // packageOverrides) - ) {}; - - envy = envy_0_0_2; - - eon_3_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "eon"; - version = "3.0.0"; - src = fetchHex { - pkg = "eon"; - version = "3.0.0"; - sha256 = - "a19006b99ffbe846fe064adfb128cbb6b49c85d08becb60d1e204e1d1f0db94e"; - }; - - meta = { - description = ''Use Elixir maps as a document storage format.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/supernintendo/eon"; - }; - } // packageOverrides) - ) {}; - - eon = eon_3_0_0; - - eper_0_94_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "eper"; - version = "0.94.0"; - src = fetchHex { - pkg = "eper"; - version = "0.94.0"; - sha256 = - "8d853792fa61a7fd068fe9c113a8a44bc839e11ad70cb8d5d2884566e3bede39"; - }; - - meta = { - longDescription = ''Erlang Performance and Debugging Tools sherk - - a profiler, similar to Linux oprofile or MacOs - shark gperf - a graphical performance monitor; - shows CPU, memory and network usage dtop - - similar to unix top redbug- similar to the OTP - dbg application, but safer, better etc.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/massemanet/eper"; - }; - } // packageOverrides) - ) {}; - - eper = eper_0_94_0; - - epgpool_1_0_1 = callPackage - ( - { - buildRebar3, - packageOverrides ? {}, - fetchHex, - poolboy_1_4_2, - lager_3_0_2, - epgsql_3_2_0 - }: - buildRebar3 ({ - name = "epgpool"; - version = "1.0.1"; - src = fetchHex { - pkg = "epgpool"; - version = "1.0.1"; - sha256 = - "23435ebb6b6c8615b1e6ccd6277eb1e6b69b57d0a2079b536b0aaa60ddb094bd"; - }; - - beamDeps = [ poolboy_1_4_2 lager_3_0_2 epgsql_3_2_0 ]; - - meta = { - description = ''Erlang postgresql pool application''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/egobrain/epgpool"; - }; - } // packageOverrides) - ) {}; - - epgpool = epgpool_1_0_1; - - epgsql_3_1_1 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "epgsql"; - version = "3.1.1"; - src = fetchHex { - pkg = "epgsql"; - version = "3.1.1"; - sha256 = - "4b3f478ad090aed7200b2a8c9f2d5ef45c3aaa167be896b5237bba4b40f461d8"; - }; - - meta = { - description = ''PostgreSQL Client''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/epgsql/epgsql"; - }; - } // packageOverrides) - ) {}; - - epgsql_3_2_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "epgsql"; - version = "3.2.0"; - src = fetchHex { - pkg = "epgsql"; - version = "3.2.0"; - sha256 = - "ff88a419df7b3084e8358538ade8b1844f5d6d18e9fa8c2124acea889720665a"; - }; - - meta = { - description = ''PostgreSQL Client''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/epgsql/epgsql"; - }; - } // packageOverrides) - ) {}; - - epgsql = epgsql_3_2_0; - - epiphany_0_1_0_dev = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, connection_1_0_2 }: - buildMix ({ - name = "epiphany"; - version = "0.1.0-dev"; - src = fetchHex { - pkg = "epiphany"; - version = "0.1.0-dev"; - sha256 = - "38b15e762a4bb8c57a3ef238531dd465113b1019fb5aa63d7c8b38ed579f15f9"; - }; - beamDeps = [ connection_1_0_2 ]; - - meta = { - description = ''Cassandra driver for Elixir.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/vptheron/epiphany"; - }; - } // packageOverrides) - ) {}; - - epiphany = epiphany_0_1_0_dev; - - episcina_1_1_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex, gproc_0_3_1 }: - buildRebar3 ({ - name = "episcina"; - version = "1.1.0"; - src = fetchHex { - pkg = "episcina"; - version = "1.1.0"; - sha256 = - "16238717bfbc8cb226342f6b098bb1fafb48c7547265a10ad3e6e83899abc46f"; - }; - - beamDeps = [ gproc_0_3_1 ]; - - meta = { - description = ''Erlang Connection Pool''; - - }; - } // packageOverrides) - ) {}; - - episcina = episcina_1_1_0; - - eqc_ex_1_2_4 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "eqc_ex"; - version = "1.2.4"; - src = fetchHex { - pkg = "eqc_ex"; - version = "1.2.4"; - sha256 = - "2d2895bedf784ffaf11144d25e6ca11a4cfff5b73c35ec6bedd3c5ec5cabc5e9"; - }; - - meta = { - description = ''Wrappers to facilitate using Quviq QuickCheck - with Elixir.''; - license = stdenv.lib.licenses.bsd3; - }; - } // packageOverrides) - ) {}; - - eqc_ex = eqc_ex_1_2_4; - - equery_0_6_1 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "equery"; - version = "0.6.1"; - src = fetchHex { - pkg = "equery"; - version = "0.6.1"; - sha256 = - "4a492b7cb64c0014c6be8fc763df665ec129bd56c7350e00cbd3d6fd556a8c60"; - }; - - meta = { - description = ''Sql generator library''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/egobrain/equery"; - }; - } // packageOverrides) - ) {}; - - equery = equery_0_6_1; - - equivalex_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "equivalex"; - version = "0.1.0"; - src = fetchHex { - pkg = "equivalex"; - version = "0.1.0"; - sha256 = - "8c5cd7fb186085ce088839098a98366f798674a4018cb328978a5e0b2f55ad7d"; - }; - - meta = { - description = ''constant time polymorphic comparisons''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/mwmiller/equivalex"; - }; - } // packageOverrides) - ) {}; - - equivalex = equivalex_0_1_0; - - eredis_1_0_8 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "eredis"; - version = "1.0.8"; - src = fetchHex { - pkg = "eredis"; - version = "1.0.8"; - sha256 = - "f303533e72129b264a2d8217c4ddc977c7527ff4b8a6a55f92f62b7fcc099334"; - }; - - meta = { - description = ''Erlang Redis client''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/wooga/eredis"; - }; - } // packageOverrides) - ) {}; - - eredis = eredis_1_0_8; - - erl2ex_0_0_9 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "erl2ex"; - version = "0.0.9"; - src = fetchHex { - pkg = "erl2ex"; - version = "0.0.9"; - sha256 = - "4e49c461ecffc33986bb72a43ae87211fb33fed39077fb522c381b884d189514"; - }; - - meta = { - longDescription = ''Erl2ex is an Erlang to Elixir transpiler, - converting well-formed Erlang source to Elixir - source with equivalent functionality.''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/dazuma/erl2ex"; - }; - } // packageOverrides) - ) {}; - - erl2ex = erl2ex_0_0_9; - - erlang_localtime_1_0_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "erlang_localtime"; - version = "1.0.0"; - src = fetchHex { - pkg = "erlang_localtime"; - version = "1.0.0"; - sha256 = - "46e3f7b18477b377ec71f9dcd91c4d30fe82a128ffa9f89be1595d4d08414844"; - }; - - meta = { - description = ''Erlang library for conversion from one local time - to another''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/choptastic/erlang_localtime"; - }; - } // packageOverrides) - ) {}; - - erlang_localtime = erlang_localtime_1_0_0; - - erlang_term_1_4_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "erlang_term"; - version = "1.4.0"; - src = fetchHex { - pkg = "erlang_term"; - version = "1.4.0"; - sha256 = - "1a4d491dbd13b7a714815af10fc658948a5a440de23755a32b741ca07d8ba592"; - }; - - meta = { - description = ''Provide the in-memory size of Erlang terms''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/okeuday/erlang_term"; - }; - } // packageOverrides) - ) {}; - - erlang_term_1_5_1 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "erlang_term"; - version = "1.5.1"; - src = fetchHex { - pkg = "erlang_term"; - version = "1.5.1"; - sha256 = - "88bae81a80306e82fd3fc43e2d8228049e666f3cfe4627687832cd7edb878e06"; - }; - - meta = { - description = ''Provide the in-memory size of Erlang terms''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/okeuday/erlang_term"; - }; - } // packageOverrides) - ) {}; - - erlang_term = erlang_term_1_5_1; - - erlang_version_0_2_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "erlang_version"; - version = "0.2.0"; - src = fetchHex { - pkg = "erlang_version"; - version = "0.2.0"; - sha256 = - "74daddba65a247ec57913e5de8f243af42bbbc3d6a0c411a1252da81c09ae661"; - }; - - meta = { - description = ''Retrieve Erlang/OTP version like `18.1`''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/sapporo-beam/erlang_version"; - }; - } // packageOverrides) - ) {}; - - erlang_version = erlang_version_0_2_0; - - erlaudio_0_2_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "erlaudio"; - version = "0.2.3"; - src = fetchHex { - pkg = "erlaudio"; - version = "0.2.3"; - sha256 = - "cb9efb0ce80faae003ab39f8cc2d3fccbb4bd1c8f5f525aea392f28662517032"; - }; - - meta = { - description = ''Erlang audio bindings to portaudio''; - license = stdenv.lib.licenses.apsl20; - homepage = "https://github.com/asonge/erlaudio"; - }; - } // packageOverrides) - ) {}; - - erlaudio = erlaudio_0_2_3; - - erlcloud_0_11_0 = callPackage - ( - { - buildRebar3, - packageOverrides ? {}, - fetchHex, - meck_0_8_3, - lhttpc_1_3_0, - jsx_2_6_2 - }: - buildRebar3 ({ - name = "erlcloud"; - version = "0.11.0"; - src = fetchHex { - pkg = "erlcloud"; - version = "0.11.0"; - sha256 = - "ca9876dab57ed8fb5fb75ab6ce11e59a346387d357d7a038a2e18d1d31a30716"; - }; - - beamDeps = [ meck_0_8_3 lhttpc_1_3_0 jsx_2_6_2 ]; - - meta = { - description = ''Erlang cloud computing library''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/erlcloud/erlcloud"; - }; - } // packageOverrides) - ) {}; - - erlcloud_0_13_2 = callPackage - ( - { - buildRebar3, - packageOverrides ? {}, - fetchHex, - lhttpc_1_4_0, - jsx_2_8_0 - }: - buildRebar3 ({ - name = "erlcloud"; - version = "0.13.2"; - src = fetchHex { - pkg = "erlcloud"; - version = "0.13.2"; - sha256 = - "568d464760802322b7dc81e95f9c7bfb2fa8121423e67b2db6ed1c80697e1277"; - }; - - beamDeps = [ lhttpc_1_4_0 jsx_2_8_0 ]; - - meta = { - description = ''Erlang cloud computing library''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/erlcloud/erlcloud"; - }; - } // packageOverrides) - ) {}; - - erlexec_1_1_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "erlexec"; - version = "1.1.0"; - src = fetchHex { - pkg = "erlexec"; - version = "1.1.0"; - sha256 = - "772162f0f0349f89ea11b9f27401cb437ccaabf480320284a13f2259bb63cb87"; - }; - compilePorts = true; - buildPlugins = [ pc ]; - - - meta = { - description = ''OS Process Manager''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/saleyn/erlexec"; - }; - } // packageOverrides) - ) {}; - - erlexec_1_1_3 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "erlexec"; - version = "1.1.3"; - src = fetchHex { - pkg = "erlexec"; - version = "1.1.3"; - sha256 = - "a4e62b46796a1b1b5e77798346e553e1460b4f97670c868f29d1e2853c02ae33"; - }; - compilePorts = true; - buildPlugins = [ pc ]; - - - meta = { - description = ''OS Process Manager''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/saleyn/erlexec"; - }; - } // packageOverrides) - ) {}; - - erlexec_1_2_1 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "erlexec"; - version = "1.2.1"; - src = fetchHex { - pkg = "erlexec"; - version = "1.2.1"; - sha256 = - "47846ec5bcff158468bcbe4a0608c9c89e3822d1ba10ea4d2f04b0395dc03880"; - }; - compilePorts = true; - buildPlugins = [ pc ]; - - - meta = { - description = ''OS Process Manager''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/saleyn/erlexec"; - }; - } // packageOverrides) - ) {}; - - erlexec = erlexec_1_2_1; - - erlsh_0_1_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "erlsh"; - version = "0.1.0"; - src = fetchHex { - pkg = "erlsh"; - version = "0.1.0"; - sha256 = - "94ef1492dd59fef211f01ffd40c47b6e51c0f59e2a3d0739366e4890961332d9"; - }; - compilePorts = true; - - meta = { - longDescription = ''Family of functions and ports involving - interacting with the system shell, paths and - external programs.''; - - }; - } // packageOverrides) - ) {}; - - erlsh = erlsh_0_1_0; - - erlsom_1_4_1 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "erlsom"; - version = "1.4.1"; - src = fetchHex { - pkg = "erlsom"; - version = "1.4.1"; - sha256 = - "57b777fe2522e342badfa35873b2266c6961e3a9f4d2ac195d761985c40c3247"; - }; - - meta = { - longDescription = ''XML parser. Supports SAX style parsing as - well as XML Schema based data mapping: create - records from XML (and vice versa)''; - license = stdenv.lib.licenses.free; - homepage = "https://github.com/willemdj/erlsom"; - }; - } // packageOverrides) - ) {}; - - erlsom = erlsom_1_4_1; - - erlware_commons_0_13_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "erlware_commons"; - version = "0.13.0"; - src = fetchHex { - pkg = "erlware_commons"; - version = "0.13.0"; - sha256 = - "d083bbb622a5df09857464f45e1b20a34c66c1376870ece6f9b093a236bbea27"; - }; - - meta = { - description = ''Additional standard library for Erlang''; - license = stdenv.lib.licenses.apsl20; - homepage = "https://github.com/erlware/erlware_commons"; - }; - } // packageOverrides) - ) {}; - - erlware_commons_0_15_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "erlware_commons"; - version = "0.15.0"; - src = fetchHex { - pkg = "erlware_commons"; - version = "0.15.0"; - sha256 = - "5f38cb1df90148a7b21d48b221f399244ce86256584e6ea7986f2de732dee3c6"; - }; - - meta = { - description = ''Additional standard library for Erlang''; - license = stdenv.lib.licenses.apsl20; - homepage = "https://github.com/erlware/erlware_commons"; - }; - } // packageOverrides) - ) {}; - - erlware_commons_0_18_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex, cf_0_2_1 }: - buildRebar3 ({ - name = "erlware_commons"; - version = "0.18.0"; - src = fetchHex { - pkg = "erlware_commons"; - version = "0.18.0"; - sha256 = - "e71dda7cd5dcf34c9d07255d49c67e1d229dd230c101fdb996820bcdb5b03c49"; - }; - - beamDeps = [ cf_0_2_1 ]; - - meta = { - description = ''Additional standard library for Erlang''; - license = stdenv.lib.licenses.apsl20; - homepage = "https://github.com/erlware/erlware_commons"; - }; - } // packageOverrides) - ) {}; - - erlware_commons_0_19_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex, cf_0_2_1 }: - buildRebar3 ({ - name = "erlware_commons"; - version = "0.19.0"; - src = fetchHex { - pkg = "erlware_commons"; - version = "0.19.0"; - sha256 = - "5bbff9402cd9e973af81745a8a40177d245b55b4c239f80a236949b856f2dabd"; - }; - - beamDeps = [ cf_0_2_1 ]; - - meta = { - description = ''Additional standard library for Erlang''; - license = stdenv.lib.licenses.apsl20; - homepage = "https://github.com/erlware/erlware_commons"; - }; - } // packageOverrides) - ) {}; - - erlware_commons_0_20_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex, cf_0_2_1 }: - buildRebar3 ({ - name = "erlware_commons"; - version = "0.20.0"; - src = fetchHex { - pkg = "erlware_commons"; - version = "0.20.0"; - sha256 = - "bff981dbd0acb12ac9d10b41ca96ba76a26e2a1f2714d1e0cb0112f4a67d956a"; - }; - - beamDeps = [ cf_0_2_1 ]; - - meta = { - description = ''Additional standard library for Erlang''; - license = stdenv.lib.licenses.apsl20; - homepage = "https://github.com/erlware/erlware_commons"; - }; - } // packageOverrides) - ) {}; - - erlware_commons_0_21_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex, cf_0_2_1 }: - buildRebar3 ({ - name = "erlware_commons"; - version = "0.21.0"; - src = fetchHex { - pkg = "erlware_commons"; - version = "0.21.0"; - sha256 = - "e70a95762458a489dc37fe869f41517bd43c130e156ef08462f90c534300ab3f"; - }; - - beamDeps = [ cf_0_2_1 ]; - - meta = { - description = ''Additional standard library for Erlang''; - license = stdenv.lib.licenses.apsl20; - homepage = "https://github.com/erlware/erlware_commons"; - }; - } // packageOverrides) - ) {}; - - erlware_commons = erlware_commons_0_21_0; - - erlydtl_0_11_1 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "erlydtl"; - version = "0.11.1"; - src = fetchHex { - pkg = "erlydtl"; - version = "0.11.1"; - sha256 = - "b1958c0ec95de69458c6af8b5bffbdde0070d5042710a63b1616cacdf39ae188"; - }; - - meta = { - description = ''Django Template Language for Erlang''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/project-fifo/fifo_spec"; - }; - } // packageOverrides) - ) {}; - - erlydtl = erlydtl_0_11_1; - - erlydtl2_0_11_1 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "erlydtl2"; - version = "0.11.1"; - src = fetchHex { - pkg = "erlydtl2"; - version = "0.11.1"; - sha256 = - "ae0d9f293ce8a2eeaabedf2b5f950d21e14570e67e5a38c11fe1e4ca598e6d5b"; - }; - - meta = { - description = ''Django Template Language for Erlang''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/erlydtl/erlydtl"; - }; - } // packageOverrides) - ) {}; - - erlydtl2 = erlydtl2_0_11_1; - - erlzk_0_6_2 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "erlzk"; - version = "0.6.2"; - src = fetchHex { - pkg = "erlzk"; - version = "0.6.2"; - sha256 = - "b9b8e85e34f33550078e58e13fcb29c6bfe75e0585ee94f809d434fce546c246"; - }; - - meta = { - description = ''A Pure Erlang ZooKeeper Client (no C - dependency)''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/huaban/erlzk"; - }; - } // packageOverrides) - ) {}; - - erlzk = erlzk_0_6_2; - - esel_0_1_2 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "esel"; - version = "0.1.2"; - src = fetchHex { - pkg = "esel"; - version = "0.1.2"; - sha256 = - "874d1775c86d27d9e88486a37351ffc09f826ef062c8ea211e65d08e103f946c"; - }; - - meta = { - description = ''An wrapper around openssl''; - license = stdenv.lib.licenses.mit; - }; - } // packageOverrides) - ) {}; - - esel = esel_0_1_2; - - espec_0_8_21 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, meck_0_8_4 }: - buildMix ({ - name = "espec"; - version = "0.8.21"; - src = fetchHex { - pkg = "espec"; - version = "0.8.21"; - sha256 = - "147d91a367d6bca9772b064195fd64f373a03e2d0bf57be5664ae780fd3508f5"; - }; - beamDeps = [ meck_0_8_4 ]; - - meta = { - description = ''BDD testing framework for Elixir inspired by - RSpec.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/antonmi/espec"; - }; - } // packageOverrides) - ) {}; - - espec = espec_0_8_21; - - esqlcipher_1_0_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "esqlcipher"; - version = "1.0.0"; - src = fetchHex { - pkg = "esqlcipher"; - version = "1.0.0"; - sha256 = - "f3a47df8cf7277b9352054e96a9745c77aa475a51ea36a18692a437b2af79b0b"; - }; - compilePorts = true; - buildPlugins = [ pc ]; - - - meta = { - description = ''sqlcipher nif interface''; - - }; - } // packageOverrides) - ) {}; - - esqlcipher = esqlcipher_1_0_0; - - esqlite_0_2_2 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "esqlite"; - version = "0.2.2"; - src = fetchHex { - pkg = "esqlite"; - version = "0.2.2"; - sha256 = - "5f15f8014baa9d31ee83817afe9164b3ecd76f77b2de7515f2cca2ca75b642e0"; - }; - compilePorts = true; - buildPlugins = [ pc ]; - - - meta = { - description = ''A Sqlite3 NIF''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/mmzeeman/esqlite"; - }; - } // packageOverrides) - ) {}; - - esqlite = esqlite_0_2_2; - - estree_2_3_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "estree"; - version = "2.3.0"; - src = fetchHex { - pkg = "estree"; - version = "2.3.0"; - sha256 = - "f73bf510523aac5518845d4d844a9690ba30450fc666ac138e8965a6c88b26ae"; - }; - - meta = { - longDescription = ''Represents the JavaScript AST from the ESTree - spec. Includes tools for building an AST and - generating code from it.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/bryanjos/elixir-estree"; - }; - } // packageOverrides) - ) {}; - - estree = estree_2_3_0; - - esync_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "esync"; - version = "0.0.1"; - src = fetchHex { - pkg = "esync"; - version = "0.0.1"; - sha256 = - "28a59a0cbe885ec39dec4992aac8495147d1ec9b623883b01e8aa775cb334f03"; - }; - - meta = { - description = ''Concurrently sync two or more directories so that - their contents are identical''; - - homepage = "https://github.com/GrahamGoudeau21/ElixirSync"; - }; - } // packageOverrides) - ) {}; - - esync = esync_0_0_1; - - ether_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "ether"; - version = "0.0.1"; - src = fetchHex { - pkg = "ether"; - version = "0.0.1"; - sha256 = - "867752143aa09e07d0a50ae9526b7c8f620e189f509326a635c304b453496f16"; - }; - - meta = { - description = ''Elixir Debugger ''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/maarek/ether"; - }; - } // packageOverrides) - ) {}; - - ether = ether_0_0_1; - - etherchain_org_0_0_5 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - vex_0_5_5, - poison_2_1_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "etherchain_org"; - version = "0.0.5"; - src = fetchHex { - pkg = "etherchain_org"; - version = "0.0.5"; - sha256 = - "2ff545b4d78b507a664a5c246bb351be110cc647d960e39e65f2d9ce08669752"; - }; - beamDeps = [ vex_0_5_5 poison_2_1_0 httpoison_0_8_3 ]; - - meta = { - longDescription = ''WIP Elixir API wrapper for etherchain.org. - Provides access to ethereum blockchain data.''; - license = stdenv.lib.licenses.mit; - homepage = - "https://github.com/cyberpunk-ventures/etherchain_org_ex"; - }; - } // packageOverrides) - ) {}; - - etherchain_org = etherchain_org_0_0_5; - - ets_map_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "ets_map"; - version = "0.0.1"; - src = fetchHex { - pkg = "ets_map"; - version = "0.0.1"; - sha256 = - "c33d714212c56d99b2472d522e24db808cd8a407101051d407be310412d61eae"; - }; - - meta = { - description = ''A Map-like Elixir data structure that is backed - by an ETS table.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/antipax/ets_map"; - }; - } // packageOverrides) - ) {}; - - ets_map = ets_map_0_0_1; - - ets_owner_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "ets_owner"; - version = "1.0.0"; - src = fetchHex { - pkg = "ets_owner"; - version = "1.0.0"; - sha256 = - "54c0228a9134f4afe5c2a5418712a8b010bbc3f3e4864f3c854110f6cb65bca9"; - }; - - meta = { - description = ''A simple GenServer that owns your ETS tables and - won`t die, even if you do.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/meyercm/ets_owner"; - }; - } // packageOverrides) - ) {}; - - ets_owner = ets_owner_1_0_0; - - etude_1_0_0_beta_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - nile_0_1_3 - }: - buildMix ({ - name = "etude"; - version = "1.0.0-beta.0"; - src = fetchHex { - pkg = "etude"; - version = "1.0.0-beta.0"; - sha256 = - "f5a2896982cd062fe188dcb0216ef5c960959aa2ba77f4d31b00d0dda56890dd"; - }; - beamDeps = [ poison_2_1_0 nile_0_1_3 ]; - - meta = { - description = ''parallel computation coordination utilities for - erlang/elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/camshaft/etude"; - }; - } // packageOverrides) - ) {}; - - etude_1_0_0_beta_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - nile_0_1_3 - }: - buildMix ({ - name = "etude"; - version = "1.0.0-beta.2"; - src = fetchHex { - pkg = "etude"; - version = "1.0.0-beta.2"; - sha256 = - "f05d1c5b191a19a3828a89be221b4a8f7bf9fb2227ebc05b7116dc1965872cef"; - }; - beamDeps = [ poison_2_1_0 nile_0_1_3 ]; - - meta = { - description = ''parallel computation coordination utilities for - erlang/elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/camshaft/etude"; - }; - } // packageOverrides) - ) {}; - - etude = etude_1_0_0_beta_2; - - eunit_formatters_0_3_1 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "eunit_formatters"; - version = "0.3.1"; - src = fetchHex { - pkg = "eunit_formatters"; - version = "0.3.1"; - sha256 = - "64a40741429b7aff149c605d5a6135a48046af394a7282074e6003b3b56ae931"; - }; - - meta = { - description = ''Better output for eunit suites''; - license = stdenv.lib.licenses.free; - homepage = "https://github.com/seancribbs/eunit_formatters"; - }; - } // packageOverrides) - ) {}; - - eunit_formatters = eunit_formatters_0_3_1; - - eunit_sugar_0_1_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "eunit_sugar"; - version = "0.1.0"; - src = fetchHex { - pkg = "eunit_sugar"; - version = "0.1.0"; - sha256 = - "f30c41d711650270d8654f9067a3b5d16d73242e0eed19082b70676e9f05bb6e"; - }; - - meta = { - description = ''Helpers and sugars for eunit tests''; - license = stdenv.lib.licenses.apsl20; - homepage = "https://github.com/xenolinguist/eunit_sugar"; - }; - } // packageOverrides) - ) {}; - - eunit_sugar = eunit_sugar_0_1_0; - - evel_0_1_1 = callPackage - ( - { - buildRebar3, packageOverrides ? {}, fetchHex, hash_ring_0_4_0 - }: - buildRebar3 ({ - name = "evel"; - version = "0.1.1"; - src = fetchHex { - pkg = "evel"; - version = "0.1.1"; - sha256 = - "b849699912f797e2b0082b43d0f58b18de838379b499c47dc24194d9fec03e6e"; - }; - - beamDeps = [ hash_ring_0_4_0 ]; - - meta = { - description = ''An Eventual Leader Election Library for Erlang''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/sile/evel"; - }; - } // packageOverrides) - ) {}; - - evel = evel_0_1_1; - - event_nanny_0_1_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "event_nanny"; - version = "0.1.1"; - src = fetchHex { - pkg = "event_nanny"; - version = "0.1.1"; - sha256 = - "4d46b285e5187fc8e63f7911087dcff54fb46ca347b457013e9bd9901f9cc9d1"; - }; - - meta = { - description = ''Nanny for GenEvent restart handler when it exit - abnormally''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/ammbot/event-nanny.git"; - }; - } // packageOverrides) - ) {}; - - event_nanny = event_nanny_0_1_1; - - eventstore_client_0_1_4 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - uuid_1_1_4, - poison_2_1_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "eventstore_client"; - version = "0.1.4"; - src = fetchHex { - pkg = "eventstore_client"; - version = "0.1.4"; - sha256 = - "fa77e1a7906b3ed27c0dfa0bd41f27b3129285857948aa23a3f888b0dd531109"; - }; - beamDeps = [ uuid_1_1_4 poison_2_1_0 httpoison_0_8_3 ]; - - meta = { - description = ''HTTP Client for EventStore (geteventstore.com)''; - - homepage = - "https://github.com/tbug/elixir-eventstore-http-client"; - }; - } // packageOverrides) - ) {}; - - eventstore_client = eventstore_client_0_1_4; - - ewebmachine_2_0_12 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - plug_1_1_5, - cowboy_1_0_4 - }: - buildMix ({ - name = "ewebmachine"; - version = "2.0.12"; - src = fetchHex { - pkg = "ewebmachine"; - version = "2.0.12"; - sha256 = - "66a4ca701594da9396d6bab03f074f1ab56080a62e6545e6e455a24296c96a1a"; - }; - beamDeps = [ plug_1_1_5 cowboy_1_0_4 ]; - - meta = { - longDescription = ''Ewebmachine contains macros and plugs to - allow you to compose HTTP decision handlers and - run the HTTP decision tree to get your HTTP - response. This project is a rewrite for Elixir - and Plug of basho webmachine.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/awetzel/ewebmachine"; - }; - } // packageOverrides) - ) {}; - - ewebmachine = ewebmachine_2_0_12; - - ex2ms_1_4_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "ex2ms"; - version = "1.4.0"; - src = fetchHex { - pkg = "ex2ms"; - version = "1.4.0"; - sha256 = - "8a743796d9f067f047e50d9726dfd8eb2791e6ce00c79edbd5ced6a06fe5e388"; - }; - - meta = { - description = ''Translates Elixir functions to match - specifications for use with `ets`.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/ericmj/ex2ms"; - }; - } // packageOverrides) - ) {}; - - ex2ms = ex2ms_1_4_0; - - ex_abnf_0_2_7 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "ex_abnf"; - version = "0.2.7"; - src = fetchHex { - pkg = "ex_abnf"; - version = "0.2.7"; - sha256 = - "2ca070a97b392a142619f0a126e48c7e27d39353be9a76fb358c401821495e1a"; - }; - - meta = { - longDescription = ''A parser and interpreter for ABNF grammars. - This is not a parser generator, but an - interpreter. It will load up an ABNF grammar, - and generate an AST for it. Then one can apply - any of the rules to an input and the interpreter - will parse the input according to the rule.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/marcelog/ex_abnf"; - }; - } // packageOverrides) - ) {}; - - ex_abnf = ex_abnf_0_2_7; - - ex_bcrypt_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, bcrypt_0_5_0_p3a }: - buildMix ({ - name = "ex_bcrypt"; - version = "0.0.1"; - src = fetchHex { - pkg = "ex_bcrypt"; - version = "0.0.1"; - sha256 = - "c6c91e333f3e84733bb8fca08af9fda01b20f3b2a8801e456b31103118418e81"; - }; - beamDeps = [ bcrypt_0_5_0_p3a ]; - - meta = { - description = ''Elixir wrapper for the OpenBSD bcrypt password - hashing algorithm''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/manelli/ex_bcrypt"; - }; - } // packageOverrides) - ) {}; - - ex_bcrypt = ex_bcrypt_0_0_1; - - ex_blocktrail_0_2_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - yuri_1_0_0, - vex_0_5_5, - exconstructor_1_0_2, - poison_2_1_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "ex_blocktrail"; - version = "0.2.1"; - src = fetchHex { - pkg = "ex_blocktrail"; - version = "0.2.1"; - sha256 = - "96a4090676a01f6644b95e8f65b1bd19f4142435d2f1b3cb2dbd79d883579f42"; - }; - beamDeps = [ - yuri_1_0_0 - vex_0_5_5 - exconstructor_1_0_2 - poison_2_1_0 - httpoison_0_8_3 - ]; - - meta = { - longDescription = ''WIP. Alpha. Elixir wrapper for blocktrail.com - Bitcoin api and some utility functions.''; - license = stdenv.lib.licenses.mit; - }; - } // packageOverrides) - ) {}; - - ex_blocktrail = ex_blocktrail_0_2_1; - - ex_brace_expansion_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "ex_brace_expansion"; - version = "0.0.2"; - src = fetchHex { - pkg = "ex_brace_expansion"; - version = "0.0.2"; - sha256 = - "d7470a00cffe4425f89e83d7288c24b641c3f6cbde136a08089e7420467cd237"; - }; - - meta = { - longDescription = ''Brace expansion, as known from sh/bash, in - Elixir. Quick example: - ExBraceExpansion.expand(\"file-{a,b,c}.jpg\") => - [\"file-a.jpg\", \"file-b.jpg\", \"file-c.jpg\"] - ''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/gniquil/ex_brace_expansion"; - }; - } // packageOverrides) - ) {}; - - ex_brace_expansion = ex_brace_expansion_0_0_2; - - ex_clacks_0_1_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, plug_1_1_5 }: - buildMix ({ - name = "ex_clacks"; - version = "0.1.2"; - src = fetchHex { - pkg = "ex_clacks"; - version = "0.1.2"; - sha256 = - "8299396f26982bbaed7f12988277174d3d3e92e0a5efe685c8d0133e08e013cc"; - }; - beamDeps = [ plug_1_1_5 ]; - - meta = { - description = ''A Plug that pays homage to Terry Pratchett''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/polymetis/ex_clacks"; - }; - } // packageOverrides) - ) {}; - - ex_clacks = ex_clacks_0_1_2; - - ex_cli_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "ex_cli"; - version = "0.1.0"; - src = fetchHex { - pkg = "ex_cli"; - version = "0.1.0"; - sha256 = - "81e42a05730752f891b8fc1cbced2e5733d48df144ab91aeb41a8093cb42264e"; - }; - - meta = { - description = ''Library to build CLI applications''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/tuvistavie/ex_cli"; - }; - } // packageOverrides) - ) {}; - - ex_cli = ex_cli_0_1_0; - - ex_closeio_0_1_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "ex_closeio"; - version = "0.1.1"; - src = fetchHex { - pkg = "ex_closeio"; - version = "0.1.1"; - sha256 = - "0bf03085e9ac1d548a73f5e8fa91d78c201c8fa46b3e65b89aca82f887af9cce"; - }; - beamDeps = [ poison_2_1_0 httpoison_0_8_3 ]; - - meta = { - description = ''Close.io client library for Elixir.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/taylorbrooks/ex_closeio"; - }; - } // packageOverrides) - ) {}; - - ex_closeio = ex_closeio_0_1_1; - - ex_cron_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "ex_cron"; - version = "0.0.2"; - src = fetchHex { - pkg = "ex_cron"; - version = "0.0.2"; - sha256 = - "2d0be58e834bdadd69336f0dd9d61d5e678d99b4de9a766ed45ea85fc87a97cb"; - }; - - meta = { - description = ''Cron schedule generator for Elixir.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/codestuffers/ex-cron"; - }; - } // packageOverrides) - ) {}; - - ex_cron = ex_cron_0_0_2; - - ex_crypto_0_1_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - pipe_0_0_2 - }: - buildMix ({ - name = "ex_crypto"; - version = "0.1.1"; - src = fetchHex { - pkg = "ex_crypto"; - version = "0.1.1"; - sha256 = - "6686151799d3fb5be28e43a05ef3689e1d1144a0d97e4ff3b41fb039265146cb"; - }; - beamDeps = [ poison_2_1_0 pipe_0_0_2 ]; - - meta = { - longDescription = ''A wrapper around the Erlang Crypto module - with sensible defaults for common tasks.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/ntrepid8/ex_crypto"; - }; - } // packageOverrides) - ) {}; - - ex_crypto = ex_crypto_0_1_1; - - ex_csv_0_1_4 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "ex_csv"; - version = "0.1.4"; - src = fetchHex { - pkg = "ex_csv"; - version = "0.1.4"; - sha256 = - "56ee6b70564aa1762f5bfc2b205e55caa83aef046d974614a22b8ec0f839005e"; - }; - - meta = { - description = ''CSV for Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/CargoSense/ex_csv"; - }; - } // packageOverrides) - ) {}; - - ex_csv = ex_csv_0_1_4; - - ex_enum_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, gettext_0_11_0 }: - buildMix ({ - name = "ex_enum"; - version = "0.1.0"; - src = fetchHex { - pkg = "ex_enum"; - version = "0.1.0"; - sha256 = - "f6685959ef337018e42c4baccdce98cc9618974759d1fdb969fcf9a266e590ea"; - }; - beamDeps = [ gettext_0_11_0 ]; - - meta = { - description = ''Enum library for Elixir inspired by - ActiveHash::Enum.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/kenta-aktsk/ex_enum"; - }; - } // packageOverrides) - ) {}; - - ex_enum = ex_enum_0_1_0; - - ex_fabricators_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "ex_fabricators"; - version = "0.1.0"; - src = fetchHex { - pkg = "ex_fabricators"; - version = "0.1.0"; - sha256 = - "edde1017f8a8fc3dbb3915c8791a6d0801f06fbe72f69ec50222dc47930c57d9"; - }; - - meta = { - description = ''Easy way to cook your structs for tests''; - - homepage = "https://github.com/alterego-labs/ex_fabricators"; - }; - } // packageOverrides) - ) {}; - - ex_fabricators = ex_fabricators_0_1_0; - - ex_guard_1_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, fs_0_9_2 }: - buildMix ({ - name = "ex_guard"; - version = "1.1.0"; - src = fetchHex { - pkg = "ex_guard"; - version = "1.1.0"; - sha256 = - "5f990eb24b673c782b4e742351bab14ce466146f3ea1e5324b6b7c34122bd4f9"; - }; - beamDeps = [ fs_0_9_2 ]; - - meta = { - longDescription = ''ExGuard automates various tasks by running - custom rules whenever file or directories are - modified.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/slashmili/ex_guard"; - }; - } // packageOverrides) - ) {}; - - ex_guard = ex_guard_1_1_0; - - ex_hl7_0_2_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "ex_hl7"; - version = "0.2.2"; - src = fetchHex { - pkg = "ex_hl7"; - version = "0.2.2"; - sha256 = - "b6653fd28949f5dc37f18af4320f13dcdea796553e0c429a8260d5c4bf481b0f"; - }; - - meta = { - description = ''HL7 Parser for Elixir''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/jcomellas/ex_hl7"; - }; - } // packageOverrides) - ) {}; - - ex_hl7 = ex_hl7_0_2_2; - - ex_ical_0_0_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, timex_1_0_2 }: - buildMix ({ - name = "ex_ical"; - version = "0.0.3"; - src = fetchHex { - pkg = "ex_ical"; - version = "0.0.3"; - sha256 = - "435bade398c8b72e2515f91eef89f6309951800e8bd30a0a616c1039502c8c95"; - }; - beamDeps = [ timex_1_0_2 ]; - - meta = { - description = ''ICalendar parser.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/fazibear/ex_ical"; - }; - } // packageOverrides) - ) {}; - - ex_ical = ex_ical_0_0_3; - - ex_iss_1_0_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - httpoison_0_8_3 - }: - buildMix ({ - name = "ex_iss"; - version = "1.0.0"; - src = fetchHex { - pkg = "ex_iss"; - version = "1.0.0"; - sha256 = - "8b2b2eebbd75593e814e712555c7f69138864317cf2f0093a82ca305138baa83"; - }; - beamDeps = [ poison_1_5_2 httpoison_0_8_3 ]; - - meta = { - longDescription = ''This package is for interfacing with the Open - Notify API to information such as the ISS`s - current location, crew, and when it will pass - over a location.''; - license = stdenv.lib.licenses.free; - homepage = "https://github.com/cryptobird/ex_iss"; - }; - } // packageOverrides) - ) {}; - - ex_iss = ex_iss_1_0_0; - - ex_json_schema_0_4_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "ex_json_schema"; - version = "0.4.1"; - src = fetchHex { - pkg = "ex_json_schema"; - version = "0.4.1"; - sha256 = - "4acefaa5da4de55d984d1e86be40f6af2173e744cc4f77e70a701a0ea1604328"; - }; - - meta = { - longDescription = ''A JSON Schema validator with full support for - the draft 4 specification and zero - dependencies.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/jonasschmidt/ex_json_schema"; - }; - } // packageOverrides) - ) {}; - - ex_json_schema = ex_json_schema_0_4_1; - - ex_link_header_0_0_4 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "ex_link_header"; - version = "0.0.4"; - src = fetchHex { - pkg = "ex_link_header"; - version = "0.0.4"; - sha256 = - "4ced0014c98703184c1afaf390298593a88503f7fc26b138b20c0a53cc614558"; - }; - - meta = { - description = ''Parse HTTP link headers in Elixir.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/simonrand/ex_link_header"; - }; - } // packageOverrides) - ) {}; - - ex_link_header = ex_link_header_0_0_4; - - ex_machina_0_6_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "ex_machina"; - version = "0.6.1"; - src = fetchHex { - pkg = "ex_machina"; - version = "0.6.1"; - sha256 = - "f55476400ca109d24f216ee961a6d04be4a932429ecd3ae6a948d5d04f4fa2ea"; - }; - - meta = { - description = ''A factory library by the creators of - FactoryGirl''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/thoughtbot/ex_machina"; - }; - } // packageOverrides) - ) {}; - - ex_machina = ex_machina_0_6_1; - - ex_mark2pdf_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, earmark_0_1_19 }: - buildMix ({ - name = "ex_mark2pdf"; - version = "0.1.0"; - src = fetchHex { - pkg = "ex_mark2pdf"; - version = "0.1.0"; - sha256 = - "d1458c9b01bc53b9c365d4d12ac8187b09e06f02667639d4a63c4543427dfb1d"; - }; - beamDeps = [ earmark_0_1_19 ]; - - meta = { - description = ''Generate a PDF from Markdown file.''; - license = stdenv.lib.licenses.free; - homepage = "https://github.com/darui00kara/ex_mark2pdf"; - }; - } // packageOverrides) - ) {}; - - ex_mark2pdf = ex_mark2pdf_0_1_0; - - ex_marshal_0_0_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, decimal_1_1_2 }: - buildMix ({ - name = "ex_marshal"; - version = "0.0.3"; - src = fetchHex { - pkg = "ex_marshal"; - version = "0.0.3"; - sha256 = - "28eaf18799bca83519d0ac517a4fd0a9a2211bea7f96c74b27952a20be2938a8"; - }; - beamDeps = [ decimal_1_1_2 ]; - - meta = { - description = ''Ruby Marshal format implemented in Elixir.''; - license = stdenv.lib.licenses.isc; - homepage = "https://github.com/gaynetdinov/ex_marshal"; - }; - } // packageOverrides) - ) {}; - - ex_marshal = ex_marshal_0_0_3; - - ex_microsoftbot_0_1_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - httpotion_2_2_2 - }: - buildMix ({ - name = "ex_microsoftbot"; - version = "0.1.0"; - src = fetchHex { - pkg = "ex_microsoftbot"; - version = "0.1.0"; - sha256 = - "638a30cab3f9bc85b76beb0dacd3e5d71724ad10de73170f00df12a29eed8d0a"; - }; - beamDeps = [ poison_2_1_0 httpotion_2_2_2 ]; - - meta = { - description = ''This library provides Elixir API wrapper for the - Microsoft Bot Framework.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/zabirauf/ex_microsoftbot"; - }; - } // packageOverrides) - ) {}; - - ex_microsoftbot = ex_microsoftbot_0_1_0; - - ex_minimatch_0_0_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - ex_brace_expansion_0_0_2 - }: - buildMix ({ - name = "ex_minimatch"; - version = "0.0.1"; - src = fetchHex { - pkg = "ex_minimatch"; - version = "0.0.1"; - sha256 = - "3255bb8496635d3ef5d86ec6829958a3573ff730ca01534b0fead9c2e3af7de4"; - }; - beamDeps = [ ex_brace_expansion_0_0_2 ]; - - meta = { - longDescription = ''Globbing paths without walking the tree! - Elixir and Erlang provide `wildcard` functions - in the stdlib. But these will walk the directory - tree. If you simply want to test whether a file - path matches a glob, ExMinimatch is for you. ''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/gniquil/ex_minimatch"; - }; - } // packageOverrides) - ) {}; - - ex_minimatch = ex_minimatch_0_0_1; - - ex_modbus_0_0_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "ex_modbus"; - version = "0.0.3"; - src = fetchHex { - pkg = "ex_modbus"; - version = "0.0.3"; - sha256 = - "bdfd52c43e690a9af041f34b7cd1f6c2843e39fe51b9afcc2a83fbf4d254fd50"; - }; - - meta = { - description = ''An Elixir ModbusTCP client implementation.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/hirschenberger/ex_modbus"; - }; - } // packageOverrides) - ) {}; - - ex_modbus = ex_modbus_0_0_3; - - ex_parametarized_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "ex_parametarized"; - version = "1.0.0"; - src = fetchHex { - pkg = "ex_parametarized"; - version = "1.0.0"; - sha256 = - "daa04087cc41608f1604f2cc52dfe3e3c3ee4612c3b6091d7b6025d10d79f31a"; - }; - - meta = { - description = ''Simple macro for parametarized testing''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/KazuCocoa/ex_parametarized"; - }; - } // packageOverrides) - ) {}; - - ex_parametarized = ex_parametarized_1_0_0; - - ex_parameterized_1_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "ex_parameterized"; - version = "1.0.2"; - src = fetchHex { - pkg = "ex_parameterized"; - version = "1.0.2"; - sha256 = - "c3a9b2471060a7f2cfc4cac4617125d4272991315d6223156d67c10abd055b10"; - }; - - meta = { - description = ''Simple macro for parameterized testing''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/KazuCocoa/ex_parameterized"; - }; - } // packageOverrides) - ) {}; - - ex_parameterized = ex_parameterized_1_0_2; - - ex_pool_0_1_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "ex_pool"; - version = "0.1.1"; - src = fetchHex { - pkg = "ex_pool"; - version = "0.1.1"; - sha256 = - "0e2a945acefa067f902dbfa6cb683884838099d6be496dc43cb7dccf31df978d"; - }; - - meta = { - description = ''A generic pooling library for Elixir''; - license = stdenv.lib.licenses.apsl20; - homepage = "https://github.com/jcabotc/ex_pool"; - }; - } // packageOverrides) - ) {}; - - ex_pool = ex_pool_0_1_1; - - ex_prima_toolbox_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, ex_cli_0_1_0 }: - buildMix ({ - name = "ex_prima_toolbox"; - version = "0.0.2"; - src = fetchHex { - pkg = "ex_prima_toolbox"; - version = "0.0.2"; - sha256 = - "7fc93cf69afba247bbd97118fc56b6d3d79dc6767126581a262b97bff2ffd045"; - }; - beamDeps = [ ex_cli_0_1_0 ]; - - meta = { - description = ''elixir toolbox for prima.it''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/primait/ex_toolbox"; - }; - } // packageOverrides) - ) {}; - - ex_prima_toolbox = ex_prima_toolbox_0_0_2; - - ex_prometheus_io_0_0_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, poison_1_5_2 }: - buildMix ({ - name = "ex_prometheus_io"; - version = "0.0.3"; - src = fetchHex { - pkg = "ex_prometheus_io"; - version = "0.0.3"; - sha256 = - "7c2baaf0eef43d3e68d822532e0ca22daea41f6cce85de6b0ba538819fdb3832"; - }; - beamDeps = [ poison_1_5_2 ]; - - meta = { - description = ''Prometheus.io Elixir client API library''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/kennyballou/ex_prometheus_io"; - }; - } // packageOverrides) - ) {}; - - ex_prometheus_io = ex_prometheus_io_0_0_3; - - ex_rated_1_2_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, ex2ms_1_4_0 }: - buildMix ({ - name = "ex_rated"; - version = "1.2.2"; - src = fetchHex { - pkg = "ex_rated"; - version = "1.2.2"; - sha256 = - "65f7e9aaba3ba5bf8995b34a29c9572652b051cfdd7988e5f9b7ea329bb71ca1"; - }; - beamDeps = [ ex2ms_1_4_0 ]; - - meta = { - longDescription = ''ExRated, the OTP GenServer with the naughty - name that allows you to rate-limit calls to any - service that requires it. For example, - rate-limit calls to your favorite API which - requires no more than `limit` API calls within a - `scale` milliseconds time window. You can - enforce limits for windows as narrow as - milliseconds, or as broad as you like.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/grempe/ex_rated"; - }; - } // packageOverrides) - ) {}; - - ex_rated = ex_rated_1_2_2; - - ex_rfc3966_0_2_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, ex_abnf_0_2_7 }: - buildMix ({ - name = "ex_rfc3966"; - version = "0.2.3"; - src = fetchHex { - pkg = "ex_rfc3966"; - version = "0.2.3"; - sha256 = - "730e14d9670ab0d2b2b24c2d3bfabe861bf21d4163c01db747a91c54090cc0d5"; - }; - beamDeps = [ ex_abnf_0_2_7 ]; - - meta = { - longDescription = ''A \"tel\" URI parser trying to be strictly - compatible with RFC3966. Uses official ABNF - grammar and ex_abnf as interpreter.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/marcelog/ex_rfc3966"; - }; - } // packageOverrides) - ) {}; - - ex_rfc3966 = ex_rfc3966_0_2_3; - - ex_rfc3986_0_2_6 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, ex_abnf_0_2_7 }: - buildMix ({ - name = "ex_rfc3986"; - version = "0.2.6"; - src = fetchHex { - pkg = "ex_rfc3986"; - version = "0.2.6"; - sha256 = - "bfc8ce510f910dbbd1f4a8433de85090375d1701e0b9a488ba7afd8efae98bfa"; - }; - beamDeps = [ ex_abnf_0_2_7 ]; - - meta = { - longDescription = ''An URI parser trying to be strictly - compatible with RFC3986. Uses official ABNF - grammar and ex_abnf as interpreter.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/marcelog/ex_rfc3986"; - }; - } // packageOverrides) - ) {}; - - ex_rfc3986 = ex_rfc3986_0_2_6; - - ex_sider_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "ex_sider"; - version = "0.1.0"; - src = fetchHex { - pkg = "ex_sider"; - version = "0.1.0"; - sha256 = - "00e1fba7bf19e4e072a98941c7ef11cc171e3ed44fdfd0c9bd0c110babf80e34"; - }; - - meta = { - description = ''Elixir Map/List/Set interfaces for Redis - datastructures.''; - license = stdenv.lib.licenses.wtfpl; - homepage = "https://github.com/ephe-meral/ex_sider"; - }; - } // packageOverrides) - ) {}; - - ex_sider = ex_sider_0_1_0; - - ex_sonar_0_0_4 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - floki_0_8_1, - poison_2_1_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "ex_sonar"; - version = "0.0.4"; - src = fetchHex { - pkg = "ex_sonar"; - version = "0.0.4"; - sha256 = - "a0e83e87ae58522ed6f37bb8742a0873be0870e6a60673efa615551b68d5bd4b"; - }; - beamDeps = [ floki_0_8_1 poison_2_1_0 httpoison_0_8_3 ]; - - meta = { - description = ''A Send Sonar API interface for Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/enilsen16/ex_sonar"; - }; - } // packageOverrides) - ) {}; - - ex_sonar = ex_sonar_0_0_4; - - ex_spec_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "ex_spec"; - version = "1.0.0"; - src = fetchHex { - pkg = "ex_spec"; - version = "1.0.0"; - sha256 = - "e5f4b6ee0a918015d1d190ead7807f31ec62a8d8920fc93602bf722c171e7ae8"; - }; - - meta = { - description = ''BDD-like syntax for ExUnit''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/drewolson/ex_spec"; - }; - } // packageOverrides) - ) {}; - - ex_spec = ex_spec_1_0_0; - - ex_sshd_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "ex_sshd"; - version = "0.0.2"; - src = fetchHex { - pkg = "ex_sshd"; - version = "0.0.2"; - sha256 = - "9c7f73aab2d7697ef81eea582dfbde8033e8266dd6de2d34c36bd7e4905b7de4"; - }; - - meta = { - longDescription = ''Simple Elixir SSH worker that provides an - Elixir shell over SSH into your application.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/tverlaan/ex_sshd"; - }; - } // packageOverrides) - ) {}; - - ex_sshd = ex_sshd_0_0_2; - - ex_statsd_0_5_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "ex_statsd"; - version = "0.5.3"; - src = fetchHex { - pkg = "ex_statsd"; - version = "0.5.3"; - sha256 = - "357c616a327a40133e49a54db1d46b0d7c9ab2de186f7bfecdc0efca6394adf6"; - }; - - meta = { - description = ''A StatsD client for Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/CargoSense/ex_statsd"; - }; - } // packageOverrides) - ) {}; - - ex_statsd = ex_statsd_0_5_3; - - ex_sync_0_0_3 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poolboy_1_5_1, - connection_1_0_2 - }: - buildMix ({ - name = "ex_sync"; - version = "0.0.3"; - src = fetchHex { - pkg = "ex_sync"; - version = "0.0.3"; - sha256 = - "bccd72623f75430ca10d5660c7316a6439921161beb7aa65b686713503ea147a"; - }; - beamDeps = [ poolboy_1_5_1 connection_1_0_2 ]; - - meta = { - longDescription = ''A library to handle [Differential - Synchroniazation](https://neil.fraser.name/writing/sync/) - in an Elixir app.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/invrs/exsync"; - }; - } // packageOverrides) - ) {}; - - ex_sync = ex_sync_0_0_3; - - ex_test_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "ex_test"; - version = "0.0.2"; - src = fetchHex { - pkg = "ex_test"; - version = "0.0.2"; - sha256 = - "fdc33e0fa2fdab921fa54f0484645681ed0695f69439a6f40430e31fbc589756"; - }; - - meta = { - description = ''Wrapper around ExUnit to support BBD (rspec) like - syntax''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/mcb/ex_test"; - }; - } // packageOverrides) - ) {}; - - ex_test = ex_test_0_0_2; - - ex_tumblr_0_0_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - oauther_1_0_2, - httpoison_0_8_3 - }: - buildMix ({ - name = "ex_tumblr"; - version = "0.0.1"; - src = fetchHex { - pkg = "ex_tumblr"; - version = "0.0.1"; - sha256 = - "9517b1ca411c91ad7e9776f7e2783908b400fee1779e497fdb1b3c515f61a253"; - }; - beamDeps = [ poison_2_1_0 oauther_1_0_2 httpoison_0_8_3 ]; - - meta = { - description = ''A client for the Tumblr API v2.''; - license = stdenv.lib.licenses.mit; - }; - } // packageOverrides) - ) {}; - - ex_tumblr = ex_tumblr_0_0_1; - - ex_twilio_0_1_8 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - inflex_1_5_0, - poison_2_1_0, - httpotion_2_2_2 - }: - buildMix ({ - name = "ex_twilio"; - version = "0.1.8"; - src = fetchHex { - pkg = "ex_twilio"; - version = "0.1.8"; - sha256 = - "0c7aed748ff4bfb9d8e1f43422d36d41433caa6cf19dc2fa208031d9f8240077"; - }; - beamDeps = [ inflex_1_5_0 poison_2_1_0 httpotion_2_2_2 ]; - - meta = { - description = ''Twilio API library for Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/danielberkompas/ex_twilio"; - }; - } // packageOverrides) - ) {}; - - ex_twilio = ex_twilio_0_1_8; - - ex_twiml_2_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "ex_twiml"; - version = "2.1.0"; - src = fetchHex { - pkg = "ex_twiml"; - version = "2.1.0"; - sha256 = - "7515c90ea4342e178b2894ca4cf8f03225a20c35e94c1f19e47bb839cc5f627d"; - }; - - meta = { - description = ''Generate TwiML with Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/danielberkompas/ex_twiml"; - }; - } // packageOverrides) - ) {}; - - ex_twiml = ex_twiml_2_1_0; - - ex_unit_fixtures_0_3_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "ex_unit_fixtures"; - version = "0.3.1"; - src = fetchHex { - pkg = "ex_unit_fixtures"; - version = "0.3.1"; - sha256 = - "b4b988211bf4cd08a26eb76756e4563c94c6648c195e45af26ea62e4d37a65f6"; - }; - - meta = { - description = ''A modular fixture system for ExUnit, inspired by - py.test fixtures.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/obmarg/ex_unit_fixtures"; - }; - } // packageOverrides) - ) {}; - - ex_unit_fixtures = ex_unit_fixtures_0_3_1; - - ex_unit_notifier_0_1_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "ex_unit_notifier"; - version = "0.1.1"; - src = fetchHex { - pkg = "ex_unit_notifier"; - version = "0.1.1"; - sha256 = - "78afb11d6a470b379de113bde1ff9e0537f5243bc957614961d8e8dadc062268"; - }; - - meta = { - description = ''Show status notifications for ExUnit test runs''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/navinpeiris/ex_unit_notifier"; - }; - } // packageOverrides) - ) {}; - - ex_unit_notifier = ex_unit_notifier_0_1_1; - - ex_victor_ops_0_3_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - httpotion_2_2_2 - }: - buildMix ({ - name = "ex_victor_ops"; - version = "0.3.1"; - src = fetchHex { - pkg = "ex_victor_ops"; - version = "0.3.1"; - sha256 = - "7a8065e44c105952a843f532ab6b1cb59209e886f0770e20bf917fb742f0b9af"; - }; - beamDeps = [ poison_2_1_0 httpotion_2_2_2 ]; - - meta = { - description = ''VictorOps API library for Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/cagedata/ex_victor_ops"; - }; - } // packageOverrides) - ) {}; - - ex_victor_ops = ex_victor_ops_0_3_1; - - ex_vmstats_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "ex_vmstats"; - version = "0.0.1"; - src = fetchHex { - pkg = "ex_vmstats"; - version = "0.0.1"; - sha256 = - "587d088696b51b0e053b2626c6de51ca7be67b5e3a49c7320da5b4e7cd96d347"; - }; - - meta = { - description = ''An Elixir package for pushing Erlang VM stats - into StatsD.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/fanduel/ex_vmstats"; - }; - } // packageOverrides) - ) {}; - - ex_vmstats = ex_vmstats_0_0_1; - - exactor_2_2_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "exactor"; - version = "2.2.0"; - src = fetchHex { - pkg = "exactor"; - version = "2.2.0"; - sha256 = - "c60cd68899db3ec0bdbd41c7ccf3ae3b52391a18704040461763f052e97b5e15"; - }; - - meta = { - description = ''Simplified creation of GenServer based processes - in Elixir.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/sasa1977/exactor"; - }; - } // packageOverrides) - ) {}; - - exactor = exactor_2_2_0; - - exalgebra_0_0_5 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "exalgebra"; - version = "0.0.5"; - src = fetchHex { - pkg = "exalgebra"; - version = "0.0.5"; - sha256 = - "b84a96ffb7a2dd0c497f176c2e9d0ef07c719f09702d71fb8a801a3f2db1ab50"; - }; - - meta = { - longDescription = ''The ExAlgebra library is a collection of - functions that are commonly used in linear - algebra.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/leighshepperson/exalgebra"; - }; - } // packageOverrides) - ) {}; - - exalgebra = exalgebra_0_0_5; - - exalice_0_0_6_alpha = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - tirexs_0_8_0_beta6, - poison_2_1_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "exalice"; - version = "0.0.6-alpha"; - src = fetchHex { - pkg = "exalice"; - version = "0.0.6-alpha"; - sha256 = - "b5f95ddebb9def3efb926fc7e4c639bbad008e5e19073b56e13d684417520922"; - }; - beamDeps = [ tirexs_0_8_0_beta6 poison_2_1_0 httpoison_0_8_3 ]; - - meta = { - description = ''ExAlice, a geocoder with swappable storage''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/kpanic/exalice"; - }; - } // packageOverrides) - ) {}; - - exalice = exalice_0_0_6_alpha; - - example_files_0_2_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "example_files"; - version = "0.2.0"; - src = fetchHex { - pkg = "example_files"; - version = "0.2.0"; - sha256 = - "5454a42e421f5b35669fa80aeac067ca010dfb4fd7f834a530070e2a95d71689"; - }; - - meta = { - longDescription = ''Mix tasks for managing example files in your - project. Your project may contain files that are - intended to serve as explanatory samples of - files provided by a project contributor or user, - such as configuration and the like. The Mix - tasks provided here enable you to easily find, - copy, and check the freshness of example files - and your copies of them.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/njonsson/example_files"; - }; - } // packageOverrides) - ) {}; - - example_files = example_files_0_2_0; - - exbackoff_0_0_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "exbackoff"; - version = "0.0.3"; - src = fetchHex { - pkg = "exbackoff"; - version = "0.0.3"; - sha256 = - "dc3df168c73800c0978d732c121cd934ce2e5564d6addb953f8601e3010ae225"; - }; - - meta = { - description = ''Simple exponential backoffs in Elixir.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/mingchuno/exbackoff"; - }; - } // packageOverrides) - ) {}; - - exbackoff = exbackoff_0_0_3; - - exbouncer_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "exbouncer"; - version = "0.0.1"; - src = fetchHex { - pkg = "exbouncer"; - version = "0.0.1"; - sha256 = - "1152124b31dd00eddfb59fff015d92632744fa5cd4630a7eb8976a82aa012e41"; - }; - - meta = { - longDescription = ''An authorization library in Elixir for Plug - applications that restricts what resources the - current user/admin or any role is allowed to - access,''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/vysakh0/exbouncer"; - }; - } // packageOverrides) - ) {}; - - exbouncer = exbouncer_0_0_1; - - excaliper_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "excaliper"; - version = "0.0.1"; - src = fetchHex { - pkg = "excaliper"; - version = "0.0.1"; - sha256 = - "d43430518ffcf8de60a1d44355f6a200f348ec1ca8bc4287ca17c97543e86732"; - }; - - meta = { - description = ''Fast image dimension detector inspired by the - Node.JS module Calipers.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/mgartner/excaliper"; - }; - } // packageOverrides) - ) {}; - - excaliper = excaliper_0_0_1; - - excellent_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "excellent"; - version = "0.0.1"; - src = fetchHex { - pkg = "excellent"; - version = "0.0.1"; - sha256 = - "a0628dce02de6a33cf441883723c480b0f07fdacade46f6d608465bb717491bd"; - }; - - meta = { - description = ''A OpenXL (Excel files ending with .xlsx) parser - for Elixir.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/leifg/excellent"; - }; - } // packageOverrides) - ) {}; - - excellent = excellent_0_0_1; - - excetera_0_0_3 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "excetera"; - version = "0.0.3"; - src = fetchHex { - pkg = "excetera"; - version = "0.0.3"; - sha256 = - "e127e4f553c3925ce301b782cd8e8f123c72cf2463f7f032042f59892e5f37c3"; - }; - beamDeps = [ poison_2_1_0 httpoison_0_8_3 ]; - - meta = { - description = ''Elixir bindings for etcd`s HTTP API.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/mingchuno/excetera"; - }; - } // packageOverrides) - ) {}; - - excetera = excetera_0_0_3; - - excoap_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "excoap"; - version = "0.0.1"; - src = fetchHex { - pkg = "excoap"; - version = "0.0.1"; - sha256 = - "06caae698590da85aded80db7996300127d48a4e9cf7bdca8d35113c094e5094"; - }; - - meta = { - description = ''CoAP implementation for Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/mbialon/excoap"; - }; - } // packageOverrides) - ) {}; - - excoap = excoap_0_0_1; - - excollections_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "excollections"; - version = "0.0.2"; - src = fetchHex { - pkg = "excollections"; - version = "0.0.2"; - sha256 = - "1924fd5bd3c1c7418a9150ca8fcb2d2700a82671f3a76972edc9bc51d32a2093"; - }; - - meta = { - longDescription = ''A collection of data-structures and related - algorithms for Elixir, implemented in Elixir.''; - license = stdenv.lib.licenses.mit; - homepage = - "https://github.com/metabrain/elixir-playground/tree/master/excollections"; - }; - } // packageOverrides) - ) {}; - - excollections = excollections_0_0_2; - - exconstructor_1_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "exconstructor"; - version = "1.0.2"; - src = fetchHex { - pkg = "exconstructor"; - version = "1.0.2"; - sha256 = - "e8cd1c88d5ea044a340fed75deb1fda2edc71afaac157dce561288a6bf733035"; - }; - - meta = { - longDescription = ''ExConstructor generates constructor functions - for your structs, handling map-vs-keyword-list, - string-vs-atom-keys, and - camelCase-vs-under_score issues - automatically.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/appcues/exconstructor"; - }; - } // packageOverrides) - ) {}; - - exconstructor = exconstructor_1_0_2; - - exdash_0_3_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "exdash"; - version = "0.3.1"; - src = fetchHex { - pkg = "exdash"; - version = "0.3.1"; - sha256 = - "6a2a3e3c8ea80e5a9e6641db4a109a0a1e0a09c6b7bf190a8b98fa9a650325c5"; - }; - - meta = { - description = ''Lodash implementation for Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/TFarla/exdash"; - }; - } // packageOverrides) - ) {}; - - exdash = exdash_0_3_1; - - exdatauri_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "exdatauri"; - version = "0.1.0"; - src = fetchHex { - pkg = "exdatauri"; - version = "0.1.0"; - sha256 = - "46d064019d4d785428226baafbc3f11fc8621838b0d633768f18182d2cf4a719"; - }; - - meta = { - description = ''A RFC 2397 URI parser for Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/flupke/exdatauri"; - }; - } // packageOverrides) - ) {}; - - exdatauri = exdatauri_0_1_0; - - exddb_0_1_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, erlcloud_0_11_0 }: - buildMix ({ - name = "exddb"; - version = "0.1.3"; - src = fetchHex { - pkg = "exddb"; - version = "0.1.3"; - sha256 = - "e57bd285110585476a457a843fdcff3cce6923c9472b6bec95ac9bf986dd27e4"; - }; - beamDeps = [ erlcloud_0_11_0 ]; - - meta = { - description = ''Simple library for working with data in - DynamoDB.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/muhmi/exddb"; - }; - } // packageOverrides) - ) {}; - - exddb = exddb_0_1_3; - - exdesk_0_2_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - httpoison_0_8_3 - }: - buildMix ({ - name = "exdesk"; - version = "0.2.0"; - src = fetchHex { - pkg = "exdesk"; - version = "0.2.0"; - sha256 = - "0c1e02bb4aef9075ff4affb3354c0e318dc3be1817faae8b450ef590c7d67688"; - }; - beamDeps = [ poison_1_5_2 httpoison_0_8_3 ]; - - meta = { - description = ''Desk.com client library for elixir.''; - - homepage = "https://github.com/deadkarma/exdesk"; - }; - } // packageOverrides) - ) {}; - - exdesk = exdesk_0_2_0; - - exdisque_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, eredis_1_0_8 }: - buildMix ({ - name = "exdisque"; - version = "0.0.1"; - src = fetchHex { - pkg = "exdisque"; - version = "0.0.1"; - sha256 = - "c3b7ec89217df46ae6cf1adadb81118877c66272266f0ee5e2c7ff45d048fb31"; - }; - beamDeps = [ eredis_1_0_8 ]; - - meta = { - description = ''Elixir client library for Disque: - https://github.com/antirez/disque''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/mosic/exdisque"; - }; - } // packageOverrides) - ) {}; - - exdisque = exdisque_0_0_1; - - exec_1_0_1 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "exec"; - version = "1.0.1"; - src = fetchHex { - pkg = "exec"; - version = "1.0.1"; - sha256 = - "87c7ef2dea2bb503bb0eec8cb34776172999aecc6e12d90f7629796a7a3ccb1f"; - }; - compilePorts = true; - buildPlugins = [ pc ]; - - - meta = { - description = ''OS Process Manager''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/saleyn/erlexec"; - }; - } // packageOverrides) - ) {}; - - exec = exec_1_0_1; - - execjs_1_1_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, poison_1_5_2 }: - buildMix ({ - name = "execjs"; - version = "1.1.3"; - src = fetchHex { - pkg = "execjs"; - version = "1.1.3"; - sha256 = - "a0992d14ccc3458563be305d70fd6f6f6e9db6e8b62dd4e15bf69aeb382eb074"; - }; - beamDeps = [ poison_1_5_2 ]; - - meta = { - description = ''Run JavaScript code from Elixir''; - license = stdenv.lib.licenses.unlicense; - homepage = "https://github.com/devinus/execjs"; - }; - } // packageOverrides) - ) {}; - - execjs = execjs_1_1_3; - - exelli_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "exelli"; - version = "0.1.0"; - src = fetchHex { - pkg = "exelli"; - version = "0.1.0"; - sha256 = - "9777493429d5b4e3f3a9391ede7706deba65b253aa0d810efa9e26859b6f269c"; - }; - - meta = { - longDescription = ''Elli wrapper in elixir, with some sugar - syntax. (even 2 times faster than Plug on - Cowboy) ''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/pigmej/exelli"; - }; - } // packageOverrides) - ) {}; - - exelli = exelli_0_1_0; - - exexec_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, erlexec_1_1_3 }: - buildMix ({ - name = "exexec"; - version = "0.0.1"; - src = fetchHex { - pkg = "exexec"; - version = "0.0.1"; - sha256 = - "890122cae91cc739f84dad66b7358c9e7961dadbebeb650e71ccdeab8963ff91"; - }; - beamDeps = [ erlexec_1_1_3 ]; - - meta = { - description = ''An idiomatic Elixir wrapper for erlexec.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/antipax/exexec"; - }; - } // packageOverrides) - ) {}; - - exexec = exexec_0_0_1; - - exexif_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "exexif"; - version = "0.0.1"; - src = fetchHex { - pkg = "exexif"; - version = "0.0.1"; - sha256 = - "48db21d8a77a9f922046ad6018266c0df32efb82331113ccb787e08fb7464a74"; - }; - - meta = { - longDescription = ''Read TIFF and EXIF information from a - JPEG-format image. 1. Retrieve data from a file: - iex> {:ok, info} = - Exexif.exif_from_jpeg_file(path) Retrieve data - from a binary containing the JPEG (you don`t - need the whole thing—the exif is near the - beginning of a JPEG, so 100k or so should do - fine). iex> {:ok, info} = - Exexif.exif_from_jpeg_buffer(buffer) 2. Access - the high level TIFF data: iex> info.x_resolution - 72 iex> info.model \"DSC-RX100M2\" 3. The exif - data is in there, too. iex> - info.exif.color_space \"sRGB\" iex> info.exif |> - Dict.keys [:brightness_value, :color_space, - :component_configuration, - :compressed_bits_per_pixel, :contrast, - :custom_rendered, :datetime_original, - :datetime_tigitized, :digital_zoom_ratio, - :exif_image_height, :exif_image_width, - :exif_version, :exposure_bias_value, - :exposure_mode, :exposure_program, - :exposure_time, :f_number, :file_source, :flash, - :flash_pix_persion, :focal_length, - :focal_length_in_35mm_film, :iso_speed_ratings, - :lens_info, :light_source, :max_aperture_value, - :metering_mode, :recommended_exposure, - :saturation, :scene_capture_type, :scene_type, - :sensitivity_type, :sharpness, :white_balance] - ''; - license = stdenv.lib.licenses.free; - homepage = "https://github.com/pragdave/exexif"; - }; - } // packageOverrides) - ) {}; - - exexif = exexif_0_0_1; - - exfavicon_0_3_3 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - httpoison_0_8_3, - floki_0_8_1 - }: - buildMix ({ - name = "exfavicon"; - version = "0.3.3"; - src = fetchHex { - pkg = "exfavicon"; - version = "0.3.3"; - sha256 = - "f1c5aa3506c90ba28e6f3ddcf3e9feda8518af1b4b12a6d2f518f86a10d1719b"; - }; - beamDeps = [ httpoison_0_8_3 floki_0_8_1 ]; - - meta = { - description = ''A exfavicon to detect a site`s favicon.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/ikeikeikeike/exfavicon"; - }; - } // packageOverrides) - ) {}; - - exfavicon = exfavicon_0_3_3; - - exfirebase_0_4_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - httpotion_2_2_2, - exjsx_3_2_0 - }: - buildMix ({ - name = "exfirebase"; - version = "0.4.0"; - src = fetchHex { - pkg = "exfirebase"; - version = "0.4.0"; - sha256 = - "acd2f1fe87e83437a5d52b811b3e86bc75933bc29b0daa2da836a97ddd60b478"; - }; - beamDeps = [ httpotion_2_2_2 exjsx_3_2_0 ]; - - meta = { - description = ''An elixir library for accessing the Firebase REST - API.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/parroty/exfirebase"; - }; - } // packageOverrides) - ) {}; - - exfirebase = exfirebase_0_4_0; - - exfoaas_0_0_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "exfoaas"; - version = "0.0.2"; - src = fetchHex { - pkg = "exfoaas"; - version = "0.0.2"; - sha256 = - "521f355f8c38c056f66cd8ac236f561c2a3502e451c07a88761e05c22c8848aa"; - }; - beamDeps = [ poison_2_1_0 httpoison_0_8_3 ]; - - meta = { - description = ''brings the utility of FOAAS to elixir.''; - license = stdenv.lib.licenses.wtfpl; - homepage = "https://github.com/cryptobird/ExFOAAS.git"; - }; - } // packageOverrides) - ) {}; - - exfoaas = exfoaas_0_0_2; - - exfsm_0_1_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "exfsm"; - version = "0.1.3"; - src = fetchHex { - pkg = "exfsm"; - version = "0.1.3"; - sha256 = - "6535a0565d6013ca728c10e11c9ac85216d995652892469f7380147da8c3d727"; - }; - - meta = { - longDescription = ''Simple elixir library to define composable - FSM as function (not related at all with - `:gen_fsm`, no state/process management)''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/awetzel/exfsm"; - }; - } // packageOverrides) - ) {}; - - exfsm = exfsm_0_1_3; - - exfswatch_0_1_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, fs_0_9_2 }: - buildMix ({ - name = "exfswatch"; - version = "0.1.1"; - src = fetchHex { - pkg = "exfswatch"; - version = "0.1.1"; - sha256 = - "b97d5e120dc9efbf31e182625e1382f09202cf66863161570221bb4e1bfa82a1"; - }; - beamDeps = [ fs_0_9_2 ]; - - meta = { - description = ''A file change watcher wrapper based on - [fs](https://github.com/synrc/fs)''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/falood/exfswatch"; - }; - } // packageOverrides) - ) {}; - - exfswatch = exfswatch_0_1_1; - - exfuck_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "exfuck"; - version = "0.1.0"; - src = fetchHex { - pkg = "exfuck"; - version = "0.1.0"; - sha256 = - "c71358ae7a31682d84f89f7f5fdc1c6b545ea93f70391a9ec15987458d70dbe8"; - }; - - meta = { - description = ''Brainfuck interpreter written in elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/shiroyasha/exfuck"; - }; - } // packageOverrides) - ) {}; - - exfuck = exfuck_0_1_0; - - exgenius_0_0_5 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - httpoison_0_8_3, - exjsx_3_2_0 - }: - buildMix ({ - name = "exgenius"; - version = "0.0.5"; - src = fetchHex { - pkg = "exgenius"; - version = "0.0.5"; - sha256 = - "f0f4463ac9ad79a102a1bf0ded91d77ed87ce262da6045990be51450ef240fd5"; - }; - beamDeps = [ httpoison_0_8_3 exjsx_3_2_0 ]; - - meta = { - longDescription = '' Elixir library for the (undocumented) Rap - Genius (and also Rock, Tech, Pop, Country, etc) - API ''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/jeffweiss/exgenius"; - }; - } // packageOverrides) - ) {}; - - exgenius = exgenius_0_0_5; - - exgingerapi_0_0_3 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_0_1, - httpoison_0_8_3 - }: - buildMix ({ - name = "exgingerapi"; - version = "0.0.3"; - src = fetchHex { - pkg = "exgingerapi"; - version = "0.0.3"; - sha256 = - "7375b282a1b290e851bbbb7de499c099ff0310443e8a51d8741554b92d4a08f1"; - }; - beamDeps = [ poison_2_0_1 httpoison_0_8_3 ]; - - meta = { - description = ''Elixir wrapper for ginger proofreading API - (english)''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/nathanjohnson320/exgingerapi"; - }; - } // packageOverrides) - ) {}; - - exgingerapi = exgingerapi_0_0_3; - - exgravatar_2_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "exgravatar"; - version = "2.0.0"; - src = fetchHex { - pkg = "exgravatar"; - version = "2.0.0"; - sha256 = - "ddfcfc899f24fd98c811a6824964c85b5c87a60f41fe034380081680d5c8e765"; - }; - - meta = { - description = ''An Elixir module for generating Gravatar urls.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/scrogson/exgravatar"; - }; - } // packageOverrides) - ) {}; - - exgravatar = exgravatar_2_0_0; - - exhcl_0_2_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "exhcl"; - version = "0.2.1"; - src = fetchHex { - pkg = "exhcl"; - version = "0.2.1"; - sha256 = - "9c7ab6216cd978b2dd3f6573dd3ccf0a9d5055b36008a0ada01d9431198c17f7"; - }; - - meta = { - description = ''Configuration language inspired by HCL''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/asakura/exhcl"; - }; - } // packageOverrides) - ) {}; - - exhcl = exhcl_0_2_1; - - exiban_0_0_4 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "exiban"; - version = "0.0.4"; - src = fetchHex { - pkg = "exiban"; - version = "0.0.4"; - sha256 = - "c1d1da991db264ca99b9e9245bb09d69f6297050b18329be1e4c01d5106778b5"; - }; - - meta = { - description = ''Library for manipulating and validating IBAN - account numbers.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/kkempin/exiban"; - }; - } // packageOverrides) - ) {}; - - exiban = exiban_0_0_4; - - exirc_0_10_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "exirc"; - version = "0.10.0"; - src = fetchHex { - pkg = "exirc"; - version = "0.10.0"; - sha256 = - "f2382ad3d97e791cc38ce54558296bb0afe7d222dc5f248ec72c6a0ca9c494a8"; - }; - - meta = { - description = ''An IRC client library for Elixir.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/bitwalker/exirc"; - }; - } // packageOverrides) - ) {}; - - exirc_0_11_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "exirc"; - version = "0.11.0"; - src = fetchHex { - pkg = "exirc"; - version = "0.11.0"; - sha256 = - "797a91fd92ca93d639bf323ea4b31a42ed4ac2d67d3096100df7b1b615a88ace"; - }; - - meta = { - description = ''An IRC client library for Elixir.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/bitwalker/exirc"; - }; - } // packageOverrides) - ) {}; - - exirc = exirc_0_11_0; - - exjson_0_5_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "exjson"; - version = "0.5.0"; - src = fetchHex { - pkg = "exjson"; - version = "0.5.0"; - sha256 = - "749422adf4381c8089a910d0ca545282ff0bd506cd4e17a6a08f4f9e7799fa94"; - }; - - meta = { - description = ''A simple Elixir implementation of JSON with an - Erlang parser.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/guedes/exjson"; - }; - } // packageOverrides) - ) {}; - - exjson = exjson_0_5_0; - - exjsx_3_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, jsx_2_5_3 }: - buildMix ({ - name = "exjsx"; - version = "3.0.2"; - src = fetchHex { - pkg = "exjsx"; - version = "3.0.2"; - sha256 = - "2cd67240a54e9cd2616bc83c0c352d47f87bccd2ec599eceedc00bcbe9063f07"; - }; - beamDeps = [ jsx_2_5_3 ]; - - meta = { - description = ''json for elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/talentdeficit/exjsx"; - }; - } // packageOverrides) - ) {}; - - exjsx_3_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, jsx_2_5_3 }: - buildMix ({ - name = "exjsx"; - version = "3.1.0"; - src = fetchHex { - pkg = "exjsx"; - version = "3.1.0"; - sha256 = - "588a0b67ed0c45b21f018515fc478efac83c088661bd588831e41c9073a818fb"; - }; - beamDeps = [ jsx_2_5_3 ]; - - meta = { - description = ''json for elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/talentdeficit/exjsx"; - }; - } // packageOverrides) - ) {}; - - exjsx_3_2_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, jsx_2_6_2 }: - buildMix ({ - name = "exjsx"; - version = "3.2.0"; - src = fetchHex { - pkg = "exjsx"; - version = "3.2.0"; - sha256 = - "9c8600822e894e3c31bed800c78a5a04812b71a6e5a5656426c6ce01ebe2cf1c"; - }; - beamDeps = [ jsx_2_6_2 ]; - - meta = { - description = ''json for elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/talentdeficit/exjsx"; - }; - } // packageOverrides) - ) {}; - - exjsx = exjsx_3_2_0; - - exkanji_0_2_6 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, exromaji_0_3_0 }: - buildMix ({ - name = "exkanji"; - version = "0.2.6"; - src = fetchHex { - pkg = "exkanji"; - version = "0.2.6"; - sha256 = - "2de4907764e9f1f2c67d9bc6b49a44d50fd0cbc86b5848cbada14438616636d1"; - }; - beamDeps = [ exromaji_0_3_0 ]; - - meta = { - longDescription = ''A Elixir library for translating between - hiragana, katakana, romaji and kanji. It uses - Mecab.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/ikeikeikeike/exkanji"; - }; - } // packageOverrides) - ) {}; - - exkanji = exkanji_0_2_6; - - exkismet_0_0_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - httpoison_0_8_3 - }: - buildMix ({ - name = "exkismet"; - version = "0.0.2"; - src = fetchHex { - pkg = "exkismet"; - version = "0.0.2"; - sha256 = - "3648f010eb80891b0195f9ced0e02a5a08860a9d96e8f7bbe328c68f27b85b64"; - }; - beamDeps = [ poison_1_5_2 httpoison_0_8_3 ]; - - meta = { - description = ''A client (completely unofficial) for the - Akismet.com comment-spam detection API.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/cameronp/exkismet"; - }; - } // packageOverrides) - ) {}; - - exkismet = exkismet_0_0_2; - - exldap_0_2_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "exldap"; - version = "0.2.0"; - src = fetchHex { - pkg = "exldap"; - version = "0.2.0"; - sha256 = - "7e2d1e96dacaddd6b515cc2033b5c9e21d23d1897e3a9f8ca2b6f31d091d72a6"; - }; - - meta = { - description = ''A module for working with LDAP from Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/jmerriweather/exldap"; - }; - } // packageOverrides) - ) {}; - - exldap = exldap_0_2_0; - - exleveldb_0_7_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "exleveldb"; - version = "0.7.0"; - src = fetchHex { - pkg = "exleveldb"; - version = "0.7.0"; - sha256 = - "90ff2b76b58c889e60203951c1cf5072cf24fd1fad9faad3dce6c96bf34330fc"; - }; - - meta = { - longDescription = ''Exleveldb is a thin wrapper around Basho`s - eleveldb (github.com/basho/eleveldb). At the - moment, Exleveldb exposes functions for the - following features of LevelDB: - Opening a new - datastore. - Closing an open datastore. - - Getting values by key. - Storing individual - key-value pairs. - Deleting stored key-value - pairs. - Checking if a datastore is empty. - - Folding over key-value pairs in the datastore. - - Folding over keys in the datastore. - Batch - writes to the datastore (put or delete). - - Destroying a datastore. Additionally, the option - of streaming key-value pairs or keys from the - datastore has been added in v0.5.0. Note: - Because eleveldb is not a hex package, you will - need to include it as a separate dependency in - your project (See `README.md`).''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/skovsgaard/exleveldb.git"; - }; - } // packageOverrides) - ) {}; - - exleveldb = exleveldb_0_7_0; - - exlibris_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "exlibris"; - version = "0.0.1"; - src = fetchHex { - pkg = "exlibris"; - version = "0.0.1"; - sha256 = - "c6f957233b464eeddf590bad43368427ee9c715470e89d2f348d7d01935ad7be"; - }; - - meta = { - longDescription = ''A collection of random library functions I - use across multiple projects: pipe_while_ok: - Create pipelines that terminate early if any - step fails to return a tuple that starts {:ok, - ...} before_returning: Like Ruby`s returning, it - evaluates its first argument, then evalates the - do block. It always returns the value of its - first argument. ''; - license = stdenv.lib.licenses.free; - homepage = "https://github.com/pragdave/exlibris"; - }; - } // packageOverrides) - ) {}; - - exlibris = exlibris_0_0_1; - - exlingr_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "exlingr"; - version = "0.0.1"; - src = fetchHex { - pkg = "exlingr"; - version = "0.0.1"; - sha256 = - "b45acd0e10f719b88c943b3194b7fded6ece9874c7da2c1f18b2ce2425581701"; - }; - - meta = { - description = ''Lingr client library for elixir. ''; - license = stdenv.lib.licenses.wtfpl; - homepage = "https://github.com/mtwtkman/exlingr"; - }; - } // packageOverrides) - ) {}; - - exlingr = exlingr_0_0_1; - - exmatrix_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, benchfella_0_3_2 }: - buildMix ({ - name = "exmatrix"; - version = "0.0.1"; - src = fetchHex { - pkg = "exmatrix"; - version = "0.0.1"; - sha256 = - "58fe316b1ee31f9394f246ec91a6a9157dfae0c38ea649a4c11f70976ca1d13b"; - }; - beamDeps = [ benchfella_0_3_2 ]; - - meta = { - longDescription = ''ExMatrix is a small library for working with - matrices, originally developed for testing - matrix multiplication in parallel.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/a115/exmatrix"; - }; - } // packageOverrides) - ) {}; - - exmatrix = exmatrix_0_0_1; - - exmerl_0_1_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "exmerl"; - version = "0.1.1"; - src = fetchHex { - pkg = "exmerl"; - version = "0.1.1"; - sha256 = - "4bb5d6c1863c5e381b460416c9b517a211db9abd9abf0f32c99b07e128b842aa"; - }; - - meta = { - description = ''An Elixir wrapper for parsing XML through the - xmerl_* suite of modules ''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/pwoolcoc/exmerl"; - }; - } // packageOverrides) - ) {}; - - exmerl = exmerl_0_1_1; - - exmetrics_1_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "exmetrics"; - version = "1.1.0"; - src = fetchHex { - pkg = "exmetrics"; - version = "1.1.0"; - sha256 = - "1f4645ca0e9ef9b1815c0b301ff2f9a5b5548bc45adb68386cb6529998513d1b"; - }; - - meta = { - longDescription = ''Exmetrics provides counters, gauges and - histograms for instrumenting an elixir - application.''; - license = stdenv.lib.licenses.mit; - }; - } // packageOverrides) - ) {}; - - exmetrics = exmetrics_1_1_0; - - exml_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "exml"; - version = "0.1.0"; - src = fetchHex { - pkg = "exml"; - version = "0.1.0"; - sha256 = - "aeed2cc53cae303180fa18eb552241af32e7f05af94ac82de9b81d67b71dee78"; - }; - - meta = { - description = ''Most simple Elixir wrapper for xmerl xpath''; - - }; - } // packageOverrides) - ) {}; - - exml = exml_0_1_0; - - exmoji_0_2_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, poison_1_5_2 }: - buildMix ({ - name = "exmoji"; - version = "0.2.2"; - src = fetchHex { - pkg = "exmoji"; - version = "0.2.2"; - sha256 = - "d0123ec6fd14506da93b0e8fdb7c2efa819cc69addeb56a78f3c1e0b8a09d015"; - }; - beamDeps = [ poison_1_5_2 ]; - - meta = { - description = ''Emoji encoding swiss army knife for dealing with - Unicode and other gotchas.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/mroth/exmoji"; - }; - } // packageOverrides) - ) {}; - - exmoji = exmoji_0_2_2; - - exns_0_3_5_beta = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - uuid_1_1_4, - poolboy_1_5_1, - poison_1_5_2, - msgpax_0_8_2 - }: - buildMix ({ - name = "exns"; - version = "0.3.5-beta"; - src = fetchHex { - pkg = "exns"; - version = "0.3.5-beta"; - sha256 = - "2c5b1f263ebfe9636802cca5559e74009ae4384418e44820f0ff05130dbcb593"; - }; - beamDeps = [ uuid_1_1_4 poolboy_1_5_1 poison_1_5_2 msgpax_0_8_2 - ]; - - meta = { - longDescription = ''A library for writing clients to communicate - with Python nanoservices via nanomsg.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/walkr/exns"; - }; - } // packageOverrides) - ) {}; - - exns = exns_0_3_5_beta; - - exnumerable_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "exnumerable"; - version = "0.0.1"; - src = fetchHex { - pkg = "exnumerable"; - version = "0.0.1"; - sha256 = - "ea6041540da09b96176a37bdd71e3c6fbacb8353aca3b084deedb17cee265e2e"; - }; - - meta = { - description = ''Enumerable type definition in a simple way to be - used with any database.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/KamilLelonek/exnumerable"; - }; - } // packageOverrides) - ) {}; - - exnumerable = exnumerable_0_0_1; - - exnumerator_1_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "exnumerator"; - version = "1.1.0"; - src = fetchHex { - pkg = "exnumerator"; - version = "1.1.0"; - sha256 = - "1c52033471dfae7b32c897cb0034eb1d3602bcb14342ca08090c42b02001b2fd"; - }; - - meta = { - description = ''Enumerable type definition in a simple way to be - used with any database.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/KamilLelonek/exnumerator"; - }; - } // packageOverrides) - ) {}; - - exnumerator = exnumerator_1_1_0; - - exnumterator_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "exnumterator"; - version = "1.0.0"; - src = fetchHex { - pkg = "exnumterator"; - version = "1.0.0"; - sha256 = - "895b1dfff48d0459e66338ca8a8b831c2f31654fc0758a24e11a2f54a9cb1106"; - }; - - meta = { - description = ''Enumerable type definition in a simple way to be - used with any database.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/KamilLelonek/exnumterator"; - }; - } // packageOverrides) - ) {}; - - exnumterator = exnumterator_1_0_0; - - exoddic_1_3_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "exoddic"; - version = "1.3.1"; - src = fetchHex { - pkg = "exoddic"; - version = "1.3.1"; - sha256 = - "e244c4aab1a25836300973f8afd42aef41dea19121c748c4b6d7b447db842194"; - }; - - meta = { - description = ''Odds and probability handling and conversions''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/mwmiller/exoddic"; - }; - } // packageOverrides) - ) {}; - - exoddic = exoddic_1_3_1; - - expand_0_0_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "expand"; - version = "0.0.3"; - src = fetchHex { - pkg = "expand"; - version = "0.0.3"; - sha256 = - "5f2ce07ba074392100fc5f6b8e8af9ec728ce4716e592422c510997d543efa63"; - }; - - meta = { - description = ''A pretty printer''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/joeyates/expand"; - }; - } // packageOverrides) - ) {}; - - expand = expand_0_0_3; - - exparticle_0_0_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - httpoison_0_8_3 - }: - buildMix ({ - name = "exparticle"; - version = "0.0.2"; - src = fetchHex { - pkg = "exparticle"; - version = "0.0.2"; - sha256 = - "ce70b77da48e84307791af00143ad4b9677d39765459865976d459d3b1bdcaf2"; - }; - beamDeps = [ poison_1_5_2 httpoison_0_8_3 ]; - - meta = { - description = ''ExParticle is an elixir client to communicate - with Particle Cloud API''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/mtanzi/exparticle"; - }; - } // packageOverrides) - ) {}; - - exparticle = exparticle_0_0_2; - - experiment_0_0_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "experiment"; - version = "0.0.3"; - src = fetchHex { - pkg = "experiment"; - version = "0.0.3"; - sha256 = - "5acb6c232aff08719f97254ca27ed1eb165c3f2d229e03cda85e4d31ad7b3156"; - }; - - meta = { - description = ''Experiment is a library for carefully refactoring - critical paths in production.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/andrewvy/experiment"; - }; - } // packageOverrides) - ) {}; - - experiment = experiment_0_0_3; - - expinboard_0_0_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - ibrowse_4_2_2, - httpotion_2_2_2, - exjsx_3_2_0 - }: - buildMix ({ - name = "expinboard"; - version = "0.0.1"; - src = fetchHex { - pkg = "expinboard"; - version = "0.0.1"; - sha256 = - "3ff152d837293c0f53ead6cba4180ced55308d2869faa698e459abbe23d59bdc"; - }; - beamDeps = [ ibrowse_4_2_2 httpotion_2_2_2 exjsx_3_2_0 ]; - - meta = { - description = ''A simple elixir pinboard client.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/thilko/expinboard"; - }; - } // packageOverrides) - ) {}; - - expinboard = expinboard_0_0_1; - - expletive_0_1_4 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "expletive"; - version = "0.1.4"; - src = fetchHex { - pkg = "expletive"; - version = "0.1.4"; - sha256 = - "dfb9ac919526bcb7f28b5acadad634b7e9d220203874ef124a87264a078f24b4"; - }; - - meta = { - description = ''Profanity detection and sanitization library''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/xavier/expletive"; - }; - } // packageOverrides) - ) {}; - - expletive = expletive_0_1_4; - - expool_0_2_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "expool"; - version = "0.2.0"; - src = fetchHex { - pkg = "expool"; - version = "0.2.0"; - sha256 = - "f0cc61c365d1950522ad5816cf638353602db5a5d74feb7c96748dfa2b6f9d07"; - }; - - meta = { - description = ''Simple process pooling and task submission''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/zackehh/expool"; - }; - } // packageOverrides) - ) {}; - - expool = expool_0_2_0; - - export_0_0_7 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "export"; - version = "0.0.7"; - src = fetchHex { - pkg = "export"; - version = "0.0.7"; - sha256 = - "76c2a174b01f0fac1c3bc5083a7982fb8d41778518e279a526b40e4ced05d1d0"; - }; - - meta = { - description = ''Erlport wrapper for Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/fazibear/export"; - }; - } // packageOverrides) - ) {}; - - export = export_0_0_7; - - expr_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "expr"; - version = "0.1.0"; - src = fetchHex { - pkg = "expr"; - version = "0.1.0"; - sha256 = - "5076c73cb6beaafeab5fab4731170c29dca5581eec44df3be363660a872abb97"; - }; - - meta = { - description = ''An Elixir library for parsing and evaluating - mathematical expressions ''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/Rob-bie/Expr"; - }; - } // packageOverrides) - ) {}; - - expr = expr_0_1_0; - - exprintf_0_1_6 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "exprintf"; - version = "0.1.6"; - src = fetchHex { - pkg = "exprintf"; - version = "0.1.6"; - sha256 = - "7acb31f93cef83effd3aa1f0572f9e29d7d1b4f50a6d456e2830fa7594c16182"; - }; - - meta = { - description = ''A printf / sprintf library for Elixir. It works - as a wrapper for :io.format. ''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/parroty/exprintf"; - }; - } // packageOverrides) - ) {}; - - exprintf = exprintf_0_1_6; - - exprof_0_2_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, exprintf_0_1_6 }: - buildMix ({ - name = "exprof"; - version = "0.2.0"; - src = fetchHex { - pkg = "exprof"; - version = "0.2.0"; - sha256 = - "2b3b8c623873172a6c7ba1707981f51feea6b6edbabd5347752030803ad0c954"; - }; - beamDeps = [ exprintf_0_1_6 ]; - - meta = { - description = ''A simple code profiler for Elixir using eprof. - ''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/parroty/exprof"; - }; - } // packageOverrides) - ) {}; - - exprof = exprof_0_2_0; - - exql_0_0_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, tds_0_5_4 }: - buildMix ({ - name = "exql"; - version = "0.0.3"; - src = fetchHex { - pkg = "exql"; - version = "0.0.3"; - sha256 = - "0dea2cd0f6cb1ba6c1cd4298716131fafb4271f2c076df0dd6e73e37cecb4705"; - }; - beamDeps = [ tds_0_5_4 ]; - - meta = { - description = ''A functional query tool for MSSQL.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/mattweldon/exql"; - }; - } // packageOverrides) - ) {}; - - exql = exql_0_0_3; - - exquisite_0_1_6 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "exquisite"; - version = "0.1.6"; - src = fetchHex { - pkg = "exquisite"; - version = "0.1.6"; - sha256 = - "8bd974eea0ef20d841f999818e4b6f0edd8e52b6723e8c5b2c4ba7a22fa07c7a"; - }; - - meta = { - description = ''DSL to match_spec''; - license = stdenv.lib.licenses.wtfpl; - homepage = "https://github.com/meh/exquisite"; - }; - } // packageOverrides) - ) {}; - - exquisite = exquisite_0_1_6; - - exredis_0_2_4 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, eredis_1_0_8 }: - buildMix ({ - name = "exredis"; - version = "0.2.4"; - src = fetchHex { - pkg = "exredis"; - version = "0.2.4"; - sha256 = - "fe43dc6e39220af9c06d575b86c24513dcb1c3ba48f31881a3708cdafe7d3188"; - }; - beamDeps = [ eredis_1_0_8 ]; - - meta = { - description = ''Redis client for Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/artemeff/exredis"; - }; - } // packageOverrides) - ) {}; - - exredis = exredis_0_2_4; - - exref_0_1_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "exref"; - version = "0.1.1"; - src = fetchHex { - pkg = "exref"; - version = "0.1.1"; - sha256 = - "92d73f1eff56f2d0493a2dbf5e932b48b99a2cdd2e3cc3fc0ffeb9c1ae5ed86c"; - }; - - meta = { - description = ''Damn simple mix integration of xref.''; - license = stdenv.lib.licenses.mit; - }; - } // packageOverrides) - ) {}; - - exref = exref_0_1_1; - - exrequester_0_5_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - httpotion_2_2_2 - }: - buildMix ({ - name = "exrequester"; - version = "0.5.2"; - src = fetchHex { - pkg = "exrequester"; - version = "0.5.2"; - sha256 = - "9c55974b2f9a4294dd9a53ebed8f9b1c2788cd0845dccbc9471cf6869201903a"; - }; - beamDeps = [ poison_1_5_2 httpotion_2_2_2 ]; - - meta = { - description = ''Quickly create API clients using module - attributes.''; - - homepage = "https://github.com/oarrabi/exrequester"; - }; - } // packageOverrides) - ) {}; - - exrequester = exrequester_0_5_2; - - exrethinkdb_0_0_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, poison_1_4_0 }: - buildMix ({ - name = "exrethinkdb"; - version = "0.0.3"; - src = fetchHex { - pkg = "exrethinkdb"; - version = "0.0.3"; - sha256 = - "c48a25a613de9f4c8ffe490044e448f01d816e0f6806af018494c3a19890ed1a"; - }; - beamDeps = [ poison_1_4_0 ]; - - meta = { - description = ''RethinkDB driver for Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/hamiltop/exrethinkdb"; - }; - } // packageOverrides) - ) {}; - - exrethinkdb = exrethinkdb_0_0_3; - - exromaji_0_3_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "exromaji"; - version = "0.3.0"; - src = fetchHex { - pkg = "exromaji"; - version = "0.3.0"; - sha256 = - "d1b820b3de05bb3729b3b1d8b3e22ee965899a90abbec44ed6d18507a5f174d3"; - }; - - meta = { - description = ''A Elixir library for translating between - hiragana, katakana, and romaji.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/ikeikeikeike/exromaji"; - }; - } // packageOverrides) - ) {}; - - exromaji = exromaji_0_3_0; - - exrun_0_1_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "exrun"; - version = "0.1.2"; - src = fetchHex { - pkg = "exrun"; - version = "0.1.2"; - sha256 = - "db9ea4befa015d7abe88ca610501187f12956d6fe6e527f02f8e4d9e630decf5"; - }; - - meta = { - longDescription = ''Elixir - save and easy to use standalone, - tracing tools for running elixir and erlang - applications''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/liveforeverx/exrun"; - }; - } // packageOverrides) - ) {}; - - exrun = exrun_0_1_2; - - exsamples_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "exsamples"; - version = "0.1.0"; - src = fetchHex { - pkg = "exsamples"; - version = "0.1.0"; - sha256 = - "92acafe7e8a5d6b1c1b5ca937b9dab887f9a4474cfd6510a7117690a6c6da86d"; - }; - - meta = { - longDescription = ''Initializes lists of maps, structs or keyword - lists using tabular data in Elixir.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/msaraiva/exsamples"; - }; - } // packageOverrides) - ) {}; - - exsamples = exsamples_0_1_0; - - exscript_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "exscript"; - version = "0.0.1"; - src = fetchHex { - pkg = "exscript"; - version = "0.0.1"; - sha256 = - "56360c7f6063df2088deb0ec7683dee90c4bfede861ef85b81fa94cc0abe302b"; - }; - - meta = { - description = ''Escript generator ''; - - homepage = "https://github.com/liveforeverx/exscript"; - }; - } // packageOverrides) - ) {}; - - exscript = exscript_0_0_1; - - exsolr_0_0_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "exsolr"; - version = "0.0.1"; - src = fetchHex { - pkg = "exsolr"; - version = "0.0.1"; - sha256 = - "dcd26d0301730cb1746702bfacf31de10be5d1b15475a1a7ec4da8c7c49e55d1"; - }; - beamDeps = [ poison_2_1_0 httpoison_0_8_3 ]; - - meta = { - description = ''Thin Wrapper around Solr api.''; - license = stdenv.lib.licenses.free; - homepage = "https://github.com/dcarneiro/exsolr"; - }; - } // packageOverrides) - ) {}; - - exsolr = exsolr_0_0_1; - - exstatic_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, plug_1_1_5 }: - buildMix ({ - name = "exstatic"; - version = "0.1.0"; - src = fetchHex { - pkg = "exstatic"; - version = "0.1.0"; - sha256 = - "e063b91c0b2995e4a1a2c1aa56cdd578374320a8755844cc6471b58fa3874d0d"; - }; - beamDeps = [ plug_1_1_5 ]; - - meta = { - longDescription = ''Serve static files from memory in the Phoenix - Framework. This extension compiles all of a - project`s static assets (e.g. Javascript, HTML, - images, etc) into Erlang modules and loads them - into the Erlang VM, with the purpose of serving - them fast and without a dependency on a - filesystem.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/arjan/exstatic"; - }; - } // packageOverrides) - ) {}; - - exstatic = exstatic_0_1_0; - - exstatsd_0_1_5 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, exactor_2_2_0 }: - buildMix ({ - name = "exstatsd"; - version = "0.1.5"; - src = fetchHex { - pkg = "exstatsd"; - version = "0.1.5"; - sha256 = - "4fcad707df57fdb91338dae212355704924bea8db10207715b95e3c110e7b219"; - }; - beamDeps = [ exactor_2_2_0 ]; - - meta = { - description = ''An Elixir ports client for StatsD''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/upbit/ExStatsD"; - }; - } // packageOverrides) - ) {}; - - exstatsd = exstatsd_0_1_5; - - exsync_0_1_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, exfswatch_0_1_1 }: - buildMix ({ - name = "exsync"; - version = "0.1.2"; - src = fetchHex { - pkg = "exsync"; - version = "0.1.2"; - sha256 = - "21a1106d5e62ced84a567bde2acbdff73ddf06d2a78fbd80ffa488fae4bde48b"; - }; - beamDeps = [ exfswatch_0_1_1 ]; - - meta = { - description = ''Yet another Elixir reloader.''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/falood/exsync"; - }; - } // packageOverrides) - ) {}; - - exsync = exsync_0_1_2; - - extripe_0_3_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "extripe"; - version = "0.3.2"; - src = fetchHex { - pkg = "extripe"; - version = "0.3.2"; - sha256 = - "4df5dd859ad780bdb4dc0d1c823a8df82cf7421037f1ed40adf20b426d6729a1"; - }; - beamDeps = [ poison_2_1_0 httpoison_0_8_3 ]; - - meta = { - description = ''Stripe API wrapper''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/princemaple/extripe"; - }; - } // packageOverrides) - ) {}; - - extripe = extripe_0_3_2; - - exts_0_3_1 = callPackage - ( - { - buildMix, packageOverrides ? {}, fetchHex, datastructures_0_2_5 - }: - buildMix ({ - name = "exts"; - version = "0.3.1"; - src = fetchHex { - pkg = "exts"; - version = "0.3.1"; - sha256 = - "428226945831d77083cab2a7f9a1f818e6554d789ed7183c215390d7f43cfa40"; - }; - beamDeps = [ datastructures_0_2_5 ]; - - meta = { - description = ''ets wrapper''; - license = stdenv.lib.licenses.wtfpl; - homepage = "https://github.com/meh/exts"; - }; - } // packageOverrides) - ) {}; - - exts = exts_0_3_1; - - extwitter_0_7_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, poison_1_5_2 }: - buildMix ({ - name = "extwitter"; - version = "0.7.1"; - src = fetchHex { - pkg = "extwitter"; - version = "0.7.1"; - sha256 = - "9cc83932fbe77d47f0fafc2000574805aa42341eed07a8867b1c27df27c3554a"; - }; - beamDeps = [ poison_1_5_2 ]; - - meta = { - description = ''Twitter client library for elixir.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/parroty/extwitter"; - }; - } // packageOverrides) - ) {}; - - extwitter = extwitter_0_7_1; - - exvcr_0_3_9 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - meck_0_8_4, - httpotion_2_2_2, - httpoison_0_8_3, - exjsx_3_2_0, - exactor_2_2_0 - }: - buildMix ({ - name = "exvcr"; - version = "0.3.9"; - src = fetchHex { - pkg = "exvcr"; - version = "0.3.9"; - sha256 = - "25645f6598111ba76ed30b4a2079169ae1aed0795ef87bf74d70a3a7ca8f2112"; - }; - beamDeps = [ - meck_0_8_4 - httpotion_2_2_2 - httpoison_0_8_3 - exjsx_3_2_0 - exactor_2_2_0 - ]; - - meta = { - description = ''HTTP request/response recording library for - elixir, inspired by VCR.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/parroty/exvcr"; - }; - } // packageOverrides) - ) {}; - - exvcr_0_7_4 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - meck_0_8_4, - httpotion_2_2_2, - httpoison_0_8_3, - exjsx_3_2_0, - exactor_2_2_0 - }: - buildMix ({ - name = "exvcr"; - version = "0.7.4"; - src = fetchHex { - pkg = "exvcr"; - version = "0.7.4"; - sha256 = - "620eac79a63426340d31dcc44b66a0d8be89ce4c2dc59b09986e83114bd4c525"; - }; - beamDeps = [ - meck_0_8_4 - httpotion_2_2_2 - httpoison_0_8_3 - exjsx_3_2_0 - exactor_2_2_0 - ]; - - meta = { - description = ''HTTP request/response recording library for - elixir, inspired by VCR.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/parroty/exvcr"; - }; - } // packageOverrides) - ) {}; - - exvcr = exvcr_0_7_4; - - exyelp_0_0_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - oauther_1_0_2, - httpoison_0_8_3 - }: - buildMix ({ - name = "exyelp"; - version = "0.0.2"; - src = fetchHex { - pkg = "exyelp"; - version = "0.0.2"; - sha256 = - "1be8553ea0369a092eac1b6a0b47652b7c0570911483aa3ca454bef05ddd4d5d"; - }; - beamDeps = [ poison_2_1_0 oauther_1_0_2 httpoison_0_8_3 ]; - - meta = { - description = ''An Elixir Yelp API client''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/gaslight/exyelp"; - }; - } // packageOverrides) - ) {}; - - exyelp = exyelp_0_0_2; - - exyz_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "exyz"; - version = "1.0.0"; - src = fetchHex { - pkg = "exyz"; - version = "1.0.0"; - sha256 = - "b1d53964ca72f70dd71c91327bf912858619d0357a53765ed3a08671e6769ef5"; - }; - - meta = { - description = ''Z-combinator in elixir: recursive anonymous - functions.''; - license = stdenv.lib.licenses.free; - homepage = "https://github.com/Dkendal/exyz"; - }; - } // packageOverrides) - ) {}; - - exyz = exyz_1_0_0; - - eye_drops_1_2_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, fs_0_9_2 }: - buildMix ({ - name = "eye_drops"; - version = "1.2.0"; - src = fetchHex { - pkg = "eye_drops"; - version = "1.2.0"; - sha256 = - "0e0fe7ccf1fc4208ae0811c60a0f0d1e37ef9a60dfaefc8ff235a8be51fa9ae7"; - }; - beamDeps = [ fs_0_9_2 ]; - - meta = { - longDescription = ''A configurable mix task to watch file changes - Watch file changes in a project and run the - corresponding command when a change happens.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/rkotze/eye_drops"; - }; - } // packageOverrides) - ) {}; - - eye_drops = eye_drops_1_2_0; - - ezcryptex_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, cryptex_0_0_1 }: - buildMix ({ - name = "ezcryptex"; - version = "0.0.1"; - src = fetchHex { - pkg = "ezcryptex"; - version = "0.0.1"; - sha256 = - "0c1c295cf5500106f7288949021ccbdc0d3a9276c2ae9938e45254b7500017b5"; - }; - beamDeps = [ cryptex_0_0_1 ]; - - meta = { - longDescription = ''Thin layer on top of Cryptex for more easily - encrypting/decrypting, signing/verifying data in - elixir. ''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/stocks29/ezcryptex"; - }; - } // packageOverrides) - ) {}; - - ezcryptex = ezcryptex_0_0_1; - - facebook_messenger_0_3_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - plug_1_1_5, - httpotion_2_2_2 - }: - buildMix ({ - name = "facebook_messenger"; - version = "0.3.0"; - src = fetchHex { - pkg = "facebook_messenger"; - version = "0.3.0"; - sha256 = - "30b1f7334649b671a4844dfcf7af1df00ad3082e8d42399466003636d95902ab"; - }; - beamDeps = [ poison_2_1_0 plug_1_1_5 httpotion_2_2_2 ]; - - meta = { - longDescription = ''ExFacebookMessenger is a library that easy - the creation of facebook messenger bots.''; - - homepage = "https://github.com/oarrabi/facebook_messenger"; - }; - } // packageOverrides) - ) {}; - - facebook_messenger = facebook_messenger_0_3_0; - - factory_girl_elixir_0_1_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "factory_girl_elixir"; - version = "0.1.1"; - src = fetchHex { - pkg = "factory_girl_elixir"; - version = "0.1.1"; - sha256 = - "2e07de9813089c6e6a45f0584eb2bfd28d3acbf654073b9e2ed6d0fd531b8f7e"; - }; - - meta = { - description = ''Minimal implementation of Ruby`s factory_girl in - Elixir. ''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/sinetris/factory_girl_elixir"; - }; - } // packageOverrides) - ) {}; - - factory_girl_elixir = factory_girl_elixir_0_1_1; - - fake_cas_1_1_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - plug_1_1_5, - cowboy_1_0_4, - bypass_0_5_1 - }: - buildMix ({ - name = "fake_cas"; - version = "1.1.0"; - src = fetchHex { - pkg = "fake_cas"; - version = "1.1.0"; - sha256 = - "2e3ce97b181f9de122fd7dc07bffdbe2a6f6439524407b976c9d1b70332206ae"; - }; - beamDeps = [ plug_1_1_5 cowboy_1_0_4 bypass_0_5_1 ]; - - meta = { - description = ''A Cas server stub''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/rhruiz/elixir-fake_cas"; - }; - } // packageOverrides) - ) {}; - - fake_cas = fake_cas_1_1_0; - - faker_0_6_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "faker"; - version = "0.6.0"; - src = fetchHex { - pkg = "faker"; - version = "0.6.0"; - sha256 = - "4f305a9ec9a2645bf4777dda1b56643d04333b7ff601145bf4b80acca030c2a0"; - }; - - meta = { - description = ''Faker is a pure Elixir library for generating - fake data.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/igas/faker"; - }; - } // packageOverrides) - ) {}; - - faker = faker_0_6_0; - - fasta_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, parallel_0_0_3 }: - buildMix ({ - name = "fasta"; - version = "0.1.0"; - src = fetchHex { - pkg = "fasta"; - version = "0.1.0"; - sha256 = - "ebacba161985bf3d1bc5cf35e6ab0c01ce7f1f0fcc52151a35605eb9a6fac44b"; - }; - beamDeps = [ parallel_0_0_3 ]; - - meta = { - description = ''FASTA is a tool for parsing FASTA-formatted - strings in Elixir.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/annejohnson/FASTA"; - }; - } // packageOverrides) - ) {}; - - fasta = fasta_0_1_0; - - faust_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "faust"; - version = "0.1.0"; - src = fetchHex { - pkg = "faust"; - version = "0.1.0"; - sha256 = - "0ab347a6f377a97e621db0f659841436d6dbb31f1b7c8309e3fb543bec0c473e"; - }; - - meta = { - description = ''A Markov chain text generator for Elixir.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/jquadrin/faust"; - }; - } // packageOverrides) - ) {}; - - faust = faust_0_1_0; - - fdg_0_0_4 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "fdg"; - version = "0.0.4"; - src = fetchHex { - pkg = "fdg"; - version = "0.0.4"; - sha256 = - "a5ec0f8214e52c63186e620a3556a3d61c6fa9118bf4a6b84b67ff236b8a98da"; - }; - - meta = { - longDescription = ''This project aims to be a simple library with - which to build force directed graphs. Ideally, - FDG will be used to produce visualiations of - networks and static analysis of code.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/johnhamelink/elixir-fdg"; - }; - } // packageOverrides) - ) {}; - - fdg = fdg_0_0_4; - - feature_toggler_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, exredis_0_2_4 }: - buildMix ({ - name = "feature_toggler"; - version = "0.0.1"; - src = fetchHex { - pkg = "feature_toggler"; - version = "0.0.1"; - sha256 = - "dac607aa67971e87b9d8fb8eb3057246d4480c99e11951faa1ed9f204b7f48ae"; - }; - beamDeps = [ exredis_0_2_4 ]; - - meta = { - description = ''This is a simple feature toggler/switch with - redis database written in elixir.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/aravindgd/feature_toggler"; - }; - } // packageOverrides) - ) {}; - - feature_toggler = feature_toggler_0_0_1; - - feeder_1_4_7 = callPackage - ( - { buildErlangMk, packageOverrides ? {}, fetchHex }: - buildErlangMk ({ - name = "feeder"; - version = "1.4.7"; - src = fetchHex { - pkg = "feeder"; - version = "1.4.7"; - sha256 = - "1ac4696d0801c5e433caedeb38001341a9e22120998dcb0ee6d358266260c3da"; - }; - - meta = { - description = ''Stream parse RSS and Atom formatted XML feeds. - ''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/michaelnisi/feeder"; - }; - } // packageOverrides) - ) {}; - - feeder_2_0_0 = callPackage - ( - { buildErlangMk, packageOverrides ? {}, fetchHex }: - buildErlangMk ({ - name = "feeder"; - version = "2.0.0"; - src = fetchHex { - pkg = "feeder"; - version = "2.0.0"; - sha256 = - "9780c5f032d3480cf7d9fd71d3f0c5f73211e0d3a8d9cdabcb1327b3a4ff758e"; - }; - - meta = { - description = ''Stream parse RSS and Atom formatted XML feeds. - ''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/michaelnisi/feeder"; - }; - } // packageOverrides) - ) {}; - - feeder = feeder_2_0_0; - - feeder_ex_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, feeder_1_4_7 }: - buildMix ({ - name = "feeder_ex"; - version = "0.0.2"; - src = fetchHex { - pkg = "feeder_ex"; - version = "0.0.2"; - sha256 = - "0816c5c2757098d02727dcba55dfb8b4ecff66736d0f74d4bd36ffe93f033c31"; - }; - beamDeps = [ feeder_1_4_7 ]; - - meta = { - description = ''RSS feed parser. Simple wrapper for feeder.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/manukall/feeder_ex"; - }; - } // packageOverrides) - ) {}; - - feeder_ex = feeder_ex_0_0_2; - - feederer_0_6_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, poolboy_1_5_1 }: - buildMix ({ - name = "feederer"; - version = "0.6.0"; - src = fetchHex { - pkg = "feederer"; - version = "0.6.0"; - sha256 = - "c5041617fc7e71db9a0763f36fbda3fa41598203ab8b47972e3e9dae81039861"; - }; - beamDeps = [ poolboy_1_5_1 ]; - - meta = { - longDescription = ''Parses XML syndication feeds such as RSS, - Atom, etc. Elixir feedparser wrapper using - erlport.''; - license = stdenv.lib.licenses.free; - homepage = "https://github.com/draftli/feederer"; - }; - } // packageOverrides) - ) {}; - - feederer = feederer_0_6_0; - - feedme_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, timex_0_19_5 }: - buildMix ({ - name = "feedme"; - version = "0.0.1"; - src = fetchHex { - pkg = "feedme"; - version = "0.0.1"; - sha256 = - "021621981bbb03b317e4a948a39d269ab1a2dc6d9ec6ee1c744e565000da680d"; - }; - beamDeps = [ timex_0_19_5 ]; - - meta = { - description = ''Elixir RSS/Atom parser built on erlang`s xmerl - xml parser''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/umurgdk/elixir-feedme"; - }; - } // packageOverrides) - ) {}; - - feedme = feedme_0_0_1; - - feedparser_0_0_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "feedparser"; - version = "0.0.3"; - src = fetchHex { - pkg = "feedparser"; - version = "0.0.3"; - sha256 = - "ef19d82d5d0db4ca10e1a83c8eefe82678538cdeb143e707bf7ef738177c3eeb"; - }; - - meta = { - description = ''Discover and parse RSS and Atom feeds''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/l3kn/Elixir-Feedparser"; - }; - } // packageOverrides) - ) {}; - - feedparser = feedparser_0_0_3; - - fernetex_0_2_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, timex_1_0_2 }: - buildMix ({ - name = "fernetex"; - version = "0.2.3"; - src = fetchHex { - pkg = "fernetex"; - version = "0.2.3"; - sha256 = - "cf8ac1334cd1937e448bb0c873c1df94dc8bb38cb2320966ba69d9ff8f755805"; - }; - beamDeps = [ timex_1_0_2 ]; - - meta = { - description = ''Elixir implementation of Fernet library based on - https://github.com/fernet/spec''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/kennyp/fernetex"; - }; - } // packageOverrides) - ) {}; - - fernetex = fernetex_0_2_3; - - fifo_s3_0_2_2 = callPackage - ( - { - buildRebar3, - packageOverrides ? {}, - fetchHex, - poolboy_1_5_1, - lager_3_0_2, - hackney_1_6_0, - erlcloud_0_13_2, - base16_1_0_0 - }: - buildRebar3 ({ - name = "fifo_s3"; - version = "0.2.2"; - src = fetchHex { - pkg = "fifo_s3"; - version = "0.2.2"; - sha256 = - "871809a49fdb22ad7e9ee04fa7a53368e216072cf473046d8f74ee956e735b19"; - }; - - beamDeps = [ - poolboy_1_5_1 - lager_3_0_2 - hackney_1_6_0 - erlcloud_0_13_2 - base16_1_0_0 - ]; - - meta = { - description = ''S3 storange client library for erlang''; - - }; - } // packageOverrides) - ) {}; - - fifo_s3 = fifo_s3_0_2_2; - - fifocache_1_0_1 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "fifocache"; - version = "1.0.1"; - src = fetchHex { - pkg = "fifocache"; - version = "1.0.1"; - sha256 = - "363f03e2871b8d8c7564a47133162ce18c362bd70897f5bd58fa246a0e169a43"; - }; - - meta = { - description = ''Fixed size FIFO cache implementation''; - license = stdenv.lib.licenses.apsl20; - homepage = "https://github.com/mururu/fifocache"; - }; - } // packageOverrides) - ) {}; - - fifocache = fifocache_1_0_1; - - figaro_elixir_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "figaro_elixir"; - version = "1.0.0"; - src = fetchHex { - pkg = "figaro_elixir"; - version = "1.0.0"; - sha256 = - "98a7690c60fc32874e73b025b7deb5887d7cdff4556178af1849bde38a7ba104"; - }; - - meta = { - description = ''Environmental variables manager and configuration - management tool.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/KamilLelonek/figaro-elixir"; - }; - } // packageOverrides) - ) {}; - - figaro_elixir = figaro_elixir_1_0_0; - - file_info_0_0_2 = callPackage - ( - { - buildMix, packageOverrides ? {}, fetchHex, mimetype_parser_0_1_2 - }: - buildMix ({ - name = "file_info"; - version = "0.0.2"; - src = fetchHex { - pkg = "file_info"; - version = "0.0.2"; - sha256 = - "f28456aafd014c01a4188fee36c1571e9669b0506eb22c830db357084c0c9cb2"; - }; - beamDeps = [ mimetype_parser_0_1_2 ]; - - meta = { - description = ''Get MIME-type of a file by its magic number - (linux only)''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/NobbZ/file_info"; - }; - } // packageOverrides) - ) {}; - - file_info = file_info_0_0_2; - - finance_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, timex_1_0_2 }: - buildMix ({ - name = "finance"; - version = "0.0.1"; - src = fetchHex { - pkg = "finance"; - version = "0.0.1"; - sha256 = - "fe08fc521e65605d54fd8b68fbdfdbd233b408e8330cf8038337214b553c2c17"; - }; - beamDeps = [ timex_1_0_2 ]; - - meta = { - longDescription = ''A library to calculate Xirr through the - bisection method using parallel processes.''; - - }; - } // packageOverrides) - ) {}; - - finance = finance_0_0_1; - - finicity_0_0_5 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - xml_builder_0_0_8, - httpotion_2_2_2, - floki_0_8_1 - }: - buildMix ({ - name = "finicity"; - version = "0.0.5"; - src = fetchHex { - pkg = "finicity"; - version = "0.0.5"; - sha256 = - "b58ef39987976cf50851311a95b40504ba763c0d82256b012f5b1246bd92d9b4"; - }; - beamDeps = [ xml_builder_0_0_8 httpotion_2_2_2 floki_0_8_1 ]; - - meta = { - description = ''Client library for Finicity.''; - - }; - } // packageOverrides) - ) {}; - - finicity = finicity_0_0_5; - - firmata_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "firmata"; - version = "0.0.1"; - src = fetchHex { - pkg = "firmata"; - version = "0.0.1"; - sha256 = - "c3f928839c32e366389b3f9d34cfc73505952f854dd13c52eff56b9e5853ea6c"; - }; - - meta = { - longDescription = ''This package implements the Firmata protocol. - Firmata is a MIDI-based protocol for - communicating with microcontrollers.''; - license = stdenv.lib.licenses.isc; - homepage = "https://github.com/kfatehi/firmata"; - }; - } // packageOverrides) - ) {}; - - firmata = firmata_0_0_1; - - fixby_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "fixby"; - version = "0.0.1"; - src = fetchHex { - pkg = "fixby"; - version = "0.0.1"; - sha256 = - "e361bb9324c616e397fc78bda81a3629a39189f4675aefdeb54e85dfa74a629f"; - }; - - meta = { - description = ''FIXBY comments that raise after a given version - of Elixir.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/CoderDennis/fixby-elixir"; - }; - } // packageOverrides) - ) {}; - - fixby = fixby_0_0_1; - - fixme_0_0_4 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "fixme"; - version = "0.0.4"; - src = fetchHex { - pkg = "fixme"; - version = "0.0.4"; - sha256 = - "e5e36db0c083a96a459723d89c151fc1f33f9873122e6c4924e06d18d20f9e84"; - }; - - meta = { - description = ''FIXME comments that raise after a certain point - in time.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/henrik/fixme-elixir"; - }; - } // packageOverrides) - ) {}; - - fixme = fixme_0_0_4; - - flasked_0_4_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "flasked"; - version = "0.4.0"; - src = fetchHex { - pkg = "flasked"; - version = "0.4.0"; - sha256 = - "8499535ce20f8e9d2e38ce7e9ecac1a9fc5f402f3f0ab58661c1ed8795f3178c"; - }; - - meta = { - longDescription = ''Flasked injects application environment - configuration at runtime based on given ENV - variables and a mapping. This is pretty useful - for applications following the 12factor app - principle or which are deployed in - containerization infrastructures like Docker.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/asaaki/flasked"; - }; - } // packageOverrides) - ) {}; - - flasked = flasked_0_4_0; - - flock_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "flock"; - version = "0.0.1"; - src = fetchHex { - pkg = "flock"; - version = "0.0.1"; - sha256 = - "3a533d32a450cb0e5b78880c421080fb34fb95d4cf3c1ee053b4e97c6cadd4c8"; - }; - - meta = { - description = ''Distributed Services ''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/chrismccord/flock"; - }; - } // packageOverrides) - ) {}; - - flock = flock_0_0_1; - - floki_0_0_5 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "floki"; - version = "0.0.5"; - src = fetchHex { - pkg = "floki"; - version = "0.0.5"; - sha256 = - "05044b8dade147bc0390300eefe48c3118eb61d94a57bd73966549a24c76e795"; - }; - - meta = { - description = ''Floki is a simple HTML parser that enables search - for nodes using CSS selectors.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/philss/floki"; - }; - } // packageOverrides) - ) {}; - - floki_0_1_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, mochiweb_2_12_2 }: - buildMix ({ - name = "floki"; - version = "0.1.1"; - src = fetchHex { - pkg = "floki"; - version = "0.1.1"; - sha256 = - "b608415520f6701acdbbffed86b62291b00ce695f7f3b067919594534c9858a9"; - }; - beamDeps = [ mochiweb_2_12_2 ]; - - meta = { - description = ''Floki is a simple HTML parser that enables search - for nodes using CSS selectors.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/philss/floki"; - }; - } // packageOverrides) - ) {}; - - floki_0_7_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, mochiweb_2_12_2 }: - buildMix ({ - name = "floki"; - version = "0.7.2"; - src = fetchHex { - pkg = "floki"; - version = "0.7.2"; - sha256 = - "c7078ac2a54501a16ff469c78292bac5013e457ffa8801b74bc293616aa5b0d0"; - }; - beamDeps = [ mochiweb_2_12_2 ]; - - meta = { - description = ''Floki is a simple HTML parser that enables search - for nodes using CSS selectors.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/philss/floki"; - }; - } // packageOverrides) - ) {}; - - floki_0_8_1 = callPackage - ( - { - buildMix, packageOverrides ? {}, fetchHex, mochiweb_html_2_15_0 - }: - buildMix ({ - name = "floki"; - version = "0.8.1"; - src = fetchHex { - pkg = "floki"; - version = "0.8.1"; - sha256 = - "40da7fa2ae84a7e662d169ff375f745ae3d50200bba7262567d75e97a8b44485"; - }; - beamDeps = [ mochiweb_html_2_15_0 ]; - - meta = { - description = ''Floki is a simple HTML parser that enables search - for nodes using CSS selectors.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/philss/floki"; - }; - } // packageOverrides) - ) {}; - - floki = floki_0_8_1; - - fluxter_0_3_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "fluxter"; - version = "0.3.1"; - src = fetchHex { - pkg = "fluxter"; - version = "0.3.1"; - sha256 = - "0d0fd8497bd83e6c5552c7eff30a87be75da835f55874c3b2c8a36f5cc784337"; - }; - - meta = { - description = ''An InfluxDB writer for Elixir''; - license = stdenv.lib.licenses.isc; - homepage = "https://github.com/lexmag/fluxter"; - }; - } // packageOverrides) - ) {}; - - fluxter = fluxter_0_3_1; - - fn_1_0_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "fn"; - version = "1.0.0"; - src = fetchHex { - pkg = "fn"; - version = "1.0.0"; - sha256 = - "1433b353c8739bb28ac0d6826c9f6a05033f158e8c8195faf01a863668b3bbc7"; - }; - - meta = { - description = ''More functional Erlang''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/artemeff/fn"; - }; - } // packageOverrides) - ) {}; - - fn = fn_1_0_0; - - fnv_0_3_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, hexate_0_5_1 }: - buildMix ({ - name = "fnv"; - version = "0.3.2"; - src = fetchHex { - pkg = "fnv"; - version = "0.3.2"; - sha256 = - "1993ca598fe7ca402f89ed1836c4a5de320330177104ca7eaac230312e069fe5"; - }; - beamDeps = [ hexate_0_5_1 ]; - - meta = { - longDescription = ''Some string transformation functions for - Elixir. Heavily inspired by ActiveSupport`s - String extensions (Ruby).''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/asaaki/strinx.ex"; - }; - } // packageOverrides) - ) {}; - - fnv = fnv_0_3_2; - - folsom_0_8_3 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex, bear_0_8_3 }: - buildRebar3 ({ - name = "folsom"; - version = "0.8.3"; - src = fetchHex { - pkg = "folsom"; - version = "0.8.3"; - sha256 = - "afaa1ea4cd2a10a32242ac5d76fa7b17e98d202883859136b791d9a383b26820"; - }; - - beamDeps = [ bear_0_8_3 ]; - - meta = { - description = ''Erlang based metrics system''; - - }; - } // packageOverrides) - ) {}; - - folsom = folsom_0_8_3; - - folsomite_1_2_8 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex, folsom_0_8_3 }: - buildRebar3 ({ - name = "folsomite"; - version = "1.2.8"; - src = fetchHex { - pkg = "folsomite"; - version = "1.2.8"; - sha256 = - "9ce64603cdffb8ad55e950142146b3fe05533020906a81aa9c2f524635d813dc"; - }; - - beamDeps = [ folsom_0_8_3 ]; - - meta = { - description = ''Blow up your Graphite server with Folsom - metrics''; - - }; - } // packageOverrides) - ) {}; - - folsomite = folsomite_1_2_8; - - forcex_0_4_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - timex_2_1_6, - httpoison_0_8_3, - exjsx_3_2_0 - }: - buildMix ({ - name = "forcex"; - version = "0.4.1"; - src = fetchHex { - pkg = "forcex"; - version = "0.4.1"; - sha256 = - "82d1c772a369dfb8c705beaf1dae55853402cab06c2dfac1b3e056dbc4cb2c21"; - }; - beamDeps = [ timex_2_1_6 httpoison_0_8_3 exjsx_3_2_0 ]; - - meta = { - description = ''Elixir library for the Force.com / SalesForce / - SFDC REST API''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/jeffweiss/forcex"; - }; - } // packageOverrides) - ) {}; - - forcex = forcex_0_4_1; - - forecast_io_0_2_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - json_0_3_3, - httpotion_2_2_2 - }: - buildMix ({ - name = "forecast_io"; - version = "0.2.2"; - src = fetchHex { - pkg = "forecast_io"; - version = "0.2.2"; - sha256 = - "d76c4f1839cb77038404c3d291e2449495e81469ddf05bef0dc01ed8544917ca"; - }; - beamDeps = [ json_0_3_3 httpotion_2_2_2 ]; - - meta = { - description = ''Simple wrapper for Forecast.IO API''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/r-icarus/forecast_io"; - }; - } // packageOverrides) - ) {}; - - forecast_io = forecast_io_0_2_2; - - fox_1_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "fox"; - version = "1.0.1"; - src = fetchHex { - pkg = "fox"; - version = "1.0.1"; - sha256 = - "e790c4dec0f840283c3e93825db259075ee45953ff1c29758a2aec22164c6865"; - }; - - meta = { - longDescription = ''Collection of support utility functions and - extensions for day-to-day web development with - Elixir. Includes utility extension to strings, - uri, dicts, integers, functions, parallel, - records, random, and time''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/foxnewsnetwork/fox"; - }; - } // packageOverrides) - ) {}; - - fox = fox_1_0_1; - - freegeoip_0_0_4 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - httpoison_0_8_3 - }: - buildMix ({ - name = "freegeoip"; - version = "0.0.4"; - src = fetchHex { - pkg = "freegeoip"; - version = "0.0.4"; - sha256 = - "6776938ddc1318ee8a34ef6e3a5dcb85013bbb27feeae3c7d65487ff17e2b558"; - }; - beamDeps = [ poison_1_5_2 httpoison_0_8_3 ]; - - meta = { - description = ''Simple Elixir wrapper for freegeoip.net HTTP - API.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/juljimm/freegeoip-elixir"; - }; - } // packageOverrides) - ) {}; - - freegeoip = freegeoip_0_0_4; - - friendly_1_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, floki_0_8_1 }: - buildMix ({ - name = "friendly"; - version = "1.0.1"; - src = fetchHex { - pkg = "friendly"; - version = "1.0.1"; - sha256 = - "5bacdeba9a6752613c037f7ffacd4f7185cf9b348b3b41c73497e539bbb17602"; - }; - beamDeps = [ floki_0_8_1 ]; - - meta = { - longDescription = ''HTML and XML parser with the most friendly - API in Elixir land. CSS selector in, list of - elements out.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/qertoip/friendly/"; - }; - } // packageOverrides) - ) {}; - - friendly = friendly_1_0_1; - - fs_0_9_2 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "fs"; - version = "0.9.2"; - src = fetchHex { - pkg = "fs"; - version = "0.9.2"; - sha256 = - "9a00246e8af58cdf465ae7c48fd6fd7ba2e43300413dfcc25447ecd3bf76f0c1"; - }; - compilePorts = true; - - meta = { - description = ''FS VXZ Listener''; - - }; - } // packageOverrides) - ) {}; - - fs = fs_0_9_2; - - fsm_0_2_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "fsm"; - version = "0.2.0"; - src = fetchHex { - pkg = "fsm"; - version = "0.2.0"; - sha256 = - "dbc7b316d37f258db4f1a897109da14c2c76aa706fe85859532eff2ea30986bf"; - }; - - meta = { - description = ''Finite state machine as a functional data - structure.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/sasa1977/fsm"; - }; - } // packageOverrides) - ) {}; - - fsm = fsm_0_2_0; - - fugue_0_1_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, plug_1_1_5 }: - buildMix ({ - name = "fugue"; - version = "0.1.3"; - src = fetchHex { - pkg = "fugue"; - version = "0.1.3"; - sha256 = - "de7fcfbbe261e189de894773c9332591a7ab42311972d8685bdb0524057c72f1"; - }; - beamDeps = [ plug_1_1_5 ]; - - meta = { - description = ''Extendable testing utilities for Plug''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/camshaft/fugue"; - }; - } // packageOverrides) - ) {}; - - fugue = fugue_0_1_3; - - fulcrum_0_0_6 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - httpoison_0_8_3 - }: - buildMix ({ - name = "fulcrum"; - version = "0.0.6"; - src = fetchHex { - pkg = "fulcrum"; - version = "0.0.6"; - sha256 = - "9cddd3906bad693cad791841d19b2be089e064a5f2dd35d340f46e6cd15d7930"; - }; - beamDeps = [ poison_1_5_2 httpoison_0_8_3 ]; - - meta = { - longDescription = ''Fulcrum library for Elixir. The aim is to - present the Fulcrum API as a replacement for an - Ecto Repo. So, instead of Repo.all(Form), you - can write Fulcrum.all(Form). In this way, you - only have to make minor changes to your - controllers, to work with Fulcrum.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/pinx/fulcrum"; - }; - } // packageOverrides) - ) {}; - - fulcrum = fulcrum_0_0_6; - - fumanchu_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "fumanchu"; - version = "0.0.1"; - src = fetchHex { - pkg = "fumanchu"; - version = "0.0.1"; - sha256 = - "3ae3f825b598d2af9ace3f9ef25ff23b7724507cddb2dddb2176e4a49afabc89"; - }; - - meta = { - description = ''An (almost) spec-compliant Mustache parser - written in Elixir''; - - }; - } // packageOverrides) - ) {}; - - fumanchu = fumanchu_0_0_1; - - funchaku_0_1_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - httpoison_0_8_3 - }: - buildMix ({ - name = "funchaku"; - version = "0.1.0"; - src = fetchHex { - pkg = "funchaku"; - version = "0.1.0"; - sha256 = - "621ed289eadcc5333d11b698c2d7c459143ff11036f3eedc0d79d3df76a5fd43"; - }; - beamDeps = [ poison_1_5_2 httpoison_0_8_3 ]; - - meta = { - description = ''Elixir client for the Nu HTML Checker''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/sitevalidator/funchaku"; - }; - } // packageOverrides) - ) {}; - - funchaku = funchaku_0_1_0; - - function_decorating_0_0_6 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "function_decorating"; - version = "0.0.6"; - src = fetchHex { - pkg = "function_decorating"; - version = "0.0.6"; - sha256 = - "8faf5588f98c833a25c9463df27e709cc5c645083a592b1a5add25fbb9e68d9a"; - }; - - meta = { - longDescription = ''A function decorator macro for Elixir. Used - mainly for adding log statements to the function - calls.''; - license = stdenv.lib.licenses.mit; - homepage = - "https://github.com/elpddev/elixir-function-decorating"; - }; - } // packageOverrides) - ) {}; - - function_decorating = function_decorating_0_0_6; - - funkspector_0_0_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - floki_0_8_1, - httpoison_0_8_3 - }: - buildMix ({ - name = "funkspector"; - version = "0.0.1"; - src = fetchHex { - pkg = "funkspector"; - version = "0.0.1"; - sha256 = - "709574d5b5612c6188764b72b36c4eb2b85f3e27d859d1fe5631f31d17e79695"; - }; - beamDeps = [ floki_0_8_1 httpoison_0_8_3 ]; - - meta = { - description = ''Web page inspector for Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/sitevalidator/funkspector"; - }; - } // packageOverrides) - ) {}; - - funkspector = funkspector_0_0_1; - - fuse_2_3_1 = callPackage - ( - { buildErlangMk, packageOverrides ? {}, fetchHex }: - buildErlangMk ({ - name = "fuse"; - version = "2.3.1"; - src = fetchHex { - pkg = "fuse"; - version = "2.3.1"; - sha256 = - "580b6279115b74058982d58a898ac9e2e8fdb1884287d565f1ad987cacf1f8e7"; - }; - - meta = { - description = ''A Circuit breaker implementation for Erlang''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/jlouis/fuse"; - }; - } // packageOverrides) - ) {}; - - fuse = fuse_2_3_1; - - fuzzyurl_0_8_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "fuzzyurl"; - version = "0.8.1"; - src = fetchHex { - pkg = "fuzzyurl"; - version = "0.8.1"; - sha256 = - "8229d3d14bcbaf792a550ee68347662efd93022e7fc0221f7681c104b3356900"; - }; - - meta = { - longDescription = ''Fuzzyurl is a library for non-strict parsing, - construction, and fuzzy-matching of URLs.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/gamache/fuzzyurl.ex"; - }; - } // packageOverrides) - ) {}; - - fuzzyurl = fuzzyurl_0_8_1; - - fwatch_0_5_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - fs_0_9_2, - earmark_0_2_1 - }: - buildMix ({ - name = "fwatch"; - version = "0.5.0"; - src = fetchHex { - pkg = "fwatch"; - version = "0.5.0"; - sha256 = - "1cd46bcae7074c10a4a4d25989ef20ab515d075d762af8e6c86e8d50c011604c"; - }; - beamDeps = [ fs_0_9_2 earmark_0_2_1 ]; - - meta = { - description = ''A file watcher for Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/ryo33/fwatch-ex"; - }; - } // packageOverrides) - ) {}; - - fwatch = fwatch_0_5_0; - - game_of_life_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "game_of_life"; - version = "1.0.0"; - src = fetchHex { - pkg = "game_of_life"; - version = "1.0.0"; - sha256 = - "4a7e64722d5841d91152352a19db51476fa3e950d7316aba089870248019958b"; - }; - - meta = { - description = ''Distributed Game of Life with Board Server API. - Run it on multiple nodes.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/BeyondScheme/elixir-game_of_life"; - }; - } // packageOverrides) - ) {}; - - game_of_life = game_of_life_1_0_0; - - gardien_0_0_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "gardien"; - version = "0.0.3"; - src = fetchHex { - pkg = "gardien"; - version = "0.0.3"; - sha256 = - "3b4f69bee6359789e57e6c7efb01358fa94ae52d48b9fced8ee22c8cc99740df"; - }; - - meta = { - description = ''Authorization for Phoenix projects''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/rpelyush/gardien"; - }; - } // packageOverrides) - ) {}; - - gardien = gardien_0_0_3; - - garph_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "garph"; - version = "0.0.1"; - src = fetchHex { - pkg = "garph"; - version = "0.0.1"; - sha256 = - "32829d25bdc8cf78256c8fdf1e7294707f94b683ec6ce6d1da0a6a8cd4d77c9e"; - }; - - meta = { - longDescription = ''Garph is a simple way to implement complex - decision trees by using graphs. It can be used - with plain elixir or beneath a phoenix - project.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/faber-lotto/garph"; - }; - } // packageOverrides) - ) {}; - - garph = garph_0_0_1; - - gatekeeper_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "gatekeeper"; - version = "0.0.1"; - src = fetchHex { - pkg = "gatekeeper"; - version = "0.0.1"; - sha256 = - "d1ad9549998054c6ca4d4c7954687937e46b97f2ca4176c7e1d5bfdaf683ac2c"; - }; - - meta = { - description = ''An opinionated authorization framework for Elixir - projects.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/austinsmorris/gatekeeper"; - }; - } // packageOverrides) - ) {}; - - gatekeeper = gatekeeper_0_0_1; - - gateway_0_0_6 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - httpoison_0_8_3, - fox_1_0_1 - }: - buildMix ({ - name = "gateway"; - version = "0.0.6"; - src = fetchHex { - pkg = "gateway"; - version = "0.0.6"; - sha256 = - "4d0de05b0168ee0cc41c9c38491a4b4641d446f38170ca170d0d7440b0c8f619"; - }; - beamDeps = [ poison_2_1_0 httpoison_0_8_3 fox_1_0_1 ]; - - meta = { - longDescription = ''A generic set of macros and conventions to - build clients to communicate with JSON REST - APIs''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/foxnewsnetwork/gateway"; - }; - } // packageOverrides) - ) {}; - - gateway = gateway_0_0_6; - - gb2260_0_5_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, poison_2_1_0 }: - buildMix ({ - name = "gb2260"; - version = "0.5.0"; - src = fetchHex { - pkg = "gb2260"; - version = "0.5.0"; - sha256 = - "a3e4fc9435802613f2abc506c480321ac6eafa2eed72b52d85d2c19f8b84ffe7"; - }; - beamDeps = [ poison_2_1_0 ]; - - meta = { - description = ''The Elixir implementation for looking up the - Chinese administrative divisions.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/LcpMarvel/gb2260"; - }; - } // packageOverrides) - ) {}; - - gb2260 = gb2260_0_5_0; - - gealts_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "gealts"; - version = "0.0.1"; - src = fetchHex { - pkg = "gealts"; - version = "0.0.1"; - sha256 = - "c23b96986b19801c3428ff961e26e5b7327cd38141c2161951fdba233b71ac2b"; - }; - - meta = { - description = ''A crude genetic programming library.''; - license = stdenv.lib.licenses.free; - homepage = "https://github.com/0010-IO/gealts"; - }; - } // packageOverrides) - ) {}; - - gealts = gealts_0_0_1; - - gelf_logger_0_2_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, poison_2_1_0 }: - buildMix ({ - name = "gelf_logger"; - version = "0.2.0"; - src = fetchHex { - pkg = "gelf_logger"; - version = "0.2.0"; - sha256 = - "3729e42e3c8d492ec4b18cd7a70783cc2d15811b7096613a60da04743d1f7838"; - }; - beamDeps = [ poison_2_1_0 ]; - - meta = { - longDescription = ''A Logger backend that will generate Graylog - Extended Log Format messages and send them to a - compatible server.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/jschniper/gelf_logger"; - }; - } // packageOverrides) - ) {}; - - gelf_logger = gelf_logger_0_2_0; - - gelfex_0_0_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - connection_1_0_2 - }: - buildMix ({ - name = "gelfex"; - version = "0.0.1"; - src = fetchHex { - pkg = "gelfex"; - version = "0.0.1"; - sha256 = - "35ca2deb8221379fc8eb2d4e33888ce590defe91dbbaaa10ef352d6654723279"; - }; - beamDeps = [ poison_1_5_2 connection_1_0_2 ]; - - meta = { - description = ''Elixir client for logging GELF messages to - Graylog.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/donpinkster/gelfex"; - }; - } // packageOverrides) - ) {}; - - gelfex = gelfex_0_0_1; - - gen_delegate_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "gen_delegate"; - version = "1.0.0"; - src = fetchHex { - pkg = "gen_delegate"; - version = "1.0.0"; - sha256 = - "9790952ba41538e835613f064774189bd819c79fde8fa09c2ab2bc5143b9efbf"; - }; - - meta = { - description = ''Easy delegation of internal function to a - GenServer interface''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/zackehh/gen_delegate"; - }; - } // packageOverrides) - ) {}; - - gen_delegate = gen_delegate_1_0_0; - - gen_fsm_0_0_4 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "gen_fsm"; - version = "0.0.4"; - src = fetchHex { - pkg = "gen_fsm"; - version = "0.0.4"; - sha256 = - "c92bf89ea8dee0f924362b12b61d3cd02306e77a0e8174354044238329b6506a"; - }; - - meta = { - description = ''Elixir wrapper around Erlang`s OTP gen_fsm.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/pavlos/gen_fsm"; - }; - } // packageOverrides) - ) {}; - - gen_fsm_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "gen_fsm"; - version = "0.1.0"; - src = fetchHex { - pkg = "gen_fsm"; - version = "0.1.0"; - sha256 = - "273281dbb6cf6171a6fb963538fde67146a11f6025a80113eae4b29822083a62"; - }; - - meta = { - description = ''Elixir wrapper around Erlang`s OTP gen_fsm.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/pavlos/gen_fsm"; - }; - } // packageOverrides) - ) {}; - - gen_fsm = gen_fsm_0_1_0; - - gen_listener_tcp_0_3_2 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "gen_listener_tcp"; - version = "0.3.2"; - src = fetchHex { - pkg = "gen_listener_tcp"; - version = "0.3.2"; - sha256 = - "b3c3fbc525ba2b32d947b06811d38470d5b0abe2ca81b623192a71539ed22336"; - }; - - meta = { - description = ''Generic TCP Server''; - - homepage = "https://github.com/travelping/gen_listener_tcp"; - }; - } // packageOverrides) - ) {}; - - gen_listener_tcp = gen_listener_tcp_0_3_2; - - gen_mqtt_0_2_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "gen_mqtt"; - version = "0.2.1"; - src = fetchHex { - pkg = "gen_mqtt"; - version = "0.2.1"; - sha256 = - "3cb7f6099eca4fb46befdc0bee41d21756f50cc263a7234286c8fb9800db197a"; - }; - - meta = { - description = ''An Elixir behaviour that makes it possible to - communicate with a MQTT server''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/gausby/gen_mqtt"; - }; - } // packageOverrides) - ) {}; - - gen_mqtt = gen_mqtt_0_2_1; - - gen_retry_0_3_0 = callPackage - ( - { - buildMix, packageOverrides ? {}, fetchHex, exconstructor_1_0_2 - }: - buildMix ({ - name = "gen_retry"; - version = "0.3.0"; - src = fetchHex { - pkg = "gen_retry"; - version = "0.3.0"; - sha256 = - "dca3dd6948ed3683bb1414f7b8131a12dfdc38677fb3730f522c85c6640d73b7"; - }; - beamDeps = [ exconstructor_1_0_2 ]; - - meta = { - longDescription = ''GenRetry provides utilities for retrying - Elixir functions, with configurable delay and - backoff characteristics.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/appcues/gen_retry"; - }; - } // packageOverrides) - ) {}; - - gen_retry = gen_retry_0_3_0; - - gen_smtp_0_10_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "gen_smtp"; - version = "0.10.0"; - src = fetchHex { - pkg = "gen_smtp"; - version = "0.10.0"; - sha256 = - "87baa484762849cdb9f9082fd12449eb02cca059ac6a225f24f436fdf6f683ae"; - }; - - meta = { - description = ''A generic Erlang SMTP server/client framework''; - license = stdenv.lib.licenses.bsd2; - homepage = "https://github.com/Vagabond/gen_smtp"; - }; - } // packageOverrides) - ) {}; - - gen_smtp = gen_smtp_0_10_0; - - gen_smtp_0_9_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "gen_smtp"; - version = "0.9.0"; - src = fetchHex { - pkg = "gen_smtp"; - version = "0.9.0"; - sha256 = - "5a05f23a7cbe0c6242d290b445c6bbc0c287e3d0e09d3fcdc6bcd2c8973b6688"; - }; - - meta = { - description = ''A generic Erlang SMTP server/client framework''; - license = stdenv.lib.licenses.bsd2; - homepage = "https://github.com/Vagabond/gen_smtp"; - }; - } // packageOverrides) - ) {}; - - gendex_0_5_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "gendex"; - version = "0.5.1"; - src = fetchHex { - pkg = "gendex"; - version = "0.5.1"; - sha256 = - "b3eedba31b1a76ab33e6b57689e4312625fafb2667ac7b485df22c05b4c9439f"; - }; - - meta = { - description = ''Gendex tells you the most likely gender of a - person based on first name.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/dre1080/gendex"; - }; - } // packageOverrides) - ) {}; - - gendex = gendex_0_5_1; - - geocalc_0_4_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "geocalc"; - version = "0.4.0"; - src = fetchHex { - pkg = "geocalc"; - version = "0.4.0"; - sha256 = - "353bcb1efc5b64fc3f8ca33338e51b47ae5f39b272da79be7f1ff7a6daa8dafb"; - }; - - meta = { - description = ''Calculate distance, bearing and more between - latitude/longitude points.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/yltsrc/geocalc"; - }; - } // packageOverrides) - ) {}; - - geocalc = geocalc_0_4_0; - - geohash_0_1_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "geohash"; - version = "0.1.1"; - src = fetchHex { - pkg = "geohash"; - version = "0.1.1"; - sha256 = - "ffca8ce73cce9c52aae2000c5f417009b87f23d6e2df69cd6985bc5cc05aa998"; - }; - - meta = { - description = ''Geohash encode/decode implementation for - Elixir''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/polmuz/elixir-geohash"; - }; - } // packageOverrides) - ) {}; - - geohash = geohash_0_1_1; - - geolite2data_0_0_1 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "geolite2data"; - version = "0.0.1"; - src = fetchHex { - pkg = "geolite2data"; - version = "0.0.1"; - sha256 = - "ba3f48f86302c8f6214afb7822923fcd6b07470ce83cefa1db474e97eb57df97"; - }; - - meta = { - description = ''Periodically fetches the free MaxMind GeoLite2 - databases''; - license = stdenv.lib.licenses.mpl20; - homepage = "https://github.com/potatosalad/erlang-geolite2data"; - }; - } // packageOverrides) - ) {}; - - geolite2data = geolite2data_0_0_1; - - geolix_0_10_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, poolboy_1_5_1 }: - buildMix ({ - name = "geolix"; - version = "0.10.1"; - src = fetchHex { - pkg = "geolix"; - version = "0.10.1"; - sha256 = - "4f269b8b22f01b78b5e0929a3432679f692ae1ac9b31a0f23ca989efd13f9ae0"; - }; - beamDeps = [ poolboy_1_5_1 ]; - - meta = { - description = ''MaxMind GeoIP2 database reader/decoder''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/mneudert/geolix"; - }; - } // packageOverrides) - ) {}; - - geolix = geolix_0_10_1; - - getopt_0_8_2 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "getopt"; - version = "0.8.2"; - src = fetchHex { - pkg = "getopt"; - version = "0.8.2"; - sha256 = - "736e6db3679fbbad46373efb96b69509f8e420281635e9d92989af9f0a0483f7"; - }; - - meta = { - description = ''Command-line options parser for Erlang''; - - homepage = "https://github.com/jcomellas/getopt"; - }; - } // packageOverrides) - ) {}; - - getopt = getopt_0_8_2; - - gettext_0_10_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "gettext"; - version = "0.10.0"; - src = fetchHex { - pkg = "gettext"; - version = "0.10.0"; - sha256 = - "c37747dced24fe00cb4245cb348a36556fa82851c10748cfe4c6a0253aea374e"; - }; - - meta = { - description = ''Internationalization and localization through - gettext''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/elixir-lang/gettext"; - }; - } // packageOverrides) - ) {}; - - gettext_0_11_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "gettext"; - version = "0.11.0"; - src = fetchHex { - pkg = "gettext"; - version = "0.11.0"; - sha256 = - "9688cb656d6bc13d174051256784066dde15c4ddae1f0335590a62952780b58b"; - }; - - meta = { - description = ''Internationalization and localization through - gettext''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/elixir-lang/gettext"; - }; - } // packageOverrides) - ) {}; - - gettext = gettext_0_11_0; - - gh_webhook_plug_0_0_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, plug_1_1_5 }: - buildMix ({ - name = "gh_webhook_plug"; - version = "0.0.3"; - src = fetchHex { - pkg = "gh_webhook_plug"; - version = "0.0.3"; - sha256 = - "9509e2a82e8b48e7eb3c90cb79602c5fbb12196d36d5e5f8bcd1ce1ac1b442a9"; - }; - beamDeps = [ plug_1_1_5 ]; - - meta = { - longDescription = ''This Plug makes it easy to listen and respond - to Github webhook requests in your Elixir - apps.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/emilsoman/gh_webhook_plug"; - }; - } // packageOverrides) - ) {}; - - gh_webhook_plug = gh_webhook_plug_0_0_3; - - gibran_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "gibran"; - version = "0.0.2"; - src = fetchHex { - pkg = "gibran"; - version = "0.0.2"; - sha256 = - "bdf0eb8c7469ac17e14e898b26fb47d4a360409f7a750bfde5d7d0765f327ca4"; - }; - - meta = { - description = ''An Elixir natural language processor.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/abitdodgy/gibran"; - }; - } // packageOverrides) - ) {}; - - gibran = gibran_0_0_2; - - git_cli_0_2_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "git_cli"; - version = "0.2.0"; - src = fetchHex { - pkg = "git_cli"; - version = "0.2.0"; - sha256 = - "8e52506764fd6ba5f153d2bcd5635c160ed83a7a4e8834b4e67eee317a37f962"; - }; - - meta = { - description = ''A simple interface to Git CLI''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/tuvistavie/elixir-git-cli"; - }; - } // packageOverrides) - ) {}; - - git_cli = git_cli_0_2_0; - - gitex_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "gitex"; - version = "0.1.0"; - src = fetchHex { - pkg = "gitex"; - version = "0.1.0"; - sha256 = - "ac3bfa723cf2f734837fc7d89a330fa80156f96eaa2e6326d2ab60880a804de7"; - }; - - meta = { - longDescription = ''Elixir implementation of the Git object - storage, but with the goal to implement the same - semantic with other storage and topics''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/awetzel/gitex"; - }; - } // packageOverrides) - ) {}; - - gitex_0_2_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "gitex"; - version = "0.2.0"; - src = fetchHex { - pkg = "gitex"; - version = "0.2.0"; - sha256 = - "68074becf5e9a01d00096c306a05b023d0107bafca178ff0f043f893b7b95450"; - }; - - meta = { - longDescription = ''Elixir implementation of the Git object - storage, but with the goal to implement the same - semantic with other storage and topics''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/awetzel/gitex"; - }; - } // packageOverrides) - ) {}; - - gitex = gitex_0_2_0; - - github_oauth_0_1_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - httpoison_0_8_3 - }: - buildMix ({ - name = "github_oauth"; - version = "0.1.1"; - src = fetchHex { - pkg = "github_oauth"; - version = "0.1.1"; - sha256 = - "4e68983af9ed8146a2505ad759cb151c3202471285f07df6132a4acd47aa91f2"; - }; - beamDeps = [ poison_1_5_2 httpoison_0_8_3 ]; - - meta = { - description = ''simple github oauth library''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/lidashuang/github_oauth"; - }; - } // packageOverrides) - ) {}; - - github_oauth = github_oauth_0_1_1; - - github_trend_ex_0_1_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - httpoison_0_8_3, - floki_0_8_1 - }: - buildMix ({ - name = "github_trend_ex"; - version = "0.1.2"; - src = fetchHex { - pkg = "github_trend_ex"; - version = "0.1.2"; - sha256 = - "019565ad8efe6c25414dcddc6a7fc99e34f0ff457989ec7b5ad03b79b0c8ca8b"; - }; - beamDeps = [ httpoison_0_8_3 floki_0_8_1 ]; - - meta = { - description = ''Get trend repositories from Github.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/KazuCocoa/github_trend_ex"; - }; - } // packageOverrides) - ) {}; - - github_trend_ex = github_trend_ex_0_1_2; - - gizoogle_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, httpoison_0_8_3 }: - buildMix ({ - name = "gizoogle"; - version = "0.0.2"; - src = fetchHex { - pkg = "gizoogle"; - version = "0.0.2"; - sha256 = - "c22d720fc60df8670a194c6ed1fb17fe272a7560b478037aef4a1437331f60e3"; - }; - beamDeps = [ httpoison_0_8_3 ]; - - meta = { - longDescription = ''Uses Gizoogle ta allow you ta drop a rhyme - like a thug n` retrieve links fo` translated - sitez''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/notdevinclark/gizoogle"; - }; - } // packageOverrides) - ) {}; - - gizoogle = gizoogle_0_0_2; - - gl_utils_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "gl_utils"; - version = "0.0.1"; - src = fetchHex { - pkg = "gl_utils"; - version = "0.0.1"; - sha256 = - "ae529fef193423baa50c673b3f852e0c3ca7b08a85817be7113615dbdacb53f3"; - }; - - meta = { - description = ''All of the Erlang gl macros exposed as normal - functions''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/requnix/gl_utils"; - }; - } // packageOverrides) - ) {}; - - gl_utils = gl_utils_0_0_1; - - glitchylicious_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "glitchylicious"; - version = "0.0.1"; - src = fetchHex { - pkg = "glitchylicious"; - version = "0.0.1"; - sha256 = - "2d7c55bd138722ff810006d4b36873d80ad0473e074ccc377e381c5a88f0a9db"; - }; - - meta = { - description = ''Glitching and image corruption library.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/0010-IO/glitchylicious"; - }; - } // packageOverrides) - ) {}; - - glitchylicious = glitchylicious_0_0_1; - - global_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "global"; - version = "1.0.0"; - src = fetchHex { - pkg = "global"; - version = "1.0.0"; - sha256 = - "00b0637bc2d86154af2885807296d4b6616e6b50a2d52c8ce187ddfe317890ee"; - }; - - meta = { - description = ''A wrapper for Erlang`s :global module with - documentation.''; - license = stdenv.lib.licenses.apsl20; - homepage = "https://github.com/mgwidmann/global"; - }; - } // packageOverrides) - ) {}; - - global = global_1_0_0; - - gm_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "gm"; - version = "0.0.2"; - src = fetchHex { - pkg = "gm"; - version = "0.0.2"; - sha256 = - "3dc6e1d336afe370219b8b465a651012168f6fe7b9e9d2b0609b6384e1bcb8f7"; - }; - - meta = { - description = ''Idiomatic GraphicsMagick wrapper for Elixir.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/utkarshkukreti/gm.ex"; - }; - } // packageOverrides) - ) {}; - - gm = gm_0_0_2; - - gmail_0_1_11 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - timex_2_1_6, - poison_2_1_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "gmail"; - version = "0.1.11"; - src = fetchHex { - pkg = "gmail"; - version = "0.1.11"; - sha256 = - "14ff16f5eb2e705762dc383e59a22905f1f53d3f3e9e17615159bac3add91f7a"; - }; - beamDeps = [ timex_2_1_6 poison_2_1_0 httpoison_0_8_3 ]; - - meta = { - description = ''A simple Gmail REST API client for Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/craigp/elixir-gmail"; - }; - } // packageOverrides) - ) {}; - - gmail = gmail_0_1_11; - - gold_0_12_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - httpoison_0_8_3, - decimal_1_1_2 - }: - buildMix ({ - name = "gold"; - version = "0.12.0"; - src = fetchHex { - pkg = "gold"; - version = "0.12.0"; - sha256 = - "fba43501f6c25116c29358c4b5494de5e078cc516572045ac73a7944b918105b"; - }; - beamDeps = [ poison_1_5_2 httpoison_0_8_3 decimal_1_1_2 ]; - - meta = { - description = ''An Elixir library to interface with the Bitcoin - core JSON-RPC API.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/solatis/gold"; - }; - } // packageOverrides) - ) {}; - - gold = gold_0_12_0; - - goldrush_0_1_7 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "goldrush"; - version = "0.1.7"; - src = fetchHex { - pkg = "goldrush"; - version = "0.1.7"; - sha256 = - "a94a74cd363ce5f4970ed8242c551ec62b71939db1bbfd2e030142cab25a4ffe"; - }; - - meta = { - description = ''Erlang event stream processor''; - license = stdenv.lib.licenses.isc; - homepage = "https://github.com/DeadZen/goldrush"; - }; - } // packageOverrides) - ) {}; - - goldrush_0_1_8 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "goldrush"; - version = "0.1.8"; - src = fetchHex { - pkg = "goldrush"; - version = "0.1.8"; - sha256 = - "ba71e005bbb6ebbc3c510a58b2bd6d3b25a8d091a8e87ac3d33ef10522cdcd51"; - }; - - meta = { - description = ''Erlang event stream processor''; - license = stdenv.lib.licenses.isc; - homepage = "https://github.com/DeadZen/goldrush"; - }; - } // packageOverrides) - ) {}; - - goldrush = goldrush_0_1_8; - - good_enough_geoid_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, csv_1_4_1 }: - buildMix ({ - name = "good_enough_geoid"; - version = "0.0.2"; - src = fetchHex { - pkg = "good_enough_geoid"; - version = "0.0.2"; - sha256 = - "7b2a556206f71e743d77c26a55b60b3282bd799b8254510f62afe2a4ec330746"; - }; - beamDeps = [ csv_1_4_1 ]; - - meta = { - description = ''Get EGM Geoid heights that are good enough for - some purposes (maybe yours).''; - license = stdenv.lib.licenses.mit; - homepage = - "https://github.com/code-lever/good-enough-geoid-elixir"; - }; - } // packageOverrides) - ) {}; - - good_enough_geoid = good_enough_geoid_0_0_2; - - good_times_1_1_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "good_times"; - version = "1.1.1"; - src = fetchHex { - pkg = "good_times"; - version = "1.1.1"; - sha256 = - "1ecb4524b506a5dde5fa9e2312d6f98249b4b45e49a74cf799a8577b52157b90"; - }; - - meta = { - description = ''Expressive and easy to use datetime functions.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/DevL/good_times"; - }; - } // packageOverrides) - ) {}; - - good_times = good_times_1_1_1; - - google_auth_0_0_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - plug_1_1_5, - module_mocker_0_2_0, - cowboy_1_0_4, - access_token_extractor_0_1_1 - }: - buildMix ({ - name = "google_auth"; - version = "0.0.2"; - src = fetchHex { - pkg = "google_auth"; - version = "0.0.2"; - sha256 = - "029f2399456a7b7474635cab36544d35e200ddd7a470a905191de0fc3612adb5"; - }; - beamDeps = [ - plug_1_1_5 - module_mocker_0_2_0 - cowboy_1_0_4 - access_token_extractor_0_1_1 - ]; - - meta = { - longDescription = ''Simple Plug to provide google based - authentication. Just pass access_token received - from client side google auth flow and this plug - will get name, emai and picture of user from - google and add it to private inside Plug.Conn''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/rohanpujaris/google_auth"; - }; - } // packageOverrides) - ) {}; - - google_auth = google_auth_0_0_2; - - google_books_0_0_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "google_books"; - version = "0.0.2"; - src = fetchHex { - pkg = "google_books"; - version = "0.0.2"; - sha256 = - "d20b5ca090df63cf4ed32d7257dcdad780bd89ca93bd644721c9d4d696e5734d"; - }; - beamDeps = [ poison_2_1_0 httpoison_0_8_3 ]; - - meta = { - description = ''A simple wrapper for Google Books API''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/nithinbekal/google_books.ex"; - }; - } // packageOverrides) - ) {}; - - google_books = google_books_0_0_2; - - google_sheets_2_0_5 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - sweet_xml_0_6_1, - httpoison_0_8_3, - hackney_1_6_0 - }: - buildMix ({ - name = "google_sheets"; - version = "2.0.5"; - src = fetchHex { - pkg = "google_sheets"; - version = "2.0.5"; - sha256 = - "aeaaab3e2df75289cf14740a76b014652fb77a5ef95be3921fc36f4165812682"; - }; - beamDeps = [ sweet_xml_0_6_1 httpoison_0_8_3 hackney_1_6_0 ]; - - meta = { - description = ''OTP application for fetching and polling Google - spreadsheet data in CSV format.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/GrandCru/GoogleSheets"; - }; - } // packageOverrides) - ) {}; - - google_sheets = google_sheets_2_0_5; - - goomoji_translator_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "goomoji_translator"; - version = "0.0.2"; - src = fetchHex { - pkg = "goomoji_translator"; - version = "0.0.2"; - sha256 = - "b794dcccc306c4c5712895456c28012e1b9f8e8496392bafcfa9c1fc2c251f82"; - }; - - meta = { - description = ''Used to change goomoji codes into normal emoji - codes''; - license = stdenv.lib.licenses.asl20; - homepage = - "https://github.com/azranel/goomoji-translator_elixir"; - }; - } // packageOverrides) - ) {}; - - goomoji_translator = goomoji_translator_0_0_2; - - goth_0_0_3 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - json_web_token_0_2_5, - httpoison_0_8_3 - }: - buildMix ({ - name = "goth"; - version = "0.0.3"; - src = fetchHex { - pkg = "goth"; - version = "0.0.3"; - sha256 = - "0bbf59ae842dc4518cf42123b0fb0d0255bcb72ea37c8ec13bab2efe2339ccc3"; - }; - beamDeps = [ poison_1_5_2 json_web_token_0_2_5 httpoison_0_8_3 - ]; - - meta = { - longDescription = ''A simple library to generate and retrieve - Oauth2 tokens for use with Google Cloud Service - accounts.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/peburrows/goth"; - }; - } // packageOverrides) - ) {}; - - goth_0_1_3 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - json_web_token_0_2_5, - httpoison_0_8_3 - }: - buildMix ({ - name = "goth"; - version = "0.1.3"; - src = fetchHex { - pkg = "goth"; - version = "0.1.3"; - sha256 = - "64a26a9b0682757acd59838eaa08f76b394c7fa086b5106c7b3f8682a8416d05"; - }; - beamDeps = [ poison_2_1_0 json_web_token_0_2_5 httpoison_0_8_3 - ]; - - meta = { - longDescription = ''A simple library to generate and retrieve - Oauth2 tokens for use with Google Cloud Service - accounts.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/peburrows/goth"; - }; - } // packageOverrides) - ) {}; - - goth = goth_0_1_3; - - gproc_0_3_1 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "gproc"; - version = "0.3.1"; - src = fetchHex { - pkg = "gproc"; - version = "0.3.1"; - sha256 = - "3c449925a5cbf57cc40d13c6c282bc1080b5ed3bad97e1acdbe969fd63a65fce"; - }; - - meta = { - longDescription = ''Gproc is a process dictionary for Erlang, - which provides a number of useful features - beyond what the built-in dictionary has: * Use - any term as a process alias * Register a process - under several aliases * Non-unique properties - can be registered simultaneously by many - processes * QLC and match specification - interface for efficient queries on the - dictionary * Await registration, let`s you wait - until a process registers itself * Atomically - give away registered names and properties to - another process * Counters, and aggregated - counters, which automatically maintain the total - of all counters with a given name * Global - registry, with all the above functions applied - to a network of nodes''; - license = stdenv.lib.licenses.epl10; - homepage = "https://github.com/uwiger/gproc"; - }; - } // packageOverrides) - ) {}; - - gproc_0_5_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "gproc"; - version = "0.5.0"; - src = fetchHex { - pkg = "gproc"; - version = "0.5.0"; - sha256 = - "5bc0fa4e999a6665b92ce57a7f12d7e9d1c26bfc39b0f657994be05cd3818b18"; - }; - - meta = { - longDescription = ''Gproc is a process dictionary for Erlang, - which provides a number of useful features - beyond what the built-in dictionary has: * Use - any term as a process alias * Register a process - under several aliases * Non-unique properties - can be registered simultaneously by many - processes * QLC and match specification - interface for efficient queries on the - dictionary * Await registration, let`s you wait - until a process registers itself * Atomically - give away registered names and properties to - another process * Counters, and aggregated - counters, which automatically maintain the total - of all counters with a given name * Global - registry, with all the above functions applied - to a network of nodes''; - license = stdenv.lib.licenses.epl10; - homepage = "https://github.com/uwiger/gproc"; - }; - } // packageOverrides) - ) {}; - - gproc = gproc_0_5_0; - - graphex_0_2_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "graphex"; - version = "0.2.1"; - src = fetchHex { - pkg = "graphex"; - version = "0.2.1"; - sha256 = - "9279db515110de152479903488b1df6ad2de409f5b48d00fac55211bfab2e728"; - }; - - meta = { - description = ''A task graph execution library for elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/stocks29/graphex"; - }; - } // packageOverrides) - ) {}; - - graphex = graphex_0_2_1; - - graphixir_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "graphixir"; - version = "0.0.1"; - src = fetchHex { - pkg = "graphixir"; - version = "0.0.1"; - sha256 = - "8d355dc2ac225c2d74f15707908103ca051c74ef1668abf5240f6d3582750518"; - }; - - meta = { - description = ''Graphite framework for elixir''; - - }; - } // packageOverrides) - ) {}; - - graphixir = graphixir_0_0_1; - - graphmath_1_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "graphmath"; - version = "1.0.2"; - src = fetchHex { - pkg = "graphmath"; - version = "1.0.2"; - sha256 = - "6be38a7f4c6167f2c766ee74fd2642c8d98412c4b2bd4c1238cad493f30f4524"; - }; - - meta = { - description = ''Graphmath is a library for doing 2D and 3D - mathemtical operations.''; - license = with stdenv.lib.licenses; [ free wtfpl free ]; - homepage = "https://github.com/crertel/graphmath"; - }; - } // packageOverrides) - ) {}; - - graphmath = graphmath_1_0_2; - - graphql_0_2_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "graphql"; - version = "0.2.0"; - src = fetchHex { - pkg = "graphql"; - version = "0.2.0"; - sha256 = - "2469337ef663fb63922e67beafa2a50d56de14176c699758a855210140c269df"; - }; - - meta = { - description = ''GraphQL Elixir implementation''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/graphql-elixir/graphql"; - }; - } // packageOverrides) - ) {}; - - graphql_0_3_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "graphql"; - version = "0.3.1"; - src = fetchHex { - pkg = "graphql"; - version = "0.3.1"; - sha256 = - "ed756b2ee62d3e33c6eef6ffc4bf1a7184c1b5cd022a4550b085768eefa8f4a2"; - }; - - meta = { - description = ''GraphQL Elixir implementation''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/graphql-elixir/graphql"; - }; - } // packageOverrides) - ) {}; - - graphql = graphql_0_3_1; - - graphql_ex_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "graphql_ex"; - version = "0.0.1"; - src = fetchHex { - pkg = "graphql_ex"; - version = "0.0.1"; - sha256 = - "51884d5275d354b915db03eb390e858ead88b3f3e4f699b2fa7dc8eb442bc343"; - }; - meta = { }; - } // packageOverrides) - ) {}; - - graphql_ex = graphql_ex_0_0_1; - - gravatar_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "gravatar"; - version = "0.1.0"; - src = fetchHex { - pkg = "gravatar"; - version = "0.1.0"; - sha256 = - "4fab4a0313312d4319496662b55f25d3aabaa740ef3d084456425db8c9bdb4fd"; - }; - - meta = { - description = ''Gravatar URLs generator''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/pilu/gravatar"; - }; - } // packageOverrides) - ) {}; - - gravatar = gravatar_0_1_0; - - gravatarify_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "gravatarify"; - version = "0.1.0"; - src = fetchHex { - pkg = "gravatarify"; - version = "0.1.0"; - sha256 = - "d11f416611ed802d72e57f649c74f17c6dbf0e751da87e355cbfd14d4047d17e"; - }; - - meta = { - description = ''Gravatar images with an ease''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/shiroyasha/gravatarify"; - }; - } // packageOverrides) - ) {}; - - gravatarify = gravatarify_0_1_0; - - gray_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "gray"; - version = "0.0.2"; - src = fetchHex { - pkg = "gray"; - version = "0.0.2"; - sha256 = - "95b071e0742ed10298c5d0ff027aec3eaadf3a807ed5e88bd4d2861a5220be62"; - }; - - meta = { - longDescription = ''Package to help you operate with [gray codes] - (https://en.wikipedia.org/wiki/Gray_code)''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/hashd/gray"; - }; - } // packageOverrides) - ) {}; - - gray = gray_0_0_2; - - greenhouse_0_0_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - timex_2_1_6, - httpoison_0_8_3, - exjsx_3_2_0 - }: - buildMix ({ - name = "greenhouse"; - version = "0.0.1"; - src = fetchHex { - pkg = "greenhouse"; - version = "0.0.1"; - sha256 = - "7b32075492339d6ef03572891287689d48d938f36e19601433f47b4ad2f75b5d"; - }; - beamDeps = [ timex_2_1_6 httpoison_0_8_3 exjsx_3_2_0 ]; - - meta = { - description = ''Elixir library for access the Greenhouse Harvest - API''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/jeffweiss/greenhouse"; - }; - } // packageOverrides) - ) {}; - - greenhouse = greenhouse_0_0_1; - - growl_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "growl"; - version = "0.0.2"; - src = fetchHex { - pkg = "growl"; - version = "0.0.2"; - sha256 = - "0b43fba8d18349b5bd507b457016298cfafea4a50831e8ce944569b45d3bceb8"; - }; - - meta = { - longDescription = ''# Growl A simple wrapper to the command line - interface for the [Growl OSX notification - system](http://growl.info/). ## Setup ```Elixir - defp deps do [ {:growl, github: - \"zhallett/growl\"} ] ``` ## Usage Within the - script you would like to create a `growl` - notification, make the module call as follows: - ```Elixir Growl.notify(\"This is a - notification\") ``` The API accepts messages in - a string format, as well as a list. If the first - argument is a list, the first object is the - title line, with subsequent lines being the body - of the notification. ```Elixir - Growl.notify([\"Example\", \"This is an example - notification\"]) ``` would give the following - notification: ![Forced - Update](https://github.com/zhallett/growl/blob/master/multi_line_notification.png?raw=true - \"Multi-Line notification Screenshot\")) ## - Contributing 1. Fork it 2. Create your feature - branch (`git checkout -b my-new-feature`) 3. - Commit your changes (`git commit -am `Add some - feature``) 4. Push to the branch (`git push - origin my-new-feature`) 5. Create new Pull - Request ''; - license = stdenv.lib.licenses.free; - homepage = "https://github.com/zhallett/growl"; - }; - } // packageOverrides) - ) {}; - - growl = growl_0_0_2; - - gtfs_0_3_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, csv_1_4_1 }: - buildMix ({ - name = "gtfs"; - version = "0.3.0"; - src = fetchHex { - pkg = "gtfs"; - version = "0.3.0"; - sha256 = - "a77116b8886f3fa56fb1c9e722b7d62939ff85a38fa99a24daef5a26a0c939a5"; - }; - beamDeps = [ csv_1_4_1 ]; - - meta = { - description = ''A library for parsing a GTFS folder into a - hierarchy of structured data''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/bhelx/gtfs"; - }; - } // packageOverrides) - ) {}; - - gtfs = gtfs_0_3_0; - - guardsafe_0_5_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "guardsafe"; - version = "0.5.0"; - src = fetchHex { - pkg = "guardsafe"; - version = "0.5.0"; - sha256 = - "e6808876c07f21d78c3935c0607791cd2ceec40f3b855fa03774e8087bcfc277"; - }; - - meta = { - description = ''Macros expanding into code that can be safely - used in guard clauses.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/DevL/guardsafe"; - }; - } // packageOverrides) - ) {}; - - guardsafe = guardsafe_0_5_0; - - gun_1_0_0_pre_1 = callPackage - ( - { - buildErlangMk, - packageOverrides ? {}, - fetchHex, - ranch_1_1_0, - cowlib_1_3_0 - }: - buildErlangMk ({ - name = "gun"; - version = "1.0.0-pre.1"; - src = fetchHex { - pkg = "gun"; - version = "1.0.0-pre.1"; - sha256 = - "53aca19e83b15127aa4e299435823b367d5ba6797852984af6c2b9b493be9d56"; - }; - beamDeps = [ ranch_1_1_0 cowlib_1_3_0 ]; - - meta = { - description = ''Asynchronous SPDY, HTTP and Websocket client.''; - - }; - } // packageOverrides) - ) {}; - - gun = gun_1_0_0_pre_1; - - guri_0_2_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - websocket_client_1_1_0, - poison_1_5_2, - httpoison_0_8_3 - }: - buildMix ({ - name = "guri"; - version = "0.2.1"; - src = fetchHex { - pkg = "guri"; - version = "0.2.1"; - sha256 = - "7fa0f2ebff111c368895798041d982f00eec34589d93f10bb323bb5a09e1f888"; - }; - beamDeps = [ websocket_client_1_1_0 poison_1_5_2 httpoison_0_8_3 - ]; - - meta = { - description = ''Automate tasks and keep everyone in the loop with - Guri''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/elvio/guri"; - }; - } // packageOverrides) - ) {}; - - guri = guri_0_2_1; - - gurka_0_1_7 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "gurka"; - version = "0.1.7"; - src = fetchHex { - pkg = "gurka"; - version = "0.1.7"; - sha256 = - "b46c96446f46a53411a3b45d126ec19e724178818206ca1d2dd16abff28df6b5"; - }; - - meta = { - description = ''Erlang implementation of Cucumber''; - license = stdenv.lib.licenses.mit; - }; - } // packageOverrides) - ) {}; - - gurka = gurka_0_1_7; - - gutenex_0_2_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, imagineer_0_2_1 }: - buildMix ({ - name = "gutenex"; - version = "0.2.0"; - src = fetchHex { - pkg = "gutenex"; - version = "0.2.0"; - sha256 = - "5c8ab30570d7ddcd6cdb2eeaf1d3eba4db83f6ef955f4030f05cf476cbce79fa"; - }; - beamDeps = [ imagineer_0_2_1 ]; - - meta = { - description = ''PDF Generation in Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/SenecaSystems/gutenex"; - }; - } // packageOverrides) - ) {}; - - gutenex = gutenex_0_2_0; - - hackney_1_5_7 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - ssl_verify_fun_1_1_0, - mimerl_1_0_2, - metrics_1_0_1, - idna_1_2_0, - certifi_0_4_0 - }: - buildMix ({ - name = "hackney"; - version = "1.5.7"; - src = fetchHex { - pkg = "hackney"; - version = "1.5.7"; - sha256 = - "627ed3f048b950d2dbbec918519f89f498a2136d74ca8180c15fad412b9bc869"; - }; - beamDeps = [ - ssl_verify_fun_1_1_0 - mimerl_1_0_2 - metrics_1_0_1 - idna_1_2_0 - certifi_0_4_0 - ]; - - meta = { - description = ''simple HTTP client''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/benoitc/hackney"; - }; - } // packageOverrides) - ) {}; - - hackney_1_6_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - ssl_verify_fun_1_1_0, - mimerl_1_0_2, - metrics_1_0_1, - idna_1_2_0, - certifi_0_4_0 - }: - buildMix ({ - name = "hackney"; - version = "1.6.0"; - src = fetchHex { - pkg = "hackney"; - version = "1.6.0"; - sha256 = - "8b517f17c794ab611815042d24e149daafbd898d63aac8baf6750b890261c716"; - }; - beamDeps = [ - ssl_verify_fun_1_1_0 - mimerl_1_0_2 - metrics_1_0_1 - idna_1_2_0 - certifi_0_4_0 - ]; - - meta = { - description = ''simple HTTP client''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/benoitc/hackney"; - }; - } // packageOverrides) - ) {}; - - hackney = hackney_1_6_0; - - haikunator_1_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "haikunator"; - version = "1.0.1"; - src = fetchHex { - pkg = "haikunator"; - version = "1.0.1"; - sha256 = - "60692df3a559df14bac6a8c115091977f0a45eea55123a5cb37e3d763cbe92e8"; - }; - - meta = { - longDescription = ''Generate Heroku-like memorable random names - to use in your apps or anywhere else.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/knrz/Haikunator"; - }; - } // packageOverrides) - ) {}; - - haikunator = haikunator_1_0_1; - - hairnet_1_0_0 = callPackage - ( - { - buildRebar3, packageOverrides ? {}, fetchHex, base64url_0_0_1 - }: - buildRebar3 ({ - name = "hairnet"; - version = "1.0.0"; - src = fetchHex { - pkg = "hairnet"; - version = "1.0.0"; - sha256 = - "b3f15cdb7d9e6183a5cde401ded684c88cc2ea09dca75facf82b5281f4596606"; - }; - - beamDeps = [ base64url_0_0_1 ]; - - meta = { - description = ''An Erlang library wrapping AES-GCM (AEAD) crypto - in a Fernet-like interface''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/ferd/hairnet/"; - }; - } // packageOverrides) - ) {}; - - hairnet = hairnet_1_0_0; - - happy_1_1_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "happy"; - version = "1.1.1"; - src = fetchHex { - pkg = "happy"; - version = "1.1.1"; - sha256 = - "3b2ee083ea1d68063df4fb0561eb462703e6188d9352d0763b458ee6ce385060"; - }; - - meta = { - longDescription = ''Happy path programming in elixir. Alternative - to ok_jose, elixir`s 1.2 `with` keyword and that - kind of stuff.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/vic/happy"; - }; - } // packageOverrides) - ) {}; - - happy = happy_1_1_1; - - harakiri_1_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "harakiri"; - version = "1.0.1"; - src = fetchHex { - pkg = "harakiri"; - version = "1.0.1"; - sha256 = - "2c3bc7300cbded03bb1b01ebe67e74507a5350c79fe08276a2a17359a6c28d79"; - }; - - meta = { - description = ''Help applications do things to themselves.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/rubencaro/harakiri"; - }; - } // packageOverrides) - ) {}; - - harakiri = harakiri_1_0_1; - - harvest_0_0_3 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "harvest"; - version = "0.0.3"; - src = fetchHex { - pkg = "harvest"; - version = "0.0.3"; - sha256 = - "a9b52f37959a97e876603da5a34a0683e9e4a8e534fb7c672175602768fc812a"; - }; - beamDeps = [ poison_2_1_0 httpoison_0_8_3 ]; - - meta = { - description = ''Harvest Time Tracking API wrapper written in - Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/luishurtado/harvest"; - }; - } // packageOverrides) - ) {}; - - harvest = harvest_0_0_3; - - hash_n_cache_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "hash_n_cache"; - version = "0.0.2"; - src = fetchHex { - pkg = "hash_n_cache"; - version = "0.0.2"; - sha256 = - "3cd95f04cd6017894b1829307e568a72a3d42c6b70379c37b86c80ab0a6f68ec"; - }; - - meta = { - longDescription = ''A simple utility to hash an erlang term, and - cache the term in ETS with the hash as the key - and the term as the value.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/elbow-jason/hash_n_cache"; - }; - } // packageOverrides) - ) {}; - - hash_n_cache = hash_n_cache_0_0_2; - - hash_ring_0_4_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "hash_ring"; - version = "0.4.0"; - src = fetchHex { - pkg = "hash_ring"; - version = "0.4.0"; - sha256 = - "97f7b4252e660ae3c66fd163277267d3445cfea097342027fe6cc3512fdafd16"; - }; - - meta = { - description = ''Consistent Hash Ring''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/sile/hash_ring"; - }; - } // packageOverrides) - ) {}; - - hash_ring = hash_ring_0_4_0; - - hashids_2_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "hashids"; - version = "2.0.2"; - src = fetchHex { - pkg = "hashids"; - version = "2.0.2"; - sha256 = - "3dae063908483454ec691e61da580a056997b4c9affcf12b2330937ee48e6bf0"; - }; - - meta = { - description = ''Hashids lets you obfuscate numerical identifiers - via reversible mapping.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/alco/hashids-elixir"; - }; - } // packageOverrides) - ) {}; - - hashids = hashids_2_0_2; - - heap_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "heap"; - version = "1.0.0"; - src = fetchHex { - pkg = "heap"; - version = "1.0.0"; - sha256 = - "39ddb188337ef43dd46e1920abba0bb88821a8cc19cc8688aa36045a58f733d0"; - }; - - meta = { - description = ''Heap data structure and tools''; - - }; - } // packageOverrides) - ) {}; - - heap = heap_1_0_0; - - heapq_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "heapq"; - version = "0.0.1"; - src = fetchHex { - pkg = "heapq"; - version = "0.0.1"; - sha256 = - "60bc20c109360c6899203f4015fae42c9e5a4f82707f76b064e10d6da135d4fd"; - }; - - meta = { - description = ''A Heap-based Priority Queue Implementation in - Elixir.''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/takscape/elixir-heapq"; - }; - } // packageOverrides) - ) {}; - - heapq = heapq_0_0_1; - - hedwig_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "hedwig"; - version = "0.1.0"; - src = fetchHex { - pkg = "hedwig"; - version = "0.1.0"; - sha256 = - "75139dc3ce629dcb703a17d053acf84da0787ab398e20566e10152cdf1ccad9c"; - }; - - meta = { - description = ''An adapter-based chat bot framework''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/hedwig-im/hedwig"; - }; - } // packageOverrides) - ) {}; - - hedwig_1_0_0_rc3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, gproc_0_5_0 }: - buildMix ({ - name = "hedwig"; - version = "1.0.0-rc3"; - src = fetchHex { - pkg = "hedwig"; - version = "1.0.0-rc3"; - sha256 = - "846347c6ae462e98b8c8c8a60f0bef8ee2c4ffa28463a0df030ae8a938cc773f"; - }; - beamDeps = [ gproc_0_5_0 ]; - - meta = { - description = ''An adapter-based chat bot framework''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/hedwig-im/hedwig"; - }; - } // packageOverrides) - ) {}; - - hedwig = hedwig_1_0_0_rc3; - - hermes_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, chronos_1_5_1 }: - buildMix ({ - name = "hermes"; - version = "0.1.0"; - src = fetchHex { - pkg = "hermes"; - version = "0.1.0"; - sha256 = - "f28880392a8b1b027c58c387870099f854f842fdeb1f7a0ba94a0b1ca07643bf"; - }; - beamDeps = [ chronos_1_5_1 ]; - - meta = { - longDescription = ''Is a mailer component for sending & recieving - emails. The name comes from the greek messanger - of the gods.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/nurugger07/hemes"; - }; - } // packageOverrides) - ) {}; - - hermes = hermes_0_1_0; - - hex2bin_1_0_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "hex2bin"; - version = "1.0.0"; - src = fetchHex { - pkg = "hex2bin"; - version = "1.0.0"; - sha256 = - "e7012d1d9aadd26e680f0983d26fb8923707f05fac9688f19f530fa3795e716f"; - }; - - meta = { - description = ''Hex string/binary conversion utilities''; - license = stdenv.lib.licenses.apsl20; - homepage = "https://github.com/aesedepece/hex2bin"; - }; - } // packageOverrides) - ) {}; - - hex2bin = hex2bin_1_0_0; - - hex_math_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "hex_math"; - version = "0.0.2"; - src = fetchHex { - pkg = "hex_math"; - version = "0.0.2"; - sha256 = - "1dd9284c402d06bcd63ccb8df6022342defb2de4bd666066ed409e3b3c47761b"; - }; - - meta = { - description = ''Library for working with hex grids.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/tjcelaya/hex_math"; - }; - } // packageOverrides) - ) {}; - - hex_math = hex_math_0_0_2; - - hex_searcher_1_0_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - table_rex_0_4_0, - ibrowse_4_2_2, - httpotion_2_2_2, - floki_0_7_2 - }: - buildMix ({ - name = "hex_searcher"; - version = "1.0.0"; - src = fetchHex { - pkg = "hex_searcher"; - version = "1.0.0"; - sha256 = - "26d2097aa0f950c67ea55822e15cfec26976f76a60ec51d758af9d60126b3538"; - }; - beamDeps = [ - table_rex_0_4_0 - ibrowse_4_2_2 - httpotion_2_2_2 - floki_0_7_2 - ]; - - meta = { - description = ''Search hex packages from terminal''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/nguyenvinhlinh/HexSearcher"; - }; - } // packageOverrides) - ) {}; - - hex_searcher = hex_searcher_1_0_0; - - hexate_0_5_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "hexate"; - version = "0.5.1"; - src = fetchHex { - pkg = "hexate"; - version = "0.5.1"; - sha256 = - "b146d4c48380bef3eee74e16bc243f91783f72502759f1f18460b6a8da441270"; - }; - - meta = { - description = ''A simple module for working with hex strings in - Elixir. ''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/rjsamson/hexate"; - }; - } // packageOverrides) - ) {}; - - hexate = hexate_0_5_1; - - hexbot_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "hexbot"; - version = "0.0.1"; - src = fetchHex { - pkg = "hexbot"; - version = "0.0.1"; - sha256 = - "f9b8c9805468f7b93fa88440f1e75d8ed2fc3b7d11a68c455abf81efcc31590c"; - }; - - meta = { - description = ''A hubot-like bot framework for chatops.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/tombell/hexbot"; - }; - } // packageOverrides) - ) {}; - - hexbot = hexbot_0_0_1; - - hexdocset_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, floki_0_0_5 }: - buildMix ({ - name = "hexdocset"; - version = "1.0.0"; - src = fetchHex { - pkg = "hexdocset"; - version = "1.0.0"; - sha256 = - "846ed02411d759710f0f72a401d81a67cbc181421e461d3246540b3d471044be"; - }; - beamDeps = [ floki_0_0_5 ]; - - meta = { - description = ''Convert hex doc to Dash.app`s docset format.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/yesmeck/hexdocset"; - }; - } // packageOverrides) - ) {}; - - hexdocset = hexdocset_1_0_0; - - hipchat_logger_backend_0_1_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - httpoison_0_8_3 - }: - buildMix ({ - name = "hipchat_logger_backend"; - version = "0.1.2"; - src = fetchHex { - pkg = "hipchat_logger_backend"; - version = "0.1.2"; - sha256 = - "211bb8e174858c7858c76f992fa7b19d9373a29d7f501b774517534af17bf590"; - }; - beamDeps = [ poison_1_5_2 httpoison_0_8_3 ]; - - meta = { - description = ''A logger backend for posting errors to - HipChat.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/fbcouch/hipchat_logger_backend"; - }; - } // packageOverrides) - ) {}; - - hipchat_logger_backend = hipchat_logger_backend_0_1_2; - - hlc_2_0_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "hlc"; - version = "2.0.0"; - src = fetchHex { - pkg = "hlc"; - version = "2.0.0"; - sha256 = - "460ac04654e920e068d1fd17aec1f78b1879cc42ac7f3def7497f0d1cc5056ad"; - }; - - meta = { - description = ''hybrid logical clock''; - - homepage = "https://github.com/barrel-db/hlc"; - }; - } // packageOverrides) - ) {}; - - hlc = hlc_2_0_0; - - hoax_0_11_2 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "hoax"; - version = "0.11.2"; - src = fetchHex { - pkg = "hoax"; - version = "0.11.2"; - sha256 = - "fca0d9056201e671719736b4f86fe2b8da6f8b42d88b28b1bcb2b307586928a8"; - }; - - meta = { - description = ''Yet another mocking library for Erlang''; - license = stdenv.lib.licenses.apsl20; - homepage = "https://github.com/xenolinguist/hoax"; - }; - } // packageOverrides) - ) {}; - - hoax = hoax_0_11_2; - - holidays_0_1_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "holidays"; - version = "0.1.1"; - src = fetchHex { - pkg = "holidays"; - version = "0.1.1"; - sha256 = - "098f192bd02f1fd68fd22ae69dc608a03e89a4c814c3c3901d56c8f697cda622"; - }; - - meta = { - description = ''Library for finding which holidays fall on given - dates.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/CoderDennis/holidays"; - }; - } // packageOverrides) - ) {}; - - holidays = holidays_0_1_1; - - honeybadger_0_5_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - plug_1_1_5, - httpoison_0_8_3 - }: - buildMix ({ - name = "honeybadger"; - version = "0.5.0"; - src = fetchHex { - pkg = "honeybadger"; - version = "0.5.0"; - sha256 = - "a19b507955a229276af2af14b4a324d4b352d17b468e9c29215e1637bd493c42"; - }; - beamDeps = [ poison_2_1_0 plug_1_1_5 httpoison_0_8_3 ]; - - meta = { - longDescription = ''Elixir client, Plug and error_logger for - integrating with the Honeybadger.io exception - tracker''; - license = stdenv.lib.licenses.mit; - homepage = - "https://github.com/honeybadger-io/honeybadger-elixir"; - }; - } // packageOverrides) - ) {}; - - honeybadger = honeybadger_0_5_0; - - hooks_1_1_1 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "hooks"; - version = "1.1.1"; - src = fetchHex { - pkg = "hooks"; - version = "1.1.1"; - sha256 = - "6834ad3a2a624a5ffd49e9cb146ff49ded423b67f31905b122d24128c72c5c85"; - }; - - meta = { - description = ''generic plugin & hook system''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/barrel-db/hooks"; - }; - } // packageOverrides) - ) {}; - - hooks = hooks_1_1_1; - - hound_1_0_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "hound"; - version = "1.0.0"; - src = fetchHex { - pkg = "hound"; - version = "1.0.0"; - sha256 = - "433c541048096b864f4a346231967d63f4acfcc32fd280f80505b95a2f9738a4"; - }; - beamDeps = [ poison_2_1_0 httpoison_0_8_3 ]; - - meta = { - description = ''Webdriver library for integration testing and - browser automation''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/HashNuke/hound"; - }; - } // packageOverrides) - ) {}; - - hound = hound_1_0_0; - - hpack_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "hpack"; - version = "1.0.0"; - src = fetchHex { - pkg = "hpack"; - version = "1.0.0"; - sha256 = - "092fe46ef1c59bf2d7d47f627520321eb6965861db1516c95ef19d484958aea5"; - }; - - meta = { - longDescription = ''Implementation of the - [HPack](https://http2.github.io/http2-spec/compression.html) - protocol, a compression format for efficiently - representing HTTP header fields, to be used in - HTTP/2.''; - license = stdenv.lib.licenses.mit; - }; - } // packageOverrides) - ) {}; - - hpack = hpack_1_0_0; - - html_builder_0_1_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "html_builder"; - version = "0.1.1"; - src = fetchHex { - pkg = "html_builder"; - version = "0.1.1"; - sha256 = - "7cba41180419a26e2fb8ff1c075efcdf31e4079e06144d58623c32c1de3835d9"; - }; - - meta = { - description = ''generate html in elixir with simple data - structures''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/camshaft/html_builder"; - }; - } // packageOverrides) - ) {}; - - html_builder = html_builder_0_1_1; - - html_entities_0_3_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "html_entities"; - version = "0.3.0"; - src = fetchHex { - pkg = "html_entities"; - version = "0.3.0"; - sha256 = - "93811511394efeee964f6e7df3b72b37ad39c1d185030c3561aebf1c15c4d995"; - }; - - meta = { - description = ''Decode and encode HTML entities in a string.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/martinsvalin/html_entities"; - }; - } // packageOverrides) - ) {}; - - html_entities = html_entities_0_3_0; - - html_sanitize_ex_0_1_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, mochiweb_2_12_2 }: - buildMix ({ - name = "html_sanitize_ex"; - version = "0.1.2"; - src = fetchHex { - pkg = "html_sanitize_ex"; - version = "0.1.2"; - sha256 = - "e6937b25832bcdccb8b547632428de7fe034199c871f037311d4340c345348a7"; - }; - beamDeps = [ mochiweb_2_12_2 ]; - - meta = { - description = ''HTML sanitizer for Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/rrrene/html_sanitize_ex"; - }; - } // packageOverrides) - ) {}; - - html_sanitize_ex_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, mochiweb_2_12_2 }: - buildMix ({ - name = "html_sanitize_ex"; - version = "1.0.0"; - src = fetchHex { - pkg = "html_sanitize_ex"; - version = "1.0.0"; - sha256 = - "5bf36372dafe900da8d9613502ce4efad3d885af5beb0d298386da0b6a1dbbc6"; - }; - beamDeps = [ mochiweb_2_12_2 ]; - - meta = { - description = ''HTML sanitizer for Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/rrrene/html_sanitize_ex"; - }; - } // packageOverrides) - ) {}; - - html_sanitize_ex = html_sanitize_ex_1_0_0; - - html_to_pdf_0_5_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "html_to_pdf"; - version = "0.5.2"; - src = fetchHex { - pkg = "html_to_pdf"; - version = "0.5.2"; - sha256 = - "7adcde56c221e8f2447837d3b5983775f53071035d9ce9f179635a5e94c795e3"; - }; - - meta = { - description = ''Super simple library for turning raw HTML or - webpages into beautiful PDFs.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/mattweldon/html_to_pdf"; - }; - } // packageOverrides) - ) {}; - - html_to_pdf = html_to_pdf_0_5_2; - - http2_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "http2"; - version = "0.0.2"; - src = fetchHex { - pkg = "http2"; - version = "0.0.2"; - sha256 = - "fd8354d9c7800223ffcb66c2c359a40a5be3809ea4e3b2046fee253a5d049250"; - }; - - meta = { - description = ''HPACK implementation for Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/kiennt/hpack"; - }; - } // packageOverrides) - ) {}; - - http2 = http2_0_0_2; - - http_digex_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "http_digex"; - version = "0.0.1"; - src = fetchHex { - pkg = "http_digex"; - version = "0.0.1"; - sha256 = - "43bca23be7809bd4e2a5efa23d294117457192c98bd1cdf6b90b61285bc4109a"; - }; - - meta = { - description = ''A module to create basic digest http auth - header''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/techgaun/http_digex"; - }; - } // packageOverrides) - ) {}; - - http_digex = http_digex_0_0_1; - - http_params_serializer_0_1_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "http_params_serializer"; - version = "0.1.1"; - src = fetchHex { - pkg = "http_params_serializer"; - version = "0.1.1"; - sha256 = - "7d6c2184814b7232130a3193c9832827c5eeaaae928155d96863ec426da6ce69"; - }; - - meta = { - longDescription = ''A small library to serialize deeply nested - datastructures into HTTP parameters that most - backends do understand''; - license = stdenv.lib.licenses.mit; - homepage = - "https://github.com/ruby2elixir/http_params_serializer"; - }; - } // packageOverrides) - ) {}; - - http_params_serializer = http_params_serializer_0_1_1; - - http_proxy_1_0_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - plug_1_1_5, - hackney_1_6_0, - exjsx_3_2_0, - cowboy_1_0_4 - }: - buildMix ({ - name = "http_proxy"; - version = "1.0.2"; - src = fetchHex { - pkg = "http_proxy"; - version = "1.0.2"; - sha256 = - "157f7a75f41f9f1532244c0eb1587fa638518c2e9b0f95aaaf3f6d1489ec94e3"; - }; - beamDeps = [ plug_1_1_5 hackney_1_6_0 exjsx_3_2_0 cowboy_1_0_4 - ]; - - meta = { - description = ''Multi port HTTP Proxy and support record/play - request.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/KazuCocoa/http_proxy"; - }; - } // packageOverrides) - ) {}; - - http_proxy = http_proxy_1_0_2; - - http_router_0_0_8 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - xml_builder_0_0_8, - poison_1_5_2, - plug_1_1_5, - cowboy_1_0_4 - }: - buildMix ({ - name = "http_router"; - version = "0.0.8"; - src = fetchHex { - pkg = "http_router"; - version = "0.0.8"; - sha256 = - "9a2844cc8c880621ca2689e0056f50e2c19e3b0e87a8e2524489459b377a8dc3"; - }; - beamDeps = [ - xml_builder_0_0_8 poison_1_5_2 plug_1_1_5 cowboy_1_0_4 - ]; - - meta = { - longDescription = ''HTTP Router with various macros to assist in - developing your application and organizing your - code''; - license = stdenv.lib.licenses.mit; - homepage = - "https://github.com/sugar-framework/elixir-http-router"; - }; - } // packageOverrides) - ) {}; - - http_router = http_router_0_0_8; - - http_signature_1_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "http_signature"; - version = "1.1.0"; - src = fetchHex { - pkg = "http_signature"; - version = "1.1.0"; - sha256 = - "3e6036d9c29289ed0e35dd6f41821dec9061ce20aad3c4d35dcbae8c84eb3baa"; - }; - - meta = { - description = ''Erlang and Elixir implementations of Joyent`s - HTTP Signature Scheme.''; - license = stdenv.lib.licenses.mpl20; - homepage = - "https://github.com/potatosalad/erlang-http_signature"; - }; - } // packageOverrides) - ) {}; - - http_signature = http_signature_1_1_0; - - httparrot_0_3_4 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - exjsx_3_2_0, - cowboy_1_0_4 - }: - buildMix ({ - name = "httparrot"; - version = "0.3.4"; - src = fetchHex { - pkg = "httparrot"; - version = "0.3.4"; - sha256 = - "05dc3a30de92a5fc284c937339131c478d57b125cb3d65e97b99bc0fce3d3452"; - }; - beamDeps = [ exjsx_3_2_0 cowboy_1_0_4 ]; - - meta = { - description = '' HTTP Request & Response Server. An incomplete - clone of http://httpbin.org ''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/edgurgel/httparrot"; - }; - } // packageOverrides) - ) {}; - - httparrot = httparrot_0_3_4; - - httpehaviour_0_9_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, hackney_1_6_0 }: - buildMix ({ - name = "httpehaviour"; - version = "0.9.0"; - src = fetchHex { - pkg = "httpehaviour"; - version = "0.9.0"; - sha256 = - "54e93dcf0e62d392781078cf029478194797fe67c98dffe99a91b5d5ec33e4e5"; - }; - beamDeps = [ hackney_1_6_0 ]; - - meta = { - description = ''Yet Yet Another HTTP client for Elixir powered by - hackney''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/edgurgel/httpehaviour"; - }; - } // packageOverrides) - ) {}; - - httpehaviour = httpehaviour_0_9_0; - - httplacebo_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "httplacebo"; - version = "0.1.0"; - src = fetchHex { - pkg = "httplacebo"; - version = "0.1.0"; - sha256 = - "0f1873e65bb97227d43b5c6fc2138f33ef83f90cd068d9a9aee06ed8ef44a7ec"; - }; - - meta = { - description = ''The `do nothing` HTTP client for Elixir.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/guilleiguaran/httplacebo"; - }; - } // packageOverrides) - ) {}; - - httplacebo = httplacebo_0_1_0; - - httpoison_0_8_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, hackney_1_5_7 }: - buildMix ({ - name = "httpoison"; - version = "0.8.2"; - src = fetchHex { - pkg = "httpoison"; - version = "0.8.2"; - sha256 = - "00738e34fe2e254199c0324ef60b8150a7b2ced66c2296c4df8425c8e9b8d5c0"; - }; - beamDeps = [ hackney_1_5_7 ]; - - meta = { - description = ''Yet Another HTTP client for Elixir powered by - hackney''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/edgurgel/httpoison"; - }; - } // packageOverrides) - ) {}; - - httpoison_0_8_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, hackney_1_6_0 }: - buildMix ({ - name = "httpoison"; - version = "0.8.3"; - src = fetchHex { - pkg = "httpoison"; - version = "0.8.3"; - sha256 = - "74f2103e6eff47dcc2b288e37f42629874df3e4a4dce5fbc9dea508de4785e06"; - }; - beamDeps = [ hackney_1_6_0 ]; - - meta = { - description = ''Yet Another HTTP client for Elixir powered by - hackney''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/edgurgel/httpoison"; - }; - } // packageOverrides) - ) {}; - - httpoison = httpoison_0_8_3; - - httpotion_2_2_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, ibrowse_4_2_2 }: - buildMix ({ - name = "httpotion"; - version = "2.2.2"; - src = fetchHex { - pkg = "httpotion"; - version = "2.2.2"; - sha256 = - "47c6b6c535592547366fe16bfa175385e7de09eecbb2dc6b0f2cea526ef45fbd"; - }; - beamDeps = [ ibrowse_4_2_2 ]; - - meta = { - description = ''Fancy HTTP client for Elixir, based on - ibrowse.''; - license = stdenv.lib.licenses.unlicense; - homepage = "https://github.com/myfreeweb/httpotion"; - }; - } // packageOverrides) - ) {}; - - httpotion_3_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, ibrowse_4_2_2 }: - buildMix ({ - name = "httpotion"; - version = "3.0.0"; - src = fetchHex { - pkg = "httpotion"; - version = "3.0.0"; - sha256 = - "ca6364eaa9737ba305307e17d0277c80e57003fc0934b99f6a5048d7a4f932b8"; - }; - beamDeps = [ ibrowse_4_2_2 ]; - - meta = { - description = ''Fancy HTTP client for Elixir, based on - ibrowse.''; - license = stdenv.lib.licenses.unlicense; - homepage = "https://github.com/myfreeweb/httpotion"; - }; - } // packageOverrides) - ) {}; - - httpotion = httpotion_3_0_0; - - huami_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "huami"; - version = "0.0.1"; - src = fetchHex { - pkg = "huami"; - version = "0.0.1"; - sha256 = - "c12f38e24e7b085422e5f57c991792cd5045bd083574b1cca0458d8f2dfae40d"; - }; - - meta = { - description = ''A CLI version of flower password writing in - Elixir. ''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/yesmeck/huami.ex"; - }; - } // packageOverrides) - ) {}; - - huami = huami_0_0_1; - - huex_0_5_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - json_0_3_3, - httpoison_0_8_3 - }: - buildMix ({ - name = "huex"; - version = "0.5.0"; - src = fetchHex { - pkg = "huex"; - version = "0.5.0"; - sha256 = - "e5fe37fdc4299567922697516df8ade2f64d2c1573dc9a253e5037f66576858f"; - }; - beamDeps = [ json_0_3_3 httpoison_0_8_3 ]; - - meta = { - description = ''Elixir client for Philips Hue connected light - bulbs''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/xavier/huex"; - }; - } // packageOverrides) - ) {}; - - huex = huex_0_5_0; - - hufflehoff_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "hufflehoff"; - version = "0.0.1"; - src = fetchHex { - pkg = "hufflehoff"; - version = "0.0.1"; - sha256 = - "f10c6ffceb3b6d161ff5aa4dfeb8fe77affabf073f0bc7059d8296a4256093f2"; - }; - - meta = { - description = ''A Huffman encoder/decoder for HTTP/2 headers.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/sideshow/hufflehoff"; - }; - } // packageOverrides) - ) {}; - - hufflehoff = hufflehoff_0_0_1; - - huffman_1_1_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "huffman"; - version = "1.1.1"; - src = fetchHex { - pkg = "huffman"; - version = "1.1.1"; - sha256 = - "6983b0eebb29e6f7b4e971cf46e04ebcf52f073ca97f7ed29b5c0de68d58c496"; - }; - - meta = { - description = ''Huffman encoding and decoding.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/SenecaSystems/huffman"; - }; - } // packageOverrides) - ) {}; - - huffman = huffman_1_1_1; - - hulaaki_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "hulaaki"; - version = "0.0.2"; - src = fetchHex { - pkg = "hulaaki"; - version = "0.0.2"; - sha256 = - "d1bea8de565a4ca49f0e362c37597c3e8744b0323a7e9104cf09ac555e713ebe"; - }; - - meta = { - description = ''An MQTT 3.1.1 client library written in - Elixir.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/suvash/hulaaki"; - }; - } // packageOverrides) - ) {}; - - hulaaki = hulaaki_0_0_2; - - hyde_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, exredis_0_2_4 }: - buildMix ({ - name = "hyde"; - version = "0.0.1"; - src = fetchHex { - pkg = "hyde"; - version = "0.0.1"; - sha256 = - "d4424adbf13e2aecafa38f73318885f56bd70eb8e5fede22858af8cf76e2475e"; - }; - beamDeps = [ exredis_0_2_4 ]; - - meta = { - longDescription = ''Feature Toggles for Elixir - Basic Redis - backed feature toggles for individual users or - named groups''; - - homepage = "https://github.com/beautifulcode/hyde"; - }; - } // packageOverrides) - ) {}; - - hyde = hyde_0_0_1; - - hydra_0_0_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - porcelain_2_0_1, - poison_1_5_2, - plug_1_1_5, - httpoison_0_8_3, - cowboy_1_0_4 - }: - buildMix ({ - name = "hydra"; - version = "0.0.1"; - src = fetchHex { - pkg = "hydra"; - version = "0.0.1"; - sha256 = - "ea35ec756dfaa0390ba53a0313bb50b924517f746922a98e3489bddf8e066b7d"; - }; - beamDeps = [ - porcelain_2_0_1 - poison_1_5_2 - plug_1_1_5 - httpoison_0_8_3 - cowboy_1_0_4 - ]; - - meta = { - description = ''A multi-headed beast: API gateway, request cache, - and data transformations''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/doomspork/hydra"; - }; - } // packageOverrides) - ) {}; - - hydra = hydra_0_0_1; - - hypermedia_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "hypermedia"; - version = "0.0.1"; - src = fetchHex { - pkg = "hypermedia"; - version = "0.0.1"; - sha256 = - "595c174772c45206f293f61b338105e61d96dba1436b07ed5b3b12eb07842721"; - }; - - meta = { - description = ''A Elixir library for creating HAL/JSON Hypermedia - APIs''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/jurriaan/hypermedia"; - }; - } // packageOverrides) - ) {}; - - hypermedia = hypermedia_0_0_1; - - hypermock_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, meck_0_8_4 }: - buildMix ({ - name = "hypermock"; - version = "0.0.2"; - src = fetchHex { - pkg = "hypermock"; - version = "0.0.2"; - sha256 = - "dbb7ad24f651a3bb99475f39f9b0d6b7e9b3f959d8a80577ea6c803a5b548516"; - }; - beamDeps = [ meck_0_8_4 ]; - - meta = { }; - } // packageOverrides) - ) {}; - - hypermock = hypermock_0_0_2; - - hypex_1_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "hypex"; - version = "1.1.0"; - src = fetchHex { - pkg = "hypex"; - version = "1.1.0"; - sha256 = - "32e153bee0dabea8941940711c9ed9a7e15c50fc3d474c5b75b14359fb408363"; - }; - - meta = { - description = ''Fast HyperLogLog implementation for - Elixir/Erlang''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/zackehh/hypex"; - }; - } // packageOverrides) - ) {}; - - hypex = hypex_1_1_0; - - i18n_0_0_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - tipo_0_0_3, - exprintf_0_1_6 - }: - buildMix ({ - name = "i18n"; - version = "0.0.2"; - src = fetchHex { - pkg = "i18n"; - version = "0.0.2"; - sha256 = - "d3fbaccb502540565a9659fd21cff930b12ee698bfdac6d3df6487e2c101891f"; - }; - beamDeps = [ tipo_0_0_3 exprintf_0_1_6 ]; - - meta = { - description = ''i18n locale translations helpers''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/nathanfaucett/ex-i18n"; - }; - } // packageOverrides) - ) {}; - - i18n = i18n_0_0_2; - - iam_role_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, jsone_1_2_3 }: - buildMix ({ - name = "iam_role"; - version = "1.0.0"; - src = fetchHex { - pkg = "iam_role"; - version = "1.0.0"; - sha256 = - "acfc5d5c5130a36dfb2b460f790bd9e32bf39274f17333bd65c28d216983761d"; - }; - beamDeps = [ jsone_1_2_3 ]; - - meta = { - description = ''Application for automatically fetching AWS IAM - role security credentials.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/tsharju/iam_role"; - }; - } // packageOverrides) - ) {}; - - iam_role = iam_role_1_0_0; - - ibrowse_4_2_2 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "ibrowse"; - version = "4.2.2"; - src = fetchHex { - pkg = "ibrowse"; - version = "4.2.2"; - sha256 = - "b800cb7442bcc852c6832821e9d0a7098ff626e1415bddaeff4596640b31c0ae"; - }; - - meta = { - description = ''Erlang HTTP client application''; - license = with stdenv.lib.licenses; [ free bsd3 ]; - homepage = "https://github.com/cmullaparthi/ibrowse"; - }; - } // packageOverrides) - ) {}; - - ibrowse = ibrowse_4_2_2; - - identicon_0_2_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "identicon"; - version = "0.2.0"; - src = fetchHex { - pkg = "identicon"; - version = "0.2.0"; - sha256 = - "38b11bb3ed2c76956fcbf8673be8cbf6570ef8a85d92b51ce45304ed0368d88c"; - }; - - meta = { - description = ''Elixir library for generating 5x5 symmetrical - identicons''; - license = stdenv.lib.licenses.apsl20; - homepage = "https://github.com/rbishop/identicon"; - }; - } // packageOverrides) - ) {}; - - identicon = identicon_0_2_0; - - idfk_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, timex_2_1_6 }: - buildMix ({ - name = "idfk"; - version = "0.1.0"; - src = fetchHex { - pkg = "idfk"; - version = "0.1.0"; - sha256 = - "dab162904f49c852db763719364d5b3e6d75bfc319fe3d8f5179c6bb656acf6d"; - }; - beamDeps = [ timex_2_1_6 ]; - - meta = { - description = ''The library of Elixir chunks of code that didn`t - clearly belong anywhere else.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/amorphid/idfk"; - }; - } // packageOverrides) - ) {}; - - idfk = idfk_0_1_0; - - idna_1_0_2 = callPackage - ( - { buildErlangMk, packageOverrides ? {}, fetchHex }: - buildErlangMk ({ - name = "idna"; - version = "1.0.2"; - src = fetchHex { - pkg = "idna"; - version = "1.0.2"; - sha256 = - "a5d645e307aa4f67efe31682f720b7eaf431ab148b3d6fb66cbaf6314499610f"; - }; - - meta = { - description = ''A pure Erlang IDNA implementation''; - - homepage = "https://github.com/benoitc/erlang-idna"; - }; - } // packageOverrides) - ) {}; - - idna_1_0_3 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "idna"; - version = "1.0.3"; - src = fetchHex { - pkg = "idna"; - version = "1.0.3"; - sha256 = - "357d489a51112db4f216034406834f9172b3c0ff5a12f83fb28b25ca271541d1"; - }; - - meta = { - description = ''A pure Erlang IDNA implementation''; - - homepage = "https://github.com/benoitc/erlang-idna"; - }; - } // packageOverrides) - ) {}; - - idna_1_1_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "idna"; - version = "1.1.0"; - src = fetchHex { - pkg = "idna"; - version = "1.1.0"; - sha256 = - "d399393011cd2fa93761d70199b604b2f055bcf6cb45cac922870e122d2eb2fe"; - }; - - meta = { - description = ''A pure Erlang IDNA implementation''; - - homepage = "https://github.com/benoitc/erlang-idna"; - }; - } // packageOverrides) - ) {}; - - idna_1_2_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "idna"; - version = "1.2.0"; - src = fetchHex { - pkg = "idna"; - version = "1.2.0"; - sha256 = - "1d724cdafb66397e61774ead242c9b725de7033cde8ea98fa4a91e64ac5ef5b3"; - }; - - meta = { - description = ''A pure Erlang IDNA implementation''; - - homepage = "https://github.com/benoitc/erlang-idna"; - }; - } // packageOverrides) - ) {}; - - idna_2_0_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "idna"; - version = "2.0.0"; - src = fetchHex { - pkg = "idna"; - version = "2.0.0"; - sha256 = - "881226593c79eb4b2bf7106a3f2995c70ee6ffbb371c8d1bc71f2869686089f4"; - }; - - meta = { - description = ''A pure Erlang IDNA implementation''; - - homepage = "https://github.com/benoitc/erlang-idna"; - }; - } // packageOverrides) - ) {}; - - idna = idna_2_0_0; - - ieex_0_0_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "ieex"; - version = "0.0.3"; - src = fetchHex { - pkg = "ieex"; - version = "0.0.3"; - sha256 = - "c448a86c7979bc75f98e9eb32473041975fb633bc9715f1965958e4a9dbbd1ff"; - }; - - meta = { - description = ''Biblioteca para validacao de Inscricao - Estadual''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/edmaarcosta/IEEx"; - }; - } // packageOverrides) - ) {}; - - ieex = ieex_0_0_3; - - imagineer_0_2_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, apex_0_3_7 }: - buildMix ({ - name = "imagineer"; - version = "0.2.1"; - src = fetchHex { - pkg = "imagineer"; - version = "0.2.1"; - sha256 = - "31a8430b89770fdd6ec9d96a6e3d9ea92296dfc57e98bb812cd376e60f2e70f8"; - }; - beamDeps = [ apex_0_3_7 ]; - - meta = { - description = ''Image processing in Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/SenecaSystems/imagineer"; - }; - } // packageOverrides) - ) {}; - - imagineer = imagineer_0_2_1; - - imgex_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "imgex"; - version = "0.1.0"; - src = fetchHex { - pkg = "imgex"; - version = "0.1.0"; - sha256 = - "783e78b0624b87d1431d8acaa790998ac75d8654312e5799eff7b12956246c49"; - }; - - meta = { - description = ''Unofficial client library for generating imgix - URLs in Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/ianwalter/imgex"; - }; - } // packageOverrides) - ) {}; - - imgex = imgex_0_1_0; - - immortal_0_2_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "immortal"; - version = "0.2.0"; - src = fetchHex { - pkg = "immortal"; - version = "0.2.0"; - sha256 = - "4387bffa9e2c25b8bfed0bf9d80fd918861c6a4098b853138d2398d5b6f24be2"; - }; - - meta = { - description = ''Helpers for fault-tolerant OTP applications''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/danielberkompas/immortal"; - }; - } // packageOverrides) - ) {}; - - immortal = immortal_0_2_0; - - inaka_aleppo_1_0_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "inaka_aleppo"; - version = "1.0.0"; - src = fetchHex { - pkg = "inaka_aleppo"; - version = "1.0.0"; - sha256 = - "06754b98702607ec742d8315b2e79188b38fbb60e3f1a1582de5673e230f74d4"; - }; - - meta = { - description = ''Aleppo: ALternative Erlang Pre-ProcessOr''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/inaka/aleppo"; - }; - } // packageOverrides) - ) {}; - - inaka_aleppo = inaka_aleppo_1_0_0; - - inaka_mixer_0_1_5 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "inaka_mixer"; - version = "0.1.5"; - src = fetchHex { - pkg = "inaka_mixer"; - version = "0.1.5"; - sha256 = - "37af35b1c17a94a0cb643cba23cba2ca68d6fe51c3ad8337629d4c3c017cc912"; - }; - - meta = { - description = ''Mix in public functions from external modules''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/inaka/mixer"; - }; - } // packageOverrides) - ) {}; - - inaka_mixer = inaka_mixer_0_1_5; - - indefinite_article_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "indefinite_article"; - version = "0.0.1"; - src = fetchHex { - pkg = "indefinite_article"; - version = "0.0.1"; - sha256 = - "cb59d3373c5ff05693f74f445e7807d1fe5c38b9cfa6bcedfd9efedb4a0861ae"; - }; - - meta = { - description = ''Returns you the indefinite article of a string - (*a* banana, *an* apple, etc)''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/Buyapowa/indefinite_article"; - }; - } // packageOverrides) - ) {}; - - indefinite_article = indefinite_article_0_0_1; - - inet_cidr_1_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "inet_cidr"; - version = "1.0.1"; - src = fetchHex { - pkg = "inet_cidr"; - version = "1.0.1"; - sha256 = - "4809be88cf1a436b819acec2b07a33e7ad24beb0cf9b6c8a94217aea7d298d8a"; - }; - - meta = { - longDescription = ''Classless Inter-Domain Routing (CIDR) library - for Elixir Compatible with Erlang`s :inet module - and support for IPv4 and IPv6''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/cobenian/inet_cidr"; - }; - } // packageOverrides) - ) {}; - - inet_cidr = inet_cidr_1_0_1; - - inflect_0_0_11 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "inflect"; - version = "0.0.11"; - src = fetchHex { - pkg = "inflect"; - version = "0.0.11"; - sha256 = - "36636ccb31b1ca9f34d95af8fff97aa68d34d925c5128dc8f04fc77764fa208a"; - }; - - meta = { - description = ''case sensitive regular expression for splitting - strings''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/nathanfaucett/ex-inflect"; - }; - } // packageOverrides) - ) {}; - - inflect = inflect_0_0_11; - - inflections_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, inflector_0_0_11 }: - buildMix ({ - name = "inflections"; - version = "0.0.1"; - src = fetchHex { - pkg = "inflections"; - version = "0.0.1"; - sha256 = - "f1fe5f35313eb1bd6bfc3a0d5e3bd169a31bfbf09021b9928ecfff3052731efc"; - }; - beamDeps = [ inflector_0_0_11 ]; - - meta = { - description = ''inflector helpers for managing different - locales''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/nathanfaucett/ex-inflections"; - }; - } // packageOverrides) - ) {}; - - inflections = inflections_0_0_1; - - inflections_en_0_0_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - inflector_0_0_11, - inflections_0_0_1 - }: - buildMix ({ - name = "inflections_en"; - version = "0.0.1"; - src = fetchHex { - pkg = "inflections_en"; - version = "0.0.1"; - sha256 = - "28c8e2f52974879499ea039bc8bf369b75e978f4ee60de8641e7efdef575bd77"; - }; - beamDeps = [ inflector_0_0_11 inflections_0_0_1 ]; - - meta = { - description = ''inflector english rules''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/nathanfaucett/ex-inflections_en"; - }; - } // packageOverrides) - ) {}; - - inflections_en = inflections_en_0_0_1; - - inflections_es_0_0_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - inflector_0_0_11, - inflections_0_0_1 - }: - buildMix ({ - name = "inflections_es"; - version = "0.0.1"; - src = fetchHex { - pkg = "inflections_es"; - version = "0.0.1"; - sha256 = - "28c6323f851d2287f77d7dd0b888e9888f5f785ff105a356078aff4a46544495"; - }; - beamDeps = [ inflector_0_0_11 inflections_0_0_1 ]; - - meta = { - description = ''inflector spanish rules''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/nathanfaucett/ex-inflections_es"; - }; - } // packageOverrides) - ) {}; - - inflections_es = inflections_es_0_0_1; - - inflector_0_0_11 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "inflector"; - version = "0.0.11"; - src = fetchHex { - pkg = "inflector"; - version = "0.0.11"; - sha256 = - "4abd1e267d0df9536d3f54c579d74a0951fbbc6100e4b034a0905d99296a9e08"; - }; - - meta = { - description = ''simple rule based inflector''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/nathanfaucett/ex-inflector"; - }; - } // packageOverrides) - ) {}; - - inflector = inflector_0_0_11; - - inflex_0_3_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "inflex"; - version = "0.3.0"; - src = fetchHex { - pkg = "inflex"; - version = "0.3.0"; - sha256 = - "2cb9896a2572eb0989d92d7d98653829e079ccb804aa1b98beafff7678275852"; - }; - - meta = { - description = ''An Elixir library for handling word - inflections.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/nurugger07/inflex"; - }; - } // packageOverrides) - ) {}; - - inflex_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "inflex"; - version = "1.0.0"; - src = fetchHex { - pkg = "inflex"; - version = "1.0.0"; - sha256 = - "549ebe94420051cdf845028372d1f89c8fbdd7b5f5ddd51e0619b827b7be6793"; - }; - - meta = { - description = ''An Elixir library for handling word - inflections.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/nurugger07/inflex"; - }; - } // packageOverrides) - ) {}; - - inflex_1_4_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "inflex"; - version = "1.4.1"; - src = fetchHex { - pkg = "inflex"; - version = "1.4.1"; - sha256 = - "d316fecd9db83db97828bbcbdb689f5c412e3aaf658329cf479cad5baa856c92"; - }; - - meta = { - description = ''An Elixir library for handling word - inflections.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/nurugger07/inflex"; - }; - } // packageOverrides) - ) {}; - - inflex_1_5_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "inflex"; - version = "1.5.0"; - src = fetchHex { - pkg = "inflex"; - version = "1.5.0"; - sha256 = - "d48609edc5bb7901b95dcc00c1e38f259e8006904865a028954ccfe9336a3384"; - }; - - meta = { - description = ''An Elixir library for handling word - inflections.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/nurugger07/inflex"; - }; - } // packageOverrides) - ) {}; - - inflex = inflex_1_5_0; - - ini_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "ini"; - version = "0.0.1"; - src = fetchHex { - pkg = "ini"; - version = "0.0.1"; - sha256 = - "96b86cf664ca8247cdad166c29251ef4ddc156f16f906bdf2ea1c37831fbf804"; - }; - - meta = { - description = ''Module to parse ini files.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/nathanjohnson320/ini"; - }; - } // packageOverrides) - ) {}; - - ini = ini_0_0_1; - - insert_ordered_set_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "insert_ordered_set"; - version = "0.0.1"; - src = fetchHex { - pkg = "insert_ordered_set"; - version = "0.0.1"; - sha256 = - "78ebc47d780aa1e8fabce7d4f4d5f3b9c90e1443514ad830b32f7c5184f87634"; - }; - - meta = { - longDescription = ''Provides a data structure with the following - properties: 1. Contains unique values. 2. O(1) - manipulation operations (e.g. insert, delete) by - using an underlying Map. 3. Preserves insertion - order when converting to a list. Allows reverse - insertion ordering.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/localshred/insert_ordered_set"; - }; - } // packageOverrides) - ) {}; - - insert_ordered_set = insert_ordered_set_0_0_1; - - insight_0_1_4 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - httpoison_0_8_3 - }: - buildMix ({ - name = "insight"; - version = "0.1.4"; - src = fetchHex { - pkg = "insight"; - version = "0.1.4"; - sha256 = - "97b4bfd6f0b595b3febca7ea2f0bdf5cb429c18309f7acc8a2a308847aaded07"; - }; - beamDeps = [ poison_1_5_2 httpoison_0_8_3 ]; - - meta = { - description = ''Elixir package for consuming any Insight-powered - Bitcoin explorer.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/stampery/elixir-insight"; - }; - } // packageOverrides) - ) {}; - - insight = insight_0_1_4; - - insights_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "insights"; - version = "0.0.2"; - src = fetchHex { - pkg = "insights"; - version = "0.0.2"; - sha256 = - "92794ab7ba760a7b17ffac1f98ecff1a848148d15a1d9fabe58b0150767cddbd"; - }; - - meta = { - longDescription = ''Insights is a wrapper for sending and data - capture for keen.io or others adapters''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/gullitmiranda/insights"; - }; - } // packageOverrides) - ) {}; - - insights = insights_0_0_2; - - instrumental_0_1_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "instrumental"; - version = "0.1.3"; - src = fetchHex { - pkg = "instrumental"; - version = "0.1.3"; - sha256 = - "26d3c6dcd2b04d716266afa9d12ba193fc1f038d21c67178e50f77ef1671acec"; - }; - - meta = { - description = ''An Elixir client for Instrumental - (http://instrumentalapp.com).''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/undeadlabs/instrumental-ex"; - }; - } // packageOverrides) - ) {}; - - instrumental = instrumental_0_1_3; - - ip2location_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, poolboy_1_5_1 }: - buildMix ({ - name = "ip2location"; - version = "0.1.0"; - src = fetchHex { - pkg = "ip2location"; - version = "0.1.0"; - sha256 = - "77e059326d6c3f1348c53b3486dfa59d2b0ad90c999f51da86cabbb2d0099685"; - }; - beamDeps = [ poolboy_1_5_1 ]; - - meta = { - description = ''An Elixir library for the IP2Location - database.''; - license = stdenv.lib.licenses.free; - homepage = "https://github.com/nazipov/ip2location-elixir"; - }; - } // packageOverrides) - ) {}; - - ip2location = ip2location_0_1_0; - - ipa_0_0_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "ipa"; - version = "0.0.3"; - src = fetchHex { - pkg = "ipa"; - version = "0.0.3"; - sha256 = - "ff365e6ec32ae9159877fb464c6754387fe97168e15a0ce7de346106ec6d75a6"; - }; - - meta = { - longDescription = ''A pale, hoppy library for working with IP - Addresses. Validate and transform IPv4 addresses - and subnet masks.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/bordeltabernacle/IPA"; - }; - } // packageOverrides) - ) {}; - - ipa = ipa_0_0_3; - - iplist_1_0_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - earmark_0_2_1, - cidr_1_0_0 - }: - buildMix ({ - name = "iplist"; - version = "1.0.2"; - src = fetchHex { - pkg = "iplist"; - version = "1.0.2"; - sha256 = - "fae5b5accc8b7a7618c2d1fbf94607ce6e79ca3b493da6643dbb1bd92be30bd4"; - }; - beamDeps = [ earmark_0_2_1 cidr_1_0_0 ]; - - meta = { - description = ''Library and CLI tool to expand IPv4 ranges to - lists of IP numbers''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/digitalronin/iplist"; - }; - } // packageOverrides) - ) {}; - - iplist = iplist_1_0_2; - - iptools_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "iptools"; - version = "0.0.2"; - src = fetchHex { - pkg = "iptools"; - version = "0.0.2"; - sha256 = - "33bf27bc72094bbc4e67c664c979e5cebfe17c5369c91fc2e2610cc726b252db"; - }; - - meta = { - description = ''A set of functions for validating and - transforming IPv4 addresses''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/blackfist/iptools"; - }; - } // packageOverrides) - ) {}; - - iptools = iptools_0_0_2; - - is_chinese_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "is_chinese"; - version = "1.0.0"; - src = fetchHex { - pkg = "is_chinese"; - version = "1.0.0"; - sha256 = - "907da2e2995c104bb89152d276c41337b6c4075aa866663e3fb7ebe48da8ff62"; - }; - - meta = { - description = ''Check whether string is Chinese''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/lidashuang/is_chinese"; - }; - } // packageOverrides) - ) {}; - - is_chinese = is_chinese_1_0_0; - - is_email_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "is_email"; - version = "0.0.2"; - src = fetchHex { - pkg = "is_email"; - version = "0.0.2"; - sha256 = - "fefcf35b6ca506cd7d2e3d1d850b49e9a2545180db46e291845aa9fd54812d82"; - }; - - meta = { - description = ''Loosely check whether a given string is an - email''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/johnotander/is_email"; - }; - } // packageOverrides) - ) {}; - - is_email = is_email_0_0_2; - - is_up_1_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, httpotion_2_2_2 }: - buildMix ({ - name = "is_up"; - version = "1.0.2"; - src = fetchHex { - pkg = "is_up"; - version = "1.0.2"; - sha256 = - "e73713422ef99f9788d130eec1fd880ea15cc5e023137658263fe94bd12a56e1"; - }; - beamDeps = [ httpotion_2_2_2 ]; - - meta = { - description = ''Check whether a given url is up.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/johnotander/is_up"; - }; - } // packageOverrides) - ) {}; - - is_up = is_up_1_0_2; - - is_url_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "is_url"; - version = "0.0.1"; - src = fetchHex { - pkg = "is_url"; - version = "0.0.1"; - sha256 = - "4c3f86302e0c675ece51a247838f64ce88335008035463c8c20b21667399d413"; - }; - - meta = { - description = ''Validate a url''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/johnotander/is_url"; - }; - } // packageOverrides) - ) {}; - - is_url = is_url_0_0_1; - - isaac_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "isaac"; - version = "0.0.1"; - src = fetchHex { - pkg = "isaac"; - version = "0.0.1"; - sha256 = - "e43c136931b8003def7cf8a9eaa49e9713ab91a76729c667591e0a4c03511fa1"; - }; - - meta = { - longDescription = ''Isaac is an elixir module for the [ISAAC - Stream - Cipher](http://burtleburtle.net/bob/rand/isaacafa.html) - It wraps around https://github.com/arianvp/ISAAC - which is a port of the ISAAC stream cipher to - platforms which have words bigger than 32 bits. - ''; - license = stdenv.lib.licenses.free; - homepage = "https://github.com/arianvp/elixir-isaac"; - }; - } // packageOverrides) - ) {}; - - isaac = isaac_0_0_1; - - isbndbex_0_1_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "isbndbex"; - version = "0.1.0"; - src = fetchHex { - pkg = "isbndbex"; - version = "0.1.0"; - sha256 = - "5c9fe6840a3beadb78a3b5f8d243475258d9d117ef0976cceb0d4c464a4cf4f4"; - }; - beamDeps = [ poison_2_1_0 httpoison_0_8_3 ]; - - meta = { - description = ''Elixir wrapper for isbndb rest api.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/rcoedo/isbndbex"; - }; - } // packageOverrides) - ) {}; - - isbndbex = isbndbex_0_1_0; - - iso3166_0_0_4 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - floki_0_8_1 - }: - buildMix ({ - name = "iso3166"; - version = "0.0.4"; - src = fetchHex { - pkg = "iso3166"; - version = "0.0.4"; - sha256 = - "fde520eac52e491e0492a42a8f5f00b03435733e81f35e58685998e9142c4215"; - }; - beamDeps = [ poison_2_1_0 floki_0_8_1 ]; - - meta = { - longDescription = ''A library that provides a list of ISO3166 - country names, two letter abbreviations, three - letter abbreviations, and functions for - converting between them.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/joelpm/iso3166ex"; - }; - } // packageOverrides) - ) {}; - - iso3166 = iso3166_0_0_4; - - janrain_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, httpoison_0_8_3 }: - buildMix ({ - name = "janrain"; - version = "0.0.1"; - src = fetchHex { - pkg = "janrain"; - version = "0.0.1"; - sha256 = - "35299ee088dfd5647e7a5cd129d5011f2d6319fe53045b2a8ce3ddf70792cc78"; - }; - beamDeps = [ httpoison_0_8_3 ]; - - meta = { - longDescription = ''A small library to help with Janrain logins. - Probably most useful when used in conjuction - with Phoenix and Guardian.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/rickr/janrain"; - }; - } // packageOverrides) - ) {}; - - janrain = janrain_0_0_1; - - japan_municipality_code_1_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "japan_municipality_code"; - version = "1.0.1"; - src = fetchHex { - pkg = "japan_municipality_code"; - version = "1.0.1"; - sha256 = - "b03879f6a716f04579d19c9be818b0e3780b61ab2e79057ed3a7f64e576b5378"; - }; - - meta = { - description = ''Elixir Library for Japan municipality key - converting''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/hykw/japan_municipality_key"; - }; - } // packageOverrides) - ) {}; - - japan_municipality_code = japan_municipality_code_1_0_1; - - jc_1_2_0 = callPackage - ( - { - buildRebar3, - packageOverrides ? {}, - fetchHex, - ranch_1_1_0, - lager_3_0_1, - jwalk_1_1_0, - jsone_1_2_0 - }: - buildRebar3 ({ - name = "jc"; - version = "1.2.0"; - src = fetchHex { - pkg = "jc"; - version = "1.2.0"; - sha256 = - "cbc043e4d0e6b1ccd6279426babcfd73ac186f9ddf780c0bff24f7e586aa3a6c"; - }; - - beamDeps = [ ranch_1_1_0 lager_3_0_1 jwalk_1_1_0 jsone_1_2_0 ]; - - meta = { - description = ''A simple, distributed, in-memory caching - system''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/jr0senblum/jc"; - }; - } // packageOverrides) - ) {}; - - jc = jc_1_2_0; - - jequalson_0_1_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "jequalson"; - version = "0.1.1"; - src = fetchHex { - pkg = "jequalson"; - version = "0.1.1"; - sha256 = - "5ed0a54b8aaa457cb441b3baafc508d8be4fc90db29a0cc27980eeeb65db18ac"; - }; - - meta = { - description = ''Helpers for testing JSON responses.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/dm1try/jequalson"; - }; - } // packageOverrides) - ) {}; - - jequalson = jequalson_0_1_1; - - jesse_0_1_3 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex, jsx_2_8_0 }: - buildRebar3 ({ - name = "jesse"; - version = "0.1.3"; - src = fetchHex { - pkg = "jesse"; - version = "0.1.3"; - sha256 = - "679702baf154d8e078c60b8eb4f2b7f53304e24deea03b32cbff350772afba4d"; - }; - - beamDeps = [ jsx_2_8_0 ]; - - meta = { - description = ''jesse''; - license = stdenv.lib.licenses.apsl20; - homepage = "https://github.com/for-GET/jesse"; - }; - } // packageOverrides) - ) {}; - - jesse = jesse_0_1_3; - - jira_0_0_8 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "jira"; - version = "0.0.8"; - src = fetchHex { - pkg = "jira"; - version = "0.0.8"; - sha256 = - "71c19ef23ea7351a2dc7b8f14d0c5794ff00382fa43a88a2235ec9c1741a73cb"; - }; - beamDeps = [ poison_2_1_0 httpoison_0_8_3 ]; - - meta = { - description = ''An Elixir client library for JIRA + JIRA Agile / - Greenhopper''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/jeffweiss/jira"; - }; - } // packageOverrides) - ) {}; - - jira = jira_0_0_8; - - jobspool_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, uuid_1_1_4 }: - buildMix ({ - name = "jobspool"; - version = "0.1.0"; - src = fetchHex { - pkg = "jobspool"; - version = "0.1.0"; - sha256 = - "f4ba59374f844fe8ac018606748b120b7860c0f568364514d1dc87eb42829aad"; - }; - beamDeps = [ uuid_1_1_4 ]; - - meta = { - description = ''Simple Elixir jobs pool''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/flupke/exjobspool"; - }; - } // packageOverrides) - ) {}; - - jobspool = jobspool_0_1_0; - - joken_0_16_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - plug_1_1_5, - jose_1_7_5 - }: - buildMix ({ - name = "joken"; - version = "0.16.1"; - src = fetchHex { - pkg = "joken"; - version = "0.16.1"; - sha256 = - "a804bfd350f61688f6ce8d9898bc17fd4b59990c054debeea44234d53048d93d"; - }; - beamDeps = [ poison_1_5_2 plug_1_1_5 jose_1_7_5 ]; - - meta = { - description = ''JWT Library for Elixir''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/bryanjos/joken"; - }; - } // packageOverrides) - ) {}; - - jolt_0_1_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - plug_1_1_5, - cowboy_1_0_4 - }: - buildMix ({ - name = "jolt"; - version = "0.1.0"; - src = fetchHex { - pkg = "jolt"; - version = "0.1.0"; - sha256 = - "922498b234a1b0a813255d3abf5caa64a9afdc41eb4d8d71f87d71c41fe792e8"; - }; - beamDeps = [ poison_1_5_2 plug_1_1_5 cowboy_1_0_4 ]; - - meta = { - longDescription = ''A full REST JSON API with zero coding, - powered by Elixir. It is intended to be used as - a command-line tool (just run mix escript.build - first).''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/clarkware/jolt"; - }; - } // packageOverrides) - ) {}; - - jolt = jolt_0_1_0; - - jorel_mix_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "jorel_mix"; - version = "0.0.1"; - src = fetchHex { - pkg = "jorel_mix"; - version = "0.0.1"; - sha256 = - "be990099dc7d13dd22e741d96dd3282ba9096f9e132c047ebc0f134b3d470461"; - }; - - meta = { - description = ''Just anOther RELease assembler''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/emedia-project/jorel_mix"; - }; - } // packageOverrides) - ) {}; - - jorel_mix = jorel_mix_0_0_1; - - jose_1_4_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, base64url_0_0_1 }: - buildMix ({ - name = "jose"; - version = "1.4.2"; - src = fetchHex { - pkg = "jose"; - version = "1.4.2"; - sha256 = - "7bc79dfa28b0194c9334eddeaf33d02b51d4101d5b18f08086503a7b82be7cb0"; - }; - beamDeps = [ base64url_0_0_1 ]; - - meta = { - description = ''JSON Object Signing and Encryption (JOSE) for - Erlang and Elixir.''; - license = stdenv.lib.licenses.mpl20; - homepage = "https://github.com/potatosalad/erlang-jose"; - }; - } // packageOverrides) - ) {}; - - jose_1_7_5 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, base64url_0_0_1 }: - buildMix ({ - name = "jose"; - version = "1.7.5"; - src = fetchHex { - pkg = "jose"; - version = "1.7.5"; - sha256 = - "c473f64b03fb4541b8b3f56982e563d1090a1168d0dc154e6275135515c4b65d"; - }; - beamDeps = [ base64url_0_0_1 ]; - - meta = { - description = ''JSON Object Signing and Encryption (JOSE) for - Erlang and Elixir.''; - license = stdenv.lib.licenses.mpl20; - homepage = "https://github.com/potatosalad/erlang-jose"; - }; - } // packageOverrides) - ) {}; - - jose = jose_1_7_5; - - jsex_2_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, jsx_2_8_0 }: - buildMix ({ - name = "jsex"; - version = "2.0.0"; - src = fetchHex { - pkg = "jsex"; - version = "2.0.0"; - sha256 = - "98c1501645e31efdbcbb6172983d4deb1335de993966197e6a4343492fa7d872"; - }; - beamDeps = [ jsx_2_8_0 ]; - - meta = { - description = ''json for elixir ''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/talentdeficit/jsex"; - }; - } // packageOverrides) - ) {}; - - jsex = jsex_2_0_0; - - json_0_3_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "json"; - version = "0.3.3"; - src = fetchHex { - pkg = "json"; - version = "0.3.3"; - sha256 = - "d1986548847189b51f1efb65d196e6ab9f2e88a6878a363aec0e3c77e2550616"; - }; - - meta = { - description = ''Native Elixir library for JSON encoding and - decoding''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/cblage/elixir-json"; - }; - } // packageOverrides) - ) {}; - - json = json_0_3_3; - - json_api_assert_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "json_api_assert"; - version = "0.0.1"; - src = fetchHex { - pkg = "json_api_assert"; - version = "0.0.1"; - sha256 = - "b85f48d26e62977b77ed0a8a62b2079ae9e1ddd6dfba988a13b3366cb6dfd51e"; - }; - - meta = { - description = ''assertions for JSON API payload''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/DockYard/json_api_assert"; - }; - } // packageOverrides) - ) {}; - - json_api_assert = json_api_assert_0_0_1; - - json_diff_ex_0_5_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "json_diff_ex"; - version = "0.5.0"; - src = fetchHex { - pkg = "json_diff_ex"; - version = "0.5.0"; - sha256 = - "314fe606c76dea0c5b70ca918f5dd75a89456c6330596d707bbbf70c800352c9"; - }; - - meta = { - description = ''Diff and patch for JSON in Elixir''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/olafura/json_diff_ex"; - }; - } // packageOverrides) - ) {}; - - json_diff_ex = json_diff_ex_0_5_0; - - json_logger_0_6_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, json_0_3_3 }: - buildMix ({ - name = "json_logger"; - version = "0.6.0"; - src = fetchHex { - pkg = "json_logger"; - version = "0.6.0"; - sha256 = - "4b3aaa23c2d0fec4fe4ba7c001ec6a72b1ae36f0268ede87557c59663843a0c3"; - }; - beamDeps = [ json_0_3_3 ]; - - meta = { - description = ''A simple library for logging with JSON, best - suited with Logstash.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/LeeroyDing/json_logger"; - }; - } // packageOverrides) - ) {}; - - json_logger = json_logger_0_6_0; - - json_pointer_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "json_pointer"; - version = "0.0.2"; - src = fetchHex { - pkg = "json_pointer"; - version = "0.0.2"; - sha256 = - "150b37bc4ff689758f17aee180fbf8f7226c3eeff7d28a782e6f0a74f859417e"; - }; - - meta = { - longDescription = ''Implementation of RFC 6901 which defines a - string syntax for identifying a specific value - within a JSON document''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/xavier/json_pointer"; - }; - } // packageOverrides) - ) {}; - - json_pointer = json_pointer_0_0_2; - - json_stream_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, jsx_2_8_0 }: - buildMix ({ - name = "json_stream"; - version = "0.0.1"; - src = fetchHex { - pkg = "json_stream"; - version = "0.0.1"; - sha256 = - "07e2283f7f211f50d4fa686f1814f7a8b9637cfe3f358f6f15332489b2b7f2ab"; - }; - beamDeps = [ jsx_2_8_0 ]; - - meta = { - longDescription = ''Small but useful wrapper above erlang `jsx` - to stream json elements from an Elixir binary - stream.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/awetzel/json_stream"; - }; - } // packageOverrides) - ) {}; - - json_stream = json_stream_0_0_1; - - json_web_token_0_2_5 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, poison_2_1_0 }: - buildMix ({ - name = "json_web_token"; - version = "0.2.5"; - src = fetchHex { - pkg = "json_web_token"; - version = "0.2.5"; - sha256 = - "2e90fca59a7f9a4862ff8688622da5f12e880134b11ac1eb0eb0b19143d7a309"; - }; - beamDeps = [ poison_2_1_0 ]; - - meta = { - description = ''Elixir implementation of the JSON Web Token - (JWT), RFC 7519''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/garyf/json_web_token_ex"; - }; - } // packageOverrides) - ) {}; - - json_web_token = json_web_token_0_2_5; - - jsonapi_0_3_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, plug_1_1_5 }: - buildMix ({ - name = "jsonapi"; - version = "0.3.0"; - src = fetchHex { - pkg = "jsonapi"; - version = "0.3.0"; - sha256 = - "f0e3c00a2af7394621695ded4e31cdf369436916ffc47347835f06616d594b33"; - }; - beamDeps = [ plug_1_1_5 ]; - - meta = { - longDescription = ''Fully functional JSONAPI V1 Serializer as - well as a QueryParser for Plug based projects - and applications.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/jeregrine/jsonapi"; - }; - } // packageOverrides) - ) {}; - - jsonapi = jsonapi_0_3_0; - - jsone_1_2_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "jsone"; - version = "1.2.0"; - src = fetchHex { - pkg = "jsone"; - version = "1.2.0"; - sha256 = - "a60e74284d3a923cde65c00a39dd4542fd7da7c22e8385c0378ad419c54b2e08"; - }; - - meta = { - description = ''Erlang JSON Library''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/sile/jsone"; - }; - } // packageOverrides) - ) {}; - - jsone_1_2_2 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "jsone"; - version = "1.2.2"; - src = fetchHex { - pkg = "jsone"; - version = "1.2.2"; - sha256 = - "253c18c7dc6fc27290b1f507f3adc6863f4396b099d0eb396e3c0e58dcfe0ee4"; - }; - - meta = { - description = ''Erlang JSON Library''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/sile/jsone"; - }; - } // packageOverrides) - ) {}; - - jsone_1_2_3 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "jsone"; - version = "1.2.3"; - src = fetchHex { - pkg = "jsone"; - version = "1.2.3"; - sha256 = - "629369e718a50a2fcb23c210b6f2eb2fd08b0a6a2c5edade4fca24cda368ac13"; - }; - - meta = { - description = ''Erlang JSON Library''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/sile/jsone"; - }; - } // packageOverrides) - ) {}; - - jsone = jsone_1_2_3; - - jsx_1_4_5 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "jsx"; - version = "1.4.5"; - src = fetchHex { - pkg = "jsx"; - version = "1.4.5"; - sha256 = - "ff5115611c5dd789cebe3addc07d18b86340f701c52ad063caba6fe8da3a489b"; - }; - - meta = { - longDescription = ''an erlang application for consuming, - producing and manipulating json. inspired by - yajl''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/talentdeficit/jsx"; - }; - } // packageOverrides) - ) {}; - - jsx_2_5_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, mixunit_0_9_2 }: - buildMix ({ - name = "jsx"; - version = "2.5.3"; - src = fetchHex { - pkg = "jsx"; - version = "2.5.3"; - sha256 = - "528ab2fdadbcfe95a44ddb831724ee28d48bd3dbd11f2e8109874c855c43dd12"; - }; - beamDeps = [ mixunit_0_9_2 ]; - - meta = { - longDescription = ''an erlang application for consuming, - producing and manipulating json. inspired by - yajl''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/talentdeficit/jsx"; - }; - } // packageOverrides) - ) {}; - - jsx_2_6_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "jsx"; - version = "2.6.2"; - src = fetchHex { - pkg = "jsx"; - version = "2.6.2"; - sha256 = - "6bfccb6461cc3c7d5cc63f3e69ffeb2f1f8de50eca5980065311c056a69a907f"; - }; - - meta = { - longDescription = ''an erlang application for consuming, - producing and manipulating json. inspired by - yajl''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/talentdeficit/jsx"; - }; - } // packageOverrides) - ) {}; - - jsx_2_7_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "jsx"; - version = "2.7.1"; - src = fetchHex { - pkg = "jsx"; - version = "2.7.1"; - sha256 = - "52d0e8bda0c8624bc59c3119236eb49bb66289702ea3d59ad76fd2a56cdf9089"; - }; - - meta = { - longDescription = ''an erlang application for consuming, - producing and manipulating json. inspired by - yajl''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/talentdeficit/jsx"; - }; - } // packageOverrides) - ) {}; - - jsx_2_8_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "jsx"; - version = "2.8.0"; - src = fetchHex { - pkg = "jsx"; - version = "2.8.0"; - sha256 = - "a8ba15d5bac2c48b2be1224a0542ad794538d79e2cc16841a4e24ca75f0f8378"; - }; - - meta = { - longDescription = ''an erlang application for consuming, - producing and manipulating json. inspired by - yajl''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/talentdeficit/jsx"; - }; - } // packageOverrides) - ) {}; - - jsx = jsx_2_8_0; - - jsxd_0_1_10 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "jsxd"; - version = "0.1.10"; - src = fetchHex { - pkg = "jsxd"; - version = "0.1.10"; - sha256 = - "f71a8238f08a1dee130e8959ff5343524891fa6531392667a5b911cead5f5082"; - }; - - meta = { - description = ''jsx data structire traversing and modification - library.''; - license = stdenv.lib.licenses.cddl; - homepage = "https://github.com/Licenser/jsxd"; - }; - } // packageOverrides) - ) {}; - - jsxd = jsxd_0_1_10; - - junit_formatter_1_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "junit_formatter"; - version = "1.1.0"; - src = fetchHex { - pkg = "junit_formatter"; - version = "1.1.0"; - sha256 = - "d173ee429c98c9829eb9b24a8615ac584b49c58c29cefc9532eff5e19404ea8b"; - }; - - meta = { - longDescription = ''An ExUnit.Formatter that produces an XML - report of the tests run in the project _build - dir. It is a good fit with Jenkins test - reporting plugin, for example.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/victorolinasc/junit-formatter"; - }; - } // packageOverrides) - ) {}; - - junit_formatter = junit_formatter_1_1_0; - - jwalk_1_1_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "jwalk"; - version = "1.1.0"; - src = fetchHex { - pkg = "jwalk"; - version = "1.1.0"; - sha256 = - "10c150910ba3539583887cb2b5c3f70d602138471e6f6b5c22498aa18ed654e1"; - }; - - meta = { - longDescription = ''Helper module for working with Erlang - representations of JSON, handling eep-18, map, - mochijson-style and proplists representations''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/jr0senblum/jwalk"; - }; - } // packageOverrides) - ) {}; - - jwalk_1_1_2 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "jwalk"; - version = "1.1.2"; - src = fetchHex { - pkg = "jwalk"; - version = "1.1.2"; - sha256 = - "322d6bc04c1b16efdd711711c101415f9df18a87af31315e6d04e48e678d1bf0"; - }; - - meta = { - longDescription = ''Helper module for working with Erlang - representations of JSON, handling eep-18, map, - mochijson-style and proplists representations''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/jr0senblum/jwalk"; - }; - } // packageOverrides) - ) {}; - - jwalk = jwalk_1_1_2; - - jwt_0_1_2 = callPackage - ( - { - buildRebar3, - packageOverrides ? {}, - fetchHex, - jsx_2_8_0, - base64url_0_0_1 - }: - buildRebar3 ({ - name = "jwt"; - version = "0.1.2"; - src = fetchHex { - pkg = "jwt"; - version = "0.1.2"; - sha256 = - "be9a6502857f40e3c285909a80a21d00dffcb9330951abe86e6c9cffb17770f1"; - }; - - beamDeps = [ jsx_2_8_0 base64url_0_0_1 ]; - - meta = { - description = ''Erlang JWT library''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/artemeff/jwt"; - }; - } // packageOverrides) - ) {}; - - jwt = jwt_0_1_2; - - jwt_claims_0_0_3 = callPackage - ( - { - buildMix, packageOverrides ? {}, fetchHex, json_web_token_0_2_5 - }: - buildMix ({ - name = "jwt_claims"; - version = "0.0.3"; - src = fetchHex { - pkg = "jwt_claims"; - version = "0.0.3"; - sha256 = - "baf94583907a4d774079a8a98c13c0cf5d306ee6211e805f156523a20658e230"; - }; - beamDeps = [ json_web_token_0_2_5 ]; - - meta = { - description = ''Elixir implementation of JWT registered claims, - RFC 7519''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/garyf/jwt_claims_ex"; - }; - } // packageOverrides) - ) {}; - - jwt_claims = jwt_claims_0_0_3; - - jwtex_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, poison_1_3_1 }: - buildMix ({ - name = "jwtex"; - version = "0.0.1"; - src = fetchHex { - pkg = "jwtex"; - version = "0.0.1"; - sha256 = - "5b8b826e8543e323f62a0e8cb2fb5714d8e7110ecce97419cd0a4a656fa411cf"; - }; - beamDeps = [ poison_1_3_1 ]; - - meta = { - description = ''JWT decoding library for Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/mschae/jwtex"; - }; - } // packageOverrides) - ) {}; - - jwtex = jwtex_0_0_1; - - k6_bytea_1_1_5 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "k6_bytea"; - version = "1.1.5"; - src = fetchHex { - pkg = "k6_bytea"; - version = "1.1.5"; - sha256 = - "1ce4ca84bbe45890bc3c07809f8e01fb80c4613226fbd318aaac73d4cd233132"; - }; - compilePorts = true; - buildPlugins = [ pc ]; - - - meta = { - description = ''A mutable byte array for Erlang.''; - license = stdenv.lib.licenses.mit; - }; - } // packageOverrides) - ) {}; - - k6_bytea = k6_bytea_1_1_5; - - kafka_ex_0_5_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "kafka_ex"; - version = "0.5.0"; - src = fetchHex { - pkg = "kafka_ex"; - version = "0.5.0"; - sha256 = - "5e5d5be9bad3d9b9e77f75047c479aadc140d7e13be85a912cef8e7d647f0ae7"; - }; - - meta = { - description = ''Kafka client for Elixir/Erlang.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/kafkaex/kafka_ex"; - }; - } // packageOverrides) - ) {}; - - kafka_ex = kafka_ex_0_5_0; - - kaguya_0_4_7 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "kaguya"; - version = "0.4.7"; - src = fetchHex { - pkg = "kaguya"; - version = "0.4.7"; - sha256 = - "d687b8832c42e4d3d03e09e68b9df3a9bb4b208d287d8c2835170c343e2e4554"; - }; - - meta = { - longDescription = ''A small, powerful, and modular IRC bot - framework. Using a flexible macro based routing - system, modules can be easily created and - used.''; - license = stdenv.lib.licenses.isc; - homepage = "https://github.com/Luminarys/Kaguya"; - }; - } // packageOverrides) - ) {}; - - kaguya = kaguya_0_4_7; - - kennitala_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "kennitala"; - version = "1.0.0"; - src = fetchHex { - pkg = "kennitala"; - version = "1.0.0"; - sha256 = - "8f22c152fb5de86455d4570ec23f96b3ee110c8f7243e9fd7ffd85fbccf63838"; - }; - - meta = { - longDescription = ''Elixir library for validating and handling - the Icelandic Kennitala identity number.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/JonGretar/Kennitala.ex"; - }; - } // packageOverrides) - ) {}; - - kennitala = kennitala_1_0_0; - - key2value_1_4_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "key2value"; - version = "1.4.0"; - src = fetchHex { - pkg = "key2value"; - version = "1.4.0"; - sha256 = - "ad63453fcf54ab853581b78c6d2df56be41ea691ba4bc05920264c19f35a0ded"; - }; - - meta = { - description = ''Erlang 2-way Map''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/okeuday/key2value"; - }; - } // packageOverrides) - ) {}; - - key2value_1_5_1 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "key2value"; - version = "1.5.1"; - src = fetchHex { - pkg = "key2value"; - version = "1.5.1"; - sha256 = - "2a40464b9f8ef62e8828d869ac8d2bf9135b4956d29ba4eb044e8522b2d35ffa"; - }; - - meta = { - description = ''Erlang 2-way Map''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/okeuday/key2value"; - }; - } // packageOverrides) - ) {}; - - key2value = key2value_1_5_1; - - keymaster_0_0_3 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - plug_1_1_5 - }: - buildMix ({ - name = "keymaster"; - version = "0.0.3"; - src = fetchHex { - pkg = "keymaster"; - version = "0.0.3"; - sha256 = - "93ba90778f0dbe162fde8584c1510a61fcbf0f08d20ed24ea8548a3f84790fa8"; - }; - beamDeps = [ poison_2_1_0 plug_1_1_5 ]; - - meta = { - description = ''An opinionated OAuth 2.0 server for Elixir - projects.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/austinsmorris/keymaster"; - }; - } // packageOverrides) - ) {}; - - keymaster = keymaster_0_0_3; - - keys1value_1_5_1 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "keys1value"; - version = "1.5.1"; - src = fetchHex { - pkg = "keys1value"; - version = "1.5.1"; - sha256 = - "2385132be0903c170fe21e54a0c3e746a604777b66ee458bb6e5f25650d3354f"; - }; - - meta = { - description = ''Erlang Set Associative Map For Key Lists''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/okeuday/keys1value"; - }; - } // packageOverrides) - ) {}; - - keys1value = keys1value_1_5_1; - - kinja_0_0_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "kinja"; - version = "0.0.1"; - src = fetchHex { - pkg = "kinja"; - version = "0.0.1"; - sha256 = - "97b68a603fb5e665f07aac0396ee53d28690bdc42845c38b23741675c053b761"; - }; - beamDeps = [ poison_2_1_0 httpoison_0_8_3 ]; - - meta = { - description = ''A wrapper for the Kinja API.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/adampash/kinjaex"; - }; - } // packageOverrides) - ) {}; - - kinja = kinja_0_0_1; - - kitsune_0_5_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, poison_1_5_2 }: - buildMix ({ - name = "kitsune"; - version = "0.5.2"; - src = fetchHex { - pkg = "kitsune"; - version = "0.5.2"; - sha256 = - "f8d48f1f3abe89aa9df7b37bc59c9bfa5932142d076d5322f97e92ec732bf993"; - }; - beamDeps = [ poison_1_5_2 ]; - - meta = { - longDescription = ''Kitsune is an Elixir library for transforming - the representation of data inspired by - Representable.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/edubkendo/kitsune"; - }; - } // packageOverrides) - ) {}; - - kitsune = kitsune_0_5_2; - - kitto_0_0_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - plug_1_1_5, - cowboy_1_0_4 - }: - buildMix ({ - name = "kitto"; - version = "0.0.1"; - src = fetchHex { - pkg = "kitto"; - version = "0.0.1"; - sha256 = - "36a2c19a364fd9998ee3d0635fb6386104733d9887143f2ade8fe39f7096e635"; - }; - beamDeps = [ poison_2_1_0 plug_1_1_5 cowboy_1_0_4 ]; - - meta = { - description = ''Framework for creating interactive dashboards''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/kittoframework/kitto"; - }; - } // packageOverrides) - ) {}; - - kitto = kitto_0_0_1; - - kubex_0_1_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - httpoison_0_8_3 - }: - buildMix ({ - name = "kubex"; - version = "0.1.1"; - src = fetchHex { - pkg = "kubex"; - version = "0.1.1"; - sha256 = - "b0bd22246731b1c4d4d7f832cd0015fd6586022c779fb6672f45a648da7dcf79"; - }; - beamDeps = [ poison_1_5_2 httpoison_0_8_3 ]; - - meta = { - description = ''Kubernetes integration for and in pure Elixir.''; - license = stdenv.lib.licenses.free; - homepage = "https://github.com/ingerslevio/kubex"; - }; - } // packageOverrides) - ) {}; - - kubex = kubex_0_1_1; - - kwfuns_0_0_4 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "kwfuns"; - version = "0.0.4"; - src = fetchHex { - pkg = "kwfuns"; - version = "0.0.4"; - sha256 = - "ce1ac52be8d3c3cb7c77fc339eaa877a190899e889bf97cdb92e01922fd52b54"; - }; - - meta = { - longDescription = ''Macros to create functions with syntax based - keyword parameters with default values defkw - make_list_elem( parent, text, spaced: false, - type: :ul ) do ... end translates to def - make_list_elem( parent, text, keywords \\ [] ) - do some_code_with( spaces, typed) end''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/RobertDober/lab42_defkw"; - }; - } // packageOverrides) - ) {}; - - kwfuns = kwfuns_0_0_4; - - lager_3_0_1 = callPackage - ( - { - buildRebar3, packageOverrides ? {}, fetchHex, goldrush_0_1_7 - }: - buildRebar3 ({ - name = "lager"; - version = "3.0.1"; - src = fetchHex { - pkg = "lager"; - version = "3.0.1"; - sha256 = - "d32c9233105b72dc5c1f6a8fe9a33cc205ecccc359c4449950060cee5a329e35"; - }; - - beamDeps = [ goldrush_0_1_7 ]; - - meta = { - description = ''Erlang logging framework''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/basho/lager"; - }; - } // packageOverrides) - ) {}; - - lager_3_0_2 = callPackage - ( - { - buildRebar3, packageOverrides ? {}, fetchHex, goldrush_0_1_7 - }: - buildRebar3 ({ - name = "lager"; - version = "3.0.2"; - src = fetchHex { - pkg = "lager"; - version = "3.0.2"; - sha256 = - "527f3b233e01b6cb68780c14ef675ed08ec02247dc029cacecbb56c78dfca100"; - }; - - beamDeps = [ goldrush_0_1_7 ]; - - meta = { - description = ''Erlang logging framework''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/basho/lager"; - }; - } // packageOverrides) - ) {}; - - lager_3_2_1 = callPackage - ( - { - buildRebar3, packageOverrides ? {}, fetchHex, goldrush_0_1_8 - }: - buildRebar3 ({ - name = "lager"; - version = "3.2.1"; - src = fetchHex { - pkg = "lager"; - version = "3.2.1"; - sha256 = - "09a751789852094bf1ffad239a602bc47829da13ca5937b9d12df27470692095"; - }; - - beamDeps = [ goldrush_0_1_8 ]; - - meta = { - description = ''Erlang logging framework''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/basho/lager"; - }; - } // packageOverrides) - ) {}; - - lager = lager_3_2_1; - - lager_hipchat_0_2_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex, lager_3_0_2 }: - buildRebar3 ({ - name = "lager_hipchat"; - version = "0.2.0"; - src = fetchHex { - pkg = "lager_hipchat"; - version = "0.2.0"; - sha256 = - "83dc3246822b33b2889c431975ff0f8ffc6954c9e5f744bfd99acd9fa8605a1c"; - }; - - beamDeps = [ lager_3_0_2 ]; - - meta = { - description = ''HipChat backend for Lager''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/synlay/lager_hipchat"; - }; - } // packageOverrides) - ) {}; - - lager_hipchat = lager_hipchat_0_2_0; - - lager_logger_1_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, lager_3_2_1 }: - buildMix ({ - name = "lager_logger"; - version = "1.0.2"; - src = fetchHex { - pkg = "lager_logger"; - version = "1.0.2"; - sha256 = - "28e13b1a5d43acefdf7f49d219ecb268dd934da448d2e1d4c3f74378fdea9e89"; - }; - beamDeps = [ lager_3_2_1 ]; - - meta = { - longDescription = ''LagerLogger is a lager backend that forwards - all log messages to Elixir`s Logger.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/PSPDFKit-labs/lager_logger"; - }; - } // packageOverrides) - ) {}; - - lager_logger = lager_logger_1_0_2; - - lasse_1_1_0 = callPackage - ( - { buildErlangMk, packageOverrides ? {}, fetchHex }: - buildErlangMk ({ - name = "lasse"; - version = "1.1.0"; - src = fetchHex { - pkg = "lasse"; - version = "1.1.0"; - sha256 = - "53e70ea9031f7583331a9f9bdbb29da933e591e5c4cce521b4bf85c68e7f3385"; - }; - - meta = { - description = ''Lasse: Server-Sent Event handler for Cowboy.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/inaka/lasse"; - }; - } // packageOverrides) - ) {}; - - lasse = lasse_1_1_0; - - ldap_ex_0_2_4 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "ldap_ex"; - version = "0.2.4"; - src = fetchHex { - pkg = "ldap_ex"; - version = "0.2.4"; - sha256 = - "5ecdbce6e0243f92ce012b4fdf7daff4bbf6e748d37e028a4674e1ec87d81dbe"; - }; - - meta = { - longDescription = ''This is a binary instead of char_list version - of the stock Erlang :eldap library.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/OvermindDL1/ldap_ex"; - }; - } // packageOverrides) - ) {}; - - ldap_ex = ldap_ex_0_2_4; - - left_pad_0_0_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "left_pad"; - version = "0.0.3"; - src = fetchHex { - pkg = "left_pad"; - version = "0.0.3"; - sha256 = - "9b14a4b7f84f320175bd2ed2f24754a62206fdd67d90117602876c415cf22374"; - }; - - meta = { - description = ''Pad a string to the left with any number of - characters.''; - license = stdenv.lib.licenses.mpl20; - homepage = "https://github.com/folz/left_pad.ex"; - }; - } // packageOverrides) - ) {}; - - left_pad = left_pad_0_0_3; - - leftpad_1_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "leftpad"; - version = "1.0.1"; - src = fetchHex { - pkg = "leftpad"; - version = "1.0.1"; - sha256 = - "88e4cd8039461f2558f6e8378d834772b9315554080c5b729d65472209824a89"; - }; - - meta = { - description = ''left pad for elixir, because why not? - ¯\\_(ツ)_/¯''; - license = stdenv.lib.licenses.unlicense; - homepage = "https://github.com/colinrymer/leftpad.ex"; - }; - } // packageOverrides) - ) {}; - - leftpad = leftpad_1_0_1; - - lessonly_0_0_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "lessonly"; - version = "0.0.1"; - src = fetchHex { - pkg = "lessonly"; - version = "0.0.1"; - sha256 = - "a7c53da4a3153043a36636e9c9b188e7bad54caac4c994705afe4d47fd2ef111"; - }; - beamDeps = [ poison_2_1_0 httpoison_0_8_3 ]; - - meta = { - description = ''An Elixir wrapper for the Lesson.ly API.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/stevegrossi/lessonly-elixir"; - }; - } // packageOverrides) - ) {}; - - lessonly = lessonly_0_0_1; - - level_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "level"; - version = "1.0.0"; - src = fetchHex { - pkg = "level"; - version = "1.0.0"; - sha256 = - "42d54a840e79af5833e5ae335b374699c46d996053f2f3480e181a57cad2ae62"; - }; - - meta = { - longDescription = ''Level implements various helper functions and - data types for working with Googles Level data - store. ''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/gausby/level"; - }; - } // packageOverrides) - ) {}; - - level = level_1_0_0; - - lex_luthor_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "lex_luthor"; - version = "0.1.0"; - src = fetchHex { - pkg = "lex_luthor"; - version = "0.1.0"; - sha256 = - "1a8ebf646f9cd29f3696659e67f4bbb65a5a558e4b3e1f43013c5e85022189a2"; - }; - - meta = { - longDescription = ''LexLuthor is a Lexer in Elixir (say that 10 - times fast) which uses macros to generate a - reusable lexers. Good times.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/jamesotron/lex_luthor"; - }; - } // packageOverrides) - ) {}; - - lex_luthor = lex_luthor_0_1_0; - - lfsr_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "lfsr"; - version = "0.0.2"; - src = fetchHex { - pkg = "lfsr"; - version = "0.0.2"; - sha256 = - "8a14455bd0ce5c6b7dc56bf1027007c67e48979b49b70e09372cc36769d16b90"; - }; - - meta = { - description = ''Elixir implementation of a binary Galois Linear - Feedback Shift Register. ''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/pma/lfsr"; - }; - } // packageOverrides) - ) {}; - - lfsr = lfsr_0_0_2; - - lhttpc_1_3_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "lhttpc"; - version = "1.3.0"; - src = fetchHex { - pkg = "lhttpc"; - version = "1.3.0"; - sha256 = - "ddd2bd4b85159bc987c954b14877168e6a3c3e516105702189776e97c50296a4"; - }; - - meta = { - description = ''Lightweight HTTP Client''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/talko/lhttpc"; - }; - } // packageOverrides) - ) {}; - - lhttpc_1_4_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "lhttpc"; - version = "1.4.0"; - src = fetchHex { - pkg = "lhttpc"; - version = "1.4.0"; - sha256 = - "26d5a12b63fedb3e862a816a472258007dc1e85b75a9bcdb0223425e39827777"; - }; - - meta = { - description = ''Lightweight HTTP Client''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/talko/lhttpc"; - }; - } // packageOverrides) - ) {}; - - lhttpc = lhttpc_1_4_0; - - libsnarlmatch_0_1_7 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "libsnarlmatch"; - version = "0.1.7"; - src = fetchHex { - pkg = "libsnarlmatch"; - version = "0.1.7"; - sha256 = - "72e9bcf7968e75774393778146ac6596116f1c60136dd607ad249183684ee380"; - }; - - meta = { - description = ''permission matcher library''; - license = stdenv.lib.licenses.cddl; - homepage = "https://github.com/project-fifo/libsnarlmatch"; - }; - } // packageOverrides) - ) {}; - - libsnarlmatch = libsnarlmatch_0_1_7; - - lineo_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "lineo"; - version = "0.0.1"; - src = fetchHex { - pkg = "lineo"; - version = "0.0.1"; - sha256 = - "cbf80d2a2315803949dc186decce770c6850fb45fb919982ed24da758893093a"; - }; - - meta = { - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/camshaft/lineo"; - }; - } // packageOverrides) - ) {}; - - lineo_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "lineo"; - version = "0.1.0"; - src = fetchHex { - pkg = "lineo"; - version = "0.1.0"; - sha256 = - "842733d2aae3b8cfadf3acfe456241eb3434e68984d1fdbb7be15e335591e21c"; - }; - - meta = { - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/camshaft/lineo"; - }; - } // packageOverrides) - ) {}; - - lineo = lineo_0_1_0; - - linguist_0_1_5 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "linguist"; - version = "0.1.5"; - src = fetchHex { - pkg = "linguist"; - version = "0.1.5"; - sha256 = - "d8b0665512a800854152082f6d56142e56e5da5f5b0d879298117b7dfd55ba97"; - }; - - meta = { - description = ''Elixir Internationalization library ''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/chrismccord/linguist"; - }; - } // packageOverrides) - ) {}; - - linguist = linguist_0_1_5; - - liquid_0_2_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "liquid"; - version = "0.2.2"; - src = fetchHex { - pkg = "liquid"; - version = "0.2.2"; - sha256 = - "b68ae1dbc002e05028f7a74bb717d9a7863397eddde802d6ed5d96394120d1b1"; - }; - - meta = { - description = ''Liquid implementation in elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/nulian/liquid-elixir"; - }; - } // packageOverrides) - ) {}; - - liquid = liquid_0_2_2; - - lob_0_1_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - chacha20_0_3_2 - }: - buildMix ({ - name = "lob"; - version = "0.1.0"; - src = fetchHex { - pkg = "lob"; - version = "0.1.0"; - sha256 = - "adf071a07fde2fbd2393c06a18959e6d48622c7a3769e868cf577095c7eac67e"; - }; - beamDeps = [ poison_2_1_0 chacha20_0_3_2 ]; - - meta = { - description = ''Length-Object-Binary (LOB) Packet Encoding''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/mwmiller/lob_ex"; - }; - } // packageOverrides) - ) {}; - - lob = lob_0_1_0; - - logfmt_3_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "logfmt"; - version = "3.0.2"; - src = fetchHex { - pkg = "logfmt"; - version = "3.0.2"; - sha256 = - "d079aab159c3682d90054dbf8228cc0f86c8d5df6e6145c60d69a81110c3ee1c"; - }; - - meta = { - description = ''Logfmt is a module for encoding and decoding - logfmt-style log lines.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/jclem/logfmt-elixir"; - }; - } // packageOverrides) - ) {}; - - logfmt = logfmt_3_0_2; - - logger_file_backend_0_0_8 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "logger_file_backend"; - version = "0.0.8"; - src = fetchHex { - pkg = "logger_file_backend"; - version = "0.0.8"; - sha256 = - "1d89664561365545517114eeba9f96b193fd1f52c90b5f055b79f1e40547ffea"; - }; - - meta = { - description = ''Simple logger backend that writes to a file''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/onkel-dirtus/logger_file_backend"; - }; - } // packageOverrides) - ) {}; - - logger_file_backend = logger_file_backend_0_0_8; - - logger_lager_backend_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "logger_lager_backend"; - version = "0.0.2"; - src = fetchHex { - pkg = "logger_lager_backend"; - version = "0.0.2"; - sha256 = - "cd9f4c0df86d9209d905b451f4177aa0cbe341488ae36969c49af772830432a0"; - }; - - meta = { - description = ''A Logger backend that forwards messages to - lager''; - license = stdenv.lib.licenses.mit; - homepage = - "https://github.com/jonathanperret/logger_lager_backend"; - }; - } // packageOverrides) - ) {}; - - logger_lager_backend = logger_lager_backend_0_0_2; - - logger_loggly_backend_0_2_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, httpoison_0_8_3 }: - buildMix ({ - name = "logger_loggly_backend"; - version = "0.2.0"; - src = fetchHex { - pkg = "logger_loggly_backend"; - version = "0.2.0"; - sha256 = - "111d0e256ace86e2af366b1afc7152b4aadd3cd6c093d5d2b119c08a84395fd6"; - }; - beamDeps = [ httpoison_0_8_3 ]; - - meta = { - description = ''Loggly logger backend''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/joeyfeldberg/loggly_backend"; - }; - } // packageOverrides) - ) {}; - - logger_loggly_backend = logger_loggly_backend_0_2_0; - - logger_logstash_backend_2_0_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - timex_2_1_6, - exjsx_3_1_0 - }: - buildMix ({ - name = "logger_logstash_backend"; - version = "2.0.0"; - src = fetchHex { - pkg = "logger_logstash_backend"; - version = "2.0.0"; - sha256 = - "e0c709aa8fbddd825ef5cc5287e0d04f4470498173555e07156675aeba2b2b7a"; - }; - beamDeps = [ timex_2_1_6 exjsx_3_1_0 ]; - - meta = { - description = ''Logstash UDP producer backend for Logger.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/marcelog/logger_logstash_backend"; - }; - } // packageOverrides) - ) {}; - - logger_logstash_backend = logger_logstash_backend_2_0_0; - - logger_papertrail_backend_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "logger_papertrail_backend"; - version = "0.1.0"; - src = fetchHex { - pkg = "logger_papertrail_backend"; - version = "0.1.0"; - sha256 = - "ae2bff0588a702cb3bd87080c5f4558d34efd0fbf19f976397fe9b0538b1c20b"; - }; - - meta = { - description = ''A Papertrail backend for Elixir Logger''; - license = stdenv.lib.licenses.mit; - homepage = - "https://github.com/larskrantz/logger_papertrail_backend"; - }; - } // packageOverrides) - ) {}; - - logger_papertrail_backend = logger_papertrail_backend_0_1_0; - - logglix_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, httpoison_0_8_3 }: - buildMix ({ - name = "logglix"; - version = "0.0.1"; - src = fetchHex { - pkg = "logglix"; - version = "0.0.1"; - sha256 = - "c193945b52e7fe3f6973e7defec46683b794baacd784eaa0c1f7c65978fea654"; - }; - beamDeps = [ httpoison_0_8_3 ]; - - meta = { - description = ''Elixir loggly application event subscriber''; - license = stdenv.lib.licenses.isc; - homepage = "https://github.com/pragmaticivan/logglix"; - }; - } // packageOverrides) - ) {}; - - logglix = logglix_0_0_1; - - logi_0_5_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "logi"; - version = "0.5.0"; - src = fetchHex { - pkg = "logi"; - version = "0.5.0"; - sha256 = - "45619004d3735f27e6f397ba0696c5fc6ea1ee89e037fd50847d975e0330de8f"; - }; - - meta = { - description = ''A Logger Interface Library''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/sile/logi"; - }; - } // packageOverrides) - ) {}; - - logi = logi_0_5_0; - - logi_stdlib_0_1_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex, logi_0_5_0 }: - buildRebar3 ({ - name = "logi_stdlib"; - version = "0.1.0"; - src = fetchHex { - pkg = "logi_stdlib"; - version = "0.1.0"; - sha256 = - "a2e12cf14fe6660e81b6351f51711c4891147eb4140d1b2b8c23007bb750312b"; - }; - - beamDeps = [ logi_0_5_0 ]; - - meta = { - description = ''Standard Library for logi''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/sile/logi_stdlib"; - }; - } // packageOverrides) - ) {}; - - logi_stdlib = logi_stdlib_0_1_0; - - lolcat_0_0_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - quickrand_1_5_1, - colorful_0_6_0 - }: - buildMix ({ - name = "lolcat"; - version = "0.0.1"; - src = fetchHex { - pkg = "lolcat"; - version = "0.0.1"; - sha256 = - "884799d2e7f294a6a5455e19c9816592d7b1314cefaba18952876fef0c4a10af"; - }; - beamDeps = [ quickrand_1_5_1 colorful_0_6_0 ]; - - meta = { - description = ''The clone of lolcat. written in elixir ''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/restartr/ex-lolcat"; - }; - } // packageOverrides) - ) {}; - - lolcat = lolcat_0_0_1; - - loom_0_0_10 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "loom"; - version = "0.0.10"; - src = fetchHex { - pkg = "loom"; - version = "0.0.10"; - sha256 = - "f32cf0fe1c14efb9b4fda15285a5d331b64e952da7a0561c66f7e2b671d36cb8"; - }; - - meta = { - description = ''A modern CRDT library that uses protocols to - create composable CRDTs.''; - license = stdenv.lib.licenses.apsl20; - homepage = "https://github.com/asonge/loom"; - }; - } // packageOverrides) - ) {}; - - loom = loom_0_0_10; - - lru_1_3_1 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "lru"; - version = "1.3.1"; - src = fetchHex { - pkg = "lru"; - version = "1.3.1"; - sha256 = - "cd6ac15c383d58cd2933df9cb918617b24b12b6e5fb24d94c4c8f200fd93f619"; - }; - - meta = { - description = ''implements a fixed-size LRU cache''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/barrel-db/erlang-lru"; - }; - } // packageOverrides) - ) {}; - - lru = lru_1_3_1; - - lru_cache_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "lru_cache"; - version = "0.1.0"; - src = fetchHex { - pkg = "lru_cache"; - version = "0.1.0"; - sha256 = - "9543e4b00ad3763fa2a92cf9ed7429dff645d912f5d9134b32d573bb327f56b5"; - }; - - meta = { - description = ''ETS-based LRU Cache''; - - homepage = "https://github.com/arago/lru_cache"; - }; - } // packageOverrides) - ) {}; - - lru_cache = lru_cache_0_1_0; - - ltsv_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "ltsv"; - version = "0.1.0"; - src = fetchHex { - pkg = "ltsv"; - version = "0.1.0"; - sha256 = - "62e56251331da6cf5b95de9ecf6e0984749b0ba935356397151fa19f2491a449"; - }; - - meta = { - description = ''A Labeled Tab-separated Values Parser''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/ma2gedev/ltsvex"; - }; - } // packageOverrides) - ) {}; - - ltsv = ltsv_0_1_0; - - luhn_0_3_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "luhn"; - version = "0.3.1"; - src = fetchHex { - pkg = "luhn"; - version = "0.3.1"; - sha256 = - "86aba88228660238ad981b92cb7a0e92be04772fc54fe5effb338c94b3b7d9fa"; - }; - - meta = { - description = ''Luhn algorithm in Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/ma2gedev/luhn_ex"; - }; - } // packageOverrides) - ) {}; - - luhn = luhn_0_3_1; - - luhnatex_0_5_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "luhnatex"; - version = "0.5.1"; - src = fetchHex { - pkg = "luhnatex"; - version = "0.5.1"; - sha256 = - "f08bb73777cd8a12780ea12697064c942a08184074512d4e593443da74526eed"; - }; - - meta = { - description = ''Luhn algorithm in Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/my-flow/luhnatex"; - }; - } // packageOverrides) - ) {}; - - luhnatex = luhnatex_0_5_1; - - lz4_0_2_2 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "lz4"; - version = "0.2.2"; - src = fetchHex { - pkg = "lz4"; - version = "0.2.2"; - sha256 = - "a59522221e7cdfe3792bf8b3bb21cfe7ac657790e5826201fa2c5d0bc7484a2d"; - }; - compilePorts = true; - - meta = { - description = ''LZ4 bindings for Erlang''; - license = stdenv.lib.licenses.isc; - homepage = "https://github.com/szktty/erlang-lz4.git"; - }; - } // packageOverrides) - ) {}; - - lz4 = lz4_0_2_2; - - lz_string_0_0_5 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "lz_string"; - version = "0.0.5"; - src = fetchHex { - pkg = "lz_string"; - version = "0.0.5"; - sha256 = - "318ce091382febc3ca63e0ff9bff6bda78a797dd90f2a2f95fec6d0e2757d6fa"; - }; - - meta = { - description = ''Elixir implementation of pieroxy`s lz-string - compression algorithm.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/koudelka/elixir-lz-string"; - }; - } // packageOverrides) - ) {}; - - lz_string = lz_string_0_0_5; - - m2x_2_0_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - json_0_3_3, - hackney_1_6_0 - }: - buildMix ({ - name = "m2x"; - version = "2.0.0"; - src = fetchHex { - pkg = "m2x"; - version = "2.0.0"; - sha256 = - "e125cf588d48d9b04fb4a003bb62ab1a8e8df359866dba0cde6444e9fd7ce939"; - }; - beamDeps = [ json_0_3_3 hackney_1_6_0 ]; - - meta = { - longDescription = ''Elixir client library for the AT&T M2X - (http://m2x.att.com) API. AT&T M2X is a - cloud-based fully managed time-series data - storage service for network connected - machine-to-machine (M2M) devices and the - Internet of Things (IoT).''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/attm2x/m2x-elixir"; - }; - } // packageOverrides) - ) {}; - - m2x = m2x_2_0_0; - - m2x_erlang_1_3_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - jsx_2_8_0, - hackney_1_6_0 - }: - buildMix ({ - name = "m2x_erlang"; - version = "1.3.1"; - src = fetchHex { - pkg = "m2x_erlang"; - version = "1.3.1"; - sha256 = - "873db746f4428490670b54aabcc93fda8d94c3c4e25c94a9aef7275858a8b809"; - }; - beamDeps = [ jsx_2_8_0 hackney_1_6_0 ]; - - meta = { - longDescription = ''Erlang client library for the AT&T M2X - (http://m2x.att.com) API. AT&T M2X is a - cloud-based fully managed time-series data - storage service for network connected - machine-to-machine (M2M) devices and the - Internet of Things (IoT).''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/attm2x/m2x-erlang"; - }; - } // packageOverrides) - ) {}; - - m2x_erlang = m2x_erlang_1_3_1; - - maas_1_0_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - httpoison_0_8_3, - poison_2_1_0 - }: - buildMix ({ - name = "maas"; - version = "1.0.0"; - src = fetchHex { - pkg = "maas"; - version = "1.0.0"; - sha256 = - "f6c2a3dd4e291b7000d45938abd975a21e055ef2eba57701ed7e0399e7a64617"; - }; - beamDeps = [ httpoison_0_8_3 poison_2_1_0 ]; - - meta = { - description = ''A wrapper for the Mars Atmospheric Weather System - API''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/lucidstack/ex-maas"; - }; - } // packageOverrides) - ) {}; - - maas = maas_1_0_0; - - maester_1_0_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "maester"; - version = "1.0.0"; - src = fetchHex { - pkg = "maester"; - version = "1.0.0"; - sha256 = - "4fa324e1545ba5805d2eef2341c9554b52a51dfd79146dc13ec4b589e55efddd"; - }; - beamDeps = [ poison_2_1_0 httpoison_0_8_3 ]; - - meta = { - description = ''An API of Ice and Fire client for Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/sotojuan/maester"; - }; - } // packageOverrides) - ) {}; - - maester = maester_1_0_0; - - magic_number_0_0_4 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "magic_number"; - version = "0.0.4"; - src = fetchHex { - pkg = "magic_number"; - version = "0.0.4"; - sha256 = - "5b6fa41f5d24c3fd2f3cf9a96fefcf762c98bdd301158a95ab5355fe4f9eb61a"; - }; - - meta = { - description = ''MagicNumber is the module to determine a file`s - type from its magic number.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/ishikawa/elixir-magic-number"; - }; - } // packageOverrides) - ) {}; - - magic_number = magic_number_0_0_4; - - magnet_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "magnet"; - version = "0.0.1"; - src = fetchHex { - pkg = "magnet"; - version = "0.0.1"; - sha256 = - "064af72e9422262813977752e2f7439501894bce48e5679576ceb93f6b649581"; - }; - - meta = { - description = ''A magnet-uri encoder and decoder''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/gausby/magnet"; - }; - } // packageOverrides) - ) {}; - - magnet = magnet_0_0_1; - - mail_0_0_4 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "mail"; - version = "0.0.4"; - src = fetchHex { - pkg = "mail"; - version = "0.0.4"; - sha256 = - "015bb93bc3233fbf0bb28daf71963ddc290d574d9b3d63e1b45641d1a2d4571e"; - }; - - meta = { - description = ''Easily build a composable mail message''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/DockYard/elixir-mail"; - }; - } // packageOverrides) - ) {}; - - mail = mail_0_0_4; - - mailer_1_0_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - timex_2_1_6, - gen_smtp_0_10_0 - }: - buildMix ({ - name = "mailer"; - version = "1.0.1"; - src = fetchHex { - pkg = "mailer"; - version = "1.0.1"; - sha256 = - "08b834102ad6eb2f2a363b70939935d3d23d1e3a68d96a2a7f8730fb7834c63d"; - }; - beamDeps = [ timex_2_1_6 gen_smtp_0_10_0 ]; - - meta = { - description = ''Mailer - A simple email client''; - license = stdenv.lib.licenses.free; - homepage = "https://github.com/antp/mailer"; - }; - } // packageOverrides) - ) {}; - - mailer = mailer_1_0_1; - - mailgun_0_1_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, poison_1_5_2 }: - buildMix ({ - name = "mailgun"; - version = "0.1.2"; - src = fetchHex { - pkg = "mailgun"; - version = "0.1.2"; - sha256 = - "9cc828e06238045c92414db8f2e9a64a6004aca9b9a4856e5222db99bd8528e8"; - }; - beamDeps = [ poison_1_5_2 ]; - - meta = { - description = ''Elixir Mailgun Client''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/chrismccord/mailgun"; - }; - } // packageOverrides) - ) {}; - - mailgun = mailgun_0_1_2; - - majremind_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "majremind"; - version = "0.0.1"; - src = fetchHex { - pkg = "majremind"; - version = "0.0.1"; - sha256 = - "604ba3b2142497b2384c73b2320f9738711a9cc07b4348f8e870ee6e470c4749"; - }; - - meta = { - longDescription = ''A self-maintained database of your updated - server which tells you which one needs to be - updated. It uses Disk Erlang Term Storage for - its internal database, located at - $HOME/.config/majremind/ ''; - license = stdenv.lib.licenses.mit; - }; - } // packageOverrides) - ) {}; - - majremind = majremind_0_0_1; - - mandrake_0_0_4 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "mandrake"; - version = "0.0.4"; - src = fetchHex { - pkg = "mandrake"; - version = "0.0.4"; - sha256 = - "ed672e094f68ff07c1f8e78a3c8a95af3e23a71ca90515ad441738446ee18887"; - }; - - meta = { - longDescription = ''Mandrake is a functional programming library - that bring something else magic in elixir.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/mbasso/mandrake"; - }; - } // packageOverrides) - ) {}; - - mandrake = mandrake_0_0_4; - - mandrill_0_5_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - httpoison_0_8_3, - exjsx_3_2_0 - }: - buildMix ({ - name = "mandrill"; - version = "0.5.0"; - src = fetchHex { - pkg = "mandrill"; - version = "0.5.0"; - sha256 = - "9fb3a65d01de47cfc979a492079960506f21f8975e37e994478a70ee04c8d9a6"; - }; - beamDeps = [ httpoison_0_8_3 exjsx_3_2_0 ]; - - meta = { - longDescription = ''A Mandrill wrapper for Elixir Requires an - active account with Mandrill - (http://mandrill.com).''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/slogsdon/mandrill-elixir"; - }; - } // packageOverrides) - ) {}; - - mandrill = mandrill_0_5_0; - - maptu_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "maptu"; - version = "0.1.0"; - src = fetchHex { - pkg = "maptu"; - version = "0.1.0"; - sha256 = - "8dc5fd69e78a948a6cd3b95a1b1cb1a7056948a4445e4abed773cae8c88c16da"; - }; - - meta = { - description = ''Tiny library to convert from \"encoded\" maps to - Elixir structs.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/whatyouhide/maptu"; - }; - } // packageOverrides) - ) {}; - - maptu = maptu_0_1_0; - - marco_polo_0_2_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - decimal_1_1_2, - connection_1_0_2 - }: - buildMix ({ - name = "marco_polo"; - version = "0.2.2"; - src = fetchHex { - pkg = "marco_polo"; - version = "0.2.2"; - sha256 = - "a3107bb545590f4533dee040432659566b9c5ddbbbdbf7d1ee92381f450c0956"; - }; - beamDeps = [ decimal_1_1_2 connection_1_0_2 ]; - - meta = { - description = ''Binary driver for the OrientDB database.''; - license = stdenv.lib.licenses.apsl20; - homepage = "https://github.com/MyMedsAndMe/marco_polo"; - }; - } // packageOverrides) - ) {}; - - marco_polo = marco_polo_0_2_2; - - mariaex_0_4_4 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, decimal_1_1_2 }: - buildMix ({ - name = "mariaex"; - version = "0.4.4"; - src = fetchHex { - pkg = "mariaex"; - version = "0.4.4"; - sha256 = - "fadba91ff3719ac0fae7d454abfd812819630ea9f9aec768c5321331baa38b79"; - }; - beamDeps = [ decimal_1_1_2 ]; - - meta = { - description = ''Pure elixir database driver for MariaDB / - MySQL.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/xerions/mariaex"; - }; - } // packageOverrides) - ) {}; - - marked_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "marked"; - version = "0.0.1"; - src = fetchHex { - pkg = "marked"; - version = "0.0.1"; - sha256 = - "6e16369d41355bef05b18f98230afe08dcb3ccfaaab168382513d86c19721035"; - }; - - meta = { - description = ''CommonMark compatible Markdown parser''; - - }; - } // packageOverrides) - ) {}; - - marked = marked_0_0_1; - - markit_0_1_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "markit"; - version = "0.1.2"; - src = fetchHex { - pkg = "markit"; - version = "0.1.2"; - sha256 = - "6304ceb1e7a5787555bc7d048bf3c9c0b432fe5378c6d630fb02d0bb871e57b5"; - }; - beamDeps = [ poison_2_1_0 httpoison_0_8_3 ]; - - meta = { - description = ''Access stock market data from markit.com''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/col/markit"; - }; - } // packageOverrides) - ) {}; - - markit = markit_0_1_2; - - markit_skill_0_0_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - markit_0_1_2, - inflex_1_5_0, - alexa_0_1_14 - }: - buildMix ({ - name = "markit_skill"; - version = "0.0.2"; - src = fetchHex { - pkg = "markit_skill"; - version = "0.0.2"; - sha256 = - "166d8ef88c08c21821dda379a053af761db4de5dff50226bfcb0e3a18fc855db"; - }; - beamDeps = [ markit_0_1_2 inflex_1_5_0 alexa_0_1_14 ]; - - meta = { - description = ''Amazon Alexa skill that uses data from - Markit.com''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/col/markit_skill"; - }; - } // packageOverrides) - ) {}; - - markit_skill = markit_skill_0_0_2; - - maru_entity_0_1_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "maru_entity"; - version = "0.1.2"; - src = fetchHex { - pkg = "maru_entity"; - version = "0.1.2"; - sha256 = - "93b1f9f3941032cdf98b999cf4db85cace7e6259a78427322c5af8a5621e45b6"; - }; - - meta = { - description = ''Elixir copy of grape-entity''; - - }; - } // packageOverrides) - ) {}; - - maru_entity = maru_entity_0_1_2; - - math_0_2_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "math"; - version = "0.2.0"; - src = fetchHex { - pkg = "math"; - version = "0.2.0"; - sha256 = - "75557fb9743e866f743d894102da851531ffc69b4c0f8fdd12cd749acb1a6215"; - }; - - meta = { - longDescription = ''The Math module adds many useful functions - that extend Elixir`s standard library. - General - Functions • a <~> b Comparison of floats, to - check if they are _nearly_ equal. • - Math.pow(x, n) Arithmetic exponentiation. Works - both with integer powers and floats. • - Math.sqrt(x) The square root of x. • - Math.nth_root(x, n) The n-th root of x. • - Math.isqrt(x) The integer square root of x. • - Math.gcd(a, b) The greatest common divisor of a - and b. • Math.lcm(a, b) The least common - multiple of a and b. • Math.factorial(n) The - n-th factorial number. • - Math.k_permutations(n, k) The number of distinct - ways to create groups of size k from n distinct - elements. • Math.k_combinations(n, k) The - number of distinct ways to create groups of size - k from n distinct elements where order does not - matter. - Logarithms • Math.exp(x) Calculates - ℯ to the xth power. • Math.log(x) Calculates - the natural logarithm (base ℯ) of x. • - Math.log(x, b) Calculates the base-b logarithm - of x • Math.log2(x) Calculates the binary - logarithm (base 2) of x. • Math.log10(x) - Calculates the common logarithm (base 10) of x. - • Math.e Returns a floating-point - approximation of the number ℯ. - Trigonometry - • Math.pi Returns a floating-point - approximation of the number π. • - Math.deg2rad(x) converts from degrees to - radians. • Math.rad2deg(x) converts from - radians to degrees. • Math.sin(x) The sine of - x. • Math.cos(x) The cosine of x. • - Math.tan(x) The tangent of x. • Math.asin(x) - The inverse sine of x. • Math.acos(x) The - inverse cosine of x. • Math.atan(x) The - inverse tangent of x. • Math.atan2(x, y) The - inverse tangent of x and y. This variant returns - the inverse tangent in the correct quadrant, as - the signs of both x and y are known. • - Math.sinh(x) The hyperbolic sine of x. • - Math.cosh(x) The hyperbolic cosine of x. • - Math.tanh(x) The hyperbolic tangent of x. • - Math.asinh(x) The inverse hyperbolic sine of x. - • Math.acosh(x) The inverse hyperbolic cosine - of x. • Math.atanh(x) The inverse hyperbolic - tangent of x. - Working with Collections • - Math.Enum.product(collection) The result of - multiplying all elements in the passed - collection. • Math.Enum.mean(collection) the - mean of the numbers in the collection. • - Math.Enum.median(collection) the median of the - numbers in the collection.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/folz/math"; - }; - } // packageOverrides) - ) {}; - - math = math_0_2_0; - - matrix_0_3_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - exprintf_0_1_6, - earmark_0_2_1 - }: - buildMix ({ - name = "matrix"; - version = "0.3.1"; - src = fetchHex { - pkg = "matrix"; - version = "0.3.1"; - sha256 = - "3184d70b36666d52e011caf8be4590e2ecf3cc772203ec22b44d90c302592523"; - }; - beamDeps = [ exprintf_0_1_6 earmark_0_2_1 ]; - - meta = { - longDescription = ''Matrix is a linear algebra library for - manipulating dense matrices. Its primary design - goal is ease of use.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/twist-vector/elixir-matrix.git"; - }; - } // packageOverrides) - ) {}; - - matrix = matrix_0_3_1; - - maxwell_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, mimerl_1_0_2 }: - buildMix ({ - name = "maxwell"; - version = "1.0.0"; - src = fetchHex { - pkg = "maxwell"; - version = "1.0.0"; - sha256 = - "4a71f54a7645210f5274c00171a217a03a04635620d5eef52d0463a88f64d106"; - }; - beamDeps = [ mimerl_1_0_2 ]; - - meta = { - longDescription = ''Maxwell is an HTTP client that provides a - common interface over many adapters (such as - hackney, ibrowse) and embraces the concept of - Rack middleware when processing the - request/response cycle.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/zhongwencool/maxwell"; - }; - } // packageOverrides) - ) {}; - - maxwell = maxwell_1_0_0; - - maybe_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "maybe"; - version = "0.0.1"; - src = fetchHex { - pkg = "maybe"; - version = "0.0.1"; - sha256 = - "b1915afa2dd6a2db64ad7b20b41eeb2d3cb576cdbd20679594eb6ef76f612638"; - }; - - meta = { - description = ''Utils to deal with errors''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/zweifisch/maybe"; - }; - } // packageOverrides) - ) {}; - - maybe = maybe_0_0_1; - - mazurka_1_0_0 = callPackage - ( - { - buildMix, packageOverrides ? {}, fetchHex, mimetype_parser_0_1_2 - }: - buildMix ({ - name = "mazurka"; - version = "1.0.0"; - src = fetchHex { - pkg = "mazurka"; - version = "1.0.0"; - sha256 = - "7f035374ceb139b7531ca24bd111ee25cbf3be11b45af1bbf663ed3b832e7b13"; - }; - beamDeps = [ mimetype_parser_0_1_2 ]; - - meta = { - description = ''hypermedia api toolkit''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/mazurka/mazurka"; - }; - } // packageOverrides) - ) {}; - - mazurka = mazurka_1_0_0; - - mazurka_dsl_0_1_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "mazurka_dsl"; - version = "0.1.1"; - src = fetchHex { - pkg = "mazurka_dsl"; - version = "0.1.1"; - sha256 = - "2877b27736daa1f5757ff1c2b34ec35d43c8e501b5292be5f9db7de95b88ea69"; - }; - - meta = { - description = ''DSL for defining mazurka resources''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/mazurka/mazurka_dsl"; - }; - } // packageOverrides) - ) {}; - - mazurka_dsl = mazurka_dsl_0_1_1; - - mazurka_mediatype_0_2_0 = callPackage - ( - { - buildMix, packageOverrides ? {}, fetchHex, etude_1_0_0_beta_2 - }: - buildMix ({ - name = "mazurka_mediatype"; - version = "0.2.0"; - src = fetchHex { - pkg = "mazurka_mediatype"; - version = "0.2.0"; - sha256 = - "4ccd8b27d6405e93cb34861f211d69b79ab46c2dbc5c7874d4ee3c580a5754bb"; - }; - beamDeps = [ etude_1_0_0_beta_2 ]; - - meta = { - description = ''mazurka mediatype interface''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/mazurka/mazurka_mediatype"; - }; - } // packageOverrides) - ) {}; - - mazurka_mediatype = mazurka_mediatype_0_2_0; - - mazurka_mediatype_hyperjson_0_2_3 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_3_1, - mazurka_mediatype_0_2_0, - etude_1_0_0_beta_2 - }: - buildMix ({ - name = "mazurka_mediatype_hyperjson"; - version = "0.2.3"; - src = fetchHex { - pkg = "mazurka_mediatype_hyperjson"; - version = "0.2.3"; - sha256 = - "f09489f242598ece8496f50c9dfc3d1a051b6115a654ebbb9ce5336e04b2cb8d"; - }; - beamDeps = [ - poison_1_3_1 - mazurka_mediatype_0_2_0 - etude_1_0_0_beta_2 - ]; - - meta = { - description = ''hyper+json mediatype compiler for mazurka''; - license = stdenv.lib.licenses.mit; - homepage = - "https://github.com/mazurka/mazurka_mediatype_hyperjson"; - }; - } // packageOverrides) - ) {}; - - mazurka_mediatype_hyperjson = mazurka_mediatype_hyperjson_0_2_3; - - mc_data_0_0_5 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, poison_2_1_0 }: - buildMix ({ - name = "mc_data"; - version = "0.0.5"; - src = fetchHex { - pkg = "mc_data"; - version = "0.0.5"; - sha256 = - "0ad4b4489554951f93fc9da39b8f14e5b87dada3005d6d012528cbc387d0aa27"; - }; - beamDeps = [ poison_2_1_0 ]; - - meta = { - description = ''Provides access to data from the game - Minecraft.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/McEx/McData"; - }; - } // packageOverrides) - ) {}; - - mc_data = mc_data_0_0_5; - - mcup_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "mcup"; - version = "0.0.2"; - src = fetchHex { - pkg = "mcup"; - version = "0.0.2"; - sha256 = - "c59537882707237c961d3d69b149619ec35c808cd5e98646cbcb7985e300b975"; - }; - - meta = { - description = ''DSL for markup. ''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/Joe-noh/mcup"; - }; - } // packageOverrides) - ) {}; - - mcup = mcup_0_0_2; - - mdns_server_0_2_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "mdns_server"; - version = "0.2.0"; - src = fetchHex { - pkg = "mdns_server"; - version = "0.2.0"; - sha256 = - "bc9465880e15e57033960ab6820258b87134bef69032210c67e53e3718e289d0"; - }; - - meta = { - description = ''mDNS service discovery server''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/Licenser/erlang-mdns-server"; - }; - } // packageOverrides) - ) {}; - - mdns_server = mdns_server_0_2_0; - - mdns_server_lib_0_2_3 = callPackage - ( - { - buildRebar3, - packageOverrides ? {}, - fetchHex, - ranch_1_1_0, - mdns_server_0_2_0, - lager_3_0_2 - }: - buildRebar3 ({ - name = "mdns_server_lib"; - version = "0.2.3"; - src = fetchHex { - pkg = "mdns_server_lib"; - version = "0.2.3"; - sha256 = - "078775ccea5d768095716ca6bd82f657601203352495d9726f4cc080c8c07695"; - }; - - beamDeps = [ ranch_1_1_0 mdns_server_0_2_0 lager_3_0_2 ]; - - meta = { - description = ''server side for mdns client server - implementation''; - license = stdenv.lib.licenses.cddl; - homepage = "https://github.com/Licenser/mdns_server_lib"; - }; - } // packageOverrides) - ) {}; - - mdns_server_lib = mdns_server_lib_0_2_3; - - meck_0_8_3 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "meck"; - version = "0.8.3"; - src = fetchHex { - pkg = "meck"; - version = "0.8.3"; - sha256 = - "53bd3873d0193d6b2b4a165cfc4b9ffc3934355c3ba19e88239ef6a027cc02b6"; - }; - - meta = { - description = ''A mocking framework for Erlang''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/eproxus/meck"; - }; - } // packageOverrides) - ) {}; - - meck_0_8_4 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "meck"; - version = "0.8.4"; - src = fetchHex { - pkg = "meck"; - version = "0.8.4"; - sha256 = - "2cdfbd0edd8f62b3d2061efc03c0e490282dd2ea6de44e15d2006e83f4f8eead"; - }; - - meta = { - description = ''A mocking framework for Erlang''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/eproxus/meck"; - }; - } // packageOverrides) - ) {}; - - meck = meck_0_8_4; - - meld_0_1_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "meld"; - version = "0.1.2"; - src = fetchHex { - pkg = "meld"; - version = "0.1.2"; - sha256 = - "3f86b810df38e0767a472829a26f92c07c986c1bcc41421eba021a5a6c174e83"; - }; - - meta = { - description = ''create real CLIs in elixir, using mix tasks''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/conflate/meld"; - }; - } // packageOverrides) - ) {}; - - meld = meld_0_1_2; - - mellon_0_1_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - plug_1_1_5 - }: - buildMix ({ - name = "mellon"; - version = "0.1.1"; - src = fetchHex { - pkg = "mellon"; - version = "0.1.1"; - sha256 = - "2b05fca901c0b9609cdd65cfb015a7646a9ec239cf1694ee8f1384a53a5ac0b4"; - }; - beamDeps = [ poison_2_1_0 plug_1_1_5 ]; - - meta = { - longDescription = ''Mellon is a Plug used in authentication of - APIs. It`s flexible, you can define your own - validator etc.''; - - homepage = "https://github.com/sajmoon/mellon"; - }; - } // packageOverrides) - ) {}; - - mellon = mellon_0_1_1; - - mem_0_2_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "mem"; - version = "0.2.0"; - src = fetchHex { - pkg = "mem"; - version = "0.2.0"; - sha256 = - "6a97047af66ab2c4283460ae43611c9a843abb95584dca4e648ed320c7fdfa34"; - }; - - meta = { - description = ''KV cache with TTL, LRU and Persistence support''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/falood/mem"; - }; - } // packageOverrides) - ) {}; - - mem = mem_0_2_0; - - memcache_client_1_1_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poolboy_1_5_1, - poison_2_1_0, - connection_1_0_2 - }: - buildMix ({ - name = "memcache_client"; - version = "1.1.0"; - src = fetchHex { - pkg = "memcache_client"; - version = "1.1.0"; - sha256 = - "e12d6add6d9ef817f7cf47d85c37c75c9ec81512a7ad88f23b50963048bce439"; - }; - beamDeps = [ poolboy_1_5_1 poison_2_1_0 connection_1_0_2 ]; - - meta = { - description = ''Memcache client library utilizing the memcache - binary protocol.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/tsharju/memcache_client"; - }; - } // packageOverrides) - ) {}; - - memcache_client = memcache_client_1_1_0; - - merkle_tree_1_1_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "merkle_tree"; - version = "1.1.1"; - src = fetchHex { - pkg = "merkle_tree"; - version = "1.1.1"; - sha256 = - "6020578ceee91ae26c63aab9bf8112fbb83cc029d25e6ad4f35b2ed4bfdcaf7a"; - }; - - meta = { - longDescription = ''A hash tree or Merkle tree is a tree in which - every non-leaf node is labelled with the hash of - the labels or values (in case of leaves) of its - child nodes. Hash trees are useful because they - allow efficient and secure verification of the - contents of large data structures.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/yosriady/merkle_tree"; - }; - } // packageOverrides) - ) {}; - - merkle_tree = merkle_tree_1_1_1; - - messagepack_0_4_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "messagepack"; - version = "0.4.1"; - src = fetchHex { - pkg = "messagepack"; - version = "0.4.1"; - sha256 = - "cdf2d4a2af846a8c3cd43a9f80082883ff7c2c5e221ec078375102db0fb5ca2f"; - }; - - meta = { - description = ''MessagePack for Erlang / Elixir''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/tomaon/messagepack"; - }; - } // packageOverrides) - ) {}; - - messagepack = messagepack_0_4_1; - - messenger_0_0_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - httpoison_0_8_3 - }: - buildMix ({ - name = "messenger"; - version = "0.0.2"; - src = fetchHex { - pkg = "messenger"; - version = "0.0.2"; - sha256 = - "dda5b1bde69852ac8f2ae7f2d10d55209fd7b6babfc4e664779e3204a9e258b8"; - }; - beamDeps = [ poison_1_5_2 httpoison_0_8_3 ]; - - meta = { - description = ''Facebook messenger API client for Elixir''; - - }; - } // packageOverrides) - ) {}; - - messenger = messenger_0_0_2; - - meta_inspector_0_0_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "meta_inspector"; - version = "0.0.2"; - src = fetchHex { - pkg = "meta_inspector"; - version = "0.0.2"; - sha256 = - "60edc00c2af5ab30e2abebe5f40614421fde2861e147147b33ae54bf4beb180a"; - }; - beamDeps = [ poison_2_1_0 httpoison_0_8_3 ]; - - meta = { - description = ''HTTP Metadata inspector''; - license = stdenv.lib.licenses.mit; - }; - } // packageOverrides) - ) {}; - - meta_inspector = meta_inspector_0_0_2; - - metainvestigator_0_0_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, floki_0_8_1 }: - buildMix ({ - name = "metainvestigator"; - version = "0.0.3"; - src = fetchHex { - pkg = "metainvestigator"; - version = "0.0.3"; - sha256 = - "774b3973090491a9a342a68c5cf099c98581ae0f1b1d313a08a7d2030d541781"; - }; - beamDeps = [ floki_0_8_1 ]; - - meta = { - description = ''A library for web scraping, inspired by - MetaInspector''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/nekova/metainvestigator"; - }; - } // packageOverrides) - ) {}; - - metainvestigator = metainvestigator_0_0_3; - - meter_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, httpoison_0_8_3 }: - buildMix ({ - name = "meter"; - version = "0.1.0"; - src = fetchHex { - pkg = "meter"; - version = "0.1.0"; - sha256 = - "029f4f4a05b10c05b45c70671a353d780964759c3f4b90cf1531c02ef5466724"; - }; - beamDeps = [ httpoison_0_8_3 ]; - - meta = { - description = ''Track your elixir application on google - analytycs''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/carlo-colombo/meter"; - }; - } // packageOverrides) - ) {}; - - meter = meter_0_1_0; - - metrics_1_0_1 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "metrics"; - version = "1.0.1"; - src = fetchHex { - pkg = "metrics"; - version = "1.0.1"; - sha256 = - "69b09adddc4f74a40716ae54d140f93beb0fb8978d8636eaded0c31b6f099f16"; - }; - - meta = { - description = ''A generic interface to different metrics systems - in Erlang.''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/benoitc/erlang-metrics"; - }; - } // packageOverrides) - ) {}; - - metrics_1_1_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "metrics"; - version = "1.1.0"; - src = fetchHex { - pkg = "metrics"; - version = "1.1.0"; - sha256 = - "48bd4774cef5bd88680cf71c9db46acbe5a80f23072cb2a0a42e8f7d5bd33549"; - }; - - meta = { - description = ''A generic interface to different metrics systems - in Erlang.''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/benoitc/erlang-metrics"; - }; - } // packageOverrides) - ) {}; - - metrics_1_2_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "metrics"; - version = "1.2.0"; - src = fetchHex { - pkg = "metrics"; - version = "1.2.0"; - sha256 = - "c27c7786b8ad0c5f941956fc413f7f31a2e26ba72ebf2fb1396cf363b0b9e70b"; - }; - - meta = { - description = ''A generic interface to different metrics systems - in Erlang.''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/benoitc/erlang-metrics"; - }; - } // packageOverrides) - ) {}; - - metrics = metrics_1_2_0; - - metrix_0_2_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, logfmt_3_0_2 }: - buildMix ({ - name = "metrix"; - version = "0.2.0"; - src = fetchHex { - pkg = "metrix"; - version = "0.2.0"; - sha256 = - "544fbe90988d7ac1e828287b44d88166c8aa2738ec983b1578af7d51d7b63dd7"; - }; - beamDeps = [ logfmt_3_0_2 ]; - - meta = { - longDescription = ''Metrix is a library to log custom application - metrics, in a well-structured, human *and* - machine readable format, for use by downstream - log processing systems (like Librato, Reimann, - etc...)''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/rwdaigle/metrix"; - }; - } // packageOverrides) - ) {}; - - metrix = metrix_0_2_0; - - mex_0_0_5 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "mex"; - version = "0.0.5"; - src = fetchHex { - pkg = "mex"; - version = "0.0.5"; - sha256 = - "52765dc6f5d0b03dba9f08424b85cfbc96f873dfc769cdb6a26ac391ad3344e3"; - }; - - meta = { - description = ''Macro-expansion display helper for IEx.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/mrluc/mex"; - }; - } // packageOverrides) - ) {}; - - mex = mex_0_0_5; - - microformats2_0_0_5 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - httpotion_2_2_2, - floki_0_7_2 - }: - buildMix ({ - name = "microformats2"; - version = "0.0.5"; - src = fetchHex { - pkg = "microformats2"; - version = "0.0.5"; - sha256 = - "890ca1812738869aa65865339a730c5542949cac4b017b25fc276e81b37157b2"; - }; - beamDeps = [ httpotion_2_2_2 floki_0_7_2 ]; - - meta = { - description = ''A microformats2 parser - (http://microformats.org/wiki/microformats-2) for - Elixir''; - license = stdenv.lib.licenses.agpl3; - homepage = "https://github.com/ckruse/microformats2-elixir"; - }; - } // packageOverrides) - ) {}; - - microformats2 = microformats2_0_0_5; - - milkpotion_0_0_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - httpoison_0_8_3, - poison_2_1_0 - }: - buildMix ({ - name = "milkpotion"; - version = "0.0.2"; - src = fetchHex { - pkg = "milkpotion"; - version = "0.0.2"; - sha256 = - "1106589d5bdb3d65fd18ff997760b8c3ad9bca7744ae1a0b48b2995227f0c0fd"; - }; - beamDeps = [ httpoison_0_8_3 poison_2_1_0 ]; - - meta = { - description = ''milkpotion is an api wrapper for Remember the - Milk''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/croesnick/milkpotion.git"; - }; - } // packageOverrides) - ) {}; - - milkpotion = milkpotion_0_0_2; - - milliseconds_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "milliseconds"; - version = "0.0.1"; - src = fetchHex { - pkg = "milliseconds"; - version = "0.0.1"; - sha256 = - "6f82b9f47590e96ed90761d6eb331a9c11a40b68216d5e4867420899420035f0"; - }; - - meta = { - longDescription = '' Simple library to work with milliseconds. - Convert text to milliseconds: convert(\"2d\") - Convert milliseconds to text: convert(8640000) - Calculate future time: future_time(\"6hrs\") ''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/davebryson/elixir_milliseconds"; - }; - } // packageOverrides) - ) {}; - - milliseconds = milliseconds_0_0_1; - - mime_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "mime"; - version = "1.0.0"; - src = fetchHex { - pkg = "mime"; - version = "1.0.0"; - sha256 = - "069f07e17e67069195b747ed8b935c547a79adf32c4f8b4cae6dec7d3f1c805c"; - }; - - meta = { - description = ''A MIME type module for Elixir''; - license = stdenv.lib.licenses.apsl20; - homepage = "https://github.com/elixir-lang/mime"; - }; - } // packageOverrides) - ) {}; - - mime = mime_1_0_0; - - mime_types_0_1_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "mime_types"; - version = "0.1.1"; - src = fetchHex { - pkg = "mime_types"; - version = "0.1.1"; - sha256 = - "46b4f4a52deda3ac9fa48ae6e3582efb851d6c72de4a11e4dfcc7e386dab710b"; - }; - - meta = { - description = ''A toolbelt for working with MIME types in - Elixir.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/christhekeele/mime_types"; - }; - } // packageOverrides) - ) {}; - - mime_types = mime_types_0_1_1; - - mimerl_1_0_2 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "mimerl"; - version = "1.0.2"; - src = fetchHex { - pkg = "mimerl"; - version = "1.0.2"; - sha256 = - "7a4c8e1115a2732a67d7624e28cf6c9f30c66711a9e92928e745c255887ba465"; - }; - - meta = { - description = ''Library to handle mimetypes''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/benoitc/mimerl"; - }; - } // packageOverrides) - ) {}; - - mimerl_1_1_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "mimerl"; - version = "1.1.0"; - src = fetchHex { - pkg = "mimerl"; - version = "1.1.0"; - sha256 = - "def0f1922a5dcdeeee6e4f41139b364e7f0f40239774b528a0986b12bcb42ddc"; - }; - - meta = { - description = ''Library to handle mimetypes''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/benoitc/mimerl"; - }; - } // packageOverrides) - ) {}; - - mimerl = mimerl_1_1_0; - - mimetype_parser_0_1_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "mimetype_parser"; - version = "0.1.2"; - src = fetchHex { - pkg = "mimetype_parser"; - version = "0.1.2"; - sha256 = - "c495521cad6cf49fb79098e68e921c58955312df46c9c5aa5abab44224c2647d"; - }; - - meta = { - description = ''parse mimetypes''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/camshaft/mimetype_parser"; - }; - } // packageOverrides) - ) {}; - - mimetype_parser = mimetype_parser_0_1_2; - - mimex_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "mimex"; - version = "0.1.0"; - src = fetchHex { - pkg = "mimex"; - version = "0.1.0"; - sha256 = - "68858d5fb6a59780c3b94a445fd994856c3f1d0f3ed8dff6a95b6aa80027e4de"; - }; - - meta = { - description = ''MIME type utilities for Elixir.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/hex-sh/mimex"; - }; - } // packageOverrides) - ) {}; - - mimex = mimex_0_1_0; - - minmaxlist_0_0_6 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "minmaxlist"; - version = "0.0.6"; - src = fetchHex { - pkg = "minmaxlist"; - version = "0.0.6"; - sha256 = - "cc9bc50dc971c8c3743bcecdaca35330593d6466d911c656ba7d718836e68a57"; - }; - - meta = { - longDescription = ''Elixir library extending `Enum.min_by/2`, - `Enum.max_by/2` and `Enum.min_max_by/2` to - return a list of results instead of just one.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/seantanly/elixir-minmaxlist"; - }; - } // packageOverrides) - ) {}; - - minmaxlist = minmaxlist_0_0_6; - - misc_random_0_2_6 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "misc_random"; - version = "0.2.6"; - src = fetchHex { - pkg = "misc_random"; - version = "0.2.6"; - sha256 = - "4fe3db3bddcf55d93404fa9f5bf006800d54bfeb78bcf583376750d28ac0d7bc"; - }; - - meta = { - longDescription = ''This is a very thin wrapper around erlang`s - random:uniform method. It allows you to create - random strings or numbers.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/gutschilla/elixir-helper-random"; - }; - } // packageOverrides) - ) {}; - - misc_random = misc_random_0_2_6; - - mix_apidoc_0_2_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, poison_1_5_2 }: - buildMix ({ - name = "mix_apidoc"; - version = "0.2.0"; - src = fetchHex { - pkg = "mix_apidoc"; - version = "0.2.0"; - sha256 = - "0f6119dc530050b8344e62e82b450dcd8cdad9a370d39af17420d8e7299eb059"; - }; - beamDeps = [ poison_1_5_2 ]; - - meta = { - longDescription = ''A mix task that triggers apidoc to create - documentation for RESTful web APIs from inline - code annotations.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/sldab/mix_apidoc"; - }; - } // packageOverrides) - ) {}; - - mix_apidoc = mix_apidoc_0_2_0; - - mix_deps_tree_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "mix_deps_tree"; - version = "0.1.0"; - src = fetchHex { - pkg = "mix_deps_tree"; - version = "0.1.0"; - sha256 = - "de19ea3eebf578080263f25fdf6a248fdc460aa86e41d582cc0d0379329fa6b6"; - }; - - meta = { - description = ''Mix task to print dependency tree of an - application to a terminal''; - - homepage = "https://github.com/liveforeverx/mix_deps_tree"; - }; - } // packageOverrides) - ) {}; - - mix_deps_tree = mix_deps_tree_0_1_0; - - mix_erlang_tasks_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "mix_erlang_tasks"; - version = "0.1.0"; - src = fetchHex { - pkg = "mix_erlang_tasks"; - version = "0.1.0"; - sha256 = - "95d2839c422c482a70c08a8702da8242f86b773f8ab6e8602a4eb72da8da04ed"; - }; - - meta = { - longDescription = ''This project provides a few Mix tasks that - make it more convenient to use Mix as a build - tool and package manager when developing - applications in Erlang.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/alco/mix-erlang-tasks"; - }; - } // packageOverrides) - ) {}; - - mix_erlang_tasks = mix_erlang_tasks_0_1_0; - - mix_eunit_0_1_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "mix_eunit"; - version = "0.1.2"; - src = fetchHex { - pkg = "mix_eunit"; - version = "0.1.2"; - sha256 = - "910cd611635e845be3c57b2c6c0dac7af24c87055b3d289fe93d7df1dafaeb6c"; - }; - - meta = { - description = ''A mix task to run eunit tests, works for umbrella - projects''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/dantswain/mix_eunit"; - }; - } // packageOverrides) - ) {}; - - mix_eunit = mix_eunit_0_1_2; - - mix_info_0_7_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "mix_info"; - version = "0.7.2"; - src = fetchHex { - pkg = "mix_info"; - version = "0.7.2"; - sha256 = - "7b4430ea649bb0c978f3b761403c068b08d9781c3f325c3f0dc57c1b44f395a2"; - }; - - meta = { - longDescription = ''A mix task that counts directories, files, - lines of code, modules, functions etc and - displays the results.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/pskordilakis/mix_info"; - }; - } // packageOverrides) - ) {}; - - mix_info = mix_info_0_7_2; - - mix_test_watch_0_2_6 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, fs_0_9_2 }: - buildMix ({ - name = "mix_test_watch"; - version = "0.2.6"; - src = fetchHex { - pkg = "mix_test_watch"; - version = "0.2.6"; - sha256 = - "b7019e9a0eba42bc98f15be9c1402f23c2b0dab7b67e71bba8bc5b337b0ab273"; - }; - beamDeps = [ fs_0_9_2 ]; - - meta = { - description = ''Automatically run tests when files change''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/lpil/mix-test.watch"; - }; - } // packageOverrides) - ) {}; - - mix_test_watch = mix_test_watch_0_2_6; - - mixgraph_0_0_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - json_0_3_3, - httpotion_2_2_2 - }: - buildMix ({ - name = "mixgraph"; - version = "0.0.1"; - src = fetchHex { - pkg = "mixgraph"; - version = "0.0.1"; - sha256 = - "0c911c4e300d7e5196ff9d427b9d66d935d540309cb8a54a397641f7059f1700"; - }; - beamDeps = [ json_0_3_3 httpotion_2_2_2 ]; - - meta = { - description = ''Create an interactive dependency graph for any - hex package published in hex.pm''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/sivsushruth/mixgraph"; - }; - } // packageOverrides) - ) {}; - - mixgraph = mixgraph_0_0_1; - - mixpanel_0_0_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, exjsx_3_1_0 }: - buildMix ({ - name = "mixpanel"; - version = "0.0.3"; - src = fetchHex { - pkg = "mixpanel"; - version = "0.0.3"; - sha256 = - "7b81d80d3705e5d4451951984bac49d476e3c79131138e9ffb66538f9c51a56e"; - }; - beamDeps = [ exjsx_3_1_0 ]; - - meta = { - description = ''A client for the Mixpanel HTTP API. See - mixpanel.com.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/michihuber/mixpanel_ex"; - }; - } // packageOverrides) - ) {}; - - mixpanel = mixpanel_0_0_3; - - mixpanel_api_ex_0_8_3 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - httpoison_0_8_3 - }: - buildMix ({ - name = "mixpanel_api_ex"; - version = "0.8.3"; - src = fetchHex { - pkg = "mixpanel_api_ex"; - version = "0.8.3"; - sha256 = - "1ff5eb4aa333495a86868873deb8fcd04c5f2e6f2560d77ac6ccbe07e2e3d7b4"; - }; - beamDeps = [ poison_1_5_2 httpoison_0_8_3 ]; - - meta = { - description = ''Elixir client for the Mixpanel API.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/agevio/mixpanel_api_ex"; - }; - } // packageOverrides) - ) {}; - - mixpanel_api_ex = mixpanel_api_ex_0_8_3; - - mixpanel_data_client_0_0_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_3_1, - httpoison_0_8_3 - }: - buildMix ({ - name = "mixpanel_data_client"; - version = "0.0.2"; - src = fetchHex { - pkg = "mixpanel_data_client"; - version = "0.0.2"; - sha256 = - "7f3bbd608ae18153655f27bd50ea01ad85630d6c1cc6ab9ed336e95419f06c86"; - }; - beamDeps = [ poison_1_3_1 httpoison_0_8_3 ]; - - meta = { - description = ''Client library for interacting with the Mixpanel - Data API.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/jeregrine/mixpanel_data_client"; - }; - } // packageOverrides) - ) {}; - - mixpanel_data_client = mixpanel_data_client_0_0_2; - - mixunit_0_9_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "mixunit"; - version = "0.9.2"; - src = fetchHex { - pkg = "mixunit"; - version = "0.9.2"; - sha256 = - "2c0e66d10d479ec95c636d2de1db04cba03574282182af0df49c297230b22d43"; - }; - - meta = { - description = ''an eunit task for mix''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/talentdeficit/mixunit"; - }; - } // packageOverrides) - ) {}; - - mixunit = mixunit_0_9_2; - - mmExchangeRate_0_0_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - jsx_2_8_0, - httpotion_2_2_2 - }: - buildMix ({ - name = "mmExchangeRate"; - version = "0.0.1"; - src = fetchHex { - pkg = "mmExchangeRate"; - version = "0.0.1"; - sha256 = - "6daf6e74bf3ce8f9d7cc19b18b023d700201a847dde94a0eef1f263ce65efbac"; - }; - beamDeps = [ jsx_2_8_0 httpotion_2_2_2 ]; - - meta = { - longDescription = ''A simple exchange rate checker and calculator - based on Central Bank of Myanmar Api. ''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/Arkar-Aung/mmExchangeRate"; - }; - } // packageOverrides) - ) {}; - - mmExchangeRate = mmExchangeRate_0_0_1; - - mmath_0_2_0_alpha4 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "mmath"; - version = "0.2.0-alpha4"; - src = fetchHex { - pkg = "mmath"; - version = "0.2.0-alpha4"; - sha256 = - "a855fe72b1939659a2856b32c74e148ed6c1d58cfb6eea5a24787995d66c05d7"; - }; - compilePorts = true; - buildPlugins = [ pc ]; - - - meta = { - description = ''math library for metric sequences and binary - arrays.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/dalmatinerdb/mmath"; - }; - } // packageOverrides) - ) {}; - - mmath_0_2_0_alpha7 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "mmath"; - version = "0.2.0-alpha7"; - src = fetchHex { - pkg = "mmath"; - version = "0.2.0-alpha7"; - sha256 = - "b4d68cce7e243b4e16f7a93cbdb16605f00c469cd9ebf7aa58c8b3214f8f8868"; - }; - compilePorts = true; - buildPlugins = [ pc ]; - - - meta = { - description = ''math library for metric sequences and binary - arrays.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/dalmatinerdb/mmath"; - }; - } // packageOverrides) - ) {}; - - mmath = mmath_0_2_0_alpha7; - - mnemonex_1_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, the_fuzz_0_3_0 }: - buildMix ({ - name = "mnemonex"; - version = "1.1.0"; - src = fetchHex { - pkg = "mnemonex"; - version = "1.1.0"; - sha256 = - "e3b0bf58cdee4d18cdc324d3bb6f6241724e6d38b4fcb24fc04e2dae243339b9"; - }; - beamDeps = [ the_fuzz_0_3_0 ]; - - meta = { - description = ''mnemonicode encoder/decoder''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/mwmiller/mnemonex"; - }; - } // packageOverrides) - ) {}; - - mnemonex = mnemonex_1_1_0; - - mnemonic_slugs_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "mnemonic_slugs"; - version = "0.0.1"; - src = fetchHex { - pkg = "mnemonic_slugs"; - version = "0.0.1"; - sha256 = - "d5200aaf06da3f9f307b58464f5eca2ed1a0dc379a12fe4f42444bb1e30a4bd8"; - }; - - meta = { - description = ''MnemonicSlugs is an Elixir library for generating - memorable slugs.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/devshane/mnemonic_slugs"; - }; - } // packageOverrides) - ) {}; - - mnemonic_slugs = mnemonic_slugs_0_0_1; - - mochiweb_2_12_2 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "mochiweb"; - version = "2.12.2"; - src = fetchHex { - pkg = "mochiweb"; - version = "2.12.2"; - sha256 = - "d3e681d4054b74a96cf2efcd09e94157ab83a5f55ddc4ce69f90b8144673bd7a"; - }; - - meta = { - description = ''MochiWeb is an Erlang library for building - lightweight HTTP servers. ''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/mochi/mochiweb"; - }; - } // packageOverrides) - ) {}; - - mochiweb = mochiweb_2_12_2; - - mochiweb_html_2_15_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "mochiweb_html"; - version = "2.15.0"; - src = fetchHex { - pkg = "mochiweb_html"; - version = "2.15.0"; - sha256 = - "7651a4ef29bd6d69819b37b6aa12c7616c5cf75e67ccd849cfb499e2bbbf0ce6"; - }; - - meta = { - description = ''Mochiweb HTML parser''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/philss/mochiweb_html"; - }; - } // packageOverrides) - ) {}; - - mochiweb_html = mochiweb_html_2_15_0; - - mock_0_1_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, meck_0_8_4 }: - buildMix ({ - name = "mock"; - version = "0.1.3"; - src = fetchHex { - pkg = "mock"; - version = "0.1.3"; - sha256 = - "bf7cf50d528394d870cdecac4920ab719cec0af98eff95759b57cab0e5ee143e"; - }; - beamDeps = [ meck_0_8_4 ]; - - meta = { - longDescription = ''A mocking libary for the Elixir language. We - use the Erlang meck library to provide module - mocking functionality for Elixir. It uses macros - in Elixir to expose the functionality in a - convenient manner for integrating in Elixir - tests.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/jjh42/mock"; - }; - } // packageOverrides) - ) {}; - - mock = mock_0_1_3; - - module_mocker_0_2_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "module_mocker"; - version = "0.2.0"; - src = fetchHex { - pkg = "module_mocker"; - version = "0.2.0"; - sha256 = - "ce8aa59f0c58ce7d333a1853f6a3a106fe0cbbe79f6f9aeb72370d66ed454f5b"; - }; - - meta = { - longDescription = ''ModuleMocker allows to use different module - in development and test environment. It allows - convention to mock module for test''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/rohanpujaris/module_mocker"; - }; - } // packageOverrides) - ) {}; - - module_mocker = module_mocker_0_2_0; - - mogrify_0_3_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "mogrify"; - version = "0.3.0"; - src = fetchHex { - pkg = "mogrify"; - version = "0.3.0"; - sha256 = - "490631d662a0303d468b48868929df99cc62081b5711c3a6b3eb7b0b2dac21e5"; - }; - - meta = { - description = ''ImageMagick command line wrapper.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/route/mogrify"; - }; - } // packageOverrides) - ) {}; - - mogrify = mogrify_0_3_0; - - mojoauth_1_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, timex_1_0_2 }: - buildMix ({ - name = "mojoauth"; - version = "1.0.2"; - src = fetchHex { - pkg = "mojoauth"; - version = "1.0.2"; - sha256 = - "72d8b3fdff6d6571d7dcc9ad46b249823c84e0321920a0e9d6f39ee5f9fc2f23"; - }; - beamDeps = [ timex_1_0_2 ]; - - meta = { - longDescription = ''MojoAuth is a set of standard approaches to - cross-app authentication based on HMAC.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/adhearsion/mojo-auth.ex"; - }; - } // packageOverrides) - ) {}; - - mojoauth = mojoauth_1_0_2; - - moment_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "moment"; - version = "0.1.0"; - src = fetchHex { - pkg = "moment"; - version = "0.1.0"; - sha256 = - "0cc098c8ba88f768ffd41e4bc4bb45b559d49361a2f8f7a39c686020da3f1842"; - }; - - meta = { - description = ''Parse, validate, manipulate, and display dates in - Elixir.''; - license = stdenv.lib.licenses.apsl20; - homepage = "https://github.com/atabary/moment"; - }; - } // packageOverrides) - ) {}; - - moment = moment_0_1_0; - - mon_handler_1_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, dialyze_0_2_1 }: - buildMix ({ - name = "mon_handler"; - version = "1.0.2"; - src = fetchHex { - pkg = "mon_handler"; - version = "1.0.2"; - sha256 = - "d18942f95750b94e3da1d9fca7a2ea4b1b1d27c017feff76cb109b29bb308f58"; - }; - beamDeps = [ dialyze_0_2_1 ]; - - meta = { - longDescription = ''A minimal GenServer that monitors a given - GenEvent handler. This server will handle exits - of the Handler and attempt to re-add it to the - manager when unexpected exits occur. Exits for - :normal, :shutdown or :swapped reasons will not - attempt a re-add to the manager.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/tattdcodemonkey/mon_handler"; - }; - } // packageOverrides) - ) {}; - - mon_handler = mon_handler_1_0_2; - - monad_1_0_5 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "monad"; - version = "1.0.5"; - src = fetchHex { - pkg = "monad"; - version = "1.0.5"; - sha256 = - "d8ebe20971160e96bd6cdf11b5e8b5c24b70fddde3d198e5f7c3b5ebfbc78d6e"; - }; - - meta = { - description = ''Monads and do-syntax for Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/rmies/monad"; - }; - } // packageOverrides) - ) {}; - - monad = monad_1_0_5; - - monadex_1_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "monadex"; - version = "1.0.2"; - src = fetchHex { - pkg = "monadex"; - version = "1.0.2"; - sha256 = - "968784f2789fcb30b118399e51736f2265ca6b2823cc8fcabd73d6e4ac23e082"; - }; - - meta = { - description = ''Improve pipelines with monads.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/rob-brown/MonadEx"; - }; - } // packageOverrides) - ) {}; - - monadex = monadex_1_0_2; - - mondo_0_1_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - plug_1_1_5, - httpoison_0_8_3 - }: - buildMix ({ - name = "mondo"; - version = "0.1.0"; - src = fetchHex { - pkg = "mondo"; - version = "0.1.0"; - sha256 = - "f557216314e098137f5140f1194e2eba7a2a030d78affc23ea5943f586ab1095"; - }; - beamDeps = [ poison_2_1_0 plug_1_1_5 httpoison_0_8_3 ]; - - meta = { - description = ''An Elixir client for the Mondo API.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/stevedomin/mondo_elixir"; - }; - } // packageOverrides) - ) {}; - - mondo = mondo_0_1_0; - - mongodb_0_1_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poolboy_1_5_1, - connection_1_0_2 - }: - buildMix ({ - name = "mongodb"; - version = "0.1.1"; - src = fetchHex { - pkg = "mongodb"; - version = "0.1.1"; - sha256 = - "714f0543288c42bc42bf3ee6ac5f52db3fbc0b152610aa2536b51c244652abe0"; - }; - beamDeps = [ poolboy_1_5_1 connection_1_0_2 ]; - - meta = { - description = ''MongoDB driver for Elixir.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/ericmj/mongodb"; - }; - } // packageOverrides) - ) {}; - - mongodb = mongodb_0_1_1; - - monk_0_1_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "monk"; - version = "0.1.3"; - src = fetchHex { - pkg = "monk"; - version = "0.1.3"; - sha256 = - "35e6a2eea7090612fa25a003fb95ac120f27087f203445bbc33ac18682ddd724"; - }; - - meta = { - description = ''Monk helps to distinguish good from evil with an - simple ok/error monad''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/niahoo/monk"; - }; - } // packageOverrides) - ) {}; - - monk = monk_0_1_3; - - morph_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "morph"; - version = "0.1.0"; - src = fetchHex { - pkg = "morph"; - version = "0.1.0"; - sha256 = - "a20a6bfda56cb8f2d9904e2ea4b2b0a4159ab2692181919f6eb4fe9f52abf3f2"; - }; - - meta = { - description = ''Lightweight string transformations for Elixir.''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/cmoncrief/elixir-morph"; - }; - } // packageOverrides) - ) {}; - - morph = morph_0_1_0; - - mortgage_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "mortgage"; - version = "0.0.2"; - src = fetchHex { - pkg = "mortgage"; - version = "0.0.2"; - sha256 = - "fbd6e7dcf2d8213b4b1ab3b00904482a6aadf32625245bdc02eb76b7cd265173"; - }; - - meta = { - description = ''A set of functions for working with mortgages and - mortgage notes.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/geolessel/mortgage"; - }; - } // packageOverrides) - ) {}; - - mortgage = mortgage_0_0_2; - - moxie_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "moxie"; - version = "0.0.1"; - src = fetchHex { - pkg = "moxie"; - version = "0.0.1"; - sha256 = - "193e18ce0888f01fe2b43d0dcf79af5f48e50eba3a73609703cb4c04bea2ae46"; - }; - - meta = { - license = stdenv.lib.licenses.free; - homepage = "https://github.com/molossus/moxie"; - }; - } // packageOverrides) - ) {}; - - moxie = moxie_0_0_1; - - mpinyin_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "mpinyin"; - version = "0.0.2"; - src = fetchHex { - pkg = "mpinyin"; - version = "0.0.2"; - sha256 = - "1de0911391e6a76a91166f5210d4254165692ea28c00d4f153763d0a5757cb92"; - }; - - meta = { - description = ''Pinyin module for Elixir. ''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/Hor/mpinyin"; - }; - } // packageOverrides) - ) {}; - - mpinyin = mpinyin_0_0_2; - - mpower_1_0_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "mpower"; - version = "1.0.1"; - src = fetchHex { - pkg = "mpower"; - version = "1.0.1"; - sha256 = - "d08a6ec51f1da683507ed08d0787a726eb3e56dd16084fffc279a5391fa02014"; - }; - beamDeps = [ poison_2_1_0 httpoison_0_8_3 ]; - - meta = { - description = ''Elixir wrapper for MPowerPayments API''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/abakhi/mpower"; - }; - } // packageOverrides) - ) {}; - - mpower = mpower_1_0_1; - - mr_roboto_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, httpoison_0_8_3 }: - buildMix ({ - name = "mr_roboto"; - version = "1.0.0"; - src = fetchHex { - pkg = "mr_roboto"; - version = "1.0.0"; - sha256 = - "80c5af8f07bd85f28b60e350a5cfc92d1a5c2bcde9a0c3d93fcaa378a033a371"; - }; - beamDeps = [ httpoison_0_8_3 ]; - - meta = { - description = ''A simple robots.txt service''; - - }; - } // packageOverrides) - ) {}; - - mr_roboto = mr_roboto_1_0_0; - - msgpack_0_5_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "msgpack"; - version = "0.5.0"; - src = fetchHex { - pkg = "msgpack"; - version = "0.5.0"; - sha256 = - "520ae767b3c3c0796d2913c92f463bc8b4dee091880734f5b99a90921e18b704"; - }; - - meta = { - description = ''MessagePack serializer/deserializer''; - license = stdenv.lib.licenses.apsl20; - homepage = "http://msgpack.org"; - }; - } // packageOverrides) - ) {}; - - msgpack = msgpack_0_5_0; - - msgpax_0_8_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "msgpax"; - version = "0.8.2"; - src = fetchHex { - pkg = "msgpax"; - version = "0.8.2"; - sha256 = - "aa0baa382383160d90275a1b5d8f72c457a2feed89cbb1bd080a5c3821389507"; - }; - - meta = { - longDescription = ''This library provides an API for serializing - and de-serializing Elixir terms using the - MessagePack format''; - license = stdenv.lib.licenses.isc; - homepage = "https://github.com/lexmag/msgpax"; - }; - } // packageOverrides) - ) {}; - - msgpax = msgpax_0_8_2; - - mtx_1_0_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "mtx"; - version = "1.0.0"; - src = fetchHex { - pkg = "mtx"; - version = "1.0.0"; - sha256 = - "3bdcb209fe3cdfc5a6b5b95f619ecd123b7ee1d9203ace2178c8ff73be5bb90f"; - }; - - meta = { - description = ''Metrics Client''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/synrc/mtx"; - }; - } // packageOverrides) - ) {}; - - mtx = mtx_1_0_0; - - multidef_0_2_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "multidef"; - version = "0.2.1"; - src = fetchHex { - pkg = "multidef"; - version = "0.2.1"; - sha256 = - "719dfdb9206ea34fc7b49c282b30adab752f9d1efb22678907d54fa0b54c50c6"; - }; - - meta = { - longDescription = ''Lets you define multiple heads for the same - function: defmodule Test do import MultiDef mdef - fred do { :init, val } -> fred {:double, val} { - :double, val } -> IO.puts(val*2) a, b -> a+b end - end IO.inspect Test.fred 1, 2 #=> 3 IO.inspect - Test.fred { :init, 4 } #=> 8 ''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/pragdave/mdef"; - }; - } // packageOverrides) - ) {}; - - multidef = multidef_0_2_1; - - multiset_0_0_4 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "multiset"; - version = "0.0.4"; - src = fetchHex { - pkg = "multiset"; - version = "0.0.4"; - sha256 = - "f713b5102d17963fc516e0017725d716dade0b1fec979f0e3a53b8d203748c45"; - }; - - meta = { - description = ''Multisets for Elixir''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/hilverd/multiset-elixir"; - }; - } // packageOverrides) - ) {}; - - multiset = multiset_0_0_4; - - murdoch_0_0_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - httpoison_0_8_3, - goth_0_0_3 - }: - buildMix ({ - name = "murdoch"; - version = "0.0.1"; - src = fetchHex { - pkg = "murdoch"; - version = "0.0.1"; - sha256 = - "77ec44ca76d6b4a14df7222104a36cb29ed25f7d52fb3ffe30807ddc82a2d9ad"; - }; - beamDeps = [ poison_1_5_2 httpoison_0_8_3 goth_0_0_3 ]; - - meta = { - longDescription = ''A library for interacting with Google Cloud - Pub/Sub (PubSub). Supports both publication and - pull subscription''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/peburrows/murdoch"; - }; - } // packageOverrides) - ) {}; - - murdoch = murdoch_0_0_1; - - murmur_0_2_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "murmur"; - version = "0.2.1"; - src = fetchHex { - pkg = "murmur"; - version = "0.2.1"; - sha256 = - "7e38b2f136d4e8039abb88f6cbdf50c939408d3819be4b18b639a968ee9c2bce"; - }; - - meta = { - longDescription = ''Murmur is a pure Elixir implementation of the - non-cryptographic hash Murmur3. It aims to - implement the x86_32bit, x86_128bit and - x64_128bit variants.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/gmcabrita/murmur"; - }; - } // packageOverrides) - ) {}; - - murmur_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "murmur"; - version = "1.0.0"; - src = fetchHex { - pkg = "murmur"; - version = "1.0.0"; - sha256 = - "5e81af1fe3c7a166830e5a695e2f2253a5255888c2f510d206d103914b4e28da"; - }; - - meta = { - longDescription = ''Murmur is a pure Elixir implementation of the - non-cryptographic hash Murmur3. It aims to - implement the x86_32bit, x86_128bit and - x64_128bit variants.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/gmcabrita/murmur"; - }; - } // packageOverrides) - ) {}; - - murmur = murmur_1_0_0; - - mustache_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "mustache"; - version = "0.0.2"; - src = fetchHex { - pkg = "mustache"; - version = "0.0.2"; - sha256 = - "0d91f0a6221f482e736987c59032e84f6bade6ae9179e595592e2cc0b728b441"; - }; - - meta = { - description = ''Mustache templates for Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/schultyy/Mustache.ex"; - }; - } // packageOverrides) - ) {}; - - mustache = mustache_0_0_2; - - mutant_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "mutant"; - version = "0.0.2"; - src = fetchHex { - pkg = "mutant"; - version = "0.0.2"; - sha256 = - "c875062e082242b79c85356993ad3cfd7d550392d34fc6da23a132495b0dcb6f"; - }; - - meta = { - description = ''Now you can create mutable structs, use this with - care and only as a last resort''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/hackersguildco/Mutant"; - }; - } // packageOverrides) - ) {}; - - mutant = mutant_0_0_2; - - mysql_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "mysql"; - version = "1.0.0"; - src = fetchHex { - pkg = "mysql"; - version = "1.0.0"; - sha256 = - "34b8e9252e150d329798a0d7f7054f40c08703ccdd7e37dfc5116fe388513251"; - }; - - meta = { - description = ''MySQL/OTP – MySQL driver for Erlang/OTP''; - license = stdenv.lib.licenses.free; - homepage = "https://github.com/mysql-otp/mysql-otp"; - }; - } // packageOverrides) - ) {}; - - mysql = mysql_1_0_0; - - mysqlex_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, mysql_1_0_0 }: - buildMix ({ - name = "mysqlex"; - version = "0.0.1"; - src = fetchHex { - pkg = "mysqlex"; - version = "0.0.1"; - sha256 = - "5df9c80e9ff9a61fe9ddb4c8883963686f66e21168b64acfa55b14c50e9305ee"; - }; - beamDeps = [ mysql_1_0_0 ]; - - meta = { - longDescription = ''An Ecto-compatible wrapper around the - mysql-otp library. - https://github.com/mysql-otp/mysql-otp''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/tjheeta/mysqlex"; - }; - } // packageOverrides) - ) {}; - - mysqlex = mysqlex_0_0_1; - - n2o_2_3_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "n2o"; - version = "2.3.0"; - src = fetchHex { - pkg = "n2o"; - version = "2.3.0"; - sha256 = - "fca4f0a259fda332784d6d7948f8aadec5fb6a7695d5ac79b849b0ae547fb7b8"; - }; - - meta = { - description = ''N2O Application Server''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/synrc/n2o"; - }; - } // packageOverrides) - ) {}; - - n2o = n2o_2_3_0; - - nadia_0_4_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - httpoison_0_8_3 - }: - buildMix ({ - name = "nadia"; - version = "0.4.0"; - src = fetchHex { - pkg = "nadia"; - version = "0.4.0"; - sha256 = - "e76217333ad6d02ec971bfa781e70268285fc417aebb486318e0584affccb08d"; - }; - beamDeps = [ poison_1_5_2 httpoison_0_8_3 ]; - - meta = { - description = ''Telegram Bot API Wrapper written in Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/zhyu/nadia"; - }; - } // packageOverrides) - ) {}; - - nadia = nadia_0_4_0; - - naive_bayes_0_1_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "naive_bayes"; - version = "0.1.3"; - src = fetchHex { - pkg = "naive_bayes"; - version = "0.1.3"; - sha256 = - "4b65f199852dcb95ba483b7eeae0afed36931418854aadf6b8235197a985d29e"; - }; - - meta = { - description = ''An Elixir implementation of Naive Bayes''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/ashleyw/naive_bayes"; - }; - } // packageOverrides) - ) {}; - - naive_bayes = naive_bayes_0_1_3; - - named_args_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "named_args"; - version = "0.1.0"; - src = fetchHex { - pkg = "named_args"; - version = "0.1.0"; - sha256 = - "d90285d6fab53c66762e6b3cec655d79df24251e8ed277faa4b308d6f2789c1e"; - }; - - meta = { - description = ''Ensures default maps and keyword lists have the - defaults specified.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/mgwidmann/named_args"; - }; - } // packageOverrides) - ) {}; - - named_args = named_args_0_1_0; - - narp_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "narp"; - version = "0.0.1"; - src = fetchHex { - pkg = "narp"; - version = "0.0.1"; - sha256 = - "90800be330ed49563b24d891a578678865ce108cd77fa2427e09dbb6b1bac737"; - }; - - meta = { - description = ''Narp is an easy and flexible way to authorize - function calls in elixir.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/faber-lotto/narp"; - }; - } // packageOverrides) - ) {}; - - narp = narp_0_0_1; - - nat_set_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "nat_set"; - version = "0.0.1"; - src = fetchHex { - pkg = "nat_set"; - version = "0.0.1"; - sha256 = - "cc6ed65c754153d7c98c9825370780831cfbe638d162cb4ae2178eadcdd00611"; - }; - - meta = { - description = ''Represent sets of natural numbers compactly in - Elixir using bitwise operations''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/hilverd/nat-set-elixir"; - }; - } // packageOverrides) - ) {}; - - nat_set = nat_set_0_0_1; - - nativegen_0_4_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "nativegen"; - version = "0.4.1"; - src = fetchHex { - pkg = "nativegen"; - version = "0.4.1"; - sha256 = - "54c36ca3c0333f04b84f8b15fa028fcecfe77614954c78e87b22ed56e977f46f"; - }; - - meta = { - description = ''Accessible REST API code generator for native - app.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/yoavlt/nativegen"; - }; - } // packageOverrides) - ) {}; - - nativegen = nativegen_0_4_1; - - nats_0_0_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poolboy_1_5_1, - json_0_3_3 - }: - buildMix ({ - name = "nats"; - version = "0.0.1"; - src = fetchHex { - pkg = "nats"; - version = "0.0.1"; - sha256 = - "5568e91f56f65388ad6cb92ddbd70cec5227dadea9d12ec558e93bfe71c9bf78"; - }; - beamDeps = [ poolboy_1_5_1 json_0_3_3 ]; - - meta = { - description = ''A NATS client written in elixir supporting - pub/sub for microservices''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/aforward/elixir_nats"; - }; - } // packageOverrides) - ) {}; - - nats = nats_0_0_1; - - nats_msg_0_4_1 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "nats_msg"; - version = "0.4.1"; - src = fetchHex { - pkg = "nats_msg"; - version = "0.4.1"; - sha256 = - "8e21a78bf2ae76d7702bcc03eb87bdddac1b99edebfc99db98e8e94a7a5361c4"; - }; - - meta = { - description = ''Pure Erlang NATS Protocol Message - Encoder/Decoder''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/yuce/nats_msg"; - }; - } // packageOverrides) - ) {}; - - nats_msg = nats_msg_0_4_1; - - natsio_0_1_4 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "natsio"; - version = "0.1.4"; - src = fetchHex { - pkg = "natsio"; - version = "0.1.4"; - sha256 = - "3ed391e3e5f494828da2cb4949e661df782004cfe8273b9f1685ba4bc858187e"; - }; - - meta = { - description = ''NATS framework for Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/nats-io/elixir-nats"; - }; - } // packageOverrides) - ) {}; - - natsio = natsio_0_1_4; - - natural_sort_0_3_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "natural_sort"; - version = "0.3.0"; - src = fetchHex { - pkg = "natural_sort"; - version = "0.3.0"; - sha256 = - "6c3476edf395c487a8b55d104458e0f029ca2adb7a0373d12a7a08643f7e7172"; - }; - - meta = { - description = ''Sort a list of strings containing numbers in a - natural manner. ''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/DanCouper/natural_sort"; - }; - } // packageOverrides) - ) {}; - - natural_sort = natural_sort_0_3_0; - - navigation_history_0_2_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, plug_1_1_5 }: - buildMix ({ - name = "navigation_history"; - version = "0.2.0"; - src = fetchHex { - pkg = "navigation_history"; - version = "0.2.0"; - sha256 = - "9fbddedd831930c3f2e784c53442558d90d68040f9921dfa9441da63d6b8dacc"; - }; - beamDeps = [ plug_1_1_5 ]; - - meta = { - description = ''Navigation history tracking plug''; - license = stdenv.lib.licenses.mit; - homepage = - "https://github.com/tuvistavie/plug-navigation-history"; - }; - } // packageOverrides) - ) {}; - - navigation_history = navigation_history_0_2_0; - - navigation_tree_0_4_4 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "navigation_tree"; - version = "0.4.4"; - src = fetchHex { - pkg = "navigation_tree"; - version = "0.4.4"; - sha256 = - "a4e6aad3224ad9c463a1ac0412463a18ac71b7a78ea16303ad72f43f1fb217c6"; - }; - - meta = { - longDescription = ''A navigation tree representation with helpers - to generate HTML out of it - depending of - userroles. Also creates nice HTML navbars for - Bootstrap. Implemented as Agent to hold config - state.''; - license = stdenv.lib.licenses.mit; - homepage = - "https://github.com/gutschilla/elixir-navigation-tree"; - }; - } // packageOverrides) - ) {}; - - navigation_tree = navigation_tree_0_4_4; - - ndc_ex_sdk_0_2_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - timex_2_1_6, - httpotion_2_2_2, - ibrowse_4_2_2, - pipe_0_0_2, - xml_builder_0_0_8 - }: - buildMix ({ - name = "ndc_ex_sdk"; - version = "0.2.1"; - src = fetchHex { - pkg = "ndc_ex_sdk"; - version = "0.2.1"; - sha256 = - "2d17a23afbbe4f348abb6c1e9fb787ff609ba678828f2cd41dedb6a79b9c8232"; - }; - beamDeps = [ - timex_2_1_6 - httpotion_2_2_2 - ibrowse_4_2_2 - pipe_0_0_2 - xml_builder_0_0_8 - ]; - - meta = { - longDescription = ''This is an Elixir package that wrapps any - NDC-compliant API. It`s host-agnostic and quite - flexible-through-configuration so that it can - reach NDC hosts with a certain flexibility''; - license = stdenv.lib.licenses.free; - }; - } // packageOverrides) - ) {}; - - ndc_ex_sdk = ndc_ex_sdk_0_2_1; - - neat_ex_1_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, json_0_3_3 }: - buildMix ({ - name = "neat_ex"; - version = "1.1.0"; - src = fetchHex { - pkg = "neat_ex"; - version = "1.1.0"; - sha256 = - "42d08b8c1bb5245d19864f683df77354ee466b285bac48abed3dd3471a738b21"; - }; - beamDeps = [ json_0_3_3 ]; - - meta = { - longDescription = ''This project provides the means to define, - simulate, and serialize - Artificial-Neural-Networks (ANNs), as well as - the means to develop them through use of the - Neuro-Evolution of Augmenting Toplogies (NEAT) - algorithm created by Dr. Kenneth Stanley. - Neuro-Evolution, unlike back-propogation, easily - allows the usage of recurrent neural networks - instead of just feed-forward networks, and - fitness functions instead of just training data. - Additionally, since NEAT augments topologies, - all the engine needs to start is the - input/output layout, and a fitness function.''; - license = stdenv.lib.licenses.asl20; - }; - } // packageOverrides) - ) {}; - - neat_ex = neat_ex_1_1_0; - - nectar_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "nectar"; - version = "0.0.1"; - src = fetchHex { - pkg = "nectar"; - version = "0.0.1"; - sha256 = - "dffc5f1c68c83d9eb83ca1c8868d923beaccfdf36ae2e5122dc7bc8edd5665f5"; - }; - - meta = { - description = ''Placeholder package for nectar ecommerce''; - license = stdenv.lib.licenses.mit; - }; - } // packageOverrides) - ) {}; - - nectar = nectar_0_0_1; - - nerves_io_neopixel_0_2_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "nerves_io_neopixel"; - version = "0.2.0"; - src = fetchHex { - pkg = "nerves_io_neopixel"; - version = "0.2.0"; - sha256 = - "662ca0af01330399eba9aff9806c086027ec5b3a2e235af4cd909282a6d09afa"; - }; - - meta = { - description = ''Drive WS2812B \"NeoPixel\" RGB LED strips from a - Raspberry Pi using Elixir.''; - license = with stdenv.lib.licenses; [ mit bsd2 ]; - homepage = "https://github.com/GregMefford/nerves_io_neopixel"; - }; - } // packageOverrides) - ) {}; - - nerves_io_neopixel = nerves_io_neopixel_0_2_0; - - nerves_system_0_1_4 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - porcelain_2_0_1, - httpoison_0_8_3 - }: - buildMix ({ - name = "nerves_system"; - version = "0.1.4"; - src = fetchHex { - pkg = "nerves_system"; - version = "0.1.4"; - sha256 = - "2ad32ff5a6d9a827fb89f93a9c0626add1c72ffaf9068f3cea94fa5fd0eff591"; - }; - beamDeps = [ porcelain_2_0_1 httpoison_0_8_3 ]; - - meta = { - longDescription = ''Elixir compilers and scripts for building - Nerves Systems. For useable system - configurations see nerves_system_*''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/nerves-project/nerves_system"; - }; - } // packageOverrides) - ) {}; - - nerves_system = nerves_system_0_1_4; - - nerves_system_br_0_5_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "nerves_system_br"; - version = "0.5.2"; - src = fetchHex { - pkg = "nerves_system_br"; - version = "0.5.2"; - sha256 = - "43747294af52161eb7d58269a18d1927d7fe66185047fbfae204938d9ebe56c3"; - }; - - meta = { - description = ''Nerves System BR - Buildroot based build platform - for Nerves Systems''; - license = with stdenv.lib.licenses; [ asl20 free ]; - homepage = "https://github.com/nerves-project/nerves_system_br"; - }; - } // packageOverrides) - ) {}; - - nerves_system_br = nerves_system_br_0_5_2; - - nerves_toolchain_0_6_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, httpoison_0_8_3 }: - buildMix ({ - name = "nerves_toolchain"; - version = "0.6.2"; - src = fetchHex { - pkg = "nerves_toolchain"; - version = "0.6.2"; - sha256 = - "0e2c841389de2b3a9d527dee288e5a8d01883cea424edf951e70e7d9855f45f1"; - }; - beamDeps = [ httpoison_0_8_3 ]; - - meta = { - longDescription = ''Elixir compilers and scripts for building - Nerves Toolchains. For useable toolchain - configurations see nerves_toolchain_*''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/nerves-project/nerves_toolchain"; - }; - } // packageOverrides) - ) {}; - - nerves_toolchain = nerves_toolchain_0_6_2; - - nerves_uart_0_0_6 = callPackage - ( - { - buildMix, packageOverrides ? {}, fetchHex, elixir_make_0_1_0 - }: - buildMix ({ - name = "nerves_uart"; - version = "0.0.6"; - src = fetchHex { - pkg = "nerves_uart"; - version = "0.0.6"; - sha256 = - "1de94781598204b33f21ac27346390421f377c18b9503c86de60265b37573768"; - }; - beamDeps = [ elixir_make_0_1_0 ]; - - meta = { - description = ''Discover and use UARTs and serial ports in - Elixir.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/nerves-project/nerves_uart"; - }; - } // packageOverrides) - ) {}; - - nerves_uart = nerves_uart_0_0_6; - - nest_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "nest"; - version = "0.0.1"; - src = fetchHex { - pkg = "nest"; - version = "0.0.1"; - sha256 = - "4092651c14022a285eb4ffb8b6e9c3d6c5937729644fcc88b43f74324bc3bac3"; - }; - - meta = { - longDescription = ''A library for using the Nest API, allowing - integration with Nest Thermostats and other Nest - devices.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/adamzaninovich/nest"; - }; - } // packageOverrides) - ) {}; - - nest = nest_0_0_1; - - netrc_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "netrc"; - version = "0.0.2"; - src = fetchHex { - pkg = "netrc"; - version = "0.0.2"; - sha256 = - "a82b1702d8702a51b17e1756261b316ae3a72ac07bbf04e3a1258cc1210f6000"; - }; - - meta = { - description = ''Read netrc files''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/ma2gedev/netrcex"; - }; - } // packageOverrides) - ) {}; - - netrc = netrc_0_0_2; - - netstrings_2_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "netstrings"; - version = "2.0.1"; - src = fetchHex { - pkg = "netstrings"; - version = "2.0.1"; - sha256 = - "f6a3727dba6ae5aa3371ffddf7adf6aaf46bf387e84873f65152083ecf821845"; - }; - - meta = { - description = ''Netstrings implementaton''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/mwmiller/netstrings_ex"; - }; - } // packageOverrides) - ) {}; - - netstrings = netstrings_2_0_1; - - neural_net_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "neural_net"; - version = "1.0.0"; - src = fetchHex { - pkg = "neural_net"; - version = "1.0.0"; - sha256 = - "164cead198d6f8e2ba396346c4c4f8ec8c5b6e6ae00d6915eec902c436779239"; - }; - - meta = { - longDescription = ''NeuralNet is an A.I. library that allows for - the construction and training of complex - recurrent neural networks. Architectures such as - LSTM or GRU can be specified in under 20 lines - of code. Any neural network that can be built - with the NeuralNet DSL can be trainined with - automatically implemented BPTT (back-propagation - through time).''; - license = stdenv.lib.licenses.asl20; - }; - } // packageOverrides) - ) {}; - - neural_net = neural_net_1_0_0; - - neural_network_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "neural_network"; - version = "0.1.0"; - src = fetchHex { - pkg = "neural_network"; - version = "0.1.0"; - sha256 = - "80e84eaf4e0ff5455651c6c7cef484b9eefd60d6bd8e59606eb72a42cf18587c"; - }; - - meta = { - longDescription = ''A neural network made up of layers of neurons - connected to each other to form a relationship - allowing it to learn.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/kblake/neural-net-elixir"; - }; - } // packageOverrides) - ) {}; - - neural_network = neural_network_0_1_0; - - news_0_3_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "news"; - version = "0.3.0"; - src = fetchHex { - pkg = "news"; - version = "0.3.0"; - sha256 = - "b8759a3cb0bb40e86d5a5ea65b911a066da4ec197b097be88fb67f6358838124"; - }; - - meta = { - description = ''Publish elixir and erlang new weekly''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/zhongwencool/news"; - }; - } // packageOverrides) - ) {}; - - news = news_0_3_0; - - ngram_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "ngram"; - version = "0.0.1"; - src = fetchHex { - pkg = "ngram"; - version = "0.0.1"; - sha256 = - "13185be68166d8314ae63f70eceb58a4e00b441d3294633450d4f8a7c565e218"; - }; - - meta = { - description = ''n-gram tokenization and distance calculations''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/ardcore/ngram"; - }; - } // packageOverrides) - ) {}; - - ngram = ngram_0_0_1; - - nile_0_1_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "nile"; - version = "0.1.3"; - src = fetchHex { - pkg = "nile"; - version = "0.1.3"; - sha256 = - "73a2c8be8507bb39de74eb3fa5ae40e3c40cabef30cd884f67ab6d3400a7bea4"; - }; - - meta = { - description = ''Elixir stream extensions''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/camshaft/nile"; - }; - } // packageOverrides) - ) {}; - - nile = nile_0_1_3; - - ninjaproxies_0_2_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - httpoison_0_8_3 - }: - buildMix ({ - name = "ninjaproxies"; - version = "0.2.0"; - src = fetchHex { - pkg = "ninjaproxies"; - version = "0.2.0"; - sha256 = - "5524329d00944690b362d30fef9c4032c03c401cc44d0ad9e98e147f5792fade"; - }; - beamDeps = [ poison_1_5_2 httpoison_0_8_3 ]; - - meta = { - description = ''Ninjaproxies client library for Elixir.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/zensavona/ninjaproxies"; - }; - } // packageOverrides) - ) {}; - - ninjaproxies = ninjaproxies_0_2_0; - - njord_0_1_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "njord"; - version = "0.1.1"; - src = fetchHex { - pkg = "njord"; - version = "0.1.1"; - sha256 = - "b438430dbf6ceaf2bede01a285c5032be3041cbedd7c1552653d75179fab4dfb"; - }; - beamDeps = [ poison_2_1_0 httpoison_0_8_3 ]; - - meta = { - description = ''A wrapper over HTTPoison to build client APIs.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/gmtprime/njord"; - }; - } // packageOverrides) - ) {}; - - njord = njord_0_1_1; - - noise_0_0_4 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "noise"; - version = "0.0.4"; - src = fetchHex { - pkg = "noise"; - version = "0.0.4"; - sha256 = - "2a448e5aff72edd08a587de16c9887ca80ffcde00004eaa2f94dae56536958be"; - }; - - meta = { - description = ''A pseudo-random noise generation library''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/joshforisha/noise"; - }; - } // packageOverrides) - ) {}; - - noise = noise_0_0_4; - - normalize_email_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, is_email_0_0_2 }: - buildMix ({ - name = "normalize_email"; - version = "0.0.1"; - src = fetchHex { - pkg = "normalize_email"; - version = "0.0.1"; - sha256 = - "ac5864ecf0d002ecbc56f9296bff7c01fc1d7e2e84e2529f7726f1a068f5d584"; - }; - beamDeps = [ is_email_0_0_2 ]; - - meta = { - description = ''Normalize an email address''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/johnotander/normalize_email"; - }; - } // packageOverrides) - ) {}; - - normalize_email = normalize_email_0_0_1; - - normalize_url_0_1_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "normalize_url"; - version = "0.1.1"; - src = fetchHex { - pkg = "normalize_url"; - version = "0.1.1"; - sha256 = - "7d1c75f4bf5156636e8d0b5c6addb0cae802b970f8412f4b0429b3547220d88e"; - }; - - meta = { - description = ''Normalize a url''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/johnotander/normalize_url"; - }; - } // packageOverrides) - ) {}; - - normalize_url = normalize_url_0_1_1; - - not_qwerty123_1_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, gettext_0_11_0 }: - buildMix ({ - name = "not_qwerty123"; - version = "1.1.0"; - src = fetchHex { - pkg = "not_qwerty123"; - version = "1.1.0"; - sha256 = - "4997296d742f72fe95f8933cba92ab6cee3147888dc9bbd7b703c7f970e8ab58"; - }; - beamDeps = [ gettext_0_11_0 ]; - - meta = { - description = ''Library to check password strength and generate - random passwords.''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/riverrun/notqwerty123"; - }; - } // packageOverrides) - ) {}; - - not_qwerty123 = not_qwerty123_1_1_0; - - number_0_4_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "number"; - version = "0.4.1"; - src = fetchHex { - pkg = "number"; - version = "0.4.1"; - sha256 = - "773d28c837acf17b0056deb54b7d966a3d6a9d853e88c08829b5732cb7029fb9"; - }; - - meta = { - description = ''Convert numbers to various string formats, such - as currency''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/danielberkompas/number"; - }; - } // packageOverrides) - ) {}; - - number = number_0_4_1; - - numerix_0_0_4 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "numerix"; - version = "0.0.4"; - src = fetchHex { - pkg = "numerix"; - version = "0.0.4"; - sha256 = - "b837acc1c095fe580cc69314b72c9171a0d7d6f8734f81ee2ec1f917614c997f"; - }; - - meta = { - description = ''A collection of (potentially) useful mathematical - functions''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/safwank/Numerix"; - }; - } // packageOverrides) - ) {}; - - numerix = numerix_0_0_4; - - oauth2_0_3_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - plug_1_1_5, - httpoison_0_8_3, - hackney_1_6_0 - }: - buildMix ({ - name = "oauth2"; - version = "0.3.0"; - src = fetchHex { - pkg = "oauth2"; - version = "0.3.0"; - sha256 = - "ee23e6fb6ac84abce23713ba93f1df2fd368c9ad7b9288f0ef6fcec0e0249043"; - }; - beamDeps = [ - poison_1_5_2 plug_1_1_5 httpoison_0_8_3 hackney_1_6_0 - ]; - - meta = { - description = ''An Elixir OAuth 2.0 Client Library''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/scrogson/oauth2"; - }; - } // packageOverrides) - ) {}; - - oauth2_erlang_0_6_1 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "oauth2_erlang"; - version = "0.6.1"; - src = fetchHex { - pkg = "oauth2_erlang"; - version = "0.6.1"; - sha256 = - "dc60e92de379fd27c3b9296e2368e97797233a092297d41f47f3a72846b2a974"; - }; - - meta = { - description = ''Erlang OAuth 2.0 implementation''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/kivra/oauth2"; - }; - } // packageOverrides) - ) {}; - - oauth2_erlang = oauth2_erlang_0_6_1; - - oauther_1_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "oauther"; - version = "1.0.2"; - src = fetchHex { - pkg = "oauther"; - version = "1.0.2"; - sha256 = - "2b65e6408600d5daed7bb1b108533624b6c34491f0278b44013400aa7b551e4d"; - }; - - meta = { - description = ''Library to authenticate with OAuth 1.0 - protocol.''; - license = stdenv.lib.licenses.isc; - homepage = "https://github.com/lexmag/oauther"; - }; - } // packageOverrides) - ) {}; - - oauther = oauther_1_0_2; - - octet_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "octet"; - version = "0.0.2"; - src = fetchHex { - pkg = "octet"; - version = "0.0.2"; - sha256 = - "12c7d7cff035f48139e7304913e7c227ce5bf95508ad8096ed510328d916ede3"; - }; - - meta = { - description = ''Octet string converter''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/kiennt/octet"; - }; - } // packageOverrides) - ) {}; - - octet = octet_0_0_2; - - octokit_0_1_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - timex_1_0_2, - poison_2_1_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "octokit"; - version = "0.1.0"; - src = fetchHex { - pkg = "octokit"; - version = "0.1.0"; - sha256 = - "1c761130e94dbbe16a7751ee1289e1334c9208222da03a8ae9fd77c50f5e969b"; - }; - beamDeps = [ timex_1_0_2 poison_2_1_0 httpoison_0_8_3 ]; - - meta = { - description = ''An Elixir library for accessing the GitHub - API.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/lee-dohm/octokit.ex"; - }; - } // packageOverrides) - ) {}; - - octokit = octokit_0_1_0; - - odgn_json_pointer_1_2_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "odgn_json_pointer"; - version = "1.2.0"; - src = fetchHex { - pkg = "odgn_json_pointer"; - version = "1.2.0"; - sha256 = - "fd99e3d11e4d2a52fd3b4ee5d3d1fb1f1d316ebaf1b7e699e563c813cc7f8e77"; - }; - - meta = { - description = ''This is an implementation of JSON Pointer (RFC - 6901) for Elixir.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/odogono/elixir-jsonpointer"; - }; - } // packageOverrides) - ) {}; - - odgn_json_pointer = odgn_json_pointer_1_2_0; - - odin_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "odin"; - version = "0.0.1"; - src = fetchHex { - pkg = "odin"; - version = "0.0.1"; - sha256 = - "17951e0c8c73f10b38e4110e6ecefe507b4ea6203bcea7d55e34320be60b5a4a"; - }; - - meta = { - description = ''elixir toolkit for building command-line - interfaces.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/plus-eg/odin"; - }; - } // packageOverrides) - ) {}; - - odin = odin_0_0_1; - - odt_potion_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "odt_potion"; - version = "0.0.1"; - src = fetchHex { - pkg = "odt_potion"; - version = "0.0.1"; - sha256 = - "f2c429129dc1e636dbd3563750c667315aff650ddfe7aefe06991299f76f35bd"; - }; - - meta = { - description = ''Substitute placeholders in ODT`s with custom - information''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/andrewcottage/odt_potion"; - }; - } // packageOverrides) - ) {}; - - odt_potion = odt_potion_0_0_1; - - og_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "og"; - version = "0.1.0"; - src = fetchHex { - pkg = "og"; - version = "0.1.0"; - sha256 = - "0b858c07cb6d6d40eca28e3462c03213aeb1f3f1a22bd98e53c2bda445ee98b7"; - }; - - meta = { - description = ''Og is a small collection of logger helper - functions in elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/stephenmoloney/og"; - }; - } // packageOverrides) - ) {}; - - og = og_0_1_0; - - ok_0_1_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "ok"; - version = "0.1.3"; - src = fetchHex { - pkg = "ok"; - version = "0.1.3"; - sha256 = - "e5ac8a719f097467925d492da2cd2ad9543dfd8729739fa4a32a671337eb08bb"; - }; - - meta = { - description = ''Effecient error handling in elixir pipelines.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/CrowdHailer/OK"; - }; - } // packageOverrides) - ) {}; - - ok = ok_0_1_3; - - ok_jose_2_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "ok_jose"; - version = "2.0.0"; - src = fetchHex { - pkg = "ok_jose"; - version = "2.0.0"; - sha256 = - "55377aa3f9b6e563aeb14b3960e4d2a697a059799e8d8ee390059faeaab219eb"; - }; - - meta = { - description = ''Pipe functions that produce ok/error tuples.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/vic/ok_jose"; - }; - } // packageOverrides) - ) {}; - - ok_jose = ok_jose_2_0_0; - - one_signal_0_0_6 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - httpoison_0_8_3 - }: - buildMix ({ - name = "one_signal"; - version = "0.0.6"; - src = fetchHex { - pkg = "one_signal"; - version = "0.0.6"; - sha256 = - "d90ec5f9e43d164e2942422d3c1e9a6b26a956ea135eb1a316380e12ef6b27d1"; - }; - beamDeps = [ poison_1_5_2 httpoison_0_8_3 ]; - - meta = { - description = ''Elixir wrapper of OneSignal''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/yoavlt/one_signal"; - }; - } // packageOverrides) - ) {}; - - one_signal = one_signal_0_0_6; - - onetime_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, timex_1_0_2 }: - buildMix ({ - name = "onetime"; - version = "1.0.0"; - src = fetchHex { - pkg = "onetime"; - version = "1.0.0"; - sha256 = - "28481e7e239caa0002a42178af46cb80c3501faca7c1b953558e9d8dbba76c4c"; - }; - beamDeps = [ timex_1_0_2 ]; - - meta = { - description = ''An onetime key-value store''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/ryo33/onetime-elixir"; - }; - } // packageOverrides) - ) {}; - - onetime = onetime_1_0_0; - - oop_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "oop"; - version = "0.1.0"; - src = fetchHex { - pkg = "oop"; - version = "0.1.0"; - sha256 = - "eee8595a9f8bee5967850b143070d1a6c9b819c69ea19c82ae7c353e5991785e"; - }; - - meta = { - description = ''OOP in Elixir!''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/wojtekmach/oop"; - }; - } // packageOverrides) - ) {}; - - oop = oop_0_1_0; - - opbeat_0_3_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - httpoison_0_8_3 - }: - buildMix ({ - name = "opbeat"; - version = "0.3.0"; - src = fetchHex { - pkg = "opbeat"; - version = "0.3.0"; - sha256 = - "20977e8ae08a1789326a3e5c0c8fa3265dd0e6ddc1fb6abe25c3a33d3fc9e692"; - }; - beamDeps = [ poison_1_5_2 httpoison_0_8_3 ]; - - meta = { - description = ''Elixir client for opbeat''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/teodor-pripoae/opbeat"; - }; - } // packageOverrides) - ) {}; - - opbeat = opbeat_0_3_0; - - open_graphx_0_0_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - httpoison_0_8_3, - floki_0_8_1 - }: - buildMix ({ - name = "open_graphx"; - version = "0.0.2"; - src = fetchHex { - pkg = "open_graphx"; - version = "0.0.2"; - sha256 = - "2eef951c4fbb8a01f11ed3ab6ca62dc695a84baf9ae0fbe7698058eac8020b70"; - }; - beamDeps = [ httpoison_0_8_3 floki_0_8_1 ]; - - meta = { - description = ''Load Open Graph Protocol''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/yoavlt/open_graphx"; - }; - } // packageOverrides) - ) {}; - - open_graphx = open_graphx_0_0_2; - - openmaize_jwt_0_9_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - plug_1_1_5, - cowboy_1_0_4 - }: - buildMix ({ - name = "openmaize_jwt"; - version = "0.9.0"; - src = fetchHex { - pkg = "openmaize_jwt"; - version = "0.9.0"; - sha256 = - "1c07dc9646a6270d9a21669ca27b55453e3af568724715a26feef395d5b105ab"; - }; - beamDeps = [ poison_2_1_0 plug_1_1_5 cowboy_1_0_4 ]; - - meta = { - description = ''JSON Web Token library for use with the Openmaize - authentication library.''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/riverrun/openmaizejwt"; - }; - } // packageOverrides) - ) {}; - - openmaize_jwt = openmaize_jwt_0_9_0; - - openstack_0_0_5 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - maybe_0_0_1, - httpoison_0_8_3 - }: - buildMix ({ - name = "openstack"; - version = "0.0.5"; - src = fetchHex { - pkg = "openstack"; - version = "0.0.5"; - sha256 = - "f3387f15fea0ae51eacc7c7b3667ac5cc611c479ae48a7ce8ea61d5ae1c6ba57"; - }; - beamDeps = [ poison_1_5_2 maybe_0_0_1 httpoison_0_8_3 ]; - - meta = { - description = ''Openstack Client''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/zweifisch/openstack.ex"; - }; - } // packageOverrides) - ) {}; - - openstack = openstack_0_0_5; - - openstax_keystone_0_1_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - timex_2_1_6, - poison_1_5_2, - httpoison_0_8_3, - connection_1_0_2 - }: - buildMix ({ - name = "openstax_keystone"; - version = "0.1.1"; - src = fetchHex { - pkg = "openstax_keystone"; - version = "0.1.1"; - sha256 = - "0ca484da2caef05a6aa4ce71c009f249142cc83f504160c179e783e9639c7de9"; - }; - beamDeps = [ - timex_2_1_6 - poison_1_5_2 - httpoison_0_8_3 - connection_1_0_2 - ]; - - meta = { - description = ''OpenStack Keystone client''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/mspanc/openstax_keystone"; - }; - } // packageOverrides) - ) {}; - - openstax_keystone = openstax_keystone_0_1_1; - - openstax_swift_0_1_4 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - httpoison_0_8_3 - }: - buildMix ({ - name = "openstax_swift"; - version = "0.1.4"; - src = fetchHex { - pkg = "openstax_swift"; - version = "0.1.4"; - sha256 = - "244bf77997b366950ec9852b2a65ab58bb1370e86028ae5efe8f84668384e903"; - }; - beamDeps = [ poison_1_5_2 httpoison_0_8_3 ]; - - meta = { - description = ''OpenStack Swift client''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/mspanc/openstax_swift"; - }; - } // packageOverrides) - ) {}; - - openstax_swift = openstax_swift_0_1_4; - - ordered_list_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "ordered_list"; - version = "0.1.0"; - src = fetchHex { - pkg = "ordered_list"; - version = "0.1.0"; - sha256 = - "6b6410f35d1bda7335fc0c5f16e2b6f5a6a8c162363073931347dc184521159d"; - }; - - meta = { - description = ''Sorting and reordering positions in a list.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/aarondufall/ordered_list"; - }; - } // packageOverrides) - ) {}; - - ordered_list = ordered_list_0_1_0; - - os_utils_0_3_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "os_utils"; - version = "0.3.0"; - src = fetchHex { - pkg = "os_utils"; - version = "0.3.0"; - sha256 = - "b49e32630b3f198b5fe4f6858aa03d1236d659564f98d522c9e646c045e13b64"; - }; - - meta = { - description = ''OS utilities for Elixir.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/orderthruchaos/os_utils"; - }; - } // packageOverrides) - ) {}; - - os_utils = os_utils_0_3_0; - - osc_0_1_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "osc"; - version = "0.1.1"; - src = fetchHex { - pkg = "osc"; - version = "0.1.1"; - sha256 = - "41830bf1494e6f2419ab8e35d11c0f650aab1d37b45d1b3fdfcc3682e191324c"; - }; - - meta = { - description = ''OSC encoder/decoder for elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/camshaft/osc_ex"; - }; - } // packageOverrides) - ) {}; - - osc = osc_0_1_1; - - pact_0_2_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "pact"; - version = "0.2.0"; - src = fetchHex { - pkg = "pact"; - version = "0.2.0"; - sha256 = - "a19000dcfd6c6b220e508ed44e9040d83e4814db2f6f74b11de1a4597a8de05e"; - }; - - meta = { - description = ''Elixir dependency registry for better testing and - cleaner code''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/BlakeWilliams/pact"; - }; - } // packageOverrides) - ) {}; - - pact = pact_0_2_0; - - pagarmex_0_1_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "pagarmex"; - version = "0.1.0"; - src = fetchHex { - pkg = "pagarmex"; - version = "0.1.0"; - sha256 = - "9678030fc6b9ffe0d312967f85a3dacd4ef70e4b14f6eea7d8c6c3fc3796816e"; - }; - beamDeps = [ poison_2_1_0 httpoison_0_8_3 ]; - - meta = { - description = ''A PagarMe Library for Elixir.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/gullitmiranda/pagarmex"; - }; - } // packageOverrides) - ) {}; - - pagarmex = pagarmex_0_1_0; - - pagexduty_0_1_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - httpoison_0_8_3, - exjsx_3_1_0 - }: - buildMix ({ - name = "pagexduty"; - version = "0.1.0"; - src = fetchHex { - pkg = "pagexduty"; - version = "0.1.0"; - sha256 = - "7292a63eeb27637ff19f91f50910d2bbbc860e1eb0413aa5a5035ef32b41b232"; - }; - beamDeps = [ httpoison_0_8_3 exjsx_3_1_0 ]; - - meta = { - description = ''A Pagerduty client for Elixir.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/ride/pagexduty"; - }; - } // packageOverrides) - ) {}; - - pagexduty = pagexduty_0_1_0; - - paginex_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "paginex"; - version = "0.0.1"; - src = fetchHex { - pkg = "paginex"; - version = "0.0.1"; - sha256 = - "4fdc1a0bb02fbd910d24c59caae6d5793fd24a2a29d6498c04a332095e616770"; - }; - - meta = { - description = ''Exposes a pagination struct that can be helpful - to render the pagination html.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/bhserna/paginex"; - }; - } // packageOverrides) - ) {}; - - paginex = paginex_0_0_1; - - painstaking_0_5_8 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, exoddic_1_3_1 }: - buildMix ({ - name = "painstaking"; - version = "0.5.8"; - src = fetchHex { - pkg = "painstaking"; - version = "0.5.8"; - sha256 = - "f9de5ab6139fdda653df0a90e57fe229728a25f3611bf520c9433edd2ab81318"; - }; - beamDeps = [ exoddic_1_3_1 ]; - - meta = { - description = ''Bet stake sizing recommendations''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/mwmiller/painstaking"; - }; - } // packageOverrides) - ) {}; - - painstaking = painstaking_0_5_8; - - palette_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "palette"; - version = "0.0.2"; - src = fetchHex { - pkg = "palette"; - version = "0.0.2"; - sha256 = - "0ad5bbd207b4462078888882b494de937690659bb72ca34ff247b1c9c4784033"; - }; - - meta = { - description = ''A handy library for colouring strings.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/lpil/palette"; - }; - } // packageOverrides) - ) {}; - - palette = palette_0_0_2; - - pandex_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "pandex"; - version = "0.1.0"; - src = fetchHex { - pkg = "pandex"; - version = "0.1.0"; - sha256 = - "a9c6b401be16af5f385c4ff8fc7e3eb9686e2829b0855854de428ff2bd23e34f"; - }; - - meta = { - longDescription = ''Pandex is a lightweight Elixir wrapper for - [Pandoc](http://pandoc.org). Pandex enables you - to convert Markdown, CommonMark, HTML, Latex, - json, html to HTML, HTML5, opendocument, rtf, - texttile, asciidoc, markdown, json and others. - Pandex has no dependencies other than Pandoc - itself.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/filterkaapi/pandex"; - }; - } // packageOverrides) - ) {}; - - pandex = pandex_0_1_0; - - pangu_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "pangu"; - version = "0.1.0"; - src = fetchHex { - pkg = "pangu"; - version = "0.1.0"; - sha256 = - "2634cc2463421757aca0a76665de83940d4fda12f8ed316ae929bb29f64d06c5"; - }; - - meta = { - description = ''Paranoid text spacing in Elixir.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/cataska/pangu.ex"; - }; - } // packageOverrides) - ) {}; - - pangu = pangu_0_1_0; - - parabaikElixirConverter_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "parabaikElixirConverter"; - version = "0.0.1"; - src = fetchHex { - pkg = "parabaikElixirConverter"; - version = "0.0.1"; - sha256 = - "ac72f871ac393ca2e42d11f9103019f6270209b1b0fe58d6f110f5dd66c387e4"; - }; - - meta = { - longDescription = ''ParabaikElixirConverter is just a Elixir - version of Parabaik converter. It can convert - from Unicode to Zawgyi-One and Zawgyi-One to - Unicode vice versa. ''; - license = stdenv.lib.licenses.asl20; - homepage = - "https://github.com/Arkar-Aung/ParabaikElixirConverter"; - }; - } // packageOverrides) - ) {}; - - parabaikElixirConverter = parabaikElixirConverter_0_0_1; - - parallel_0_0_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "parallel"; - version = "0.0.3"; - src = fetchHex { - pkg = "parallel"; - version = "0.0.3"; - sha256 = - "d9b5e98c1892f5376b4dfa28c48a3a17029f86a28d1f9ec2f7c1a2747f256a4d"; - }; - - meta = { - description = ''Straightforward parallel processing for Elixir''; - - homepage = "https://github.com/Anonyfox/parallel"; - }; - } // packageOverrides) - ) {}; - - parallel = parallel_0_0_3; - - parallel_stream_1_0_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "parallel_stream"; - version = "1.0.3"; - src = fetchHex { - pkg = "parallel_stream"; - version = "1.0.3"; - sha256 = - "8b0090b13a42343ad709ed088111fd40a9e4c2d1819ef6c1e601347134ed34d0"; - }; - - meta = { - description = ''Parallel stream operations for Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/beatrichartz/parallel_stream"; - }; - } // packageOverrides) - ) {}; - - parallel_stream = parallel_stream_1_0_3; - - paratize_2_1_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "paratize"; - version = "2.1.3"; - src = fetchHex { - pkg = "paratize"; - version = "2.1.3"; - sha256 = - "7dc6135524c65473f680ec3ade55c2f65b77ad40451ffd2bbd4128066b037d84"; - }; - - meta = { - description = ''Elixir library providing some handy parallel - processing facilities.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/seantanly/elixir-paratize"; - }; - } // packageOverrides) - ) {}; - - paratize = paratize_2_1_3; - - parse_torrent_0_2_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - earmark_0_2_1, - bencode_0_3_0 - }: - buildMix ({ - name = "parse_torrent"; - version = "0.2.0"; - src = fetchHex { - pkg = "parse_torrent"; - version = "0.2.0"; - sha256 = - "444d49f20ede110e33e0817134ef3f0b843a7af01c88e9c168acc4892ae2d320"; - }; - beamDeps = [ earmark_0_2_1 bencode_0_3_0 ]; - - meta = { - description = ''Parses a .torrent file and returns a map''; - license = stdenv.lib.licenses.unlicense; - homepage = "https://github.com/preciz/parse_torrent"; - }; - } // packageOverrides) - ) {}; - - parse_torrent = parse_torrent_0_2_0; - - parselix_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "parselix"; - version = "0.1.0"; - src = fetchHex { - pkg = "parselix"; - version = "0.1.0"; - sha256 = - "c728426e1361e94918a7b24d45b86f00e0e7225e9086b02074ac7b33a4307406"; - }; - - meta = { - description = ''A Parser Combinator Library''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/ryo33/Parselix"; - }; - } // packageOverrides) - ) {}; - - parselix = parselix_0_1_0; - - parsey_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "parsey"; - version = "0.0.1"; - src = fetchHex { - pkg = "parsey"; - version = "0.0.1"; - sha256 = - "5d2db82a9f9109e3ae95058d7405ff379c88635ef2393dda27d76b13cd28d155"; - }; - - meta = { - description = ''A library to parse non-complex nested inputs with - a given ruleset.''; - license = stdenv.lib.licenses.bsd2; - homepage = "https://github.com/ScrimpyCat/Parsey"; - }; - } // packageOverrides) - ) {}; - - parsey = parsey_0_0_1; - - pass_0_3_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - plug_1_1_5, - json_web_token_0_2_5 - }: - buildMix ({ - name = "pass"; - version = "0.3.0"; - src = fetchHex { - pkg = "pass"; - version = "0.3.0"; - sha256 = - "e2d44e9a94ce802b0723cd6e8c149c85c696e8ff3bf939f4c81ebd08938d0496"; - }; - beamDeps = [ plug_1_1_5 json_web_token_0_2_5 ]; - - meta = { - description = ''A simple authentication manager for Plug - applications.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/elixir-extracts/pass"; - }; - } // packageOverrides) - ) {}; - - pass = pass_0_3_0; - - pathway_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, poison_1_5_2 }: - buildMix ({ - name = "pathway"; - version = "0.1.0"; - src = fetchHex { - pkg = "pathway"; - version = "0.1.0"; - sha256 = - "ae734bc8db0d91c0876e15b7e22e8d7616701eff94b1bd2930d2783a1b11c01d"; - }; - beamDeps = [ poison_1_5_2 ]; - - meta = { - description = ''A HTTP client library for the Trak.io REST API. - ''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/novabyte/pathway"; - }; - } // packageOverrides) - ) {}; - - pathway = pathway_0_1_0; - - pattern_tap_0_2_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "pattern_tap"; - version = "0.2.2"; - src = fetchHex { - pkg = "pattern_tap"; - version = "0.2.2"; - sha256 = - "2d17fe4c076b12efe39a362ade88d11d8bed204009027755802213db9feb3675"; - }; - - meta = { - description = ''Macro for tapping into a pattern match while - using the pipe operator ''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/mgwidmann/elixir-pattern_tap"; - }; - } // packageOverrides) - ) {}; - - pattern_tap = pattern_tap_0_2_2; - - pavlov_0_2_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, meck_0_8_4 }: - buildMix ({ - name = "pavlov"; - version = "0.2.3"; - src = fetchHex { - pkg = "pavlov"; - version = "0.2.3"; - sha256 = - "4d38e96b7581261a49f00d2046603ad3c9af6d52abd26d16bbf6a0a5a82c9643"; - }; - beamDeps = [ meck_0_8_4 ]; - - meta = { - longDescription = ''Pavlov is a BDD library for your Elixir - projects, allowing you to write expressive unit - tests that tell the story of how your - application behaves. The syntax tries to follow - RSpec`s wherever possible.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/sproutapp/pavlov"; - }; - } // packageOverrides) - ) {}; - - pavlov = pavlov_0_2_3; - - pbkdf2_2_0_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "pbkdf2"; - version = "2.0.0"; - src = fetchHex { - pkg = "pbkdf2"; - version = "2.0.0"; - sha256 = - "1e793ce6fdb0576613115714deae9dfc1d1537eaba74f07efb36de139774488d"; - }; - - meta = { - description = ''Erlang PBKDF2 Key Derivation Function''; - license = stdenv.lib.licenses.apsl20; - homepage = "https://github.com/basho/erlang-pbkdf2"; - }; - } // packageOverrides) - ) {}; - - pbkdf2 = pbkdf2_2_0_0; - - pbkdf2_nif_0_3_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "pbkdf2_nif"; - version = "0.3.0"; - src = fetchHex { - pkg = "pbkdf2_nif"; - version = "0.3.0"; - sha256 = - "7ad61389164cceac87e2bed9d8f184cd713cca85d51e096604c40bf86d96a8b7"; - }; - compilePorts = true; - buildPlugins = [ pc ]; - - - meta = { - description = ''PBKDF2 NIF implementation''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/barrel-db/erlang-pbkdf2-nif"; - }; - } // packageOverrides) - ) {}; - - pbkdf2_nif = pbkdf2_nif_0_3_0; - - pc_1_2_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "pc"; - version = "1.2.0"; - src = fetchHex { - pkg = "pc"; - version = "1.2.0"; - sha256 = - "ef0f59d26a25af0a5247ef1a06d28d8300f8624647b02dc521ac79a7eceb8883"; - }; - - meta = { - description = ''a rebar3 port compiler for native code''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/blt/port_compiler"; - }; - } // packageOverrides) - ) {}; - - pc = pc_1_2_0; - - pdf2htmlex_0_2_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "pdf2htmlex"; - version = "0.2.0"; - src = fetchHex { - pkg = "pdf2htmlex"; - version = "0.2.0"; - sha256 = - "50885e995d25362b1f25c74796c0627657147d4d10ccb4be736be3b06b8a44a3"; - }; - - meta = { - description = ''Convert PDF docs to beautiful HTML files without - losing text or format.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/ricn/pdf2htmlex"; - }; - } // packageOverrides) - ) {}; - - pdf2htmlex = pdf2htmlex_0_2_0; - - pdf_generator_0_3_3 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - porcelain_2_0_1, - misc_random_0_2_6 - }: - buildMix ({ - name = "pdf_generator"; - version = "0.3.3"; - src = fetchHex { - pkg = "pdf_generator"; - version = "0.3.3"; - sha256 = - "1aeb29a3b4821de0f86985e65661c7dedae28d2c924ef42677e1f02093607856"; - }; - beamDeps = [ porcelain_2_0_1 misc_random_0_2_6 ]; - - meta = { - longDescription = ''A wrapper for wkhtmltopdf (HTML to PDF) and - PDFTK (adds in encryption) for use in Elixir - projects.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/gutschilla/elixir-pdf-generator"; - }; - } // packageOverrides) - ) {}; - - pdf_generator = pdf_generator_0_3_3; - - peon_2_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "peon"; - version = "2.0.0"; - src = fetchHex { - pkg = "peon"; - version = "2.0.0"; - sha256 = - "3d87e626f5d014563d1cf319c0fe8576c8eb3f4399ecc9a0d7fb2385a180aaab"; - }; - - meta = { - description = ''Use Elixir maps as a document storage format.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/supernintendo/peon"; - }; - } // packageOverrides) - ) {}; - - peon = peon_2_0_0; - - permission_ex_0_2_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "permission_ex"; - version = "0.2.0"; - src = fetchHex { - pkg = "permission_ex"; - version = "0.2.0"; - sha256 = - "efaf05029f498689b93e254f120bb01dd7bafd205a23e4246b70e97565af097e"; - }; - - meta = { - description = ''Permission management and checking library for - Elixir.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/OvermindDL1/permission_ex"; - }; - } // packageOverrides) - ) {}; - - permission_ex = permission_ex_0_2_0; - - petick_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "petick"; - version = "0.0.1"; - src = fetchHex { - pkg = "petick"; - version = "0.0.1"; - sha256 = - "77ca306a379109aeb98528fdc5642dccc0b66379e67058814470d0cf30053586"; - }; - - meta = { - description = ''Periodic timer''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/niku/petick"; - }; - } // packageOverrides) - ) {}; - - petick = petick_0_0_1; - - pg2pubsub_0_2_13 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "pg2pubsub"; - version = "0.2.13"; - src = fetchHex { - pkg = "pg2pubsub"; - version = "0.2.13"; - sha256 = - "a2c3ef4dcf031c71c75781ec49236220f405e836f4ee384bdcfbbf8abd6fc4db"; - }; - - meta = { - description = ''A PubSub implementation for Elixir, using PG2 - (Erlang process groups).''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/kbremner/pg2pubsub"; - }; - } // packageOverrides) - ) {}; - - pg2pubsub = pg2pubsub_0_2_13; - - pgapp_0_0_1 = callPackage - ( - { - buildRebar3, - packageOverrides ? {}, - fetchHex, - poolboy_1_5_1, - epgsql_3_1_1 - }: - buildRebar3 ({ - name = "pgapp"; - version = "0.0.1"; - src = fetchHex { - pkg = "pgapp"; - version = "0.0.1"; - sha256 = - "5155404f5caa82d6b4f052703cdadddfbc2089e9512bfeef72092933ec1e521d"; - }; - - beamDeps = [ poolboy_1_5_1 epgsql_3_1_1 ]; - - meta = { - description = ''epgsql application''; - license = stdenv.lib.licenses.mit; - }; - } // packageOverrides) - ) {}; - - pgapp = pgapp_0_0_1; - - phasedb_0_0_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - inflex_1_5_0, - heap_1_0_0, - calendar_0_12_4 - }: - buildMix ({ - name = "phasedb"; - version = "0.0.2"; - src = fetchHex { - pkg = "phasedb"; - version = "0.0.2"; - sha256 = - "d9d7d5f7317ad0ce20da3b95e26b286d45d91a61a63a684fba42681a5ced68ee"; - }; - beamDeps = [ - poison_2_1_0 inflex_1_5_0 heap_1_0_0 calendar_0_12_4 - ]; - - meta = { - description = ''A real-time time series database.''; - - }; - } // packageOverrides) - ) {}; - - phasedb = phasedb_0_0_2; - - phasedb_client_0_0_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - websocket_client_1_1_0, - table_rex_0_8_0, - poison_2_1_0, - phasedb_0_0_2, - calendar_0_12_4 - }: - buildMix ({ - name = "phasedb_client"; - version = "0.0.1"; - src = fetchHex { - pkg = "phasedb_client"; - version = "0.0.1"; - sha256 = - "11019f0c5c2ecbfe578150434f064c84a54752093d004a9cc15296fa054b94fa"; - }; - beamDeps = [ - websocket_client_1_1_0 - table_rex_0_8_0 - poison_2_1_0 - phasedb_0_0_2 - calendar_0_12_4 - ]; - - meta = { - description = ''A real-time time series database - command line - client.''; - - }; - } // packageOverrides) - ) {}; - - phasedb_client = phasedb_client_0_0_1; - - phasedb_server_0_0_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - phasedb_0_0_2, - cowboy_1_0_4, - calendar_0_12_4 - }: - buildMix ({ - name = "phasedb_server"; - version = "0.0.1"; - src = fetchHex { - pkg = "phasedb_server"; - version = "0.0.1"; - sha256 = - "dfde579bb29ed0d805276effb4f7a27d6a302a9615881051fb25eba8cf16da05"; - }; - beamDeps = [ phasedb_0_0_2 cowboy_1_0_4 calendar_0_12_4 ]; - - meta = { - description = ''A real-time time series database.''; - - }; - } // packageOverrides) - ) {}; - - phasedb_server = phasedb_server_0_0_1; - - phoenix_1_0_4 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - plug_1_1_5, - cowboy_1_0_4 - }: - buildMix ({ - name = "phoenix"; - version = "1.0.4"; - src = fetchHex { - pkg = "phoenix"; - version = "1.0.4"; - sha256 = - "591d5f7f3a6f5407e8491a92dc6a2d0b7b94ef4f3526ad8ef4eb82660e6f69f6"; - }; - beamDeps = [ poison_1_5_2 plug_1_1_5 cowboy_1_0_4 ]; - - meta = { - longDescription = ''Productive. Reliable. Fast. A productive web - framework that does not compromise speed and - maintainability.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/phoenixframework/phoenix"; - }; - } // packageOverrides) - ) {}; - - phoenix_generator_0_2_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, inflex_0_3_0 }: - buildMix ({ - name = "phoenix_generator"; - version = "0.2.1"; - src = fetchHex { - pkg = "phoenix_generator"; - version = "0.2.1"; - sha256 = - "2be3753fba7b4a9afa461d270ab5111d76d1e5997b8e1587344051d85b6a1a36"; - }; - beamDeps = [ inflex_0_3_0 ]; - - meta = { - description = ''A collection of boilerplate generators for the - Phoenix web framework.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/etufe/phoenix_generator"; - }; - } // packageOverrides) - ) {}; - - phoenix_generator = phoenix_generator_0_2_1; - - phoenix_jsroutes_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "phoenix_jsroutes"; - version = "0.0.1"; - src = fetchHex { - pkg = "phoenix_jsroutes"; - version = "0.0.1"; - sha256 = - "f1f94ced7edb338d802290265e25784e32ad9e5f51eea65286f22663d831e44e"; - }; - - meta = { - description = ''Brings phoenix router helpers to your javascript - code.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/tiagoengel/phoenix-jsroutes"; - }; - } // packageOverrides) - ) {}; - - phoenix_jsroutes = phoenix_jsroutes_0_0_1; - - phoenix_pubsub_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "phoenix_pubsub"; - version = "0.0.1"; - src = fetchHex { - pkg = "phoenix_pubsub"; - version = "0.0.1"; - sha256 = - "ea9f1853699e838965155af063f536f440afacadca316fb657858b3ac40da2eb"; - }; - - meta = { - description = ''Distributed PubSub and Presence platform''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/phoenixframework/phoenix_pubsub"; - }; - } // packageOverrides) - ) {}; - - phoenix_pubsub_1_0_0_rc_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "phoenix_pubsub"; - version = "1.0.0-rc.0"; - src = fetchHex { - pkg = "phoenix_pubsub"; - version = "1.0.0-rc.0"; - sha256 = - "94765c0866ffe55f76894daa5e5adcc30822d3710718b0c03980db8f093b575f"; - }; - - meta = { - description = ''Distributed PubSub and Presence platform''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/phoenixframework/phoenix_pubsub"; - }; - } // packageOverrides) - ) {}; - - phoenix_pubsub = phoenix_pubsub_1_0_0_rc_0; - - phoenix_pubsub_vernemq_0_0_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "phoenix_pubsub_vernemq"; - version = "0.0.3"; - src = fetchHex { - pkg = "phoenix_pubsub_vernemq"; - version = "0.0.3"; - sha256 = - "92c228aee119d21c68b0b43250414686dee16986cb4d0039608612abd0d22824"; - }; - - meta = { - description = ''The VerneMQ MQTT pubsub adapter for the Phoenix - framework''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/larshesel/phoenix_pubsub_vernemq"; - }; - } // packageOverrides) - ) {}; - - phoenix_pubsub_vernemq = phoenix_pubsub_vernemq_0_0_3; - - phoenix_webpack_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "phoenix_webpack"; - version = "0.1.0"; - src = fetchHex { - pkg = "phoenix_webpack"; - version = "0.1.0"; - sha256 = - "9a5b53836b60bfc3baf36e9aa85b48cfc227f004419b81c195e5e08936562ba7"; - }; - - meta = { - description = ''Easily generate webpack configs for phoenix''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/keathley/phoenix_webpack"; - }; - } // packageOverrides) - ) {}; - - phoenix_webpack = phoenix_webpack_0_1_0; - - phone_0_2_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "phone"; - version = "0.2.0"; - src = fetchHex { - pkg = "phone"; - version = "0.2.0"; - sha256 = - "af836882ba2e1b8feec420d181a15ac3c9a9230f9f7a87753e33e2da8a591d22"; - }; - - meta = { - description = ''Get useful info from telephone numbers.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/fcevado/phone"; - }; - } // packageOverrides) - ) {}; - - phone = phone_0_2_0; - - phst_transform_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "phst_transform"; - version = "1.0.0"; - src = fetchHex { - pkg = "phst_transform"; - version = "1.0.0"; - sha256 = - "f18683a70d858a9d9459881458f985d13233a3c04e6b0005458a51e560fdfd84"; - }; - - meta = { - longDescription = ''An Elixir Protocol and implementation for - creating a tranform of any elixir data.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/philosophers-stone/transform"; - }; - } // packageOverrides) - ) {}; - - phst_transform = phst_transform_1_0_0; - - pigeon_0_7_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - httpoison_0_8_3 - }: - buildMix ({ - name = "pigeon"; - version = "0.7.0"; - src = fetchHex { - pkg = "pigeon"; - version = "0.7.0"; - sha256 = - "16d2745d952553088248185d5371b42a17c9885293f54e7c7871d8a256e182be"; - }; - beamDeps = [ poison_1_5_2 httpoison_0_8_3 ]; - - meta = { - longDescription = ''HTTP2-compliant wrapper for sending iOS - (APNS) and Android (GCM) push notifications.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/codedge-llc/pigeon"; - }; - } // packageOverrides) - ) {}; - - pigeon = pigeon_0_7_0; - - piliponi_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "piliponi"; - version = "0.0.1"; - src = fetchHex { - pkg = "piliponi"; - version = "0.0.1"; - sha256 = - "1729646601f1f12aff154e0401063298ec54bfd745f9137a64f63384f106a645"; - }; - - meta = { - description = ''Simple mobile phone formatter for the - Philippines''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/wetoolaguer/piliponi"; - }; - } // packageOverrides) - ) {}; - - piliponi = piliponi_0_0_1; - - pinboardixir_0_2_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "pinboardixir"; - version = "0.2.0"; - src = fetchHex { - pkg = "pinboardixir"; - version = "0.2.0"; - sha256 = - "360050f089cd50515bf51a5634420beab54bb7ec3b2063d49d91179182e423d7"; - }; - beamDeps = [ poison_2_1_0 httpoison_0_8_3 ]; - - meta = { - description = ''A Pinboard client in Elixir.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/ElaWorkshop/pinboardixir"; - }; - } // packageOverrides) - ) {}; - - pinboardixir = pinboardixir_0_2_0; - - pinglix_1_1_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - timex_0_19_5, - poison_1_4_0, - plug_1_1_5 - }: - buildMix ({ - name = "pinglix"; - version = "1.1.1"; - src = fetchHex { - pkg = "pinglix"; - version = "1.1.1"; - sha256 = - "bff8166655cc143518c0089aca104755ab188816707fb73a5739dd094f45e895"; - }; - beamDeps = [ timex_0_19_5 poison_1_4_0 plug_1_1_5 ]; - - meta = { - longDescription = ''Plug compatible health check system in Elixir - based on - https://github.com/jbarnette/pinglish.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/pvdvreede/pinglix"; - }; - } // packageOverrides) - ) {}; - - pinglix = pinglix_1_1_1; - - pinyin_0_1_4 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "pinyin"; - version = "0.1.4"; - src = fetchHex { - pkg = "pinyin"; - version = "0.1.4"; - sha256 = - "e0fc3dc148bc938ad12f5aefabf017620eb314ca4cf045b91ad195c557d5fa96"; - }; - - meta = { - description = ''chinese pinyin library''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/lidashuang/pinyin"; - }; - } // packageOverrides) - ) {}; - - pinyin = pinyin_0_1_4; - - pipe_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "pipe"; - version = "0.0.2"; - src = fetchHex { - pkg = "pipe"; - version = "0.0.2"; - sha256 = - "ad6d90981606bb04d040c0af49cf493417994214ce6e74ac572dc2ee67e2c064"; - }; - - meta = { - description = ''An Elixir extension that extends the pipe (|>) - operator through macros. ''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/batate/elixir-pipes"; - }; - } // packageOverrides) - ) {}; - - pipe = pipe_0_0_2; - - pipe_here_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "pipe_here"; - version = "1.0.0"; - src = fetchHex { - pkg = "pipe_here"; - version = "1.0.0"; - sha256 = - "95558a60ec7736685029e1b28b1c7cd7c7eae714fab779406aa2512c0f29c51e"; - }; - - meta = { - description = ''An Elixir macro for easily piping arguments at - any position.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/vic/pipe_here"; - }; - } // packageOverrides) - ) {}; - - pipe_here = pipe_here_1_0_0; - - pipe_while_ok_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "pipe_while_ok"; - version = "0.0.2"; - src = fetchHex { - pkg = "pipe_while_ok"; - version = "0.0.2"; - sha256 = - "b62708d0a0b82f421f937b99c5ff21a966e21d9a1f42ba75b8788100ac2c6567"; - }; - - meta = { - description = ''PipeWhileOk =========== Moved to - https://githib.com/pragdave/exlibris ''; - license = stdenv.lib.licenses.free; - homepage = "https://github.com/pragdave/pipe_while_ok"; - }; - } // packageOverrides) - ) {}; - - pipe_while_ok = pipe_while_ok_0_0_2; - - pipette_0_0_4 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, mock_0_1_3 }: - buildMix ({ - name = "pipette"; - version = "0.0.4"; - src = fetchHex { - pkg = "pipette"; - version = "0.0.4"; - sha256 = - "8742ea9b115071c3aa7cec4ddacfa161ff63fd647e0491ac442cb118d7198e26"; - }; - beamDeps = [ mock_0_1_3 ]; - - meta = { - description = ''new_data = pipette(data, template)''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/liquidz/pipette"; - }; - } // packageOverrides) - ) {}; - - pipette = pipette_0_0_4; - - pipper_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "pipper"; - version = "1.0.0"; - src = fetchHex { - pkg = "pipper"; - version = "1.0.0"; - sha256 = - "a6b5100f6bab060674e5a828dcfb1b7c12e65739186e54809a23320a5550e149"; - }; - - meta = { - description = ''Provides a \"pipe-equals\" operator''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/drewblas/pipper"; - }; - } // packageOverrides) - ) {}; - - pipper = pipper_1_0_0; - - pkcs7_1_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "pkcs7"; - version = "1.0.2"; - src = fetchHex { - pkg = "pkcs7"; - version = "1.0.2"; - sha256 = - "0e4faa65411e204b7952712d58f657335109ecbb24cf79163dc96458ba8d6518"; - }; - - meta = { - description = ''PKCS7 binary padding for erlang''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/camshaft/pkcs7.erl"; - }; - } // packageOverrides) - ) {}; - - pkcs7 = pkcs7_1_0_2; - - plaid_0_0_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "plaid"; - version = "0.0.1"; - src = fetchHex { - pkg = "plaid"; - version = "0.0.1"; - sha256 = - "1168a916f1a2fa5528b7891fe32784a1c415dbd5fc8b05bb9a7571f887f3ee9e"; - }; - beamDeps = [ poison_2_1_0 httpoison_0_8_3 ]; - - meta = { - description = ''Client for Plaid, the finance API.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/travisjeffery/plaid"; - }; - } // packageOverrides) - ) {}; - - plaid = plaid_0_0_1; - - plantuml_mix_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "plantuml_mix"; - version = "0.0.1"; - src = fetchHex { - pkg = "plantuml_mix"; - version = "0.0.1"; - sha256 = - "6d064ebc3be722642875ea5e2ce63a5678b95d96353c3605f6e83684651947f0"; - }; - - meta = { - longDescription = ''Add plantuml task to mix. Execute mix - plantuml --help for options. Requires that the - env var PLANTUML_JAR points to a valid PlantUML - jar file. Requires Java > 1.6 installed on the - system.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/binarytemple/plantuml_mix"; - }; - } // packageOverrides) - ) {}; - - plantuml_mix = plantuml_mix_0_0_1; - - plist_0_0_4 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "plist"; - version = "0.0.4"; - src = fetchHex { - pkg = "plist"; - version = "0.0.4"; - sha256 = - "533836ee86188fa2a0aed92410534851aac3cb46ee0919c98553b1f38a63aa1a"; - }; - - meta = { - description = ''An Elixir library to parse files in Apple`s - property list formats''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/ciaran/plist"; - }; - } // packageOverrides) - ) {}; - - plist = plist_0_0_4; - - plivo_0_0_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "plivo"; - version = "0.0.1"; - src = fetchHex { - pkg = "plivo"; - version = "0.0.1"; - sha256 = - "e710b4132ece4f648b772dc540dd1ba7d0fb241fe2f271639cf0764bdb024848"; - }; - beamDeps = [ poison_2_1_0 httpoison_0_8_3 ]; - - meta = { - description = ''An elixir client for Plivo API''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/aarvay/plivo-elixir"; - }; - } // packageOverrides) - ) {}; - - plivo = plivo_0_0_1; - - plug_0_11_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, cowboy_1_0_4 }: - buildMix ({ - name = "plug"; - version = "0.11.3"; - src = fetchHex { - pkg = "plug"; - version = "0.11.3"; - sha256 = - "82834fa130af2520b9dad4a271f4fe5c25a456cf2334aae35ef84989efec65e3"; - }; - beamDeps = [ cowboy_1_0_4 ]; - - meta = { - description = ''A specification and conveniences for composable - modules between web applications''; - license = stdenv.lib.licenses.apsl20; - homepage = "https://github.com/elixir-lang/plug"; - }; - } // packageOverrides) - ) {}; - - plug_0_12_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, cowboy_1_0_4 }: - buildMix ({ - name = "plug"; - version = "0.12.2"; - src = fetchHex { - pkg = "plug"; - version = "0.12.2"; - sha256 = - "b26e8c636fc5b83e0b69767fb3cb2c693703b7f8c1eed11091e57f6e7caebc2d"; - }; - beamDeps = [ cowboy_1_0_4 ]; - - meta = { - description = ''A specification and conveniences for composable - modules between web applications''; - license = stdenv.lib.licenses.apsl20; - homepage = "https://github.com/elixir-lang/plug"; - }; - } // packageOverrides) - ) {}; - - plug_0_13_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, cowboy_1_0_4 }: - buildMix ({ - name = "plug"; - version = "0.13.1"; - src = fetchHex { - pkg = "plug"; - version = "0.13.1"; - sha256 = - "50b7ef7c753e703b04ed79bc254ed0fbe07db3ed90894598d377c41e15f4490b"; - }; - beamDeps = [ cowboy_1_0_4 ]; - - meta = { - description = ''A specification and conveniences for composable - modules between web applications''; - license = stdenv.lib.licenses.apsl20; - homepage = "https://github.com/elixir-lang/plug"; - }; - } // packageOverrides) - ) {}; - - plug_0_14_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, cowboy_1_0_4 }: - buildMix ({ - name = "plug"; - version = "0.14.0"; - src = fetchHex { - pkg = "plug"; - version = "0.14.0"; - sha256 = - "bacee77168bce635d959d8c41e0723936fba41170edf11665deaf30ee668303d"; - }; - beamDeps = [ cowboy_1_0_4 ]; - - meta = { - description = ''A specification and conveniences for composable - modules between web applications''; - license = stdenv.lib.licenses.apsl20; - homepage = "https://github.com/elixir-lang/plug"; - }; - } // packageOverrides) - ) {}; - - plug_0_8_4 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, cowboy_1_0_4 }: - buildMix ({ - name = "plug"; - version = "0.8.4"; - src = fetchHex { - pkg = "plug"; - version = "0.8.4"; - sha256 = - "22c18f351cb30df9ca0b33bedd545bdbbc7eee60f1321cfcfe703228355ff2ec"; - }; - beamDeps = [ cowboy_1_0_4 ]; - - meta = { - description = ''A specification and conveniences for composable - modules between web applications''; - license = stdenv.lib.licenses.apsl20; - homepage = "https://github.com/elixir-lang/plug"; - }; - } // packageOverrides) - ) {}; - - plug_0_9_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, cowboy_1_0_4 }: - buildMix ({ - name = "plug"; - version = "0.9.0"; - src = fetchHex { - pkg = "plug"; - version = "0.9.0"; - sha256 = - "2715df7f9e2650d1725576f5a683317d8dcaf656f524c14b384d7a54d74a09d1"; - }; - beamDeps = [ cowboy_1_0_4 ]; - - meta = { - description = ''A specification and conveniences for composable - modules between web applications''; - license = stdenv.lib.licenses.apsl20; - homepage = "https://github.com/elixir-lang/plug"; - }; - } // packageOverrides) - ) {}; - - plug_1_0_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, cowboy_1_0_4 }: - buildMix ({ - name = "plug"; - version = "1.0.3"; - src = fetchHex { - pkg = "plug"; - version = "1.0.3"; - sha256 = - "31d1cc267cf48e3db8ce00b7a7bb6ced41c04d8f3593a61318f9a7f721997f6e"; - }; - beamDeps = [ cowboy_1_0_4 ]; - - meta = { - description = ''A specification and conveniences for composable - modules between web applications''; - license = stdenv.lib.licenses.apsl20; - homepage = "https://github.com/elixir-lang/plug"; - }; - } // packageOverrides) - ) {}; - - plug_1_1_5 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, cowboy_1_0_4 }: - buildMix ({ - name = "plug"; - version = "1.1.5"; - src = fetchHex { - pkg = "plug"; - version = "1.1.5"; - sha256 = - "706871cb3d66c8c44cad4bceaa1f500eba34d5400450b9d63163d9dd4de88d3d"; - }; - beamDeps = [ cowboy_1_0_4 ]; - - meta = { - description = ''A specification and conveniences for composable - modules between web applications''; - license = stdenv.lib.licenses.apsl20; - homepage = "https://github.com/elixir-lang/plug"; - }; - } // packageOverrides) - ) {}; - - plug = plug_1_1_5; - - plug_accept_language_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "plug_accept_language"; - version = "0.1.0"; - src = fetchHex { - pkg = "plug_accept_language"; - version = "0.1.0"; - sha256 = - "5535c842805ba980f3bf5fa5cde202fd3375c049e3681e206de1976c5765765a"; - }; - - meta = { - description = ''parse the accept-language header''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/camshaft/plug_accept_language"; - }; - } // packageOverrides) - ) {}; - - plug_accept_language = plug_accept_language_0_1_0; - - plug_accesslog_0_11_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - tzdata_0_5_8, - timex_2_1_6, - plug_1_1_5, - cowboy_1_0_4 - }: - buildMix ({ - name = "plug_accesslog"; - version = "0.11.0"; - src = fetchHex { - pkg = "plug_accesslog"; - version = "0.11.0"; - sha256 = - "86ee180fd234a3c6d413153764f2a9e2d57171d3e89df2643a276b8760bcc867"; - }; - beamDeps = [ tzdata_0_5_8 timex_2_1_6 plug_1_1_5 cowboy_1_0_4 ]; - - meta = { - description = ''Plug for writing access logs''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/mneudert/plug_accesslog"; - }; - } // packageOverrides) - ) {}; - - plug_accesslog = plug_accesslog_0_11_0; - - plug_assign_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, plug_1_0_3 }: - buildMix ({ - name = "plug_assign"; - version = "1.0.0"; - src = fetchHex { - pkg = "plug_assign"; - version = "1.0.0"; - sha256 = - "293a2885e8d23fce64b9f81019882e14512d57cf82b863f9be860157e5f79708"; - }; - beamDeps = [ plug_1_0_3 ]; - - meta = { - description = ''A simple plug to allow setting variables in a - connection.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/nshafer/plug_assign"; - }; - } // packageOverrides) - ) {}; - - plug_assign = plug_assign_1_0_0; - - plug_cloudflare_1_3_0 = callPackage - ( - { - buildMix, packageOverrides ? {}, fetchHex, plug_1_1_5, cidr_1_0_0 - }: - buildMix ({ - name = "plug_cloudflare"; - version = "1.3.0"; - src = fetchHex { - pkg = "plug_cloudflare"; - version = "1.3.0"; - sha256 = - "641df2e40267446172c43b2f52dd9a1cbcd1f24dccd101bda29732a13335ab21"; - }; - beamDeps = [ plug_1_1_5 cidr_1_0_0 ]; - - meta = { - description = ''Convert CloudFlare`s CF-Connecting-IP header to - Plug.Conn`s remote_ip field.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/c-rack/plug_cloudflare"; - }; - } // packageOverrides) - ) {}; - - plug_cloudflare = plug_cloudflare_1_3_0; - - plug_forwarded_peer_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, plug_1_1_5 }: - buildMix ({ - name = "plug_forwarded_peer"; - version = "0.0.2"; - src = fetchHex { - pkg = "plug_forwarded_peer"; - version = "0.0.2"; - sha256 = - "c2466e0f0ef75a0d925a957fa50dfcded2c4788fe67857a675411e7184ae5ec3"; - }; - beamDeps = [ plug_1_1_5 ]; - - meta = { - longDescription = ''Very simple plug which reads - `X-Forwarded-For` or `Forwarded` header - according to rfc7239 and fill `conn.remote_ip` - with the root client ip.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/awetzel/plug_forwarded_peer"; - }; - } // packageOverrides) - ) {}; - - plug_forwarded_peer = plug_forwarded_peer_0_0_2; - - plug_fprof_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "plug_fprof"; - version = "0.0.1"; - src = fetchHex { - pkg = "plug_fprof"; - version = "0.0.1"; - sha256 = - "4c5e6171ab7ebb29b6d473f8c5fd758a11ade5847d31add676c944a302ab006c"; - }; - - meta = { - description = ''A Plug that adds fprof tracing to requests, to - allow for easy profiling.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/obmarg/plug_fprof"; - }; - } // packageOverrides) - ) {}; - - plug_fprof = plug_fprof_0_0_1; - - plug_geoip2_0_4_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - plug_1_1_5, - geolix_0_10_1 - }: - buildMix ({ - name = "plug_geoip2"; - version = "0.4.2"; - src = fetchHex { - pkg = "plug_geoip2"; - version = "0.4.2"; - sha256 = - "2a6443040e07e677b0ff7749d2cdf7797a97254466f6740aee11544a18f4993a"; - }; - beamDeps = [ plug_1_1_5 geolix_0_10_1 ]; - - meta = { - longDescription = ''Adds geo location to a Plug connection based - upon the client IP address by using MaxMind`s - GeoIP2 database.''; - license = stdenv.lib.licenses.mit; - }; - } // packageOverrides) - ) {}; - - plug_geoip2 = plug_geoip2_0_4_2; - - plug_heartbeat_0_2_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - plug_1_1_5, - cowboy_1_0_4 - }: - buildMix ({ - name = "plug_heartbeat"; - version = "0.2.0"; - src = fetchHex { - pkg = "plug_heartbeat"; - version = "0.2.0"; - sha256 = - "23cb357dad510695b6bb339fdbf5d3fc8581546124f7389d63c9cf723e4ad40f"; - }; - beamDeps = [ plug_1_1_5 cowboy_1_0_4 ]; - - meta = { - description = ''A tiny plug for responding to heartbeat requests - ''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/whatyouhide/plug_heartbeat"; - }; - } // packageOverrides) - ) {}; - - plug_heartbeat = plug_heartbeat_0_2_0; - - plug_media_type_router_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, plug_1_1_5 }: - buildMix ({ - name = "plug_media_type_router"; - version = "0.0.2"; - src = fetchHex { - pkg = "plug_media_type_router"; - version = "0.0.2"; - sha256 = - "e5f72ee4fd1a43321532e3165b3609a1184ba2d576279a1a63e17afba084f12b"; - }; - beamDeps = [ plug_1_1_5 ]; - - meta = { - longDescription = ''An Elixir Plug for routing requests to other - Plugs based on the request`s Media Type''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/cazrin/plug_media_type_router"; - }; - } // packageOverrides) - ) {}; - - plug_media_type_router = plug_media_type_router_0_0_2; - - plug_pagecache_0_2_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - plug_1_1_5, - cowboy_1_0_4 - }: - buildMix ({ - name = "plug_pagecache"; - version = "0.2.0"; - src = fetchHex { - pkg = "plug_pagecache"; - version = "0.2.0"; - sha256 = - "8f33202de45d772dd1f416a10d43f8e2daabf937d459e010fa9c850834e1877f"; - }; - beamDeps = [ plug_1_1_5 cowboy_1_0_4 ]; - - meta = { - description = ''Plug for full page response caching''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/mneudert/plug_pagecache"; - }; - } // packageOverrides) - ) {}; - - plug_pagecache = plug_pagecache_0_2_0; - - plug_rails_cookie_session_store_0_1_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - plug_1_1_5, - cowboy_1_0_4 - }: - buildMix ({ - name = "plug_rails_cookie_session_store"; - version = "0.1.0"; - src = fetchHex { - pkg = "plug_rails_cookie_session_store"; - version = "0.1.0"; - sha256 = - "e08041d2ad4884826d8296a5560609df04a936ceca492d094f06458699ac69da"; - }; - beamDeps = [ plug_1_1_5 cowboy_1_0_4 ]; - - meta = { - description = ''Rails compatible Plug session store''; - license = stdenv.lib.licenses.mit; - homepage = - "https://github.com/cconstantin/plug_rails_cookie_session_store"; - }; - } // packageOverrides) - ) {}; - - plug_rails_cookie_session_store = - plug_rails_cookie_session_store_0_1_0; - - plug_range_0_0_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - plug_1_1_5, - cowboy_1_0_4 - }: - buildMix ({ - name = "plug_range"; - version = "0.0.2"; - src = fetchHex { - pkg = "plug_range"; - version = "0.0.2"; - sha256 = - "0dbe3c166e01180913f07a5e4c46cd9427f3e797dd7be515871631b0ed60b9eb"; - }; - beamDeps = [ plug_1_1_5 cowboy_1_0_4 ]; - - meta = { - description = ''An elixir plug that serves HTTP range requests''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/TheSquad/plug_range"; - }; - } // packageOverrides) - ) {}; - - plug_range = plug_range_0_0_2; - - plug_redirect_0_1_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, plug_1_1_5 }: - buildMix ({ - name = "plug_redirect"; - version = "0.1.2"; - src = fetchHex { - pkg = "plug_redirect"; - version = "0.1.2"; - sha256 = - "f5fb2653ed39cf843bcc3cb13ba2bf547b1f66ef7c24f963551acd0b8e1c4705"; - }; - beamDeps = [ plug_1_1_5 ]; - - meta = { - description = ''A plug builder for redirecting requests.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/lpil/plug-redirect"; - }; - } // packageOverrides) - ) {}; - - plug_redirect = plug_redirect_0_1_2; - - plug_redirect_https_0_0_6 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, plug_1_1_5 }: - buildMix ({ - name = "plug_redirect_https"; - version = "0.0.6"; - src = fetchHex { - pkg = "plug_redirect_https"; - version = "0.0.6"; - sha256 = - "73f1b3172183005f0fb59a43c50a94a708c06ffcc35a7387967d87e001369068"; - }; - beamDeps = [ plug_1_1_5 ]; - - meta = { - description = ''Plug to redirect http requests to https requests - behind a reverse proxy''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/stocks29/plug_redirect_https.git"; - }; - } // packageOverrides) - ) {}; - - plug_redirect_https = plug_redirect_https_0_0_6; - - plug_require_header_0_8_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - plug_1_1_5 - }: - buildMix ({ - name = "plug_require_header"; - version = "0.8.0"; - src = fetchHex { - pkg = "plug_require_header"; - version = "0.8.0"; - sha256 = - "b721158316f6d2efd4b24bd05a8a1c06caa699ee25249185c8c4f03f9204b283"; - }; - beamDeps = [ poison_1_5_2 plug_1_1_5 ]; - - meta = { - description = ''An Elixir Plug for requiring and extracting a - given header.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/DevL/plug_require_header"; - }; - } // packageOverrides) - ) {}; - - plug_require_header = plug_require_header_0_8_0; - - plug_response_header_0_2_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, plug_1_1_5 }: - buildMix ({ - name = "plug_response_header"; - version = "0.2.1"; - src = fetchHex { - pkg = "plug_response_header"; - version = "0.2.1"; - sha256 = - "82fd11fc70d925ed5a608ac13a9f604a80e24827f6603999d6a0f3f123862048"; - }; - beamDeps = [ plug_1_1_5 ]; - - meta = { - description = ''This plug allows manipulation of HTTP response - headers''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/c-rack/plug_response_header"; - }; - } // packageOverrides) - ) {}; - - plug_response_header = plug_response_header_0_2_1; - - plug_ribbon_0_2_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, plug_1_1_5 }: - buildMix ({ - name = "plug_ribbon"; - version = "0.2.1"; - src = fetchHex { - pkg = "plug_ribbon"; - version = "0.2.1"; - sha256 = - "34fcbffb6fc3adde6bb167506934ab19787d2fff82b6bf93918e0000159bfe9d"; - }; - beamDeps = [ plug_1_1_5 ]; - - meta = { - description = ''Injects a ribbon to your web application - depending on the environment''; - license = stdenv.lib.licenses.mit; - homepage = "https://git.io/plug_ribbon"; - }; - } // packageOverrides) - ) {}; - - plug_ribbon = plug_ribbon_0_2_1; - - plug_runtime_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, plug_1_1_5 }: - buildMix ({ - name = "plug_runtime"; - version = "1.0.0"; - src = fetchHex { - pkg = "plug_runtime"; - version = "1.0.0"; - sha256 = - "58e213a40fe339771ab93520da56c2108488cfd9e99c7e92def367567ce225a7"; - }; - beamDeps = [ plug_1_1_5 ]; - - meta = { - longDescription = ''A simple Plug to measure the runtime of a - request. Results will be in the X-Runtime - header.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/mje113/plug_runtime"; - }; - } // packageOverrides) - ) {}; - - plug_runtime = plug_runtime_1_0_0; - - plug_statsd_0_4_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - plug_1_1_5, - ex_statsd_0_5_3 - }: - buildMix ({ - name = "plug_statsd"; - version = "0.4.1"; - src = fetchHex { - pkg = "plug_statsd"; - version = "0.4.1"; - sha256 = - "af3158b9d43101e39e22472fcea98180911298c92a735d5ff14dce309e5e30f2"; - }; - beamDeps = [ plug_1_1_5 ex_statsd_0_5_3 ]; - - meta = { - description = ''A (Phoenix) plug for sending request counts and - response times to statsd''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/jeffweiss/plug_statsd"; - }; - } // packageOverrides) - ) {}; - - plug_statsd = plug_statsd_0_4_1; - - plug_test_helpers_0_1_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - plug_0_8_4, - cowboy_1_0_4 - }: - buildMix ({ - name = "plug_test_helpers"; - version = "0.1.0"; - src = fetchHex { - pkg = "plug_test_helpers"; - version = "0.1.0"; - sha256 = - "f542d679a33d42147612164ade572fa973344b4550ffcbbb0ef540492c9e97fe"; - }; - beamDeps = [ plug_0_8_4 cowboy_1_0_4 ]; - - meta = { - description = ''Helpers to test your Plugs with ExUnit''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/xavier/plug_test_helpers"; - }; - } // packageOverrides) - ) {}; - - plug_test_helpers = plug_test_helpers_0_1_0; - - plug_utm_0_0_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - plug_1_1_5, - cowboy_1_0_4 - }: - buildMix ({ - name = "plug_utm"; - version = "0.0.2"; - src = fetchHex { - pkg = "plug_utm"; - version = "0.0.2"; - sha256 = - "d473d6b360f5a9189cee2a0f95c06ffb1cb9495a9bb8c729a631c2fa33ed5fc9"; - }; - beamDeps = [ plug_1_1_5 cowboy_1_0_4 ]; - - meta = { - description = ''UTM tracking parameters to cookies''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/honeypotio/plug_utm"; - }; - } // packageOverrides) - ) {}; - - plug_utm = plug_utm_0_0_2; - - plug_wait1_0_1_5 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_3_1, - plug_0_13_1, - cowboy_1_0_4 - }: - buildMix ({ - name = "plug_wait1"; - version = "0.1.5"; - src = fetchHex { - pkg = "plug_wait1"; - version = "0.1.5"; - sha256 = - "33d45e8c5dba4b9639c115b079581954877184c2c7ab394b80514cfd4199bb15"; - }; - beamDeps = [ poison_1_3_1 plug_0_13_1 cowboy_1_0_4 ]; - - meta = { - description = ''Plug adapter for the wait1 protocol''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/wait1/plug_wait1"; - }; - } // packageOverrides) - ) {}; - - plug_wait1 = plug_wait1_0_1_5; - - plug_x_forwarded_for_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "plug_x_forwarded_for"; - version = "0.1.0"; - src = fetchHex { - pkg = "plug_x_forwarded_for"; - version = "0.1.0"; - sha256 = - "7a12dff0f850855ae85d70ed0e71aff5ec55dad6c52fc46d6ba21119e6183b33"; - }; - - meta = { - description = ''x-forwarded-for plug middleware''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/camshaft/plug_x_forwarded_for"; - }; - } // packageOverrides) - ) {}; - - plug_x_forwarded_for = plug_x_forwarded_for_0_1_0; - - plugin_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "plugin"; - version = "0.1.0"; - src = fetchHex { - pkg = "plugin"; - version = "0.1.0"; - sha256 = - "f596a2e9e14081884a841d1805e024d435c6a27e5e38b9c64214017659560fad"; - }; - - meta = { - longDescription = ''Like Plug, only without web-specific logic - and without a typed Conn-datastructure''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/ruby2elixir/plugin"; - }; - } // packageOverrides) - ) {}; - - plugin = plugin_0_1_0; - - plugs_0_1_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - plug_1_1_5, - cowboy_1_0_4 - }: - buildMix ({ - name = "plugs"; - version = "0.1.1"; - src = fetchHex { - pkg = "plugs"; - version = "0.1.1"; - sha256 = - "d11f4122bcd3fd83ac1b442ebf908ebb1f1ad535fa305446c90cf2ce51222c07"; - }; - beamDeps = [ plug_1_1_5 cowboy_1_0_4 ]; - - meta = { - description = ''A collection of Plug middleware for web - applications''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/sugar-framework/plugs"; - }; - } // packageOverrides) - ) {}; - - plugs = plugs_0_1_1; - - plugsnag_1_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, bugsnag_1_2_0 }: - buildMix ({ - name = "plugsnag"; - version = "1.1.0"; - src = fetchHex { - pkg = "plugsnag"; - version = "1.1.0"; - sha256 = - "aa3a9e587042f5519d8309fc4cf764a0262eda0da752ddf87c5fcfea176208ad"; - }; - beamDeps = [ bugsnag_1_2_0 ]; - - meta = { - description = ''Bugsnag reporter for Elixir`s Plug''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/jarednorman/plugsnag"; - }; - } // packageOverrides) - ) {}; - - plugsnag = plugsnag_1_1_0; - - plumber_girl_0_9_6 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "plumber_girl"; - version = "0.9.6"; - src = fetchHex { - pkg = "plumber_girl"; - version = "0.9.6"; - sha256 = - "2a9faf9980cae59e11a6f9cf151a634cd809de220293bbbaba849f216c247a45"; - }; - - meta = { - description = ''PlumberGirl takes care of your Elixir piping - issues!''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/ruby2elixir/plumber_girl"; - }; - } // packageOverrides) - ) {}; - - plumber_girl = plumber_girl_0_9_6; - - pmbag_1_0_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "pmbag"; - version = "1.0.0"; - src = fetchHex { - pkg = "pmbag"; - version = "1.0.0"; - sha256 = - "9f12262ac93faf29c00e3da5f5836086542fbcfa0539bf733ab3e5cca0d34872"; - }; - - meta = { - description = ''Erlang Private Mail Bag.''; - license = stdenv.lib.licenses.mpl20; - homepage = "https://github.com/potatosalad/pmbag"; - }; - } // packageOverrides) - ) {}; - - pmbag = pmbag_1_0_0; - - pobox_1_0_2 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "pobox"; - version = "1.0.2"; - src = fetchHex { - pkg = "pobox"; - version = "1.0.2"; - sha256 = - "372090633c2565cd645acf2d1e2354c0791d5a5dc2f74885795b8807d402fe88"; - }; - - meta = { - description = ''External buffer processes to protect against - mailbox overflow''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/ferd/pobox/"; - }; - } // packageOverrides) - ) {}; - - pobox = pobox_1_0_2; - - pocketeer_0_1_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - httpotion_2_2_2 - }: - buildMix ({ - name = "pocketeer"; - version = "0.1.1"; - src = fetchHex { - pkg = "pocketeer"; - version = "0.1.1"; - sha256 = - "886367d81a41a7668805e06877aedfa1b9b4f1506ef1b42e95a4b3bf722d8e76"; - }; - beamDeps = [ poison_2_1_0 httpotion_2_2_2 ]; - - meta = { - description = ''An Elixir client for the Pocket API''; - license = stdenv.lib.licenses.mit; - homepage = "https://www.github.com/justahero/pocketeer"; - }; - } // packageOverrides) - ) {}; - - pocketeer = pocketeer_0_1_1; - - pocketex_0_1_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_3_1, - httpoison_0_8_3 - }: - buildMix ({ - name = "pocketex"; - version = "0.1.0"; - src = fetchHex { - pkg = "pocketex"; - version = "0.1.0"; - sha256 = - "b832df8e3f3102b69892cc5cfab4418de876a6ecc5780805458b9946aa407cbf"; - }; - beamDeps = [ poison_1_3_1 httpoison_0_8_3 ]; - - meta = { - description = ''Pocketex is an Elixir client for the Pocket read - later service (getpocket.com) ''; - license = stdenv.lib.licenses.free; - homepage = "https://github.com/essenciary/pocketex"; - }; - } // packageOverrides) - ) {}; - - pocketex = pocketex_0_1_0; - - poison_1_3_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "poison"; - version = "1.3.1"; - src = fetchHex { - pkg = "poison"; - version = "1.3.1"; - sha256 = - "fbd78dd3e5abbadc17ddd89905002f6d20a03046f7555a6098d28a9f14feaf58"; - }; - - meta = { - description = ''An incredibly fast, pure Elixir JSON library''; - license = stdenv.lib.licenses.unlicense; - homepage = "https://github.com/devinus/poison"; - }; - } // packageOverrides) - ) {}; - - poison_1_4_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "poison"; - version = "1.4.0"; - src = fetchHex { - pkg = "poison"; - version = "1.4.0"; - sha256 = - "b2715aaeb9f549f4e30739d43993e3c1b1053a4ed69d50c660621bdd1eb96606"; - }; - - meta = { - description = ''An incredibly fast, pure Elixir JSON library''; - license = stdenv.lib.licenses.unlicense; - homepage = "https://github.com/devinus/poison"; - }; - } // packageOverrides) - ) {}; - - poison_1_5_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "poison"; - version = "1.5.0"; - src = fetchHex { - pkg = "poison"; - version = "1.5.0"; - sha256 = - "a31ffdaf77494ff12d6c2c9cb03235d4373596d2faf62ee5b99c1ae479618400"; - }; - - meta = { - description = ''An incredibly fast, pure Elixir JSON library''; - license = stdenv.lib.licenses.unlicense; - homepage = "https://github.com/devinus/poison"; - }; - } // packageOverrides) - ) {}; - - poison_1_5_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "poison"; - version = "1.5.2"; - src = fetchHex { - pkg = "poison"; - version = "1.5.2"; - sha256 = - "4afc59dcadf71be7edc8b934b39f554ec7b31e2b1b1a4767383a663f86958ce3"; - }; - - meta = { - description = ''An incredibly fast, pure Elixir JSON library''; - license = stdenv.lib.licenses.unlicense; - homepage = "https://github.com/devinus/poison"; - }; - } // packageOverrides) - ) {}; - - poison_2_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "poison"; - version = "2.0.1"; - src = fetchHex { - pkg = "poison"; - version = "2.0.1"; - sha256 = - "7f34906a0839f3b49b9b7647461c5144787611f599e8d743214280761699df2b"; - }; - - meta = { - description = ''An incredibly fast, pure Elixir JSON library''; - license = stdenv.lib.licenses.unlicense; - homepage = "https://github.com/devinus/poison"; - }; - } // packageOverrides) - ) {}; - - poison_2_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "poison"; - version = "2.1.0"; - src = fetchHex { - pkg = "poison"; - version = "2.1.0"; - sha256 = - "002caaf939b97c84533ef0f621d3ed414ed703fcd03c91ec0dd62043df102c63"; - }; - - meta = { - description = ''An incredibly fast, pure Elixir JSON library''; - license = stdenv.lib.licenses.unlicense; - homepage = "https://github.com/devinus/poison"; - }; - } // packageOverrides) - ) {}; - - poison = poison_2_1_0; - - poker_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "poker"; - version = "0.0.2"; - src = fetchHex { - pkg = "poker"; - version = "0.0.2"; - sha256 = - "9599ef62b0a2e1b15ff2697cb1603dd7be00911d8a613e1d01cfdf8c8b5d63b3"; - }; - - meta = { - description = ''An Elixir library to work with Poker hands.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/wojtekmach/poker_elixir"; - }; - } // packageOverrides) - ) {}; - - poker = poker_0_0_2; - - poloniex_0_0_8 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - vex_0_5_5, - poison_2_1_0, - httpoison_0_8_3, - exconstructor_1_0_2 - }: - buildMix ({ - name = "poloniex"; - version = "0.0.8"; - src = fetchHex { - pkg = "poloniex"; - version = "0.0.8"; - sha256 = - "7890a5f26178ec224379fa4160092d55f9098131eaab8711a75ef1fe6808cc83"; - }; - beamDeps = [ - vex_0_5_5 - poison_2_1_0 - httpoison_0_8_3 - exconstructor_1_0_2 - ]; - - meta = { - longDescription = ''WIP Poloniex API wrapper for Elixir. Provides - access to market data including trading pairs - between ETH, BTC, DOGE, LTC and others.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/cyberpunk-ventures/poloniex_ex"; - }; - } // packageOverrides) - ) {}; - - poloniex = poloniex_0_0_8; - - poly1305_0_4_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - equivalex_0_1_0, - chacha20_0_3_2 - }: - buildMix ({ - name = "poly1305"; - version = "0.4.1"; - src = fetchHex { - pkg = "poly1305"; - version = "0.4.1"; - sha256 = - "b0f804a21e3c1f57cd37b6e439107a1eaf8d7a2404717fb95d21eb3f134973bb"; - }; - beamDeps = [ equivalex_0_1_0 chacha20_0_3_2 ]; - - meta = { - description = ''Poly1305 message authentication''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/mwmiller/poly1305_ex"; - }; - } // packageOverrides) - ) {}; - - poly1305 = poly1305_0_4_1; - - polyglot_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "polyglot"; - version = "0.0.1"; - src = fetchHex { - pkg = "polyglot"; - version = "0.0.1"; - sha256 = - "83aaf990f322ea5c314b469932e87db7175374b0e0b28d078defba60dca0fb78"; - }; - - meta = { - longDescription = ''Polyglot is a localization library for Elixir - that provides reusable formatting rules and - translations for a large number of languages.''; - license = with stdenv.lib.licenses; [ mit free ]; - homepage = "https://github.com/padde/polyglot"; - }; - } // packageOverrides) - ) {}; - - polyglot = polyglot_0_0_1; - - polyline_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, vector_0_3_0 }: - buildMix ({ - name = "polyline"; - version = "0.1.0"; - src = fetchHex { - pkg = "polyline"; - version = "0.1.0"; - sha256 = - "6df2ebd1a5f55d6f680924200175bc5473beadd013acec72d201fcec18d31afd"; - }; - beamDeps = [ vector_0_3_0 ]; - - meta = { - description = ''Encoding and decoding of Polylines''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/pkinney/polyline_ex"; - }; - } // packageOverrides) - ) {}; - - polyline = polyline_0_1_0; - - polyvox_id3_0_2_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "polyvox_id3"; - version = "0.2.1"; - src = fetchHex { - pkg = "polyvox_id3"; - version = "0.2.1"; - sha256 = - "2bb3e3b9edde6630160857563c992f7e9ea56d11d263172c95161b4275f6b48c"; - }; - - meta = { - description = ''A podcast-centric ID3 library for parsing and - writing ID3 tags.''; - license = stdenv.lib.licenses.gpl3; - homepage = "https://github.com/polyvox/polyvox_id3"; - }; - } // packageOverrides) - ) {}; - - polyvox_id3 = polyvox_id3_0_2_1; - - pool_ring_0_1_5 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "pool_ring"; - version = "0.1.5"; - src = fetchHex { - pkg = "pool_ring"; - version = "0.1.5"; - sha256 = - "a5d965379d8cb05e772e606951ba1b33c45b58a0809ba9f44eff453ea43068ce"; - }; - - meta = { - description = ''create a pool based on a hash ring''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/camshaft/pool_ring"; - }; - } // packageOverrides) - ) {}; - - pool_ring = pool_ring_0_1_5; - - pool_sup_0_2_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, croma_0_4_4 }: - buildMix ({ - name = "pool_sup"; - version = "0.2.2"; - src = fetchHex { - pkg = "pool_sup"; - version = "0.2.2"; - sha256 = - "73cebc2ad393a7ef92c6787b8b581051ddc299372d25bc1175d94dee0ec28e90"; - }; - beamDeps = [ croma_0_4_4 ]; - - meta = { - description = ''A supervisor specialized to manage pool of - workers''; - license = stdenv.lib.licenses.mit; - }; - } // packageOverrides) - ) {}; - - pool_sup = pool_sup_0_2_2; - - poolboy_1_4_1 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "poolboy"; - version = "1.4.1"; - src = fetchHex { - pkg = "poolboy"; - version = "1.4.1"; - sha256 = - "b112f2bfa13010f751ecc013f74af0601eb41315bb0ccfa5eed641d73fbbe899"; - }; - - meta = { - description = ''A hunky Erlang worker pool factory''; - license = with stdenv.lib.licenses; [ unlicense asl20 ]; - homepage = "https://github.com/devinus/poolboy"; - }; - } // packageOverrides) - ) {}; - - poolboy_1_4_2 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "poolboy"; - version = "1.4.2"; - src = fetchHex { - pkg = "poolboy"; - version = "1.4.2"; - sha256 = - "6133b67251080f32ffed4f71913cd2998fd6f02fa076677aadf7278b62853938"; - }; - - meta = { - description = ''A hunky Erlang worker pool factory''; - license = with stdenv.lib.licenses; [ unlicense asl20 ]; - homepage = "https://github.com/devinus/poolboy"; - }; - } // packageOverrides) - ) {}; - - poolboy_1_5_1 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "poolboy"; - version = "1.5.1"; - src = fetchHex { - pkg = "poolboy"; - version = "1.5.1"; - sha256 = - "8f7168911120e13419e086e78d20e4d1a6776f1eee2411ac9f790af10813389f"; - }; - - meta = { - description = ''A hunky Erlang worker pool factory''; - license = with stdenv.lib.licenses; [ unlicense asl20 ]; - homepage = "https://github.com/devinus/poolboy"; - }; - } // packageOverrides) - ) {}; - - poolboy = poolboy_1_5_1; - - pooler_1_5_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "pooler"; - version = "1.5.0"; - src = fetchHex { - pkg = "pooler"; - version = "1.5.0"; - sha256 = - "f493b4b947967fa4250dd1f96e86a5440ecab51da114d2c256cced58ad991908"; - }; - - meta = { - description = ''An OTP Process Pool Application''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/seth/pooler"; - }; - } // packageOverrides) - ) {}; - - pooler = pooler_1_5_0; - - pop3mail_0_1_6 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "pop3mail"; - version = "0.1.6"; - src = fetchHex { - pkg = "pop3mail"; - version = "0.1.6"; - sha256 = - "ca8496c92a3c0caa479836f254980c2af69a66a29e08cea45a164874801c54da"; - }; - - meta = { - longDescription = ''Pop3 client to download email (including - attachments) from the inbox. Decodes multipart - content, quoted-printables, base64 and - encoded-words. Uses an Erlang pop3 client with - SSL support derived from the epop package. Add - this dependency in mix.exs: {:erlpop, github: - \"trifork/erlpop\"}''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/nico-amsterdam/pop3mail"; - }; - } // packageOverrides) - ) {}; - - pop3mail = pop3mail_0_1_6; - - populator_0_4_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "populator"; - version = "0.4.0"; - src = fetchHex { - pkg = "populator"; - version = "0.4.0"; - sha256 = - "4f2b2720676db740139ebd69ca0c26b111721d7d049f185f0e5a50cfca18085d"; - }; - - meta = { - description = ''Supervisor population control library''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/rubencaro/populator"; - }; - } // packageOverrides) - ) {}; - - populator = populator_0_4_0; - - porcelain_2_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "porcelain"; - version = "2.0.1"; - src = fetchHex { - pkg = "porcelain"; - version = "2.0.1"; - sha256 = - "dbe57a57c3917654694ea6be7e756e26345a59d2974fe6ec861a71f469767ad9"; - }; - - meta = { - longDescription = ''Porcelain implements a saner approach to - launching and communicating with external OS - processes from Elixir. Built on top of Erlang`s - ports, it provides richer functionality and - simpler API.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/alco/porcelain"; - }; - } // packageOverrides) - ) {}; - - porcelain = porcelain_2_0_1; - - porter_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "porter"; - version = "0.0.1"; - src = fetchHex { - pkg = "porter"; - version = "0.0.1"; - sha256 = - "81ef97a1d6eb495b6a919cdaae4268a49a3591903424d4ed00f67104d09e89dd"; - }; - - meta = { - longDescription = ''Porter provides an OTP application that runs - the specified system command using the Erlang - Port library and then streams the results back - to you.''; - - }; - } // packageOverrides) - ) {}; - - porter = porter_0_0_1; - - posexional_0_2_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "posexional"; - version = "0.2.1"; - src = fetchHex { - pkg = "posexional"; - version = "0.2.1"; - sha256 = - "c3cedc2c99ed10c400be538e558fcb09cdb675d972d3f5deb33d4029b916da82"; - }; - - meta = { - description = ''A library to manage positional files''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/primait/posexional"; - }; - } // packageOverrides) - ) {}; - - posexional = posexional_0_2_1; - - positive_13_3_7 = callPackage - ( - { buildErlangMk, packageOverrides ? {}, fetchHex }: - buildErlangMk ({ - name = "positive"; - version = "13.3.7"; - src = fetchHex { - pkg = "positive"; - version = "13.3.7"; - sha256 = - "516964039cbae4e64226d9e50787f32134f3411bc0ae8cedf26488ba004616be"; - }; - - meta = { - description = ''Library: check if an integer is positive''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/jlouis/positive"; - }; - } // packageOverrides) - ) {}; - - positive = positive_13_3_7; - - postgrex_0_9_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, decimal_1_1_2 }: - buildMix ({ - name = "postgrex"; - version = "0.9.1"; - src = fetchHex { - pkg = "postgrex"; - version = "0.9.1"; - sha256 = - "9c9a4ffca145479b343d7a51730557305425aab69e8d31cc32f348f85996fb5a"; - }; - beamDeps = [ decimal_1_1_2 ]; - - meta = { - description = ''PostgreSQL driver for Elixir.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/ericmj/postgrex"; - }; - } // packageOverrides) - ) {}; - - pot_0_9_4 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "pot"; - version = "0.9.4"; - src = fetchHex { - pkg = "pot"; - version = "0.9.4"; - sha256 = - "ba6814a8e2be50d64ee65612cf627aba4784555054c22ac5066e6543f349887c"; - }; - - meta = { - longDescription = ''POT is an Erlang library for generating - Google Authenticator compatible one time - passwords.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/yuce/pot"; - }; - } // packageOverrides) - ) {}; - - pot = pot_0_9_4; - - power_assert_0_0_8 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "power_assert"; - version = "0.0.8"; - src = fetchHex { - pkg = "power_assert"; - version = "0.0.8"; - sha256 = - "b4e1d27ab8e05f01d458ba84c4caced1f9b0209b3178dfcf4334e857a8aa6cd0"; - }; - - meta = { - description = ''Power Assert in Elixir. Shows evaluation results - each expression.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/ma2gedev/power_assert_ex"; - }; - } // packageOverrides) - ) {}; - - power_assert = power_assert_0_0_8; - - ppg_0_1_3 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex, evel_0_1_1 }: - buildRebar3 ({ - name = "ppg"; - version = "0.1.3"; - src = fetchHex { - pkg = "ppg"; - version = "0.1.3"; - sha256 = - "8bbd51b5c1f2e08636839ad6f6151b3ad2a5c46e3fe8bdb1f33f79a2b57d1e13"; - }; - - beamDeps = [ evel_0_1_1 ]; - - meta = { - description = ''Plumtree based Process Group''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/sile/ppg"; - }; - } // packageOverrides) - ) {}; - - ppg = ppg_0_1_3; - - pqueue_1_5_1 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "pqueue"; - version = "1.5.1"; - src = fetchHex { - pkg = "pqueue"; - version = "1.5.1"; - sha256 = - "7ba01afe6b50ea4b239fa770f9e2c2db4871b3927ac44aea180d1fd52601b317"; - }; - - meta = { - description = ''Erlang Priority Queue Implementation''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/okeuday/pqueue"; - }; - } // packageOverrides) - ) {}; - - pqueue = pqueue_1_5_1; - - pragmatic_0_1_7 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "pragmatic"; - version = "0.1.7"; - src = fetchHex { - pkg = "pragmatic"; - version = "0.1.7"; - sha256 = - "a86e89bf594108715bf7db70ccb93eb2a020367a9bb6c441ca74d3eb92c35fa3"; - }; - - meta = { - longDescription = ''A small, simple library to deal with the - practical issues arising from using Elixir on - Windows''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/OnorioCatenacci/pragmatic"; - }; - } // packageOverrides) - ) {}; - - pragmatic = pragmatic_0_1_7; - - prefecture_jp_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "prefecture_jp"; - version = "0.0.2"; - src = fetchHex { - pkg = "prefecture_jp"; - version = "0.0.2"; - sha256 = - "ffc29fc76ee098b5f6c7c93db3736916cc23b0ace424dd8c0f946570aeb75c22"; - }; - - meta = { - description = ''PrefectureJp is a library for Japanese - prefecture.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/ymmtmsys/prefecture_jp"; - }; - } // packageOverrides) - ) {}; - - prefecture_jp = prefecture_jp_0_0_2; - - prelude_0_0_1 = callPackage - ( - { - buildMix, packageOverrides ? {}, fetchHex, etude_1_0_0_beta_0 - }: - buildMix ({ - name = "prelude"; - version = "0.0.1"; - src = fetchHex { - pkg = "prelude"; - version = "0.0.1"; - sha256 = - "805c5a43a043864b4793f4aeff574b88e9eaac18e49d93cb71cbd6270283bde9"; - }; - beamDeps = [ etude_1_0_0_beta_0 ]; - - meta = { - description = ''a preprocessor/compiler toolset for erlang and - elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/camshaft/prelude"; - }; - } // packageOverrides) - ) {}; - - prelude = prelude_0_0_1; - - presentex_0_0_10 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "presentex"; - version = "0.0.10"; - src = fetchHex { - pkg = "presentex"; - version = "0.0.10"; - sha256 = - "86479a0b79146dadc3f224d2023d06d7f4f87fd455a3267bbd11759ebde1404c"; - }; - - meta = { - description = ''An Elixir -> HTML/JavaScript presentation - generation tool. ''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/Cobenian/Presentex"; - }; - } // packageOverrides) - ) {}; - - presentex = presentex_0_0_10; - - pretty_hex_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "pretty_hex"; - version = "0.0.1"; - src = fetchHex { - pkg = "pretty_hex"; - version = "0.0.1"; - sha256 = - "ab91a38480049af4811ffdaf15dbee9370acb9b20cdc870281d2006a8fe928b4"; - }; - - meta = { - description = ''A binary hex dumping library in Elixir. ''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/polsab/pretty_hex"; - }; - } // packageOverrides) - ) {}; - - pretty_hex = pretty_hex_0_0_1; - - pricing_0_0_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - timex_1_0_2, - porcelain_2_0_1 - }: - buildMix ({ - name = "pricing"; - version = "0.0.1"; - src = fetchHex { - pkg = "pricing"; - version = "0.0.1"; - sha256 = - "82e0438611507f600bd799c986872588f88627fdcf7a15d4031d779c9d1cd4d7"; - }; - beamDeps = [ timex_1_0_2 porcelain_2_0_1 ]; - - meta = { - description = ''Pricing financial instruments in Elixir''; - license = stdenv.lib.licenses.free; - homepage = "https://github.com/arthurcolle/pricing"; - }; - } // packageOverrides) - ) {}; - - pricing = pricing_0_0_1; - - priority_queue_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "priority_queue"; - version = "1.0.0"; - src = fetchHex { - pkg = "priority_queue"; - version = "1.0.0"; - sha256 = - "ba3dc420a5898d863803455c05ad870c6b6f3adb12b50ebea6cd6aeed1b358b7"; - }; - - meta = { - description = ''Priority Queue for Elixir. Heap implementation''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/ewildgoose/elixir_priority_queue"; - }; - } // packageOverrides) - ) {}; - - priority_queue = priority_queue_1_0_0; - - progress_bar_1_5_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "progress_bar"; - version = "1.5.0"; - src = fetchHex { - pkg = "progress_bar"; - version = "1.5.0"; - sha256 = - "36fa99f89b876078a19f9d929dd74a043a5e34bbf8d62cda5d9cd26e2ce94426"; - }; - - meta = { - description = ''Command-line progress bars and spinners.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/henrik/progress_bar"; - }; - } // packageOverrides) - ) {}; - - progress_bar = progress_bar_1_5_0; - - project_info_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "project_info"; - version = "1.0.0"; - src = fetchHex { - pkg = "project_info"; - version = "1.0.0"; - sha256 = - "749553b710d363e5b900a6d3d37da7c461b8f7a977c9da814124f5862cf209a0"; - }; - - meta = { - longDescription = ''A mix task to get info about the current mix - project such as name or version number. Useful - to automate tasks using a CI server or a build - script.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/nubleer/project_info"; - }; - } // packageOverrides) - ) {}; - - project_info = project_info_1_0_0; - - prometheus_0_2_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "prometheus"; - version = "0.2.0"; - src = fetchHex { - pkg = "prometheus"; - version = "0.2.0"; - sha256 = - "9fbf8aeee723667f86f1d24bbe2562a4db4322ef850d5d6cc353d15c54f64937"; - }; - - meta = { - description = ''Prometheus monitoring system and time series - database client in Erlang.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/deadtrickster/prometheus.erl"; - }; - } // packageOverrides) - ) {}; - - prometheus = prometheus_0_2_0; - - prometheus_plugs_0_0_3 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - prometheus_0_2_0, - plug_1_1_5, - cowboy_1_0_4 - }: - buildMix ({ - name = "prometheus_plugs"; - version = "0.0.3"; - src = fetchHex { - pkg = "prometheus_plugs"; - version = "0.0.3"; - sha256 = - "b15e425ba78e1c76368b66b22f5e22d283fa3cff26f3a4d45a2498cb5db6c0ff"; - }; - beamDeps = [ prometheus_0_2_0 plug_1_1_5 cowboy_1_0_4 ]; - - meta = { - description = ''Prometheus monitoring system client Plugs. Http - metrics collector and exporter''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/deadtrickster/prometheus-plugs"; - }; - } // packageOverrides) - ) {}; - - prometheus_plugs = prometheus_plugs_0_0_3; - - prop_types_0_0_11 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, tipo_0_0_3 }: - buildMix ({ - name = "prop_types"; - version = "0.0.11"; - src = fetchHex { - pkg = "prop_types"; - version = "0.0.11"; - sha256 = - "d786fbef06701e21871f39c9c1bb3354966f24cd606d1b1fd7bff1cc97d2873f"; - }; - beamDeps = [ tipo_0_0_3 ]; - - meta = { - description = ''Property Type validations and checkers for elixir - apps''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/bakasho/prop_types"; - }; - } // packageOverrides) - ) {}; - - prop_types = prop_types_0_0_11; - - proper_case_0_1_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "proper_case"; - version = "0.1.1"; - src = fetchHex { - pkg = "proper_case"; - version = "0.1.1"; - sha256 = - "63c279ad8721fb91175f74a03584fda2baaea6f5d79d5e899dddfd934e924d8a"; - }; - - meta = { - longDescription = ''An Elixir library that converts keys in maps - between `snake_case` and `camel_case`. Useful as - a plug in Phoenix for converting incoming params - from JavaScript`s `camelCase` to Elixir`s - `snake_case`''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/johnnyji/proper_case"; - }; - } // packageOverrides) - ) {}; - - proper_case = proper_case_0_1_1; - - proplist_1_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "proplist"; - version = "1.1.0"; - src = fetchHex { - pkg = "proplist"; - version = "1.1.0"; - sha256 = - "6fc73362d15b4810f4979ddf72ec53c1efc020657a57b7cdd1f682bd38c08298"; - }; - - meta = { - description = ''Proplist provides the complete Keyword API, but - for Proplists.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/knrz/proplist"; - }; - } // packageOverrides) - ) {}; - - proplist = proplist_1_1_0; - - proto_def_0_0_4 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - estree_2_3_0 - }: - buildMix ({ - name = "proto_def"; - version = "0.0.4"; - src = fetchHex { - pkg = "proto_def"; - version = "0.0.4"; - sha256 = - "155b17cd62296cc1d5ee0333a87df4b25616a6dff7863a8e7ad219437db5a37e"; - }; - beamDeps = [ poison_2_1_0 estree_2_3_0 ]; - - meta = { - longDescription = ''ProtoDef compiler for Elixir. (mostly) - Compatible with - https://github.com/ProtoDef-io/ProtoDef.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/ProtoDef-io/elixir-protodef"; - }; - } // packageOverrides) - ) {}; - - proto_def = proto_def_0_0_4; - - providers_1_4_1 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex, getopt_0_8_2 }: - buildRebar3 ({ - name = "providers"; - version = "1.4.1"; - src = fetchHex { - pkg = "providers"; - version = "1.4.1"; - sha256 = - "dfd88305670a3d942c08a2d852eeb4c20ec40ee2ba589339a48083ac74f14e36"; - }; - - beamDeps = [ getopt_0_8_2 ]; - - meta = { - description = ''Providers provider.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/tsloughter/providers"; - }; - } // packageOverrides) - ) {}; - - providers_1_6_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex, getopt_0_8_2 }: - buildRebar3 ({ - name = "providers"; - version = "1.6.0"; - src = fetchHex { - pkg = "providers"; - version = "1.6.0"; - sha256 = - "0f6876529a613d34224de8c61d3660388eb981142360f2699486d8536050ce2f"; - }; - - beamDeps = [ getopt_0_8_2 ]; - - meta = { - description = ''Providers provider.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/tsloughter/providers"; - }; - } // packageOverrides) - ) {}; - - providers = providers_1_6_0; - - proxy_0_0_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - plug_1_1_5, - httpoison_0_8_3, - cowboy_1_0_4 - }: - buildMix ({ - name = "proxy"; - version = "0.0.1"; - src = fetchHex { - pkg = "proxy"; - version = "0.0.1"; - sha256 = - "74691b18a0918d6e14df1f254ee9f342a547bc280151a4d88a540839ae75bbae"; - }; - beamDeps = [ plug_1_1_5 httpoison_0_8_3 cowboy_1_0_4 ]; - - meta = { - description = ''Proxy plug for upstream servers''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/chadwpry/elixir-proxy"; - }; - } // packageOverrides) - ) {}; - - proxy = proxy_0_0_1; - - public_suffix_0_3_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, idna_2_0_0 }: - buildMix ({ - name = "public_suffix"; - version = "0.3.0"; - src = fetchHex { - pkg = "public_suffix"; - version = "0.3.0"; - sha256 = - "ffced61dca1d881ed91b4c6ee675e707bd1dbff14adb48adebf0bebbaeccae48"; - }; - beamDeps = [ idna_2_0_0 ]; - - meta = { - longDescription = ''Operate on domain names using the public - suffix rules provided by - https://publicsuffix.org/.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/seomoz/publicsuffix-elixir"; - }; - } // packageOverrides) - ) {}; - - public_suffix = public_suffix_0_3_0; - - publicsuffix_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "publicsuffix"; - version = "0.0.1"; - src = fetchHex { - pkg = "publicsuffix"; - version = "0.0.1"; - sha256 = - "c20351c883ab00a424c6eace4adb23726fbf242240bc63f583f4c07cbe0a824b"; - }; - - meta = { - description = ''Domain name parser for Elixir based on the Public - Suffix List.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/weppos/publicsuffix-elixir"; - }; - } // packageOverrides) - ) {}; - - publicsuffix = publicsuffix_0_0_1; - - pubnub_ex_0_0_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - httpoison_0_8_3, - exjsx_3_2_0 - }: - buildMix ({ - name = "pubnub_ex"; - version = "0.0.2"; - src = fetchHex { - pkg = "pubnub_ex"; - version = "0.0.2"; - sha256 = - "83d270cfe2be6728fb96d9145371a87ddc876a97f91cdca2584cc82c2a0b91cb"; - }; - beamDeps = [ httpoison_0_8_3 exjsx_3_2_0 ]; - - meta = { - description = ''A pubsub tool for pubnub.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/ryuone/pubnub_ex"; - }; - } // packageOverrides) - ) {}; - - pubnub_ex = pubnub_ex_0_0_2; - - pubsub_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "pubsub"; - version = "0.0.2"; - src = fetchHex { - pkg = "pubsub"; - version = "0.0.2"; - sha256 = - "2072bf67d5d4b6d41c81f0e89697d72ca323c5640e883b0d0cec7d43cf6c8ae8"; - }; - - meta = { - description = ''Publish-Subscribe utility''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/simonewebdesign/elixir_pubsub"; - }; - } // packageOverrides) - ) {}; - - pubsub = pubsub_0_0_2; - - qdate_0_4_3 = callPackage - ( - { - buildRebar3, - packageOverrides ? {}, - fetchHex, - erlware_commons_0_20_0, - erlang_localtime_1_0_0 - }: - buildRebar3 ({ - name = "qdate"; - version = "0.4.3"; - src = fetchHex { - pkg = "qdate"; - version = "0.4.3"; - sha256 = - "0bbad4929a7cf2432c832fe45310080776c64973037c5b1aa21bbe05dbc61401"; - }; - - beamDeps = [ erlware_commons_0_20_0 erlang_localtime_1_0_0 ]; - - meta = { - description = ''Simple Date and Timezone handling for Erlang''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/choptastic/qdate"; - }; - } // packageOverrides) - ) {}; - - qdate = qdate_0_4_3; - - qiita_ex_0_0_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - httpoison_0_8_3, - exjsx_3_2_0 - }: - buildMix ({ - name = "qiita_ex"; - version = "0.0.2"; - src = fetchHex { - pkg = "qiita_ex"; - version = "0.0.2"; - sha256 = - "0bb9a5535c0915c426ff13350b907cbd2b455bb99d8bcb8324ffadb6c9bcf1eb"; - }; - beamDeps = [ httpoison_0_8_3 exjsx_3_2_0 ]; - - meta = { - description = ''Qiita API v2 Interface for Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/ma2gedev/qiita_ex"; - }; - } // packageOverrides) - ) {}; - - qiita_ex = qiita_ex_0_0_2; - - qiniu_0_3_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "qiniu"; - version = "0.3.0"; - src = fetchHex { - pkg = "qiniu"; - version = "0.3.0"; - sha256 = - "f47360528cd289be5f5bb444d289e90f5f330a3230c9386f5a7aecd019a73081"; - }; - beamDeps = [ poison_2_1_0 httpoison_0_8_3 ]; - - meta = { - description = ''Qiniu Resource (Cloud) Storage SDK for Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/tony612/qiniu"; - }; - } // packageOverrides) - ) {}; - - qiniu = qiniu_0_3_0; - - qlc_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "qlc"; - version = "1.0.0"; - src = fetchHex { - pkg = "qlc"; - version = "1.0.0"; - sha256 = - "80df25fc032ced6f8c0c21df4099434db09d6de87ee32237719c776974ad15cc"; - }; - - meta = { - description = ''QLC interface for Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/k1complete/qlc"; - }; - } // packageOverrides) - ) {}; - - qlc = qlc_1_0_0; - - quantum_1_7_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, timex_2_1_6 }: - buildMix ({ - name = "quantum"; - version = "1.7.1"; - src = fetchHex { - pkg = "quantum"; - version = "1.7.1"; - sha256 = - "55a74be6a021816fe78d9a4a9450281e027302806313c9fa6e51694d44106c0a"; - }; - beamDeps = [ timex_2_1_6 ]; - - meta = { - description = ''Cron-like job scheduler for Elixir.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/c-rack/quantum-elixir"; - }; - } // packageOverrides) - ) {}; - - quantum = quantum_1_7_1; - - quark_1_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "quark"; - version = "1.0.2"; - src = fetchHex { - pkg = "quark"; - version = "1.0.2"; - sha256 = - "c24950acc4d6f44aff612302871b2cff5f56d6b702285bc04e7b71179e5b13c7"; - }; - - meta = { - description = ''Common combinators for Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/robot-overlord/quark"; - }; - } // packageOverrides) - ) {}; - - quark = quark_1_0_2; - - queue_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "queue"; - version = "0.0.1"; - src = fetchHex { - pkg = "queue"; - version = "0.0.1"; - sha256 = - "a383d4b4a64e7639e66f314ae9e38e387453bcce6c96173e3d90b497c82bed9b"; - }; - - meta = { - description = ''Elixir wrapper for erlang double sided FIFO - queue''; - - }; - } // packageOverrides) - ) {}; - - queue = queue_0_0_1; - - queuex_0_2_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "queuex"; - version = "0.2.0"; - src = fetchHex { - pkg = "queuex"; - version = "0.2.0"; - sha256 = - "e40b25befc34ecff962c92536e6a520967dd2d6031cb70a58be62269a6aec623"; - }; - - meta = { - description = ''Priority Queue''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/falood/queuex"; - }; - } // packageOverrides) - ) {}; - - queuex = queuex_0_2_0; - - quickrand_1_5_1 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "quickrand"; - version = "1.5.1"; - src = fetchHex { - pkg = "quickrand"; - version = "1.5.1"; - sha256 = - "0b3dcc6ddb23319c1f6a5ed143778864b8ad2f0ebd693a2d121cf5ae0c4db507"; - }; - - meta = { - longDescription = ''Quick Random Number Generation: Provides a - simple interface to call efficient random number - generation functions based on the context. - Proper random number seeding is enforced.''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/okeuday/quickrand"; - }; - } // packageOverrides) - ) {}; - - quickrand = quickrand_1_5_1; - - quintana_0_2_1 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex, folsom_0_8_3 }: - buildRebar3 ({ - name = "quintana"; - version = "0.2.1"; - src = fetchHex { - pkg = "quintana"; - version = "0.2.1"; - sha256 = - "d4683eb33c71f6cab3b17b896b4fa9180f17a0a8b086440bfe0c5675182f0194"; - }; - - beamDeps = [ folsom_0_8_3 ]; - - meta = { - description = ''Wrapper around some Folsom functions''; - - }; - } // packageOverrides) - ) {}; - - quintana = quintana_0_2_1; - - ra_0_3_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "ra"; - version = "0.3.2"; - src = fetchHex { - pkg = "ra"; - version = "0.3.2"; - sha256 = - "696cc4fd2dc1a36c705af7e7a1551bd054ad245841fccbc5d9d210f375c2dcf4"; - }; - - meta = { - description = ''Ra is a framework for building command line - applications.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/NobbZ/ra"; - }; - } // packageOverrides) - ) {}; - - ra = ra_0_3_2; - - rabbitElixir_1_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, exjsx_3_1_0 }: - buildMix ({ - name = "rabbitElixir"; - version = "1.0.1"; - src = fetchHex { - pkg = "rabbitElixir"; - version = "1.0.1"; - sha256 = - "bc0ddae7fa0b869a6688db2e5d909d375ff0692a959aa768eed586bcfd2d0a2f"; - }; - beamDeps = [ exjsx_3_1_0 ]; - - meta = { - description = ''Another Zawgyi <=> Unicode Converter ''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/Rabbit-Converter/Rabbit-Elixir"; - }; - } // packageOverrides) - ) {}; - - rabbitElixir = rabbitElixir_1_0_1; - - rabbit_common_3_5_6 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "rabbit_common"; - version = "3.5.6"; - src = fetchHex { - pkg = "rabbit_common"; - version = "3.5.6"; - sha256 = - "9335ab3ebc4e8e140d7bc9b1b0e7ee99c0aa87d0a746b704184121ba35c04f1c"; - }; - - meta = { - longDescription = ''Includes modules which are a runtime - dependency of the RabbitMQ/AMQP Erlang client - and are common to the RabbitMQ server.''; - license = stdenv.lib.licenses.mpl11; - homepage = "https://github.com/jbrisbin/rabbit_common"; - }; - } // packageOverrides) - ) {}; - - rabbit_common = rabbit_common_3_5_6; - - rails_4_2_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, plug_1_1_5 }: - buildMix ({ - name = "rails"; - version = "4.2.0"; - src = fetchHex { - pkg = "rails"; - version = "4.2.0"; - sha256 = - "731692769aa106a20c87b12dca15336fd1d16a7f02e2615ad76f6ce83a2b0b46"; - }; - beamDeps = [ plug_1_1_5 ]; - - meta = { - longDescription = ''A plug to get your plug/phoenix applications - performance more in line with Rails.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/BlakeWilliams/rails"; - }; - } // packageOverrides) - ) {}; - - rails = rails_4_2_0; - - ralitobu_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "ralitobu"; - version = "0.1.0"; - src = fetchHex { - pkg = "ralitobu"; - version = "0.1.0"; - sha256 = - "c131ef38e9f9e438e7479ba34430c7c874d1646670d6636a8cc98db2f113d075"; - }; - - meta = { - description = ''The Rate Limiter with Token Bucket algorithm''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/asaaki/ralitobu"; - }; - } // packageOverrides) - ) {}; - - ralitobu = ralitobu_0_1_0; - - ralitobu_plug_0_1_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - ralitobu_0_1_0, - plug_1_1_5 - }: - buildMix ({ - name = "ralitobu_plug"; - version = "0.1.0"; - src = fetchHex { - pkg = "ralitobu_plug"; - version = "0.1.0"; - sha256 = - "f6c425f0dea74222243ffb3d4aaefd24b5ee0547ec71ac78896f1cfe02821e74"; - }; - beamDeps = [ ralitobu_0_1_0 plug_1_1_5 ]; - - meta = { - description = ''Elixir Plug for Ralitobu, the Rate Limiter with - Token Bucket algorithm''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/asaaki/ralitobu_plug"; - }; - } // packageOverrides) - ) {}; - - ralitobu_plug = ralitobu_plug_0_1_0; - - ranch_1_1_0 = callPackage - ( - { buildErlangMk, packageOverrides ? {}, fetchHex }: - buildErlangMk ({ - name = "ranch"; - version = "1.1.0"; - src = fetchHex { - pkg = "ranch"; - version = "1.1.0"; - sha256 = - "98ade939e63e6567da5dec5bc5bd93cbdc53d53f8b1aa998adec60dc4057f048"; - }; - - meta = { - description = ''Socket acceptor pool for TCP protocols.''; - license = stdenv.lib.licenses.isc; - homepage = "https://github.com/ninenines/ranch"; - }; - } // packageOverrides) - ) {}; - - ranch_1_2_1 = callPackage - ( - { buildErlangMk, packageOverrides ? {}, fetchHex }: - buildErlangMk ({ - name = "ranch"; - version = "1.2.1"; - src = fetchHex { - pkg = "ranch"; - version = "1.2.1"; - sha256 = - "f602d057615ce737945c239e9c8155d3f5300fc5b1255abf81f2a9d0d08e5b04"; - }; - - meta = { - description = ''Socket acceptor pool for TCP protocols.''; - license = stdenv.lib.licenses.isc; - homepage = "https://github.com/ninenines/ranch"; - }; - } // packageOverrides) - ) {}; - - ranch = ranch_1_2_1; - - random_string_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "random_string"; - version = "0.0.1"; - src = fetchHex { - pkg = "random_string"; - version = "0.0.1"; - sha256 = - "4a90483956764f6ad3d928e27d2e6a1e830bc53b28ded5464c715eb2ec6b8ed8"; - }; - - meta = { - description = ''Generates random string (or a stream of - characters) of desired character sets.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/sylph01/random_string"; - }; - } // packageOverrides) - ) {}; - - random_string = random_string_0_0_1; - - range_extras_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "range_extras"; - version = "0.1.0"; - src = fetchHex { - pkg = "range_extras"; - version = "0.1.0"; - sha256 = - "edc50d31341e1370d009df8b51d7d0e355a966068520ff38e88b8b542953e15c"; - }; - - meta = { - description = ''Elixir range utilities: constant-time random - sampling and set operations.''; - license = stdenv.lib.licenses.isc; - homepage = "https://github.com/lnikkila/elixir-range-extras"; - }; - } // packageOverrides) - ) {}; - - range_extras = range_extras_0_1_0; - - rankmatcher_0_1_5 = callPackage - ( - { - buildRebar3, packageOverrides ? {}, fetchHex, libsnarlmatch_0_1_7 - }: - buildRebar3 ({ - name = "rankmatcher"; - version = "0.1.5"; - src = fetchHex { - pkg = "rankmatcher"; - version = "0.1.5"; - sha256 = - "304704fcc294c636d80f030001495ada0e6b66a36c7a2f785964c8f491e3f197"; - }; - - beamDeps = [ libsnarlmatch_0_1_7 ]; - - meta = { - description = ''Library to rank and match lists''; - license = stdenv.lib.licenses.cddl; - homepage = "https://github.com/dalmatinerdb/mstore"; - }; - } // packageOverrides) - ) {}; - - rankmatcher = rankmatcher_0_1_5; - - rapidax_0_0_3 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - httpoison_0_8_3, - cowboy_1_0_4 - }: - buildMix ({ - name = "rapidax"; - version = "0.0.3"; - src = fetchHex { - pkg = "rapidax"; - version = "0.0.3"; - sha256 = - "9912b79b3d2729465bf66315bd955e031aeb038f05a63faa2dc0414026edb18c"; - }; - beamDeps = [ poison_1_5_2 httpoison_0_8_3 cowboy_1_0_4 ]; - - meta = { - description = ''Rapidly develop your API client - based on - rapidash gem''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/victorlcampos/rapidax"; - }; - } // packageOverrides) - ) {}; - - rapidax = rapidax_0_0_3; - - ratio_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "ratio"; - version = "1.0.0"; - src = fetchHex { - pkg = "ratio"; - version = "1.0.0"; - sha256 = - "bd20f7aff8c5052a59037a66b603df55a7f23db1b23e7f8287bd331c0d9b8e9c"; - }; - - meta = { - longDescription = ''This library allows you to use Rational - numbers in Elixir, to enable exact calculations - with all numbers big and small. It defines the - new <|> operator, (optionally) overrides the - arithmetic +, -, * and / operators to work with - ints, floats and Rational numbers all alike. - Floats are also automatically coerced into - Rationals whenever possible. And don`t worry: If - you don`t like operator-overloading: There are - longhand function aliases available too.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/qqwy/elixir-rational"; - }; - } // packageOverrides) - ) {}; - - ratio = ratio_1_0_0; - - rational_0_2_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, earmark_0_2_1 }: - buildMix ({ - name = "rational"; - version = "0.2.0"; - src = fetchHex { - pkg = "rational"; - version = "0.2.0"; - sha256 = - "640093486afd882e5283d4269d9ab624369239016fed67e3b8038845322107b7"; - }; - beamDeps = [ earmark_0_2_1 ]; - - meta = { - longDescription = ''Rational is a module for exact representation - and manipulation of rational fractions, that is, - those fractions that can be exactly represented - by a ratio of integers (e.g., 1/3 or - 4176/22687).''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/twist-vector/elixir-rational.git"; - }; - } // packageOverrides) - ) {}; - - rational = rational_0_2_0; - - ratx_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "ratx"; - version = "0.1.0"; - src = fetchHex { - pkg = "ratx"; - version = "0.1.0"; - sha256 = - "fbf933ff32fdc127200880f5b567820bf03504ade1bd697ffbc0535dbafc23d6"; - }; - - meta = { - description = ''Rate limiter and overload protection for erlang - and elixir applications. ''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/liveforeverx/ratx"; - }; - } // packageOverrides) - ) {}; - - ratx = ratx_0_1_0; - - ravel_0_0_6 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "ravel"; - version = "0.0.6"; - src = fetchHex { - pkg = "ravel"; - version = "0.0.6"; - sha256 = - "a8fc97393216e2c4429982deefb77b48031ca7feca1f81835451af8977d4932e"; - }; - - meta = { - description = ''Extendable validation for Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/revati/ravel"; - }; - } // packageOverrides) - ) {}; - - ravel = ravel_0_0_6; - - ravenex_0_0_5 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - uuid_1_1_4, - poison_2_1_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "ravenex"; - version = "0.0.5"; - src = fetchHex { - pkg = "ravenex"; - version = "0.0.5"; - sha256 = - "909039771fc414dd95d72d3e57c474f5ba7e593c9a9b448e3849ea68aa9d58cc"; - }; - beamDeps = [ uuid_1_1_4 poison_2_1_0 httpoison_0_8_3 ]; - - meta = { - longDescription = ''Ravenex is an Elixir client for Sentry. - Automatically send error notifications to - Sentry. Easily connects with Phoenix through - adding a logger or Plug.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/hayesgm/ravenex"; - }; - } // packageOverrides) - ) {}; - - ravenex = ravenex_0_0_5; - - raxx_0_0_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - httpoison_0_8_3, - cowboy_1_0_4 - }: - buildMix ({ - name = "raxx"; - version = "0.0.1"; - src = fetchHex { - pkg = "raxx"; - version = "0.0.1"; - sha256 = - "b4a2fbb7d4e85932626656d38adb4de95d47bce04255a9c5b7c2562a27f92111"; - }; - beamDeps = [ httpoison_0_8_3 cowboy_1_0_4 ]; - - meta = { - longDescription = ''A Elixir webserver interface, for stateless - HTTP. Raxx exists to simplify handling the HTTP - request-response cycle. It deliberately does not - handle other communication styles that are part - of the modern web.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/crowdhailer/raxx"; - }; - } // packageOverrides) - ) {}; - - raxx = raxx_0_0_1; - - react_on_elixir_0_0_4 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poolboy_1_5_1, - poison_1_5_2 - }: - buildMix ({ - name = "react_on_elixir"; - version = "0.0.4"; - src = fetchHex { - pkg = "react_on_elixir"; - version = "0.0.4"; - sha256 = - "5747938079acd15a39768a77ab013b199d429d725397fcd1e8313abf6eeb7c3b"; - }; - beamDeps = [ poolboy_1_5_1 poison_1_5_2 ]; - - meta = { - description = ''Server render react components from Elixir''; - license = stdenv.lib.licenses.unlicense; - homepage = "https://github.com/gauravtiwari/react_on_elixir"; - }; - } // packageOverrides) - ) {}; - - react_on_elixir = react_on_elixir_0_0_4; - - read_repos_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "read_repos"; - version = "0.0.1"; - src = fetchHex { - pkg = "read_repos"; - version = "0.0.1"; - sha256 = - "f981ea689d21956e1470d947ba24c5480e808fdf1a9da4cd148e5a4e1247e8b4"; - }; - - meta = { - description = ''Simple master-slave library for Ecto.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/kenta-aktsk/read_repos"; - }; - } // packageOverrides) - ) {}; - - read_repos = read_repos_0_0_1; - - readability_0_5_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - httpoison_0_8_3, - floki_0_8_1 - }: - buildMix ({ - name = "readability"; - version = "0.5.0"; - src = fetchHex { - pkg = "readability"; - version = "0.5.0"; - sha256 = - "82b03705957be376e748029a9ac94a699f5dac072fdef662c46258c83d7e1a3e"; - }; - beamDeps = [ httpoison_0_8_3 floki_0_8_1 ]; - - meta = { - description = ''Readability library for extracting and curating - articles.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/keepcosmos/readability"; - }; - } // packageOverrides) - ) {}; - - readability = readability_0_5_0; - - readit_0_0_3 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "readit"; - version = "0.0.3"; - src = fetchHex { - pkg = "readit"; - version = "0.0.3"; - sha256 = - "a3f99c65e9ef62c625c81150735b7456db71e350cf892ee1119d3839cfab361e"; - }; - beamDeps = [ poison_2_1_0 httpoison_0_8_3 ]; - - meta = { - description = ''A Simple Read-Only Reddit API Client''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/adamzaninovich/readit"; - }; - } // packageOverrides) - ) {}; - - readit = readit_0_0_3; - - reap_0_1_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, jsex_2_0_0 }: - buildMix ({ - name = "reap"; - version = "0.1.3"; - src = fetchHex { - pkg = "reap"; - version = "0.1.3"; - sha256 = - "e260540500a29ac9945db512a550cd9b56ba4295b4aa3c1b408ad62720e7807b"; - }; - beamDeps = [ jsex_2_0_0 ]; - - meta = { - description = ''A library for working with the refheap API''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/Raynes/reap"; - }; - } // packageOverrides) - ) {}; - - reap = reap_0_1_3; - - reaxive_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "reaxive"; - version = "0.1.0"; - src = fetchHex { - pkg = "reaxive"; - version = "0.1.0"; - sha256 = - "d185c80da34499999000f6aaab3ab891cdff34cb3a2079835e8e6f5b4e813fa2"; - }; - - meta = { - longDescription = ''Reaxive is a library inspired by Reactive - Extensions and ELM to provide functional - reactive programming to Elixir. It allows for - active sequences of events and a set of - stream-reducer like transformations such as map - or filter. ''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/alfert/reaxive"; - }; - } // packageOverrides) - ) {}; - - reaxive = reaxive_0_1_0; - - rebar3_appup_plugin_1_1_1 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "rebar3_appup_plugin"; - version = "1.1.1"; - src = fetchHex { - pkg = "rebar3_appup_plugin"; - version = "1.1.1"; - sha256 = - "ea6d33c962770187021c528d0472a4f0b123c4adaf3242afb33465b796a34497"; - }; - - meta = { - description = ''A rebar3 plugin for handling .appup files''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/lrascao/rebar3_appup_plugin"; - }; - } // packageOverrides) - ) {}; - - rebar3_appup_plugin = rebar3_appup_plugin_1_1_1; - - rebar3_asn1_compiler_1_0_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "rebar3_asn1_compiler"; - version = "1.0.0"; - src = fetchHex { - pkg = "rebar3_asn1_compiler"; - version = "1.0.0"; - sha256 = - "25ec1d5c97393195650ac8c7a06a267a886a1479950ee047c43b5228c07b30b9"; - }; - - meta = { - description = ''Compile ASN.1 modules with Rebar3''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/pyykkis/rebar3_asn1_compiler"; - }; - } // packageOverrides) - ) {}; - - rebar3_asn1_compiler = rebar3_asn1_compiler_1_0_0; - - spell_0_1_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_4_0, - msgpax_0_8_2 - }: - buildMix ({ - name = "spell"; - version = "0.1.0"; - src = fetchHex { - pkg = "spell"; - version = "0.1.0"; - sha256 = - "c768ada54d3cbda57d63344b0b9c91520362700dde4b939a825358f01f1dbfa9"; - }; - beamDeps = [ poison_1_4_0 msgpax_0_8_2 ]; - - meta = { - longDescription = ''Spell is an extensible Elixir WAMP client. - Spell supports the client subscriber, publisher, - callee, and caller roles.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/MyMedsAndMe/spell"; - }; - } // packageOverrides) - ) {}; - - spell = spell_0_1_0; - - spex_0_1_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "spex"; - version = "0.1.2"; - src = fetchHex { - pkg = "spex"; - version = "0.1.2"; - sha256 = - "102a1a74e19cd68c843ba45ac8580f44b5b8e4cc572e206e143cab56f369fb93"; - }; - - meta = { - description = ''Validate your Elixir values against value-based - specs''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/codegram/spex"; - }; - } // packageOverrides) - ) {}; - - spex = spex_0_1_2; - - spf_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "spf"; - version = "0.0.1"; - src = fetchHex { - pkg = "spf"; - version = "0.0.1"; - sha256 = - "64126066eaac871e08a1ece2721e0fccb36220b28a4c6b03f08f0d4d459909a3"; - }; - - meta = { - description = ''SPF implementation in Elixir.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/hex-sh/spf"; - }; - } // packageOverrides) - ) {}; - - spf = spf_0_0_1; - - spherical_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "spherical"; - version = "0.0.1"; - src = fetchHex { - pkg = "spherical"; - version = "0.0.1"; - sha256 = - "eaa7f1a4d265a0a6d0b8e23b530882dda0e68e35780a5af50ac6a2d9d2ba2fac"; - }; - - meta = { - description = ''An spherical geometry library for Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/arpunk/spherical"; - }; - } // packageOverrides) - ) {}; - - spherical = spherical_0_0_1; - - spotify_ex_0_0_4 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - plug_1_1_5, - httpoison_0_8_3 - }: - buildMix ({ - name = "spotify_ex"; - version = "0.0.4"; - src = fetchHex { - pkg = "spotify_ex"; - version = "0.0.4"; - sha256 = - "f2e8647410096d34d9baecf8d9622896214320641ed72c11c711f9a463e4a961"; - }; - beamDeps = [ poison_1_5_2 plug_1_1_5 httpoison_0_8_3 ]; - - meta = { - description = ''An Elixir wrapper for Spotify API O-Auth.''; - license = stdenv.lib.licenses.mit; - homepage = "https://www.github.com/jsncmgs1/spotify_ex"; - }; - } // packageOverrides) - ) {}; - - spotify_ex = spotify_ex_0_0_4; - - spout_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "spout"; - version = "0.0.1"; - src = fetchHex { - pkg = "spout"; - version = "0.0.1"; - sha256 = - "5389628219cfa6df18ba366cb668055e44e97eccfea38d385d0581c489f3926a"; - }; - - meta = { - longDescription = ''A TAP producer that integrates with existing - ExUnit tests via an ExUnit formatter''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/Stratus3D/Spout"; - }; - } // packageOverrides) - ) {}; - - spout = spout_0_0_1; - - spreedly_0_1_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - httpoison_0_8_3 - }: - buildMix ({ - name = "spreedly"; - version = "0.1.2"; - src = fetchHex { - pkg = "spreedly"; - version = "0.1.2"; - sha256 = - "b5c770da8627fb1a3a570ffeec1a15e9ee1d643383f26018855ac028471e1329"; - }; - beamDeps = [ poison_1_5_2 httpoison_0_8_3 ]; - - meta = { - description = ''A wrapper for the Spreedly API.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/duff/spreedly-elixir"; - }; - } // packageOverrides) - ) {}; - - spreedly = spreedly_0_1_2; - - sqlcx_1_1_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - esqlcipher_1_0_0, - decimal_1_1_2 - }: - buildMix ({ - name = "sqlcx"; - version = "1.1.0"; - src = fetchHex { - pkg = "sqlcx"; - version = "1.1.0"; - sha256 = - "203c9b39da2e359322c9d83bb64d2559dd26e0f22a03d493bfc817120c394e8d"; - }; - beamDeps = [ esqlcipher_1_0_0 decimal_1_1_2 ]; - - meta = { - description = ''A thin Elixir wrapper around esqlcipher''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/FelixKiunke/sqlcx"; - }; - } // packageOverrides) - ) {}; - - sqlcx = sqlcx_1_1_0; - - sqlitex_0_8_3 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - pipe_0_0_2, - esqlite_0_2_2, - decimal_1_1_2 - }: - buildMix ({ - name = "sqlitex"; - version = "0.8.3"; - src = fetchHex { - pkg = "sqlitex"; - version = "0.8.3"; - sha256 = - "44daaeb135178165d0a6cd6754e4af05e56e5d2943c0b1108df7df718745ec0f"; - }; - beamDeps = [ pipe_0_0_2 esqlite_0_2_2 decimal_1_1_2 ]; - - meta = { - description = ''A thin Elixir wrapper around esqlite''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/mmmries/sqlitex"; - }; - } // packageOverrides) - ) {}; - - sqlitex_1_0_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - esqlite_0_2_2, - decimal_1_1_2 - }: - buildMix ({ - name = "sqlitex"; - version = "1.0.0"; - src = fetchHex { - pkg = "sqlitex"; - version = "1.0.0"; - sha256 = - "cbd7310e900841aa2dc6071b497330e730de1cd9618003006e0af48afb24d5f8"; - }; - beamDeps = [ esqlite_0_2_2 decimal_1_1_2 ]; - - meta = { - description = ''A thin Elixir wrapper around esqlite''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/mmmries/sqlitex"; - }; - } // packageOverrides) - ) {}; - - sqlitex = sqlitex_1_0_0; - - sshex_2_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "sshex"; - version = "2.1.0"; - src = fetchHex { - pkg = "sshex"; - version = "2.1.0"; - sha256 = - "303bd8fd007bf2d10ddfae83b74acafc747f24908c2590b098ba2e85c570c58b"; - }; - - meta = { - description = ''Simple SSH helpers for Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/rubencaro/sshex"; - }; - } // packageOverrides) - ) {}; - - sshex = sshex_2_1_0; - - ssl_verify_fun_1_1_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "ssl_verify_fun"; - version = "1.1.0"; - src = fetchHex { - pkg = "ssl_verify_fun"; - version = "1.1.0"; - sha256 = - "6c0e0d857fdb031ba67b0a791202bee116bea2313db7b649839000847591ba1e"; - }; - - meta = { - description = ''SSL verification functions for Erlang''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/deadtrickster/ssl_verify_fun.erl"; - }; - } // packageOverrides) - ) {}; - - ssl_verify_fun = ssl_verify_fun_1_1_0; - - stache_0_2_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "stache"; - version = "0.2.1"; - src = fetchHex { - pkg = "stache"; - version = "0.2.1"; - sha256 = - "475e80a2b6e713a75d0a085b067489e2fc1606751aab47413e12a33cf2ae4712"; - }; - - meta = { - description = ''Mustache templates in Elixir.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/cwbriones/stache"; - }; - } // packageOverrides) - ) {}; - - stache = stache_0_2_1; - - stackd_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "stackd"; - version = "0.0.1"; - src = fetchHex { - pkg = "stackd"; - version = "0.0.1"; - sha256 = - "41749dc834f92af4954988b5e9155d45fcbf63224ecfcabce6f1fc80f3aff8f9"; - }; - - meta = { - description = ''Stackd''; - - }; - } // packageOverrides) - ) {}; - - stackd = stackd_0_0_1; - - stash_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "stash"; - version = "1.0.0"; - src = fetchHex { - pkg = "stash"; - version = "1.0.0"; - sha256 = - "ac68a470ed2a292b59c1dbf286a97e8b25ec72adaeeb3734c183dc54b659f7d6"; - }; - - meta = { - description = ''Simple ETS backed key/value store for Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/zackehh/stash"; - }; - } // packageOverrides) - ) {}; - - stash = stash_1_0_0; - - stathat_0_0_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "stathat"; - version = "0.0.3"; - src = fetchHex { - pkg = "stathat"; - version = "0.0.3"; - sha256 = - "2d3663d1bbbf13fbae688a89656dd53f747e69d23ec73bcfd8835c2ca9d09c35"; - }; - - meta = { - description = ''StatHat client library.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/travisjeffery/stathat"; - }; - } // packageOverrides) - ) {}; - - stathat = stathat_0_0_3; - - statistics_0_4_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "statistics"; - version = "0.4.1"; - src = fetchHex { - pkg = "statistics"; - version = "0.4.1"; - sha256 = - "726d8791e9bafb08b3ceeb5b08df6664f29a73a0e6ac0db835500b686a153bd5"; - }; - - meta = { - description = ''Functions for descriptive statistics and common - distributions''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/msharp/elixir-statistics"; - }; - } // packageOverrides) - ) {}; - - statistics = statistics_0_4_1; - - statix_0_7_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "statix"; - version = "0.7.0"; - src = fetchHex { - pkg = "statix"; - version = "0.7.0"; - sha256 = - "0439c5698eaef7c2de213d9bff5681eeccc1dec789931e9ae73b9d2b2968234b"; - }; - - meta = { - description = ''An Elixir client for StatsD compatible - servers.''; - license = stdenv.lib.licenses.isc; - homepage = "https://github.com/lexmag/statix"; - }; - } // packageOverrides) - ) {}; - - statix = statix_0_7_0; - - std_json_io_0_1_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - porcelain_2_0_1, - poolboy_1_5_1, - poison_1_5_2, - fs_0_9_2 - }: - buildMix ({ - name = "std_json_io"; - version = "0.1.0"; - src = fetchHex { - pkg = "std_json_io"; - version = "0.1.0"; - sha256 = - "14f1c18c31a0b0b3ffb1e654247925335059eec9c800d81dd6379166e7403d1e"; - }; - beamDeps = [ porcelain_2_0_1 poolboy_1_5_1 poison_1_5_2 fs_0_9_2 - ]; - - meta = { - description = ''Application for managing and communicating with - IO servers via JSON''; - - }; - } // packageOverrides) - ) {}; - - std_json_io = std_json_io_0_1_0; - - steamex_0_0_5 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - sweet_xml_0_6_1, - httpoison_0_8_3 - }: - buildMix ({ - name = "steamex"; - version = "0.0.5"; - src = fetchHex { - pkg = "steamex"; - version = "0.0.5"; - sha256 = - "4a290c432c0480cf372fece76cc4f09e231261fda64ef5027e8855e16aa5a2f6"; - }; - beamDeps = [ sweet_xml_0_6_1 httpoison_0_8_3 ]; - - meta = { - description = ''Steam API and Auth (with Phoenix/Plug - integration) for Elixir''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/antipax/steamex"; - }; - } // packageOverrides) - ) {}; - - steamex = steamex_0_0_5; - - stemex_0_1_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "stemex"; - version = "0.1.1"; - src = fetchHex { - pkg = "stemex"; - version = "0.1.1"; - sha256 = - "219b8e81fedba5a9bb978b8f7eaf230e77f2702d58e409adcca998fde1788521"; - }; - - meta = { - longDescription = ''Stemex is a NIF wrapper above snowball - containing stemmers for : danish, dutch, - english, finnish, french, german, hungarian, - italian, kraaij_pohlmann, lovins, norwegian, - portuguese, romanian, russian, spanish, swedish, - turkish.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/awetzel/stemex"; - }; - } // packageOverrides) - ) {}; - - stemex = stemex_0_1_1; - - stillir_1_0_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "stillir"; - version = "1.0.0"; - src = fetchHex { - pkg = "stillir"; - version = "1.0.0"; - sha256 = - "04afdee2e5123b6da11fcc28c38d581f74db0cbe1faa1c36ed4f364797b588c0"; - }; - - meta = { - description = ''Read Unix env vars into application config''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/heroku/stillir"; - }; - } // packageOverrides) - ) {}; - - stillir = stillir_1_0_0; - - stockastic_0_0_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - httpoison_0_8_3, - exjsx_3_2_0 - }: - buildMix ({ - name = "stockastic"; - version = "0.0.2"; - src = fetchHex { - pkg = "stockastic"; - version = "0.0.2"; - sha256 = - "f180915a21d4aa4a64f660696b77c5788334d4bae2639a58814565af0d75ca56"; - }; - beamDeps = [ httpoison_0_8_3 exjsx_3_2_0 ]; - - meta = { - description = ''Simple Elixir wrapper for the Stockfighter API''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/shanewilton/stockastic"; - }; - } // packageOverrides) - ) {}; - - stockastic = stockastic_0_0_2; - - stockfighter_0_0_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - httpoison_0_8_3 - }: - buildMix ({ - name = "stockfighter"; - version = "0.0.1"; - src = fetchHex { - pkg = "stockfighter"; - version = "0.0.1"; - sha256 = - "d72726cf055068e2b62ef9091ec17ab9292b60bc7f4a7306c17cad6d022a3bd7"; - }; - beamDeps = [ poison_1_5_2 httpoison_0_8_3 ]; - - meta = { - description = ''a simple wrapper of stockfighter http api''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/lerencao/stockfighter"; - }; - } // packageOverrides) - ) {}; - - stockfighter = stockfighter_0_0_1; - - stopwatch_0_0_7 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, timex_1_0_2 }: - buildMix ({ - name = "stopwatch"; - version = "0.0.7"; - src = fetchHex { - pkg = "stopwatch"; - version = "0.0.7"; - sha256 = - "de20ad70ca3b0f70d0a2000858e80c0afd4163101e18d0428ee62a58e7c8360a"; - }; - beamDeps = [ timex_1_0_2 ]; - - meta = { - description = ''The stopwatch provides an easy api to measure - elapsed time and profile code.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/matteosister/stopwatch"; - }; - } // packageOverrides) - ) {}; - - stopwatch = stopwatch_0_0_7; - - stream_runner_1_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "stream_runner"; - version = "1.1.0"; - src = fetchHex { - pkg = "stream_runner"; - version = "1.1.0"; - sha256 = - "3c2da3658440ba57224cd484de4b0d8b128e5463413ac05285cdfa4b37e30798"; - }; - - meta = { - description = ''Run a Stream as a process''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/fishcakez/stream_runner"; - }; - } // packageOverrides) - ) {}; - - stream_runner = stream_runner_1_1_0; - - stream_weaver_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "stream_weaver"; - version = "0.0.2"; - src = fetchHex { - pkg = "stream_weaver"; - version = "0.0.2"; - sha256 = - "6664a585d4afaac63e69f367e79bcc6af886dbebd1f8b66a099f6164973dc168"; - }; - - meta = { - description = ''Library for working with streams''; - - }; - } // packageOverrides) - ) {}; - - stream_weaver = stream_weaver_0_0_2; - - stream_x_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "stream_x"; - version = "0.0.1"; - src = fetchHex { - pkg = "stream_x"; - version = "0.0.1"; - sha256 = - "68832e9ac5542ca7763e5ea8493f2f775b84d79995fd63eda608ef6f786d1395"; - }; - - meta = { - description = ''Extra Elixir Stream utilities''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/koyeung/stream_x"; - }; - } // packageOverrides) - ) {}; - - stream_x = stream_x_0_0_1; - - strftimerl_0_1_1 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "strftimerl"; - version = "0.1.1"; - src = fetchHex { - pkg = "strftimerl"; - version = "0.1.1"; - sha256 = - "c09c7cd6a421bcbc1020c1440a2e73e312b852adbb3034d11f3dffa27d7953b1"; - }; - - meta = { - description = ''strftime formatting in erlang''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/gmr/strftimerl"; - }; - } // packageOverrides) - ) {}; - - strftimerl = strftimerl_0_1_1; - - strict_comparison_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "strict_comparison"; - version = "0.0.1"; - src = fetchHex { - pkg = "strict_comparison"; - version = "0.0.1"; - sha256 = - "c033d7c5befc4971171a20c8fce96ae04fc0ebf0bae790b7ee0e7498f9d7997e"; - }; - - meta = { - description = ''Provides strict number comparison in both regular - code and guards.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/antipax/strict_comparison"; - }; - } // packageOverrides) - ) {}; - - strict_comparison = strict_comparison_0_0_1; - - strinx_0_2_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "strinx"; - version = "0.2.1"; - src = fetchHex { - pkg = "strinx"; - version = "0.2.1"; - sha256 = - "b3a083b3c0f28d35d283cb5e50b03798840e401eb723d44d8e9137735a3798e7"; - }; - - meta = { - longDescription = ''Some string transformation functions for - Elixir. Heavily inspired by ActiveSupport`s - String extensions (Ruby).''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/asaaki/strinx.ex"; - }; - } // packageOverrides) - ) {}; - - strinx = strinx_0_2_1; - - stripex_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, gateway_0_0_6 }: - buildMix ({ - name = "stripex"; - version = "0.1.0"; - src = fetchHex { - pkg = "stripex"; - version = "0.1.0"; - sha256 = - "49959c78e677d3e30edd808cce7a013a7120f337705d0e2fd646c000d9b30853"; - }; - beamDeps = [ gateway_0_0_6 ]; - - meta = { - longDescription = ''A much more ruby-stripe-like wrapper around - Stripe`s API (built with Poison). Full - documentation can be found at - https://stripe.com/docs/api''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/foxnewsnetwork/stripex"; - }; - } // packageOverrides) - ) {}; - - stripex = stripex_0_1_0; - - struct_fields_0_3_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "struct_fields"; - version = "0.3.0"; - src = fetchHex { - pkg = "struct_fields"; - version = "0.3.0"; - sha256 = - "d0ec469ccb59d2207a94cb8e3d3ce9b8bf09f239695e33a0e2447e2a1ff2178b"; - }; - - meta = { - description = ''Tiny module to easily get a list of fields for - structs.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/nTraum/struct_fields"; - }; - } // packageOverrides) - ) {}; - - struct_fields = struct_fields_0_3_0; - - styledown_0_0_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, execjs_1_1_3 }: - buildMix ({ - name = "styledown"; - version = "0.0.3"; - src = fetchHex { - pkg = "styledown"; - version = "0.0.3"; - sha256 = - "8dc31569257a9d5fe3eb67ca87d0cd29f6d14c4a62191262b41a28fc9bca18fc"; - }; - beamDeps = [ execjs_1_1_3 ]; - - meta = { - description = ''Elixir integration of Styledown''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/styledown/styledown_ex"; - }; - } // packageOverrides) - ) {}; - - styledown = styledown_0_0_3; - - supervisor3_1_1_1 = callPackage - ( - { buildErlangMk, packageOverrides ? {}, fetchHex }: - buildErlangMk ({ - name = "supervisor3"; - version = "1.1.1"; - src = fetchHex { - pkg = "supervisor3"; - version = "1.1.1"; - sha256 = - "0d17df36f524f7420d7e1afb0d65054ffdfcd5438de63597d6ab626deb38f94c"; - }; - - meta = { - description = ''A copy of supervisor.erl from the R16B Erlang/OTP - with modifications''; - license = stdenv.lib.licenses.free; - homepage = "https://github.com/klarna/supervisor3"; - }; - } // packageOverrides) - ) {}; - - supervisor3 = supervisor3_1_1_1; - - supool_1_5_1 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "supool"; - version = "1.5.1"; - src = fetchHex { - pkg = "supool"; - version = "1.5.1"; - sha256 = - "c191d63ff19ae177bf4cfba02303ae4552d8b48ec4133e24053e037513dfae09"; - }; - - meta = { - description = ''Erlang Process Pool as a Supervisor''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/okeuday/supool"; - }; - } // packageOverrides) - ) {}; - - supool = supool_1_5_1; - - swapi_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, httpoison_0_8_3 }: - buildMix ({ - name = "swapi"; - version = "1.0.0"; - src = fetchHex { - pkg = "swapi"; - version = "1.0.0"; - sha256 = - "55b40ddd97d632b027463aefccb8d6fa9ffa77f224a25af5565bbaecff5c7a3c"; - }; - beamDeps = [ httpoison_0_8_3 ]; - - meta = { - description = ''An Elixir wrapper for the Star Wars API.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/twhitacre/swapi.ex"; - }; - } // packageOverrides) - ) {}; - - swapi = swapi_1_0_0; - - sweet_xml_0_5_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "sweet_xml"; - version = "0.5.1"; - src = fetchHex { - pkg = "sweet_xml"; - version = "0.5.1"; - sha256 = - "3266dedc5e2e6c6b1c5b8a088504a58980632727803de22a5a276da847ea6947"; - }; - - meta = { - description = ''An sweet wrapper of :xmerl to help query xml - docs''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/awetzel/sweet_xml"; - }; - } // packageOverrides) - ) {}; - - sweet_xml_0_6_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "sweet_xml"; - version = "0.6.1"; - src = fetchHex { - pkg = "sweet_xml"; - version = "0.6.1"; - sha256 = - "30059e5367a4728ca4b246682adc72618a0a8c997eca6f52a107b2fe3ab4f313"; - }; - - meta = { - description = ''An sweet wrapper of :xmerl to help query xml - docs''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/awetzel/sweet_xml"; - }; - } // packageOverrides) - ) {}; - - sweet_xml = sweet_xml_0_6_1; - - syn_1_4_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "syn"; - version = "1.4.0"; - src = fetchHex { - pkg = "syn"; - version = "1.4.0"; - sha256 = - "cec944ba1768a5142ba496bc84b62ebeab68e8ddd2c8e3263c95f89660275d9c"; - }; - - meta = { - description = ''A global Process Registry and Process Group - manager.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/ostinelli/syn"; - }; - } // packageOverrides) - ) {}; - - syn = syn_1_4_0; - - syn_osc_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, osc_0_1_1 }: - buildMix ({ - name = "syn_osc"; - version = "0.1.0"; - src = fetchHex { - pkg = "syn_osc"; - version = "0.1.0"; - sha256 = - "7cdb75d8e9a64f3e2baf77bce83d06e0da4361d34a82c3ddda68a6efb3d21df9"; - }; - beamDeps = [ osc_0_1_1 ]; - - meta = { - description = ''SynOSC encoder/decoder for elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/camshaft/syn_osc_ex"; - }; - } // packageOverrides) - ) {}; - - syn_osc = syn_osc_0_1_0; - - syntactic_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "syntactic"; - version = "0.0.2"; - src = fetchHex { - pkg = "syntactic"; - version = "0.0.2"; - sha256 = - "20adf1f265ebb17ab79d53355b7854c751cee68c73f8a66baca7035da06f65db"; - }; - - meta = { - description = ''A collection of Elixir syntactic sugars.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/hzamani/elixir-syntactic"; - }; - } // packageOverrides) - ) {}; - - syntactic = syntactic_0_0_2; - - synthex_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "synthex"; - version = "0.1.0"; - src = fetchHex { - pkg = "synthex"; - version = "0.1.0"; - sha256 = - "111932916800698a032b9cf7e883146613acc788d165066210e1e09b00e476bc"; - }; - - meta = { - description = ''A signal synthesis library''; - license = stdenv.lib.licenses.isc; - homepage = "https://github.com/bitgamma/synthex"; - }; - } // packageOverrides) - ) {}; - - synthex = synthex_0_1_0; - - system_env_loader_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "system_env_loader"; - version = "0.1.0"; - src = fetchHex { - pkg = "system_env_loader"; - version = "0.1.0"; - sha256 = - "b271e8dcc857d7e36159554c343ed0af950e9dc8adf0f4cee399228142f68ec6"; - }; - - meta = { - longDescription = ''A little package to load (bashlike) files - with exported ENV variables into Elixir - runtime''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/ruby2elixir/system_env_loader"; - }; - } // packageOverrides) - ) {}; - - system_env_loader = system_env_loader_0_1_0; - - table_0_0_5 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "table"; - version = "0.0.5"; - src = fetchHex { - pkg = "table"; - version = "0.0.5"; - sha256 = - "8d1f3ac55512f92eeba1345842278ee6f89d2a4f19be0e272a5f32a958f066d5"; - }; - - meta = { - description = ''ascii tables for cli''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/zweifisch/table"; - }; - } // packageOverrides) - ) {}; - - table = table_0_0_5; - - table_rex_0_4_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "table_rex"; - version = "0.4.0"; - src = fetchHex { - pkg = "table_rex"; - version = "0.4.0"; - sha256 = - "71776a56629b850c647d298577f153faa41d3a98cff41446dd799c6bf30fcf19"; - }; - - meta = { - description = ''Generate configurable text-based tables for - display (ASCII & more)''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/djm/table_rex"; - }; - } // packageOverrides) - ) {}; - - table_rex_0_8_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "table_rex"; - version = "0.8.0"; - src = fetchHex { - pkg = "table_rex"; - version = "0.8.0"; - sha256 = - "8d026afe99ac07f1261eae09334edbf8ec7ce55b812c3a60440ed88db83aad82"; - }; - - meta = { - description = ''Generate configurable text-based tables for - display (ASCII & more)''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/djm/table_rex"; - }; - } // packageOverrides) - ) {}; - - table_rex = table_rex_0_8_0; - - tabula_2_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "tabula"; - version = "2.0.1"; - src = fetchHex { - pkg = "tabula"; - version = "2.0.1"; - sha256 = - "ed66a6d83890eaece976daf1083aa4e0ed9d877e185a1a9ccf1f2c87ee61b49e"; - }; - - meta = { - description = ''Pretty printer for maps/structs collections''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/aerosol/Tabula"; - }; - } // packageOverrides) - ) {}; - - tabula = tabula_2_0_1; - - tachometer_0_1_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "tachometer"; - version = "0.1.1"; - src = fetchHex { - pkg = "tachometer"; - version = "0.1.1"; - sha256 = - "ead8f6a964b79df0b2948a59c72ec0e2b319bb7684079e7170fa191c78481a42"; - }; - - meta = { - description = ''Scheduler instrumentation for BEAM in Elixir''; - license = stdenv.lib.licenses.gpl3; - homepage = "https://github.com/pavlos/tachometer"; - }; - } // packageOverrides) - ) {}; - - tachometer_0_2_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, watcher_1_0_0 }: - buildMix ({ - name = "tachometer"; - version = "0.2.0"; - src = fetchHex { - pkg = "tachometer"; - version = "0.2.0"; - sha256 = - "de5e0bda346e31130f33ca118cdd4afccd0ba6728c571ccae35f65d3020074aa"; - }; - beamDeps = [ watcher_1_0_0 ]; - - meta = { - description = ''Scheduler instrumentation for BEAM in Elixir''; - license = stdenv.lib.licenses.gpl3; - homepage = "https://github.com/pavlos/tachometer"; - }; - } // packageOverrides) - ) {}; - - tachometer = tachometer_0_2_0; - - tail_1_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "tail"; - version = "1.0.1"; - src = fetchHex { - pkg = "tail"; - version = "1.0.1"; - sha256 = - "8cec5c708be02aab6094f9c6fdf5b6b0e68c0c3d4f2f9ae341e743d119e9c07f"; - }; - - meta = { - longDescription = ''A simple file tail functionality. Calls a - callback function whenever new lines are - detected on a file.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/TheFirstAvenger/elixir-tail.git"; - }; - } // packageOverrides) - ) {}; - - tail = tail_1_0_1; - - tally_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "tally"; - version = "0.0.1"; - src = fetchHex { - pkg = "tally"; - version = "0.0.1"; - sha256 = - "cd9e07c47f5ce6f01a33a98552aa028e4f9a4c0ec35a2cb16178a9bf37117a36"; - }; - - meta = { - description = ''A reporting library for Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/boudra/tally"; - }; - } // packageOverrides) - ) {}; - - tally = tally_0_0_1; - - tane_0_3_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "tane"; - version = "0.3.1"; - src = fetchHex { - pkg = "tane"; - version = "0.3.1"; - sha256 = - "8154bcc365b7f21d7ab6ff6d122f6dc110dda05bbfcd7f331a7f514512913e0a"; - }; - - meta = { - description = ''Library for Seeding Databases''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/Joe-noh/tane"; - }; - } // packageOverrides) - ) {}; - - tane = tane_0_3_1; - - tanuki_0_2_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - httpoison_0_8_3 - }: - buildMix ({ - name = "tanuki"; - version = "0.2.0"; - src = fetchHex { - pkg = "tanuki"; - version = "0.2.0"; - sha256 = - "f499d6bcb80fc29f2d0b68d16d8309cb25589583b1f4d0eb23cbc4fe5afbab8c"; - }; - beamDeps = [ poison_1_5_2 httpoison_0_8_3 ]; - - meta = { - description = ''GitLab API wrapper in Elixir, named after GitLabs - mascot''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/ZJvandeWeg/Tanuki"; - }; - } // packageOverrides) - ) {}; - - tanuki = tanuki_0_2_0; - - tap_0_1_4 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "tap"; - version = "0.1.4"; - src = fetchHex { - pkg = "tap"; - version = "0.1.4"; - sha256 = - "573cba12e7152f6e577fd485e9f0d834bdf1ea60229123bbfbaefcfd91879218"; - }; - - meta = { - description = ''Elixir tracing''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/eproxus/tap"; - }; - } // packageOverrides) - ) {}; - - tap = tap_0_1_4; - - tau_0_0_6 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "tau"; - version = "0.0.6"; - src = fetchHex { - pkg = "tau"; - version = "0.0.6"; - sha256 = - "6469f53ae39221f045b6dbd8199eaa95ed5f6c1252b063bc6edd1f21ae2ad0e7"; - }; - - meta = { - description = ''The mathematical constant tau''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/FranklinChen/tau"; - }; - } // packageOverrides) - ) {}; - - tau = tau_0_0_6; - - taxon_search_0_0_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - httpotion_2_2_2 - }: - buildMix ({ - name = "taxon_search"; - version = "0.0.1"; - src = fetchHex { - pkg = "taxon_search"; - version = "0.0.1"; - sha256 = - "eb185015a4f238e8a540f60d187edb28b19e643526e595f4cb0e4b553bdf1a6f"; - }; - beamDeps = [ poison_2_1_0 httpotion_2_2_2 ]; - - meta = { - description = ''TaxonSearch is a tool for looking up species - names in Elixir.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/annejohnson/taxon_search"; - }; - } // packageOverrides) - ) {}; - - taxon_search = taxon_search_0_0_1; - - tds_0_5_4 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, decimal_1_1_2 }: - buildMix ({ - name = "tds"; - version = "0.5.4"; - src = fetchHex { - pkg = "tds"; - version = "0.5.4"; - sha256 = - "110eb8d8a58d0d5fe629bfe75dacb56fa14bde441d2baffbfa2bb0c65ee66cba"; - }; - beamDeps = [ decimal_1_1_2 ]; - - meta = { - description = ''MSSQL / TDS Driver for Ecto.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/livehelpnow/tds"; - }; - } // packageOverrides) - ) {}; - - tds = tds_0_5_4; - - tea_crypto_1_0_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "tea_crypto"; - version = "1.0.0"; - src = fetchHex { - pkg = "tea_crypto"; - version = "1.0.0"; - sha256 = - "0e7e60d0afe79f0624faa8a358a3a00c912cfa548f3632383927abca4db29cc6"; - }; - - meta = { - description = ''A TEA implementation in Erlang. ''; - - homepage = "https://github.com/keichan34/tea_crypto"; - }; - } // packageOverrides) - ) {}; - - tea_crypto = tea_crypto_1_0_0; - - teacup_0_3_4 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "teacup"; - version = "0.3.4"; - src = fetchHex { - pkg = "teacup"; - version = "0.3.4"; - sha256 = - "59495d566e810f481ec22b263e8bf0ed90efea9c9272e4980e36d921cd6ab5f9"; - }; - - meta = { - description = ''Simple TCP client library for Erlang''; - license = stdenv.lib.licenses.mit; - }; - } // packageOverrides) - ) {}; - - teacup = teacup_0_3_4; - - teacup_nats_0_4_0 = callPackage - ( - { - buildRebar3, - packageOverrides ? {}, - fetchHex, - teacup_0_3_4, - nats_msg_0_4_1, - jsx_2_8_0 - }: - buildRebar3 ({ - name = "teacup_nats"; - version = "0.4.0"; - src = fetchHex { - pkg = "teacup_nats"; - version = "0.4.0"; - sha256 = - "f0f891f8f9b384517380d643ecf2121a9e383fd05416997778597c5647a9dd6f"; - }; - - beamDeps = [ teacup_0_3_4 nats_msg_0_4_1 jsx_2_8_0 ]; - - meta = { - description = ''Teacup based NATS Client for Erlang''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/yuce/teacup_nats.git"; - }; - } // packageOverrides) - ) {}; - - teacup_nats = teacup_nats_0_4_0; - - teamcity_exunit_formatter_0_3_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "teamcity_exunit_formatter"; - version = "0.3.0"; - src = fetchHex { - pkg = "teamcity_exunit_formatter"; - version = "0.3.0"; - sha256 = - "0d209ca85fcd3d8112be29288988ce6329b2b2e7c10cd7deab636508716de82f"; - }; - - meta = { - longDescription = ''A formatter for Elixirs ExUnit that formats - as TeamCity Service Messages. Will let you track - test results in TeamCitys UI''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/lixhq/teamcity-exunit-formatter"; - }; - } // packageOverrides) - ) {}; - - teamcity_exunit_formatter = teamcity_exunit_formatter_0_3_0; - - telegram_0_0_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, poison_2_1_0 }: - buildMix ({ - name = "telegram"; - version = "0.0.3"; - src = fetchHex { - pkg = "telegram"; - version = "0.0.3"; - sha256 = - "ad7b74cec90ade9090a9056aa69c055398fd3f60352b50c732849f06c503287d"; - }; - beamDeps = [ poison_2_1_0 ]; - - meta = { - description = ''Simple module for parsing Telegram bot updates''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/col/telegram"; - }; - } // packageOverrides) - ) {}; - - telegram = telegram_0_0_3; - - telehashname_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "telehashname"; - version = "0.0.2"; - src = fetchHex { - pkg = "telehashname"; - version = "0.0.2"; - sha256 = - "301a92653dafa69f118fdb8b8ca42259ac2e82441175231e1d67afcd26409f71"; - }; - - meta = { - description = ''Telehash hashname implementation''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/mwmiller/telehashname_ex"; - }; - } // packageOverrides) - ) {}; - - telehashname = telehashname_0_0_2; - - telephonist_0_1_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - immortal_0_2_0, - ex_twiml_2_1_0 - }: - buildMix ({ - name = "telephonist"; - version = "0.1.2"; - src = fetchHex { - pkg = "telephonist"; - version = "0.1.2"; - sha256 = - "c89922cfc4137dace4fd6458a6ff32f624dd9775b2e90efffbd864cdaa537a3e"; - }; - beamDeps = [ immortal_0_2_0 ex_twiml_2_1_0 ]; - - meta = { - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/danielberkompas/telephonist"; - }; - } // packageOverrides) - ) {}; - - telephonist = telephonist_0_1_2; - - temp_0_4_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "temp"; - version = "0.4.0"; - src = fetchHex { - pkg = "temp"; - version = "0.4.0"; - sha256 = - "1a852035e1c8bb9b33d00d322161689553d412fea783617afbd22112d481ffff"; - }; - - meta = { - description = ''An Elixir module to easily create and use - temporary files and directories.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/tuvistavie/elixir-temp"; - }; - } // packageOverrides) - ) {}; - - temp = temp_0_4_0; - - tempdir_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "tempdir"; - version = "0.0.1"; - src = fetchHex { - pkg = "tempdir"; - version = "0.0.1"; - sha256 = - "fa658ebbdbddfa729b8276652949d20ac2fbb4eff0261a61fb5f9c96fc943ffd"; - }; - - meta = { - description = ''Simple Elixir Library for creating self-cleaning - tmp directories''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/andrewvy/tempdir"; - }; - } // packageOverrides) - ) {}; - - tempdir = tempdir_0_0_1; - - tempfile_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "tempfile"; - version = "0.1.0"; - src = fetchHex { - pkg = "tempfile"; - version = "0.1.0"; - sha256 = - "e6e505207616d1bb77e85ac4b4d9a11437ed1eb58eb06e99c582498602a9a45b"; - }; - - meta = { - description = ''Auto cleaning and randomly named temporary - files''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/sorentwo/tempfile"; - }; - } // packageOverrides) - ) {}; - - tempfile = tempfile_0_1_0; - - temporary_env_1_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "temporary_env"; - version = "1.0.1"; - src = fetchHex { - pkg = "temporary_env"; - version = "1.0.1"; - sha256 = - "64bd9bade983bbdbb0c59c35343faa4c86d5533a8fe596891be84d52a41bdfe0"; - }; - - meta = { - description = ''A tool for managing application env state within - tests.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/lpil/temporary-env"; - }; - } // packageOverrides) - ) {}; - - temporary_env = temporary_env_1_0_1; - - tentabucket_0_0_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - httpoison_0_8_3, - exjsx_3_2_0 - }: - buildMix ({ - name = "tentabucket"; - version = "0.0.1"; - src = fetchHex { - pkg = "tentabucket"; - version = "0.0.1"; - sha256 = - "5784dad17f973efcc3c4ea7672927095864d58af1f830614e4c8f06c63d4822d"; - }; - beamDeps = [ httpoison_0_8_3 exjsx_3_2_0 ]; - - meta = { - description = ''Simple Bitbucket API client library for Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/duksis/tentabucket"; - }; - } // packageOverrides) - ) {}; - - tentabucket = tentabucket_0_0_1; - - tentacat_0_5_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - httpoison_0_8_3, - exjsx_3_2_0 - }: - buildMix ({ - name = "tentacat"; - version = "0.5.1"; - src = fetchHex { - pkg = "tentacat"; - version = "0.5.1"; - sha256 = - "eabbffa3f2529848bb44ecdd1c140fdd06fb382a9c76a5f3ed018b87c2691946"; - }; - beamDeps = [ httpoison_0_8_3 exjsx_3_2_0 ]; - - meta = { - description = ''Simple Elixir wrapper for the GitHub API''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/edgurgel/tentacat"; - }; - } // packageOverrides) - ) {}; - - tentacat = tentacat_0_5_1; - - term_table_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "term_table"; - version = "0.0.2"; - src = fetchHex { - pkg = "term_table"; - version = "0.0.2"; - sha256 = - "e0a39ef8fa4343ded18bf53b381c12ae557ca2982e24351788db457b38bd7924"; - }; - - meta = { - description = ''Pretty terminal table for Elixir''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/ske77/term_table"; - }; - } // packageOverrides) - ) {}; - - term_table = term_table_0_0_2; - - termcap_0_1_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "termcap"; - version = "0.1.0"; - src = fetchHex { - pkg = "termcap"; - version = "0.1.0"; - sha256 = - "8c5167d68759bd1cd020eeaf5fd94153430fd19fa5a5fdeeb0b3129f0aba2a21"; - }; - - meta = { - description = ''Pure erlang termcap library''; - license = stdenv.lib.licenses.mit; - }; - } // packageOverrides) - ) {}; - - termcap = termcap_0_1_0; - - tesla_0_2_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, exjsx_3_1_0 }: - buildMix ({ - name = "tesla"; - version = "0.2.1"; - src = fetchHex { - pkg = "tesla"; - version = "0.2.1"; - sha256 = - "02193ace70596445a5924e33a7e89ee15378dde07197b59bb5fba9217d8afc10"; - }; - beamDeps = [ exjsx_3_1_0 ]; - - meta = { - description = ''HTTP client library, with support for middleware - and multiple adapters.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/monterail/tesla"; - }; - } // packageOverrides) - ) {}; - - tesla = tesla_0_2_1; - - test_times_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "test_times"; - version = "1.0.0"; - src = fetchHex { - pkg = "test_times"; - version = "1.0.0"; - sha256 = - "be468ea6002d247f743bd005c4ed71b5f86ae0e9b112ab52fea8c4f5db71cced"; - }; - - meta = { - description = ''Report individual test times in ascending - order''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/pinfieldharm/test_times"; - }; - } // packageOverrides) - ) {}; - - test_times = test_times_1_0_0; - - tfidf_0_1_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "tfidf"; - version = "0.1.2"; - src = fetchHex { - pkg = "tfidf"; - version = "0.1.2"; - sha256 = - "9dc3b778a31998671a3a3e91d5abcf1c7e9794e39d97d4eba4ce4150d80e2b36"; - }; - - meta = { - description = ''Elixir implementation of tf-idf (Term - frequency-inverse document frequency)''; - license = stdenv.lib.licenses.unlicense; - homepage = "https://github.com/OCannings/tf-idf"; - }; - } // packageOverrides) - ) {}; - - tfidf = tfidf_0_1_2; - - the_fuzz_0_3_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "the_fuzz"; - version = "0.3.0"; - src = fetchHex { - pkg = "the_fuzz"; - version = "0.3.0"; - sha256 = - "f959818716b25f2c535648e9dc6dc8558c6b9fce5f337e1fcf11f913178087b8"; - }; - - meta = { - longDescription = ''String metrics and phonetic algorithms for - Elixir (e.g. Dice/Sorensen, Hamming, Jaccard, - Jaro, Jaro-Winkler, Levenshtein, Metaphone, - N-Gram, NYSIIS, Overlap, Ratcliff/Obershelp, - Refined NYSIIS, Refined Soundex, Soundex, - Tversky, Tanimoto, Weighted Levenshtein). Based - Heavily on StringMetrics for Scala written by - Rocky Madden.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/smashedtoatoms/the_fuzz"; - }; - } // packageOverrides) - ) {}; - - the_fuzz = the_fuzz_0_3_0; - - thermex_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "thermex"; - version = "0.1.0"; - src = fetchHex { - pkg = "thermex"; - version = "0.1.0"; - sha256 = - "0fd2767f5fd6a73ab57d65f5797a84675341d923b5a4c10652223c4969846656"; - }; - - meta = { - description = ''An OTP application for watching temperature - sensors''; - - }; - } // packageOverrides) - ) {}; - - thermex = thermex_0_1_0; - - thoth_0_0_5 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "thoth"; - version = "0.0.5"; - src = fetchHex { - pkg = "thoth"; - version = "0.0.5"; - sha256 = - "2712b42e23e730ec8e9a226e1d9f86fb003d60e7b44b0674c9d44132a0fc3a83"; - }; - - meta = { - description = ''An Elixir digraph inspired local Graph DB''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/oakfang/thoth"; - }; - } // packageOverrides) - ) {}; - - thoth = thoth_0_0_5; - - thrash_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "thrash"; - version = "0.1.0"; - src = fetchHex { - pkg = "thrash"; - version = "0.1.0"; - sha256 = - "cebcabe309682f04d030f24f71498579fd16f688965cc5e29262a660082953e7"; - }; - - meta = { - description = ''Fast serializer/deserializer for Apache Thrift`s - binary protocol.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/dantswain/thrash"; - }; - } // packageOverrides) - ) {}; - - thrash = thrash_0_1_0; - - thrift_1_2_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "thrift"; - version = "1.2.1"; - src = fetchHex { - pkg = "thrift"; - version = "1.2.1"; - sha256 = - "52dbe7126498efa96039b0b7689a96295af244cb6203f891f1b4b10c1f7f539d"; - }; - - meta = { - longDescription = ''A collection of utilities for working with - Thrift in Elixir. Provides a copy of the Apache - Thrift Erlang runtime.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/pinterest/elixir-thrift"; - }; - } // packageOverrides) - ) {}; - - thrift = thrift_1_2_1; - - tiled_map_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, poison_2_1_0 }: - buildMix ({ - name = "tiled_map"; - version = "0.0.1"; - src = fetchHex { - pkg = "tiled_map"; - version = "0.0.1"; - sha256 = - "c285c5293bb97d0e526c1cab14cdcf4b17dd12a76e2a0d707f1b71a4fcf9501e"; - }; - beamDeps = [ poison_2_1_0 ]; - - meta = { - description = ''Basic parsing of JSON Map Format from Tiled map - editor''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/kentdahl/tiled_map"; - }; - } // packageOverrides) - ) {}; - - tiled_map = tiled_map_0_0_1; - - time_ago_words_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, timex_2_1_6 }: - buildMix ({ - name = "time_ago_words"; - version = "0.0.2"; - src = fetchHex { - pkg = "time_ago_words"; - version = "0.0.2"; - sha256 = - "8cf37434618123ce09ebbba90f9b86eca0fdfdce6cd2887b2a03e5d171515f50"; - }; - beamDeps = [ timex_2_1_6 ]; - - meta = { - longDescription = ''A simple function to return the approximate - difference between two times using words.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/midwire/time_ago_words"; - }; - } // packageOverrides) - ) {}; - - time_ago_words = time_ago_words_0_0_2; - - time_distance_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, timex_1_0_2 }: - buildMix ({ - name = "time_distance"; - version = "0.0.1"; - src = fetchHex { - pkg = "time_distance"; - version = "0.0.1"; - sha256 = - "41ebe658882f2defd2cd472960e5a31b18d7ea2a4520c06907f7f2093d030e58"; - }; - beamDeps = [ timex_1_0_2 ]; - - meta = { - longDescription = ''Show the difference between two specified - times, or between a specified time and now in - words (eg. 1 week ago)''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/aussiegeek/time_distance"; - }; - } // packageOverrides) - ) {}; - - time_distance = time_distance_0_0_1; - - time_seer_0_0_6 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "time_seer"; - version = "0.0.6"; - src = fetchHex { - pkg = "time_seer"; - version = "0.0.6"; - sha256 = - "b5cfe4b5126deef913a91463c735c214efdde1cfb57e9303444d1a687fde53f5"; - }; - - meta = { - longDescription = ''TimeSeer is an Elixir library for parsing - dates and times and returning Erlang style date - and time tuples. Eg. \"15:12:07\" \"2:42pm\" - \"24/12/2014\" will become {15,12,7}, {14,42,0}, - and {2014,12,24} respectively.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/lau/time_seer"; - }; - } // packageOverrides) - ) {}; - - time_seer = time_seer_0_0_6; - - timex_0_19_5 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - tzdata_0_5_8, - combine_0_8_0 - }: - buildMix ({ - name = "timex"; - version = "0.19.5"; - src = fetchHex { - pkg = "timex"; - version = "0.19.5"; - sha256 = - "be1985ab99a6aebc3672b1d82b27e409c9a7af4658f3cc5900fa8754e159b02c"; - }; - beamDeps = [ tzdata_0_5_8 combine_0_8_0 ]; - - meta = { - longDescription = ''Timex is a rich, comprehensive Date/Time - library for Elixir projects, with full timezone - support via the :tzdata package. If you need to - manipulate dates, times, datetimes, timestamps, - etc., then Timex is for you!''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/bitwalker/timex"; - }; - } // packageOverrides) - ) {}; - - timex_1_0_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - tzdata_0_0_1, - combine_0_8_0 - }: - buildMix ({ - name = "timex"; - version = "1.0.2"; - src = fetchHex { - pkg = "timex"; - version = "1.0.2"; - sha256 = - "cbc359d21b5e2e694ab437e614bb4198af5be1031da4969dfd7ddf1b56064c88"; - }; - beamDeps = [ tzdata_0_0_1 combine_0_8_0 ]; - - meta = { - longDescription = ''Timex is a rich, comprehensive Date/Time - library for Elixir projects, with full timezone - support via the :tzdata package. If you need to - manipulate dates, times, datetimes, timestamps, - etc., then Timex is for you!''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/bitwalker/timex"; - }; - } // packageOverrides) - ) {}; - - timex_2_1_6 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - gettext_0_11_0, - combine_0_8_0, - tzdata_0_0_1 - }: - buildMix ({ - name = "timex"; - version = "2.1.6"; - src = fetchHex { - pkg = "timex"; - version = "2.1.6"; - sha256 = - "c0e3b74beb0734f0602eed0de5bbcce984fc435f258c974bde4169a407330d12"; - }; - beamDeps = [ gettext_0_11_0 combine_0_8_0 tzdata_0_0_1 ]; - - meta = { - longDescription = ''Timex is a rich, comprehensive Date/Time - library for Elixir projects, with full timezone - support via the :tzdata package. If you need to - manipulate dates, times, datetimes, timestamps, - etc., then Timex is for you!''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/bitwalker/timex"; - }; - } // packageOverrides) - ) {}; - - timex = timex_2_1_6; - - tinymt_0_3_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "tinymt"; - version = "0.3.1"; - src = fetchHex { - pkg = "tinymt"; - version = "0.3.1"; - sha256 = - "9de8fcedf254661bc4aa550aac317e28be35d4a5d91adf3fa3689dfad6cc1e5a"; - }; - - meta = { - description = ''Tiny Mersenne Twister (TinyMT) for Erlang''; - license = stdenv.lib.licenses.bsd2; - homepage = "https://github.com/jj1bdx/tinymt-erlang/"; - }; - } // packageOverrides) - ) {}; - - tinymt = tinymt_0_3_1; - - tipo_0_0_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "tipo"; - version = "0.0.3"; - src = fetchHex { - pkg = "tipo"; - version = "0.0.3"; - sha256 = - "3feeb200a1806b41afe6404b09493fb98a140ab0c642c2c0328c96cbf9cf66c8"; - }; - - meta = { - description = ''Type checking for primitive elixir data types''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/jwaterfaucett/tipo"; - }; - } // packageOverrides) - ) {}; - - tipo = tipo_0_0_3; - - tirexs_0_8_0_beta6 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, exjsx_3_2_0 }: - buildMix ({ - name = "tirexs"; - version = "0.8.0-beta6"; - src = fetchHex { - pkg = "tirexs"; - version = "0.8.0-beta6"; - sha256 = - "eee9deb8bb020f482ac9e6e77505819931b2db1050e7b999643bf9ca73beab15"; - }; - beamDeps = [ exjsx_3_2_0 ]; - - meta = { - description = ''An Elixir flavored DSL for building JSON based - queries to Elasticsearch engine''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/Zatvobor/tirexs"; - }; - } // packageOverrides) - ) {}; - - tirexs_0_8_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, exjsx_3_2_0 }: - buildMix ({ - name = "tirexs"; - version = "0.8.2"; - src = fetchHex { - pkg = "tirexs"; - version = "0.8.2"; - sha256 = - "0412e42030723f179579987bb9f6281cb0dc0db95134296058e2e95554a5b198"; - }; - beamDeps = [ exjsx_3_2_0 ]; - - meta = { - description = ''An Elixir flavored DSL for building JSON based - queries to Elasticsearch engine''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/Zatvobor/tirexs"; - }; - } // packageOverrides) - ) {}; - - tirexs = tirexs_0_8_2; - - tlv_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "tlv"; - version = "0.1.0"; - src = fetchHex { - pkg = "tlv"; - version = "0.1.0"; - sha256 = - "bc040b662594ad6c83f1d931ee2e74f8d00697afa215087297f64546a0c500e9"; - }; - - meta = { - description = ''Encodes/Decodes BER-TLVs structures''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/bitgamma/elixir_tlv"; - }; - } // packageOverrides) - ) {}; - - tlv = tlv_0_1_0; - - tmdb_0_0_6 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_4_0, - httpoison_0_8_3, - exjsx_3_1_0 - }: - buildMix ({ - name = "tmdb"; - version = "0.0.6"; - src = fetchHex { - pkg = "tmdb"; - version = "0.0.6"; - sha256 = - "4cbad6ffa556a0eeecb22c3960d47451e918313e5651808439f039403dd38d3a"; - }; - beamDeps = [ poison_1_4_0 httpoison_0_8_3 exjsx_3_1_0 ]; - - meta = { }; - } // packageOverrides) - ) {}; - - tmdb = tmdb_0_0_6; - - todo_1_2_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "todo"; - version = "1.2.0"; - src = fetchHex { - pkg = "todo"; - version = "1.2.0"; - sha256 = - "92b0da31ee335a4caff5bb91950688fc3195c2eb78cc70be80e3b616f2be88bc"; - }; - - meta = { - description = ''A small TODO comments utility.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/niahoo/elixir-todo"; - }; - } // packageOverrides) - ) {}; - - todo = todo_1_2_0; - - togglex_0_2_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "togglex"; - version = "0.2.0"; - src = fetchHex { - pkg = "togglex"; - version = "0.2.0"; - sha256 = - "725b4299c5aad1c87900e667d6a01c88ba18f8e545283f31d2f726745c174e30"; - }; - beamDeps = [ poison_2_1_0 httpoison_0_8_3 ]; - - meta = { - description = ''Simple Elixir wrapper for the Toggl API''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/diacode/togglex"; - }; - } // packageOverrides) - ) {}; - - togglex = togglex_0_2_0; - - toglx_0_0_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - togglex_0_2_0, - configparser_ex_0_2_1, - argument_parser_0_1_3 - }: - buildMix ({ - name = "toglx"; - version = "0.0.1"; - src = fetchHex { - pkg = "toglx"; - version = "0.0.1"; - sha256 = - "e6952e6955f5d61d479254a9b4a99831c4d73237e6fc8b39eeea6e4277979ba5"; - }; - beamDeps = [ - togglex_0_2_0 - configparser_ex_0_2_1 - argument_parser_0_1_3 - ]; - - meta = { - description = ''Toggl(ex) time tracking client''; - license = stdenv.lib.licenses.free; - homepage = "https://github.com/kennyballou/toglx"; - }; - } // packageOverrides) - ) {}; - - toglx = toglx_0_0_1; - - tonic_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "tonic"; - version = "0.0.1"; - src = fetchHex { - pkg = "tonic"; - version = "0.0.1"; - sha256 = - "a94df1788fe102a001ec565846cf8b15d0eacc2e1644bf21c8c510b8294d24a6"; - }; - - meta = { - description = ''A DSL for conveniently loading binary - data/files.''; - license = stdenv.lib.licenses.bsd2; - homepage = "https://github.com/ScrimpyCat/Tonic"; - }; - } // packageOverrides) - ) {}; - - tonic = tonic_0_0_1; - - toniq_1_0_5 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - uuid_1_1_4, - exredis_0_2_4 - }: - buildMix ({ - name = "toniq"; - version = "1.0.5"; - src = fetchHex { - pkg = "toniq"; - version = "1.0.5"; - sha256 = - "aa67c43131393872d82d53b9a8bf4a3d5b97c52a6588d53aaa61c29828e0664a"; - }; - beamDeps = [ uuid_1_1_4 exredis_0_2_4 ]; - - meta = { - longDescription = ''Simple and reliable background job processing - library for Elixir. Has persistence, retries, - concurrency limiting, error handling and is - heroku friendly.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/joakimk/toniq"; - }; - } // packageOverrides) - ) {}; - - toniq = toniq_1_0_5; - - towel_0_2_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "towel"; - version = "0.2.1"; - src = fetchHex { - pkg = "towel"; - version = "0.2.1"; - sha256 = - "e7b7c5e7e6d8df9e781e130d1defccc9a27f888f7b95c132d8ccd1d6957d3b7a"; - }; - - meta = { - description = ''A delightfully simple monad library that`s - written for Elixir.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/knrz/towel"; - }; - } // packageOverrides) - ) {}; - - towel = towel_0_2_1; - - tqdm_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "tqdm"; - version = "0.0.2"; - src = fetchHex { - pkg = "tqdm"; - version = "0.0.2"; - sha256 = - "2791905b98c0d3371ebf98fd7185d0af58ca8d2911182d908b970afab0b8801d"; - }; - - meta = { - longDescription = ''Add a progress bar to your enumerables - (Lists, Maps, Streams, Ranges, etc.) in a - second.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/antipax/tqdm_elixir"; - }; - } // packageOverrides) - ) {}; - - tqdm = tqdm_0_0_2; - - tracing_helper_0_0_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "tracing_helper"; - version = "0.0.3"; - src = fetchHex { - pkg = "tracing_helper"; - version = "0.0.3"; - sha256 = - "a1d22c5901ed688acab63c0195aba2826f774a8d7e7f1b882878b715cd4688fb"; - }; - - meta = { - description = ''TracingHelper is a helper module with predefined - tracing functions''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/andrzejsliwa/tracing_helper"; - }; - } // packageOverrides) - ) {}; - - tracing_helper = tracing_helper_0_0_3; - - trackline_0_0_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - timex_1_0_2, - exml_0_1_0, - exmerl_0_1_1, - erlsom_1_4_1, - apex_0_3_7 - }: - buildMix ({ - name = "trackline"; - version = "0.0.1"; - src = fetchHex { - pkg = "trackline"; - version = "0.0.1"; - sha256 = - "42ee5d56b2ec0c55715e7f03a9aacd6d7ce8543519e9ec696335348eb1a24f7c"; - }; - beamDeps = [ - timex_1_0_2 - exml_0_1_0 - exmerl_0_1_1 - erlsom_1_4_1 - apex_0_3_7 - ]; - - meta = { - description = ''A GPX parser for Elixir.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/andrewhao/trackline"; - }; - } // packageOverrides) - ) {}; - - trackline = trackline_0_0_1; - - trackstar_0_0_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - erlsom_1_4_1 - }: - buildMix ({ - name = "trackstar"; - version = "0.0.1"; - src = fetchHex { - pkg = "trackstar"; - version = "0.0.1"; - sha256 = - "04a7634755da273b640737c8bef015f5ef4360524940fa763c3100e13db47cd4"; - }; - beamDeps = [ poison_2_1_0 erlsom_1_4_1 ]; - - meta = { - longDescription = ''Trackstar is a GPX parser. Specify the path - to a GPX file and it will output a GeoJSON of - the track as a LineString. It currently works - with Strava-exported GPX files.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/andydangerous/trackstar"; - }; - } // packageOverrides) - ) {}; - - trackstar = trackstar_0_0_1; - - tradie_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "tradie"; - version = "0.0.1"; - src = fetchHex { - pkg = "tradie"; - version = "0.0.1"; - sha256 = - "d317c61c9bd9ab46184df8036057855e676d8598905c6708b9a9e26af3b7fd04"; - }; - - meta = { - longDescription = ''Execute multiple tasks in parallel, allowing - retry for each task, and a global timeout. Based - loosely on - http://theerlangelist.com/article/beyond_taskasync.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/madlep/tradie"; - }; - } // packageOverrides) - ) {}; - - tradie = tradie_0_0_1; - - trailing_format_plug_0_0_4 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - plug_1_1_5, - cowboy_1_0_4 - }: - buildMix ({ - name = "trailing_format_plug"; - version = "0.0.4"; - src = fetchHex { - pkg = "trailing_format_plug"; - version = "0.0.4"; - sha256 = - "16e2485b7069c8e025460d183d4711d9c5bbf46ae532dde859cc6623d12bfc71"; - }; - beamDeps = [ plug_1_1_5 cowboy_1_0_4 ]; - - meta = { - longDescription = ''An elixir plug to support legacy APIs that - use a rails-like trailing format: - http://api.dev/resources.format''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/mschae/trailing_format_plug"; - }; - } // packageOverrides) - ) {}; - - trailing_format_plug = trailing_format_plug_0_0_4; - - transducer_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "transducer"; - version = "0.1.0"; - src = fetchHex { - pkg = "transducer"; - version = "0.1.0"; - sha256 = - "89533238e42bace715485c5113bb5c39beecb333c00f4624ae85d5c0f6e96db4"; - }; - - meta = { - longDescription = ''Composable algorithmic transformations. - Transducers let you combine reduction operations - like `map`, `filter`, `take_while`, `take`, and - so on into a single reducing function. As with - Stream, but in contrast to Enum, all operations - are performed for each item before the next item - in the enumerable is processed. One difference - with the Stream module is that the transducers` - reducing functions don`t have to produce an - enumerable, while Stream module transformations - always do.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/garyposter/elixir-transducer"; - }; - } // packageOverrides) - ) {}; - - transducer = transducer_0_1_0; - - travis_ex_0_0_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - httpoison_0_8_3 - }: - buildMix ({ - name = "travis_ex"; - version = "0.0.2"; - src = fetchHex { - pkg = "travis_ex"; - version = "0.0.2"; - sha256 = - "80589ec01596dfc1e02cef61ce0adc3c9b73977b56a528e214c37af079efa10a"; - }; - beamDeps = [ poison_1_5_2 httpoison_0_8_3 ]; - - meta = { - description = ''Travis-ci API client library for Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/duksis/travis_ex"; - }; - } // packageOverrides) - ) {}; - - travis_ex = travis_ex_0_0_2; - - trello_1_3_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "trello"; - version = "1.3.0"; - src = fetchHex { - pkg = "trello"; - version = "1.3.0"; - sha256 = - "776d6514b766a9290b102bf8682dd13d1b63b1cab68fd73880a6da3b81014cd6"; - }; - beamDeps = [ poison_2_1_0 httpoison_0_8_3 ]; - - meta = { - description = ''Trello wrapper for elixir api''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/mikaak/trello-elixir"; - }; - } // packageOverrides) - ) {}; - - trello = trello_1_3_0; - - trie_1_4_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "trie"; - version = "1.4.0"; - src = fetchHex { - pkg = "trie"; - version = "1.4.0"; - sha256 = - "befef786527fd17678716f9dc86a064a11811e7087094967204715804a23ea4b"; - }; - - meta = { - description = ''Erlang Trie Implementation''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/okeuday/trie"; - }; - } // packageOverrides) - ) {}; - - trie_1_5_1 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "trie"; - version = "1.5.1"; - src = fetchHex { - pkg = "trie"; - version = "1.5.1"; - sha256 = - "4b845dccfca8962b90584e98d270e2ff43e2e181bb046c4aae0e0f457679f98d"; - }; - - meta = { - description = ''Erlang Trie Implementation''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/okeuday/trie"; - }; - } // packageOverrides) - ) {}; - - trie = trie_1_5_1; - - trot_0_5_3 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - plug_heartbeat_0_2_0, - plug_0_14_0, - cowboy_1_0_4, - calliope_0_3_0 - }: - buildMix ({ - name = "trot"; - version = "0.5.3"; - src = fetchHex { - pkg = "trot"; - version = "0.5.3"; - sha256 = - "982a4ff3a0fffe1e9cc752313fd4c45487fdd484dde7265728da4579c29354e1"; - }; - beamDeps = [ - poison_1_5_2 - plug_heartbeat_0_2_0 - plug_0_14_0 - cowboy_1_0_4 - calliope_0_3_0 - ]; - - meta = { - description = ''A web micro-framework based on Plug and - Cowboy.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/hexedpackets/trot"; - }; - } // packageOverrides) - ) {}; - - trot = trot_0_5_3; - - tsuru_1_4_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "tsuru"; - version = "1.4.0"; - src = fetchHex { - pkg = "tsuru"; - version = "1.4.0"; - sha256 = - "7825d3b530b46a8c4ff93b3c83a31d0f2ce042ddc741a89d3776edfd9f2828f7"; - }; - - meta = { - description = ''A collection of useful tools for Erlang - applications''; - license = stdenv.lib.licenses.mit; - }; - } // packageOverrides) - ) {}; - - tsuru = tsuru_1_4_0; - - tubex_0_0_7 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "tubex"; - version = "0.0.7"; - src = fetchHex { - pkg = "tubex"; - version = "0.0.7"; - sha256 = - "8b34ade3d0484ee5ebb1155c16454d545284d0c215bf999a206cbcc198acea83"; - }; - beamDeps = [ poison_2_1_0 httpoison_0_8_3 ]; - - meta = { - description = ''Elixir wrapper of YouTube Data API v3''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/yoavlt/tubex"; - }; - } // packageOverrides) - ) {}; - - tubex = tubex_0_0_7; - - tunnerl_0_2_2 = callPackage - ( - { - buildRebar3, - packageOverrides ? {}, - fetchHex, - ranch_1_2_1, - lager_3_0_2 - }: - buildRebar3 ({ - name = "tunnerl"; - version = "0.2.2"; - src = fetchHex { - pkg = "tunnerl"; - version = "0.2.2"; - sha256 = - "8b630b43d77f5c92901d6a1909be7ce3c8cd5668fa05263e2fcdf73b00d63bd0"; - }; - - beamDeps = [ ranch_1_2_1 lager_3_0_2 ]; - - meta = { - description = ''SOCKS4 and SOCKS5 proxy server''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/surik/tunnerl"; - }; - } // packageOverrides) - ) {}; - - tunnerl = tunnerl_0_2_2; - - tvdb_0_0_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "tvdb"; - version = "0.0.1"; - src = fetchHex { - pkg = "tvdb"; - version = "0.0.1"; - sha256 = - "627d0ce97938039748960550abe9bebe1f55be39701f85e85ff9f2b6e4af9f00"; - }; - beamDeps = [ poison_2_1_0 httpoison_0_8_3 ]; - - meta = { - description = ''Wrapper for TVDb API''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/markman123/tvdb"; - }; - } // packageOverrides) - ) {}; - - tvdb = tvdb_0_0_1; - - twilex_0_0_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "twilex"; - version = "0.0.2"; - src = fetchHex { - pkg = "twilex"; - version = "0.0.2"; - sha256 = - "b032ee0327c90a9a0545756d771778129d6ded10dfade86b2c8dd1eb80fb56de"; - }; - beamDeps = [ poison_2_1_0 httpoison_0_8_3 ]; - - meta = { - description = ''A Twilio client for elixir.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/hisea/twilex"; - }; - } // packageOverrides) - ) {}; - - twilex = twilex_0_0_2; - - type_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "type"; - version = "0.0.2"; - src = fetchHex { - pkg = "type"; - version = "0.0.2"; - sha256 = - "1553ec18df7781cc1144477e075ac3c907aa7900db308d9d43cf7cfbeeb7a8ac"; - }; - - meta = { - description = ''A module for checking the type of an argument''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/jeffreybaird/type"; - }; - } // packageOverrides) - ) {}; - - type = type_0_0_2; - - typeformx_0_0_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - httpoison_0_8_3 - }: - buildMix ({ - name = "typeformx"; - version = "0.0.1"; - src = fetchHex { - pkg = "typeformx"; - version = "0.0.1"; - sha256 = - "8f6f1613f53f8c5012eb6d05276f5d305bdb9d4b0e94926680b536d0e1d94a62"; - }; - beamDeps = [ poison_1_5_2 httpoison_0_8_3 ]; - - meta = { - description = ''An Elixir client library for the Typeform API - (typeform.io)''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/netflakes/TypeformX"; - }; - } // packageOverrides) - ) {}; - - typeformx = typeformx_0_0_1; - - tzdata_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "tzdata"; - version = "0.0.1"; - src = fetchHex { - pkg = "tzdata"; - version = "0.0.1"; - sha256 = - "67020b94ec70faceef822dc5bffea0361c4fc9d812c8872c4edb6a2084b16b25"; - }; - - meta = { - description = ''Tzdata is a parser and library for the tz - database.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/lau/tzdata"; - }; - } // packageOverrides) - ) {}; - - tzdata_0_1_201603 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "tzdata"; - version = "0.1.201603"; - src = fetchHex { - pkg = "tzdata"; - version = "0.1.201603"; - sha256 = - "77598cedfb09cfdfb8f431c51131eb84229c46b2c5a7eebdf5904b2b8f003225"; - }; - - meta = { - description = ''Tzdata is a parser and library for the tz - database.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/lau/tzdata"; - }; - } // packageOverrides) - ) {}; - - tzdata_0_5_8 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, hackney_1_6_0 }: - buildMix ({ - name = "tzdata"; - version = "0.5.8"; - src = fetchHex { - pkg = "tzdata"; - version = "0.5.8"; - sha256 = - "218ab89e51fb297f1e4bf512e9e551b8214d361e61b7683179da303ba5be8c60"; - }; - beamDeps = [ hackney_1_6_0 ]; - - meta = { - description = ''Tzdata is a parser and library for the tz - database.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/lau/tzdata"; - }; - } // packageOverrides) - ) {}; - - tzdata = tzdata_0_5_8; - - ua_classifier_1_0_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "ua_classifier"; - version = "1.0.0"; - src = fetchHex { - pkg = "ua_classifier"; - version = "1.0.0"; - sha256 = - "59c3b3ed96a10fe05e91202a3ca983b40215c41dde0733fe6dd8a6841b6e315d"; - }; - compilePorts = true; - buildPlugins = [ pc ]; - - - meta = { - description = ''Erlang User Agent Classifier - NIF for - WeatherChannel dClass''; - license = stdenv.lib.licenses.apsl20; - homepage = "https://github.com/zotonic/ua_classifier"; - }; - } // packageOverrides) - ) {}; - - ua_classifier = ua_classifier_1_0_0; - - ua_inspector_0_11_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, poolboy_1_5_1 }: - buildMix ({ - name = "ua_inspector"; - version = "0.11.1"; - src = fetchHex { - pkg = "ua_inspector"; - version = "0.11.1"; - sha256 = - "943787d2a766ed8fd50e30f6787c9775304bd1215ffbdb5fe0b445153af8d02b"; - }; - beamDeps = [ poolboy_1_5_1 ]; - - meta = { - description = ''User agent parser library''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/elixytics/ua_inspector"; - }; - } // packageOverrides) - ) {}; - - ua_inspector = ua_inspector_0_11_1; - - uber_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "uber"; - version = "0.1.0"; - src = fetchHex { - pkg = "uber"; - version = "0.1.0"; - sha256 = - "bf3dde22ad6207577ea1093649394d968ef94725fdc56d5ea6afd22d12886d9a"; - }; - - meta = { - description = ''Utilities for working with the UBER hypermedia - format''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/gamache/uber.ex"; - }; - } // packageOverrides) - ) {}; - - uber = uber_0_1_0; - - udpflux_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "udpflux"; - version = "0.0.2"; - src = fetchHex { - pkg = "udpflux"; - version = "0.0.2"; - sha256 = - "0a6d0003b818364bad9ed8bc55b8789b8fc129d055799cd517a551445fe0649e"; - }; - - meta = { - description = ''An opinionated UDP-only InfluxDB client''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/timbuchwaldt/udpflux"; - }; - } // packageOverrides) - ) {}; - - udpflux = udpflux_0_0_2; - - ueberauth_0_2_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, plug_1_1_5 }: - buildMix ({ - name = "ueberauth"; - version = "0.2.0"; - src = fetchHex { - pkg = "ueberauth"; - version = "0.2.0"; - sha256 = - "d6ee9cfe96be0e2b4005cb482b8e29c20ae0d6f7332ea9f686397c4ab20bf4de"; - }; - beamDeps = [ plug_1_1_5 ]; - - meta = { - description = ''An Elixir Authentication System for Plug-based - Web Applications''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/ueberauth/ueberauth"; - }; - } // packageOverrides) - ) {}; - - ueberauth = ueberauth_0_2_0; - - ueberauth_identity_0_2_3 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - ueberauth_0_2_0, - plug_1_1_5 - }: - buildMix ({ - name = "ueberauth_identity"; - version = "0.2.3"; - src = fetchHex { - pkg = "ueberauth_identity"; - version = "0.2.3"; - sha256 = - "ebbb4d7fe6c94053486a32794ab2a561f004f01fd1099c7e0a69901dc32c51ca"; - }; - beamDeps = [ ueberauth_0_2_0 plug_1_1_5 ]; - - meta = { - description = ''An Ueberauth strategy for basic - username/password''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/ueberauth/ueberauth_identity"; - }; - } // packageOverrides) - ) {}; - - ueberauth_identity = ueberauth_identity_0_2_3; - - ueberauth_twitter_0_2_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - ueberauth_0_2_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "ueberauth_twitter"; - version = "0.2.2"; - src = fetchHex { - pkg = "ueberauth_twitter"; - version = "0.2.2"; - sha256 = - "911a227b8290e8d65cee8d45015477d4ea51dbcf637c8a41ff88b34fcc5ab65a"; - }; - beamDeps = [ ueberauth_0_2_0 httpoison_0_8_3 ]; - - meta = { - description = ''An Uberauth strategy for Twitter - authentication.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/ueberauth/ueberauth_twitter"; - }; - } // packageOverrides) - ) {}; - - ueberauth_twitter = ueberauth_twitter_0_2_2; - - uk_postcode_0_3_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "uk_postcode"; - version = "0.3.0"; - src = fetchHex { - pkg = "uk_postcode"; - version = "0.3.0"; - sha256 = - "a03250f6896bef8851f243856d36952e7776a8d2fa654aa4d3336d841cbb59f8"; - }; - - meta = { - longDescription = ''UK postcode parsing and validation library. - Validate full postcodes or parts of a postcode, - and can extract parts of a full postcode. ''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/KushalP/uk_postcode"; - }; - } // packageOverrides) - ) {}; - - uk_postcode = uk_postcode_0_3_0; - - unicode_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, earmark_0_2_1 }: - buildMix ({ - name = "unicode"; - version = "0.0.1"; - src = fetchHex { - pkg = "unicode"; - version = "0.0.1"; - sha256 = - "646bd8c3c9967a26b14aaa167e1bd08451d9db885d2736046b5fe5ada04bd2d6"; - }; - beamDeps = [ earmark_0_2_1 ]; - - meta = { - longDescription = ''The _Unicode_ package provides functionality - to check properties of unicode codepoints, - graphemes and strings. This is often useful when - checking or validating the contents of strings - in situations where using Regular Expressions is - not necessary and/or too slow. The Unicode - package is based on Version 8.0.0 of the Unicode - standard.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/Qqwy/elixir-unicode"; - }; - } // packageOverrides) - ) {}; - - unicode = unicode_0_0_1; - - unit_fun_0_5_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "unit_fun"; - version = "0.5.1"; - src = fetchHex { - pkg = "unit_fun"; - version = "0.5.1"; - sha256 = - "adc90b1e6363234d2507b6f1af08186831fb556ee8c8cb62d13fb03b8c3cc93c"; - }; - - meta = { - description = ''Library for adding units/dimensions to numeric - types.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/meadsteve/unit_fun"; - }; - } // packageOverrides) - ) {}; - - unit_fun = unit_fun_0_5_1; - - units_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "units"; - version = "1.0.0"; - src = fetchHex { - pkg = "units"; - version = "1.0.0"; - sha256 = - "edac76cb036b993ef35781701fc561b4a6c95e4d7c89dba0d6f96ae3077b8ffe"; - }; - - meta = { - description = ''Common unit conversions for Elixir.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/solatis/units"; - }; - } // packageOverrides) - ) {}; - - units = units_1_0_0; - - untappd_0_0_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - httpoison_0_8_3, - exjsx_3_2_0 - }: - buildMix ({ - name = "untappd"; - version = "0.0.1"; - src = fetchHex { - pkg = "untappd"; - version = "0.0.1"; - sha256 = - "f4560612cd78002202234660cf248f004c91ade8c10dc87ad136eb5d8f49d66a"; - }; - beamDeps = [ httpoison_0_8_3 exjsx_3_2_0 ]; - - meta = { - description = ''Elixir wrapper for the Untappd API''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/nimi/untappd"; - }; - } // packageOverrides) - ) {}; - - untappd = untappd_0_0_1; - - until_then_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, calendar_0_14_2 }: - buildMix ({ - name = "until_then"; - version = "0.0.1"; - src = fetchHex { - pkg = "until_then"; - version = "0.0.1"; - sha256 = - "9bc5c61346d18a770efc25e5f3cb55c9cb68fe2d7ff179964ac8b314d779c111"; - }; - beamDeps = [ calendar_0_14_2 ]; - - meta = { - longDescription = ''This library tells you how many milliseconds - to the next occurrence of a scheduled event. - This is very convenient to combine with - `:timer.sleep/1` or `Process.send_after/3` as a - means of repeatedly invoking some code on a - schedule and not having those invocations - drift.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/NoRedInk/until_then"; - }; - } // packageOverrides) - ) {}; - - until_then = until_then_0_0_1; - - uri_0_1_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "uri"; - version = "0.1.0"; - src = fetchHex { - pkg = "uri"; - version = "0.1.0"; - sha256 = - "3833c3b5745fc0822df86c3a3591219048026fea8a535223b440d26029218996"; - }; - - meta = { - description = ''URI Parsing/Encoding Library''; - - }; - } // packageOverrides) - ) {}; - - uri = uri_0_1_0; - - urilib_0_1_1 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "urilib"; - version = "0.1.1"; - src = fetchHex { - pkg = "urilib"; - version = "0.1.1"; - sha256 = - "6000180e6977263e5996921f243e0c152aad29c87d202f8a650acb412c5aa758"; - }; - - meta = { - description = ''A RFC-3986 URI Library for parsing and building - URIs''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/gmr/urilib"; - }; - } // packageOverrides) - ) {}; - - urilib = urilib_0_1_1; - - url_tincture_0_0_6 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, poison_2_1_0 }: - buildMix ({ - name = "url_tincture"; - version = "0.0.6"; - src = fetchHex { - pkg = "url_tincture"; - version = "0.0.6"; - sha256 = - "00a00bfca54cea1f5d9b340c90d9ed52ad86fe7bc8b657f3cc27c7404c33c1f5"; - }; - beamDeps = [ poison_2_1_0 ]; - - meta = { - description = ''A package to reduce extended forms of URLs to a - canonical reference''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/craigwaterman/url_tincture"; - }; - } // packageOverrides) - ) {}; - - url_tincture = url_tincture_0_0_6; - - url_unroller_0_0_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, httpoison_0_8_3 }: - buildMix ({ - name = "url_unroller"; - version = "0.0.3"; - src = fetchHex { - pkg = "url_unroller"; - version = "0.0.3"; - sha256 = - "65a46b7335060111bdc5ad164548361f3c7ff5a39ff9493a9109dd20b98498b9"; - }; - beamDeps = [ httpoison_0_8_3 ]; - - meta = { - description = ''A simple url unroller/unshortener''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/semanticart/url_unroller"; - }; - } // packageOverrides) - ) {}; - - url_unroller = url_unroller_0_0_3; - - usefulness_0_0_6 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "usefulness"; - version = "0.0.6"; - src = fetchHex { - pkg = "usefulness"; - version = "0.0.6"; - sha256 = - "993b6d5ef4a8c4a4c254c92c49290f245ea34f071a9acd100abd654b381ec238"; - }; - - meta = { - description = ''Useful things''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/b-filip/usefulness"; - }; - } // packageOverrides) - ) {}; - - usefulness = usefulness_0_0_6; - - user_agent_parser_1_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "user_agent_parser"; - version = "1.0.1"; - src = fetchHex { - pkg = "user_agent_parser"; - version = "1.0.1"; - sha256 = - "ba049dfe5d9c611a0ba3ac13c9ef0d17ea49e8bdfab68c54e7415423f32aa74f"; - }; - - meta = { - longDescription = ''A simple Elixir package for parsing user - agent strings with the help of BrowserScope`s UA - database''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/romul/uap-elixir"; - }; - } // packageOverrides) - ) {}; - - user_agent_parser = user_agent_parser_1_0_1; - - uuid_0_1_5 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "uuid"; - version = "0.1.5"; - src = fetchHex { - pkg = "uuid"; - version = "0.1.5"; - sha256 = - "5cfb91972f5cacb0bcb2f00414d5747dd575d84b864c96f668ab3b729cc08422"; - }; - - meta = { - description = ''UUID generator and utilities for Elixir.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/zyro/elixir-uuid"; - }; - } // packageOverrides) - ) {}; - - uuid_1_1_4 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "uuid"; - version = "1.1.4"; - src = fetchHex { - pkg = "uuid"; - version = "1.1.4"; - sha256 = - "55ceed2fe12062e3e0bf19baa118d0ac64eb6edd79f242aaaf090236f09965f0"; - }; - - meta = { - description = ''UUID generator and utilities for Elixir.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/zyro/elixir-uuid"; - }; - } // packageOverrides) - ) {}; - - uuid = uuid_1_1_4; - - vagrant_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "vagrant"; - version = "0.0.1"; - src = fetchHex { - pkg = "vagrant"; - version = "0.0.1"; - sha256 = - "805a78a9ee586546d0716ddc9afc3417630c48faab4606cf54c863b10a05ce52"; - }; - - meta = { - description = ''Vagrant CLI Wrapper''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/mobileoverlord/vagrant"; - }; - } // packageOverrides) - ) {}; - - vagrant = vagrant_0_0_1; - - varpool_1_5_1 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "varpool"; - version = "1.5.1"; - src = fetchHex { - pkg = "varpool"; - version = "1.5.1"; - sha256 = - "ff6059bdcd0efad606e8c54ee623cfeaef59778c18e343dd772e84d99d188e26"; - }; - - meta = { - description = ''Erlang Process Pools as a Local Variable''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/okeuday/varpool"; - }; - } // packageOverrides) - ) {}; - - varpool = varpool_1_5_1; - - vector_0_3_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "vector"; - version = "0.3.0"; - src = fetchHex { - pkg = "vector"; - version = "0.3.0"; - sha256 = - "e1f7645d090d58c9efc63046be1ade8b7a431c6428460c3290d6eb6da85cba45"; - }; - - meta = { - longDescription = ''Library of common vector functions for use in - geometric or graphical calculations.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/pkinney/vector_ex"; - }; - } // packageOverrides) - ) {}; - - vector = vector_0_3_0; - - verhoeff_0_1_2 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "verhoeff"; - version = "0.1.2"; - src = fetchHex { - pkg = "verhoeff"; - version = "0.1.2"; - sha256 = - "1110f266fb3e2b69c7ba29cdae13e583f32af99e6a24843cefa04690c529e8f9"; - }; - - meta = { - description = ''The Verhoeff algorithm implementation''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/mururu/verhoeff"; - }; - } // packageOverrides) - ) {}; - - verhoeff = verhoeff_0_1_2; - - verify_origin_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, plug_1_1_5 }: - buildMix ({ - name = "verify_origin"; - version = "0.1.0"; - src = fetchHex { - pkg = "verify_origin"; - version = "0.1.0"; - sha256 = - "90834033676cb0ca632f208f489f6eb92ae94323fe7243efba577e1deb031167"; - }; - beamDeps = [ plug_1_1_5 ]; - - meta = { - description = ''A library for using Origin header checking to - prevent CSRF''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/danmcclain/verify_origin"; - }; - } // packageOverrides) - ) {}; - - verify_origin = verify_origin_0_1_0; - - vex_0_5_5 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "vex"; - version = "0.5.5"; - src = fetchHex { - pkg = "vex"; - version = "0.5.5"; - sha256 = - "fade5440a742304214d1cb53d5ce6bd39dafb6e2ae87e5ce36041a7aa4c365f9"; - }; - - meta = { - description = ''An extensible data validation library for - Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/CargoSense/vex"; - }; - } // packageOverrides) - ) {}; - - vex = vex_0_5_5; - - viktor_0_1_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "viktor"; - version = "0.1.1"; - src = fetchHex { - pkg = "viktor"; - version = "0.1.1"; - sha256 = - "9796d7174806bae878082d53befc1efcd1a374715650afc9956ed63f648227fe"; - }; - beamDeps = [ poison_2_1_0 httpoison_0_8_3 ]; - - meta = { - description = ''Client API wrapper for League of Legends API.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/josephyi/viktor"; - }; - } // packageOverrides) - ) {}; - - viktor = viktor_0_1_1; - - virus_total_0_0_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - jsx_2_8_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "virus_total"; - version = "0.0.1"; - src = fetchHex { - pkg = "virus_total"; - version = "0.0.1"; - sha256 = - "bed3680d17c98f978a90f5b443b6e269ee0a3f2239d2262502d8d10ee042ebfa"; - }; - beamDeps = [ jsx_2_8_0 httpoison_0_8_3 ]; - - meta = { - description = ''Elixir OTP application for the VirusTotal Public - API v2.0''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/dtykocki/virus_total"; - }; - } // packageOverrides) - ) {}; - - virus_total = virus_total_0_0_1; - - vmstats_2_0_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "vmstats"; - version = "2.0.0"; - src = fetchHex { - pkg = "vmstats"; - version = "2.0.0"; - sha256 = - "5cfac88ae597762dc38fcec0b56012ca7a2fbfcc00936326f63f5ddca4da0b53"; - }; - - meta = { - description = ''Tiny application to gather VM statistics''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/ferd/vmstats"; - }; - } // packageOverrides) - ) {}; - - vmstats = vmstats_2_0_0; - - voxpop_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "voxpop"; - version = "0.0.2"; - src = fetchHex { - pkg = "voxpop"; - version = "0.0.2"; - sha256 = - "74e3a74fb71aea428eeaea9c4b1e6705568070a014e7bc1d158be1000e3e8c88"; - }; - - meta = { - description = ''Voxpop generates text from declarative - grammars.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/zovafit/voxpop"; - }; - } // packageOverrides) - ) {}; - - voxpop = voxpop_0_0_2; - - wallaby_0_5_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poolboy_1_5_1, - poison_2_1_0, - httpoison_0_8_3, - dialyze_0_2_1 - }: - buildMix ({ - name = "wallaby"; - version = "0.5.0"; - src = fetchHex { - pkg = "wallaby"; - version = "0.5.0"; - sha256 = - "0ff4debbefb06e76affa7dfb09072898e744471e8e0b41e7b665382969015265"; - }; - beamDeps = [ - poolboy_1_5_1 - poison_2_1_0 - httpoison_0_8_3 - dialyze_0_2_1 - ]; - - meta = { - description = ''Concurrent feature tests for elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/keathley/wallaby"; - }; - } // packageOverrides) - ) {}; - - wallaby = wallaby_0_5_0; - - watcher_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "watcher"; - version = "1.0.0"; - src = fetchHex { - pkg = "watcher"; - version = "1.0.0"; - sha256 = - "53620951438e857d24f1ef324f94f42b90e8d6069dd6553ec4e6331370418b2b"; - }; - - meta = { - description = ''Watcher for GenEvent''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/edgurgel/watcher"; - }; - } // packageOverrides) - ) {}; - - watcher = watcher_1_0_0; - - weather_report_0_2_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - trie_1_5_1, - sweet_xml_0_6_1, - httpoison_0_8_3, - feeder_2_0_0 - }: - buildMix ({ - name = "weather_report"; - version = "0.2.0"; - src = fetchHex { - pkg = "weather_report"; - version = "0.2.0"; - sha256 = - "d052a6b7d2a6c5a7e2c310f8a0be2fe70ee1a62ef2b0b89e1a804016c6fbeed5"; - }; - beamDeps = [ - trie_1_5_1 - sweet_xml_0_6_1 - httpoison_0_8_3 - feeder_2_0_0 - ]; - - meta = { - longDescription = ''Get weather forecasts from the National - Oceanic and Atmospheric Administration! As the - NOAA is a United States government agency, only - forecasts in the US are supported.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/sschneider1207/weather_report"; - }; - } // packageOverrides) - ) {}; - - weather_report = weather_report_0_2_0; - - web_push_encryption_0_1_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, httpoison_0_8_3 }: - buildMix ({ - name = "web_push_encryption"; - version = "0.1.1"; - src = fetchHex { - pkg = "web_push_encryption"; - version = "0.1.1"; - sha256 = - "64f3c28f0ab40d3f1366285a8d9166b44959be56525f0a32db0a33d7cfb3feb2"; - }; - beamDeps = [ httpoison_0_8_3 ]; - - meta = { - description = ''Web push encryption lilbrary''; - license = stdenv.lib.licenses.mit; - homepage = - "https://github.com/tuvistavie/elixir-web-push-encryption"; - }; - } // packageOverrides) - ) {}; - - web_push_encryption = web_push_encryption_0_1_1; - - web_socket_0_0_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_4_0, - plug_0_12_2, - cowboy_1_0_4 - }: - buildMix ({ - name = "web_socket"; - version = "0.0.1"; - src = fetchHex { - pkg = "web_socket"; - version = "0.0.1"; - sha256 = - "b0afdac11840d17b2a2af5cc1939416fac13f64209083e06e6873002ae44ce12"; - }; - beamDeps = [ poison_1_4_0 plug_0_12_2 cowboy_1_0_4 ]; - - meta = { - description = ''Modular web framework ''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/slogsdon/plug-web-socket"; - }; - } // packageOverrides) - ) {}; - - web_socket = web_socket_0_0_1; - - webassembly_0_6_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "webassembly"; - version = "0.6.1"; - src = fetchHex { - pkg = "webassembly"; - version = "0.6.1"; - sha256 = - "687cc567c6c58e154ca5f5bd45986c6fda530c42702ab7c6007f6cb663db4137"; - }; - - meta = { - longDescription = ''WebAssembly is a web DSL for Elixir. You - create html structure straight using do blocks. - Means, you can intermix html-building blocks - with full Elixir syntax. DSL output is an - iolist, which you can flatten to string, but - better use is to just feed it to the socket (via - Plug & Cowboy). WebAssembly aims to have 100% - test coverage.''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/herenowcoder/webassembly"; - }; - } // packageOverrides) - ) {}; - - webassembly = webassembly_0_6_1; - - webmentions_0_1_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - httpotion_2_2_2, - floki_0_7_2 - }: - buildMix ({ - name = "webmentions"; - version = "0.1.0"; - src = fetchHex { - pkg = "webmentions"; - version = "0.1.0"; - sha256 = - "5409b9237578fd67601b77c601093ab599a1bc507a6e1457a853c20e516c3d81"; - }; - beamDeps = [ httpotion_2_2_2 floki_0_7_2 ]; - - meta = { - description = ''A Webmentions - (https://indiewebcamp.com/Webmention) module for - Elixir''; - license = stdenv.lib.licenses.agpl3; - homepage = "https://github.com/ckruse/webmentions-elixir"; - }; - } // packageOverrides) - ) {}; - - webmentions = webmentions_0_1_0; - - webpay_0_0_4 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - httpoison_0_8_3 - }: - buildMix ({ - name = "webpay"; - version = "0.0.4"; - src = fetchHex { - pkg = "webpay"; - version = "0.0.4"; - sha256 = - "abab40fc7fda25a55d3a3dce4327d3f322df378432a9ed5e7c43e553989f467e"; - }; - beamDeps = [ poison_1_5_2 httpoison_0_8_3 ]; - - meta = { - description = ''Elixir Webpay API wrapper''; - - }; - } // packageOverrides) - ) {}; - - webpay = webpay_0_0_4; - - websocket_client_1_1_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "websocket_client"; - version = "1.1.0"; - src = fetchHex { - pkg = "websocket_client"; - version = "1.1.0"; - sha256 = - "21c3d0df073634f2ca349af5b54a61755d637d6390c34d8d57c064f68ca92acd"; - }; - - meta = { - description = ''Erlang websocket client''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/sanmiguel/websocket_client"; - }; - } // packageOverrides) - ) {}; - - websocket_client = websocket_client_1_1_0; - - wechat_check_signature_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, plug_1_1_5 }: - buildMix ({ - name = "wechat_check_signature"; - version = "0.0.1"; - src = fetchHex { - pkg = "wechat_check_signature"; - version = "0.0.1"; - sha256 = - "5c5bb053c15082e12ad6da485fc4f711efa9198107368a42456aeafcf870caec"; - }; - beamDeps = [ plug_1_1_5 ]; - - meta = { - description = ''An Elixir Plug for checking wechat signature.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/octocandy/wechat_check_signature"; - }; - } // packageOverrides) - ) {}; - - wechat_check_signature = wechat_check_signature_0_0_1; - - wechat_mp_auth_0_0_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - mimetype_parser_0_1_2, - httpoison_0_8_3 - }: - buildMix ({ - name = "wechat_mp_auth"; - version = "0.0.2"; - src = fetchHex { - pkg = "wechat_mp_auth"; - version = "0.0.2"; - sha256 = - "da88ac42f476eb8bb594cc702bd2e085c93adf6ebd7bf245e507cacf77e78ab9"; - }; - beamDeps = [ poison_2_1_0 mimetype_parser_0_1_2 httpoison_0_8_3 - ]; - - meta = { - description = ''An Elixir WeChat Media Platform Authentication - Client Library.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/he9qi/wechat_mp_auth"; - }; - } // packageOverrides) - ) {}; - - wechat_mp_auth = wechat_mp_auth_0_0_2; - - wechatex_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, plug_1_1_5 }: - buildMix ({ - name = "wechatex"; - version = "0.0.1"; - src = fetchHex { - pkg = "wechatex"; - version = "0.0.1"; - sha256 = - "211971a79d38326dbf5e603ee00165708eb17670f2a84e54df929191c6fef81c"; - }; - beamDeps = [ plug_1_1_5 ]; - - meta = { - description = ''Wechat plugins for Elixir.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/octocandy/wechatex"; - }; - } // packageOverrides) - ) {}; - - wechatex = wechatex_0_0_1; - - what3words_1_0_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "what3words"; - version = "1.0.0"; - src = fetchHex { - pkg = "what3words"; - version = "1.0.0"; - sha256 = - "a704976567fd49cc6450eb0de10a7a39acb49b8db5b9ea7b9d9c1491b7453bf7"; - }; - beamDeps = [ poison_2_1_0 httpoison_0_8_3 ]; - - meta = { - description = ''Wrapper for the What3Words API''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/lucidstack/w3w-elixir-wrapper"; - }; - } // packageOverrides) - ) {}; - - what3words = what3words_1_0_0; - - white_bread_2_7_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "white_bread"; - version = "2.7.0"; - src = fetchHex { - pkg = "white_bread"; - version = "2.7.0"; - sha256 = - "8938204a78b9081a2c097cb1c39e19037356f4d71a011897b1d51d728ba15946"; - }; - - meta = { - longDescription = ''Story BDD tool based on cucumber. Parses - Gherkin formatted feature files and executes - them as tests.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/meadsteve/white-bread"; - }; - } // packageOverrides) - ) {}; - - white_bread = white_bread_2_7_0; - - whois_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "whois"; - version = "0.0.1"; - src = fetchHex { - pkg = "whois"; - version = "0.0.1"; - sha256 = - "71c21201c0bcf9934503a21e693e380fcf0e91d29728492dce182b15ff686636"; - }; - - meta = { - description = ''Pure Elixir WHOIS client and parser.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/utkarshkukreti/whois.ex"; - }; - } // packageOverrides) - ) {}; - - whois = whois_0_0_1; - - witchcraft_0_4_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - quark_1_0_2, - algae_0_10_0 - }: - buildMix ({ - name = "witchcraft"; - version = "0.4.2"; - src = fetchHex { - pkg = "witchcraft"; - version = "0.4.2"; - sha256 = - "cdd6379d5a8b0baab3b79b0c9b87473d8292e0d9a80fa2e21fac61d31218609f"; - }; - beamDeps = [ quark_1_0_2 algae_0_10_0 ]; - - meta = { - description = ''Common algebraic structures and functions''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/robot-overlord/witchcraft"; - }; - } // packageOverrides) - ) {}; - - witchcraft = witchcraft_0_4_2; - - wizard_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "wizard"; - version = "0.1.0"; - src = fetchHex { - pkg = "wizard"; - version = "0.1.0"; - sha256 = - "cc22faf9e76f50592906b816027fef4ee1942a59005cf8c831c7f76e48b9193e"; - }; - - meta = { - description = ''Wizard is a math and statistics library for - Elixir.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/raywan/wizard"; - }; - } // packageOverrides) - ) {}; - - wizard = wizard_0_1_0; - - wizardry_0_0_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - plug_1_1_5, - comeonin_1_6_0 - }: - buildMix ({ - name = "wizardry"; - version = "0.0.1"; - src = fetchHex { - pkg = "wizardry"; - version = "0.0.1"; - sha256 = - "4a85b8c3e5813dee20aa0d5503811568743644883723c9b226436616c9a779a3"; - }; - beamDeps = [ plug_1_1_5 comeonin_1_6_0 ]; - - meta = { - description = ''Simple, low-level user account framework for - Phoenix Framework''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/knrz/wizardry"; - }; - } // packageOverrides) - ) {}; - - wizardry = wizardry_0_0_1; - - woolly_0_1_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "woolly"; - version = "0.1.2"; - src = fetchHex { - pkg = "woolly"; - version = "0.1.2"; - sha256 = - "34677dae0bcca0c66fd611d6528e1d0532247e0ad9478a4b469476058308b40d"; - }; - - meta = { - longDescription = ''Woolly is the text mining and natural - language toolkit for the Elixir programming - language.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/pjhampton/Woolly"; - }; - } // packageOverrides) - ) {}; - - woolly = woolly_0_1_2; - - word_smith_0_1_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "word_smith"; - version = "0.1.2"; - src = fetchHex { - pkg = "word_smith"; - version = "0.1.2"; - sha256 = - "481e643c5d26f113235ee577ea9b11c2c639228e0573670329c4385ee6d4cb32"; - }; - - meta = { - longDescription = ''General text utility library to help with - string manipulation not found in the standard - Elixir library.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/benfalk/word_smith"; - }; - } // packageOverrides) - ) {}; - - word_smith = word_smith_0_1_2; - - work_queue_0_0_3 = callPackage - ( - { - buildMix, packageOverrides ? {}, fetchHex, pipe_while_ok_0_0_2 - }: - buildMix ({ - name = "work_queue"; - version = "0.0.3"; - src = fetchHex { - pkg = "work_queue"; - version = "0.0.3"; - sha256 = - "31b000cf454ee0a8f90408ea10c33ee6cdd062256a7dd3aac7fe67c48fcbb424"; - }; - beamDeps = [ pipe_while_ok_0_0_2 ]; - - meta = { - description = ''A simple implement of the Hungry Consumer model - of concurrent servers. ''; - license = stdenv.lib.licenses.free; - homepage = "https://github.com/pragdave/work_queue"; - }; - } // packageOverrides) - ) {}; - - work_queue = work_queue_0_0_3; - - worker_pool_1_0_4 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "worker_pool"; - version = "1.0.4"; - src = fetchHex { - pkg = "worker_pool"; - version = "1.0.4"; - sha256 = - "7854a3b94e9624728db3a0475d00e7d0728adf3bf2ee3802bbf8ca10356d6f64"; - }; - - meta = { - description = ''Erlang Worker Pool''; - license = stdenv.lib.licenses.free; - homepage = "https://github.com/inaka/worker_pool"; - }; - } // packageOverrides) - ) {}; - - worker_pool_2_0_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "worker_pool"; - version = "2.0.0"; - src = fetchHex { - pkg = "worker_pool"; - version = "2.0.0"; - sha256 = - "915d3a1276d3c00c1438ae49785ff974f7b36772d5a13ad6a2c487e7c005f272"; - }; - - meta = { - description = ''Erlang Worker Pool''; - license = stdenv.lib.licenses.free; - homepage = "https://github.com/inaka/worker_pool"; - }; - } // packageOverrides) - ) {}; - - worker_pool = worker_pool_2_0_0; - - workex_0_10_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, exactor_2_2_0 }: - buildMix ({ - name = "workex"; - version = "0.10.0"; - src = fetchHex { - pkg = "workex"; - version = "0.10.0"; - sha256 = - "9bb48e3ff0294021ecc78d86d4a7521dbe46e129ae9e51a46c9f2a67a63e9cbd"; - }; - beamDeps = [ exactor_2_2_0 ]; - - meta = { - description = ''A behaviour for simple flow control and - backpressure.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/sasa1977/workex"; - }; - } // packageOverrides) - ) {}; - - workex = workex_0_10_0; - - workshop_0_5_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "workshop"; - version = "0.5.1"; - src = fetchHex { - pkg = "workshop"; - version = "0.5.1"; - sha256 = - "f6eaab9360764e83cca6892d939357e505fe163412b22acca7ea4fe307c8bed2"; - }; - - meta = { - longDescription = ''Mix tasks for creating and running - interactive workshops for teaching people how to - program in Elixir, and other things.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/gausby/workshop"; - }; - } // packageOverrides) - ) {}; - - workshop = workshop_0_5_1; - - world_json_0_1_6 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, poison_1_3_1 }: - buildMix ({ - name = "world_json"; - version = "0.1.6"; - src = fetchHex { - pkg = "world_json"; - version = "0.1.6"; - sha256 = - "f91493355bc522e6ee58eed6d21fca41c32f246052c1324cb5f08b2eb1eb5e83"; - }; - beamDeps = [ poison_1_3_1 ]; - - meta = { - description = ''topojson country and state/province collections - for elixir/erlang''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/camshaft/world_json_ex"; - }; - } // packageOverrides) - ) {}; - - world_json = world_json_0_1_6; - - wpa_supplicant_0_2_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "wpa_supplicant"; - version = "0.2.0"; - src = fetchHex { - pkg = "wpa_supplicant"; - version = "0.2.0"; - sha256 = - "40c86728b254dd9a9a96d862049a85ccf8b8ce9d1fe27985fe5d7c7a32c56bb6"; - }; - - meta = { - longDescription = ''Elixir interface to the wpa_supplicant - daemon. The wpa_supplicant provides application - support for scanning for access points, managing - Wi-Fi connections, and handling all of the - security and other parameters associated with - Wi-Fi.''; - license = with stdenv.lib.licenses; [ asl20 free ]; - homepage = "https://github.com/fhunleth/wpa_supplicant.ex"; - }; - } // packageOverrides) - ) {}; - - wpa_supplicant = wpa_supplicant_0_2_0; - - ws_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "ws"; - version = "0.0.1"; - src = fetchHex { - pkg = "ws"; - version = "0.0.1"; - sha256 = - "31185c57989f16c4d337974cf1896bb8da452b4f08258a48583cce211fbcf316"; - }; - - meta = { - description = ''An RFC 6455 WebSocket implementation.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/"; - }; - } // packageOverrides) - ) {}; - - ws = ws_0_0_1; - - wx_utils_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "wx_utils"; - version = "0.0.2"; - src = fetchHex { - pkg = "wx_utils"; - version = "0.0.2"; - sha256 = - "78bb6d423327e7cf41446a35741fe079fb138a4671d0a01e70223f6219afc3d4"; - }; - - meta = { - description = ''All of the erlang wx macros exposed as normal - functions.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/sschneider1207/wx_utils"; - }; - } // packageOverrides) - ) {}; - - wx_utils = wx_utils_0_0_2; - - wykop_api_0_0_4 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - httpoison_0_8_3 - }: - buildMix ({ - name = "wykop_api"; - version = "0.0.4"; - src = fetchHex { - pkg = "wykop_api"; - version = "0.0.4"; - sha256 = - "0c2acade581168e5cdf3d1dbde53183bc1c49882c8ba8793e045f20d5a9a26d0"; - }; - beamDeps = [ poison_1_5_2 httpoison_0_8_3 ]; - - meta = { - description = ''Library for Wykop API.''; - license = stdenv.lib.licenses.cc0; - homepage = "https://github.com/remiq/wykop_api_elixir"; - }; - } // packageOverrides) - ) {}; - - wykop_api = wykop_api_0_0_4; - - xain_0_5_3 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "xain"; - version = "0.5.3"; - src = fetchHex { - pkg = "xain"; - version = "0.5.3"; - sha256 = - "c71c2b8180b317a361b4691cf6e9e72d1cf2ad00f7e31f5f5e72d79489eb6e24"; - }; - - meta = { - description = ''An html DSL package.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/smpallen99/xain"; - }; - } // packageOverrides) - ) {}; - - xain = xain_0_5_3; - - xe_0_0_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - httpoison_0_8_3, - floki_0_8_1 - }: - buildMix ({ - name = "xe"; - version = "0.0.1"; - src = fetchHex { - pkg = "xe"; - version = "0.0.1"; - sha256 = - "53d693612db1343c36a7bbe6286c23f7ccfdbd44500c2a38970743238d230a77"; - }; - beamDeps = [ httpoison_0_8_3 floki_0_8_1 ]; - - meta = { - description = ''Real time conversion for currencies''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/paulodiniz/xe"; - }; - } // packageOverrides) - ) {}; - - xe = xe_0_0_1; - - xepcache_1_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, depcache_1_2_2 }: - buildMix ({ - name = "xepcache"; - version = "1.0.1"; - src = fetchHex { - pkg = "xepcache"; - version = "1.0.1"; - sha256 = - "b163b26145c2ab3f37ec004dc24ca49c53c1c7b50529c068e94cfcfd78ec62dd"; - }; - beamDeps = [ depcache_1_2_2 ]; - - meta = { - longDescription = ''A wrapper around Erlang`s depcache, an - in-memory caching server. depcache bases its - caching around ETS but can also switch to using - the in-process dictionary for maintaining a - process-local cache. Convenient functions are - provided for getting/setting cache values, with - ttl and cache key dependencies, as well as a - memo function for caching the result of function - executions.''; - license = stdenv.lib.licenses.apsl20; - homepage = "https://github.com/arjan/xepcache"; - }; - } // packageOverrides) - ) {}; - - xepcache = xepcache_1_0_1; - - xfighter_0_2_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - httpoison_0_8_3 - }: - buildMix ({ - name = "xfighter"; - version = "0.2.1"; - src = fetchHex { - pkg = "xfighter"; - version = "0.2.1"; - sha256 = - "67bb43379cd89b4b95f65f02ad5421719723d262fdbe7e399fb82ac7f3b490a8"; - }; - beamDeps = [ poison_1_5_2 httpoison_0_8_3 ]; - - meta = { - description = ''An API wrapper for the programming game - Stockfighter.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/bitchef/xfighter"; - }; - } // packageOverrides) - ) {}; - - xfighter = xfighter_0_2_1; - - xjs_0_1_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, poison_2_1_0 }: - buildMix ({ - name = "xjs"; - version = "0.1.1"; - src = fetchHex { - pkg = "xjs"; - version = "0.1.1"; - sha256 = - "51f93b5008fb73ad6d9320bc97892cd861171852a59408b02823b03fe8c1b751"; - }; - beamDeps = [ poison_2_1_0 ]; - - meta = { - description = ''elixir syntax, javascript semantics''; - license = stdenv.lib.licenses.isc; - homepage = "https://github.com/aaron-lebo/xjs"; - }; - } // packageOverrides) - ) {}; - - xjs = xjs_0_1_1; - - xkcd_0_0_1 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_2_1_0, - httpoison_0_8_3 - }: - buildMix ({ - name = "xkcd"; - version = "0.0.1"; - src = fetchHex { - pkg = "xkcd"; - version = "0.0.1"; - sha256 = - "1c757360b9c5ff3d098e9c04874ed273289ea890e4d87e7dd99164633fe061b5"; - }; - beamDeps = [ poison_2_1_0 httpoison_0_8_3 ]; - - meta = { - longDescription = ''Uses the XKCD JSON API to retrieve the - random, specific and the latest XKCD comic.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/notdevinclark/xkcd"; - }; - } // packageOverrides) - ) {}; - - xkcd = xkcd_0_0_1; - - xlsxir_1_3_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, erlsom_1_4_1 }: - buildMix ({ - name = "xlsxir"; - version = "1.3.0"; - src = fetchHex { - pkg = "xlsxir"; - version = "1.3.0"; - sha256 = - "8c5985daeafaa388b63dde1f9827d650c5c964a0d4c1a91aba9ff8463c6d7833"; - }; - beamDeps = [ erlsom_1_4_1 ]; - - meta = { - longDescription = ''Xlsx file parser. Supports large files, - multiple worksheets and ISO 8601 date formats. - Data is extracted to an Erlang Term Storage - (ETS) table and is accessed through various - functions. Tested with Excel and LibreOffice.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/kennellroxco/xlsxir"; - }; - } // packageOverrides) - ) {}; - - xlsxir = xlsxir_1_3_0; - - xml_builder_0_0_8 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "xml_builder"; - version = "0.0.8"; - src = fetchHex { - pkg = "xml_builder"; - version = "0.0.8"; - sha256 = - "51922bc50e0ef79c757d1016eda2a486f8688cd7307c4519102ea1fea4c5a3cd"; - }; - - meta = { - description = ''XML builder for Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/joshnuss/xml_builder"; - }; - } // packageOverrides) - ) {}; - - xml_builder = xml_builder_0_0_8; - - xml_to_keyword_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "xml_to_keyword"; - version = "0.0.1"; - src = fetchHex { - pkg = "xml_to_keyword"; - version = "0.0.1"; - sha256 = - "64433848f0ed0ad8f26f1c6e1a6509a6fbaf017701577bd8122bfbb6ee277e97"; - }; - - meta = { - longDescription = ''This is an Elixir package that can convert - xml into Elixir`s Keyword List, which is - compilable with XmlBuilder - (joshnuss/xml_builder) package''; - license = stdenv.lib.licenses.free; - }; - } // packageOverrides) - ) {}; - - xml_to_keyword = xml_to_keyword_0_0_1; - - xmlrpc_0_9_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "xmlrpc"; - version = "0.9.1"; - src = fetchHex { - pkg = "xmlrpc"; - version = "0.9.1"; - sha256 = - "b2f6941248fa2e55e89dcb69304f58a7cc4203ce68b986260836933be8fac879"; - }; - - meta = { - longDescription = ''XML-RPC encoder/decder for Elixir. Supports - all valid datatypes. Input (ie untrusted) is - parsed with erlsom against an xml-schema for - security.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/ewildgoose/elixir-xml_rpc"; - }; - } // packageOverrides) - ) {}; - - xmlrpc_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "xmlrpc"; - version = "1.0.0"; - src = fetchHex { - pkg = "xmlrpc"; - version = "1.0.0"; - sha256 = - "8b7dc690a64df7e72d192e9211a20084079933272c14c3e9c158eb101025a7ec"; - }; - - meta = { - longDescription = ''XML-RPC encoder/decder for Elixir. Supports - all valid datatypes. Input (ie untrusted) is - parsed with erlsom against an xml-schema for - security.''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/ewildgoose/elixir-xml_rpc"; - }; - } // packageOverrides) - ) {}; - - xmlrpc = xmlrpc_1_0_0; - - xoauth2_0_0_3 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - mock_0_1_3, - httpoison_0_8_3 - }: - buildMix ({ - name = "xoauth2"; - version = "0.0.3"; - src = fetchHex { - pkg = "xoauth2"; - version = "0.0.3"; - sha256 = - "4a43a0bca1707b579c6a141524666006dd25ed2efdc19aee5d6eeedf6efc3418"; - }; - beamDeps = [ poison_1_5_2 mock_0_1_3 httpoison_0_8_3 ]; - - meta = { - description = ''A simple XOAuth2 module for Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/craigp/elixir_xoauth2"; - }; - } // packageOverrides) - ) {}; - - xoauth2 = xoauth2_0_0_3; - - xxhash_0_2_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "xxhash"; - version = "0.2.0"; - src = fetchHex { - pkg = "xxhash"; - version = "0.2.0"; - sha256 = - "ed57fd84e2c4fc440c28fa6a59d2c2ec0d3957b58dfd05cf06da8824ee6494d8"; - }; - - meta = { - description = ''Native Elixir xxHash port.''; - license = stdenv.lib.licenses.free; - homepage = "https://github.com/ttvd/elixir-xxhash"; - }; - } // packageOverrides) - ) {}; - - xxhash = xxhash_0_2_0; - - y_process_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "y_process"; - version = "0.0.1"; - src = fetchHex { - pkg = "y_process"; - version = "0.0.1"; - sha256 = - "3329d3fbe253d605b1f7a91a601c672ff4bc0e7b8c960871d82c964e92372bcb"; - }; - - meta = { - description = ''GenServer wrapper behaviour for pubsub between - processes.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/gmtprime/y_process"; - }; - } // packageOverrides) - ) {}; - - y_process = y_process_0_0_1; - - yahoo_fx_0_2_0 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - time_seer_0_0_6, - httpoison_0_8_3 - }: - buildMix ({ - name = "yahoo_fx"; - version = "0.2.0"; - src = fetchHex { - pkg = "yahoo_fx"; - version = "0.2.0"; - sha256 = - "e06b6986c483cad62081e19fba3089f3eab4a4f1e1cc06cd17aa45d34dd14913"; - }; - beamDeps = [ time_seer_0_0_6 httpoison_0_8_3 ]; - - meta = { - longDescription = ''YahooFx is an Elixir library for getting - currency exchange rates from Yahoo Finance''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/lau/yahoo_fx"; - }; - } // packageOverrides) - ) {}; - - yahoo_fx = yahoo_fx_0_2_0; - - yaml_elixir_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "yaml_elixir"; - version = "1.0.0"; - src = fetchHex { - pkg = "yaml_elixir"; - version = "1.0.0"; - sha256 = - "8d318d459561678bbe42bdcc7282ebe9dd7538f34045812054edf226634bf4a7"; - }; - - meta = { - description = ''Yaml parser for Elixir based on native Erlang - implementation.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/KamilLelonek/yaml-elixir"; - }; - } // packageOverrides) - ) {}; - - yaml_elixir_1_2_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "yaml_elixir"; - version = "1.2.0"; - src = fetchHex { - pkg = "yaml_elixir"; - version = "1.2.0"; - sha256 = - "7827069a57fc1d830c3025acbb9611f4cd51ee139e8e75de85d0c4e835df4c16"; - }; - - meta = { - description = ''Yaml parser for Elixir based on native Erlang - implementation.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/KamilLelonek/yaml-elixir"; - }; - } // packageOverrides) - ) {}; - - yaml_elixir = yaml_elixir_1_2_0; - - yaml_encoder_0_0_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "yaml_encoder"; - version = "0.0.2"; - src = fetchHex { - pkg = "yaml_encoder"; - version = "0.0.2"; - sha256 = - "ff3713e793daed297bca7252651deafd15c5f2f353a4ab03bf3f13a71fcb60a6"; - }; - - meta = { - description = ''Simple module to encode data to YAML. Not ready - for production, still WIP.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/pilu/yaml_encoder"; - }; - } // packageOverrides) - ) {}; - - yaml_encoder = yaml_encoder_0_0_2; - - yes_msg_0_1_0 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "yes_msg"; - version = "0.1.0"; - src = fetchHex { - pkg = "yes_msg"; - version = "0.1.0"; - sha256 = - "45e0a13d87cf84fa50001b27f898b470c610207947e4ddb1b1160804b4e62e0e"; - }; - - meta = { - description = ''Yet another simple message (YES) parser for - Erlang.''; - license = stdenv.lib.licenses.mit; - }; - } // packageOverrides) - ) {}; - - yes_msg = yes_msg_0_1_0; - - yocingo_0_0_3 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - httpoison_0_8_3, - exjsx_3_2_0, - earmark_0_2_1 - }: - buildMix ({ - name = "yocingo"; - version = "0.0.3"; - src = fetchHex { - pkg = "yocingo"; - version = "0.0.3"; - sha256 = - "e222ea0050a5678568d463f8ae7cf7ccd8efba4dfee1637eb0e52c1a1c7809f1"; - }; - beamDeps = [ httpoison_0_8_3 exjsx_3_2_0 earmark_0_2_1 ]; - - meta = { - longDescription = ''This is a full Telegram Bot API. With this - module you can create your own Telegram Bot.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/Yawolf/yocingo"; - }; - } // packageOverrides) - ) {}; - - yocingo = yocingo_0_0_3; - - ytx_0_0_5 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex, rapidax_0_0_3 }: - buildMix ({ - name = "ytx"; - version = "0.0.5"; - src = fetchHex { - pkg = "ytx"; - version = "0.0.5"; - sha256 = - "a30877517201e1c964627782345273fa7ae2157591d1ae6f5663333f370db6f6"; - }; - beamDeps = [ rapidax_0_0_3 ]; - - meta = { - description = ''Youtube API Client for Elixir''; - license = stdenv.lib.licenses.asl20; - homepage = "https://github.com/victorlcampos/ytx"; - }; - } // packageOverrides) - ) {}; - - ytx = ytx_0_0_5; - - yubico_0_1_4 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "yubico"; - version = "0.1.4"; - src = fetchHex { - pkg = "yubico"; - version = "0.1.4"; - sha256 = - "0609f63f3b6141e56014b5247526448a41bf9f61431800891b8c219310f425ad"; - }; - - meta = { - description = ''Client implementing the Yubico Validation - Protocol Version 2.0.''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/project-fifo/erlang-yubico"; - }; - } // packageOverrides) - ) {}; - - yubico = yubico_0_1_4; - - yuri_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "yuri"; - version = "1.0.0"; - src = fetchHex { - pkg = "yuri"; - version = "1.0.0"; - sha256 = - "4a4c851f7ea20141201a9b69eaefb300b420e6c94a1513519aaef39f63d939c5"; - }; - - meta = { - description = ''Simple struct for representing URIs.''; - license = stdenv.lib.licenses.wtfpl; - homepage = "https://github.com/kemonomachi/yuri"; - }; - } // packageOverrides) - ) {}; - - yuri = yuri_1_0_0; - - yyid_0_1_2 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "yyid"; - version = "0.1.2"; - src = fetchHex { - pkg = "yyid"; - version = "0.1.2"; - sha256 = - "37fb0acf8e7f30e66fbba18326b357aeaeb19b671b59d4beb8c8bd943370eeab"; - }; - - meta = { - longDescription = ''Generates random tokens that look like type 4 - UUIDs: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx ''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/janlelis/yyid.ex"; - }; - } // packageOverrides) - ) {}; - - yyid = yyid_0_1_2; - - zarex_0_3_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "zarex"; - version = "0.3.0"; - src = fetchHex { - pkg = "zarex"; - version = "0.3.0"; - sha256 = - "b4c59af6ccc9c0ffea797920a7f66cdaaa498cda83e4bc4c077ff09cb3b21961"; - }; - - meta = { - description = ''Filename sanitization for Elixir''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/ricn/zarex"; - }; - } // packageOverrides) - ) {}; - - zarex = zarex_0_3_0; - - zbase32_1_0_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "zbase32"; - version = "1.0.0"; - src = fetchHex { - pkg = "zbase32"; - version = "1.0.0"; - sha256 = - "bea25493cb512cf0d0ee4e1140c4dc276a27cc299c9b304117ec7b7e4af557b6"; - }; - - meta = { - longDescription = ''Efficient implementation of z-base-32, Phil - Zimmermann`s human-oriented base-32 encoding. - z-base-32 is a Base32 encoding designed to be - easier for human use and more compact. It - includes 1, 8 and 9 but excludes l, v and 2. It - also permutes the alphabet so that the easier - characters are the ones that occur more - frequently. It compactly encodes bitstrings - whose length in bits is not a multiple of 8, and - omits trailing padding characters. z-base-32 was - used in Mnet open source project, and is - currently used in Phil Zimmermann`s ZRTP - protocol, and in the Tahoe-LAFS open source - project.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/pspdfkit-labs/zbase32"; - }; - } // packageOverrides) - ) {}; - - zbase32 = zbase32_1_0_0; - - zigzag_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "zigzag"; - version = "0.0.1"; - src = fetchHex { - pkg = "zigzag"; - version = "0.0.1"; - sha256 = - "27a151e219cf0dcabda9977aad3fbae7b8c366c88a88846e830bc4364f31ed95"; - }; - - meta = { - description = ''Zigzag is a fast and flexible parallel processing - library for Elixir.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/utkarshkukreti/zigzag.ex"; - }; - } // packageOverrides) - ) {}; - - zigzag = zigzag_0_0_1; - - zip_stream_0_1_0 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "zip_stream"; - version = "0.1.0"; - src = fetchHex { - pkg = "zip_stream"; - version = "0.1.0"; - sha256 = - "a712e24d5fe74e3761c74f3e05cb03df0aa9440f3edee957445f9c9be73c9a4e"; - }; - - meta = { - longDescription = ''Library to read zip file in a stream. Zip - file binary stream -> stream of {:new_file,name} - or uncompressed_bin Erlang zlib library only - allows deflate decompress stream. But Erlang zip - library does not allow content streaming.''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/awetzel/zip_stream"; - }; - } // packageOverrides) - ) {}; - - zip_stream = zip_stream_0_1_0; - - zipcloudx_0_0_2 = callPackage - ( - { - buildMix, - packageOverrides ? {}, - fetchHex, - poison_1_5_2, - httpoison_0_8_3 - }: - buildMix ({ - name = "zipcloudx"; - version = "0.0.2"; - src = fetchHex { - pkg = "zipcloudx"; - version = "0.0.2"; - sha256 = - "1e474ec0229b6dd1404c34fbd2a851d136d9549d5ecccbd01d017baac64b264e"; - }; - beamDeps = [ poison_1_5_2 httpoison_0_8_3 ]; - - meta = { - description = ''Elixir zipcloud API wrapper''; - - }; - } // packageOverrides) - ) {}; - - zipcloudx = zipcloudx_0_0_2; - - zipflow_0_0_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "zipflow"; - version = "0.0.1"; - src = fetchHex { - pkg = "zipflow"; - version = "0.0.1"; - sha256 = - "1b6e43e3a40529e41fbbb47d27470a3842834be066b676b68f5b0bfed68c8f39"; - }; - - meta = { - description = ''stream zip archives while building them''; - license = stdenv.lib.licenses.bsd3; - homepage = "https://github.com/dgvncsz0f/zipflow"; - }; - } // packageOverrides) - ) {}; - - zipflow = zipflow_0_0_1; - - zipper_tree_0_1_1 = callPackage - ( - { buildMix, packageOverrides ? {}, fetchHex }: - buildMix ({ - name = "zipper_tree"; - version = "0.1.1"; - src = fetchHex { - pkg = "zipper_tree"; - version = "0.1.1"; - sha256 = - "df6e81d6be9c9ac582bcde541e263d1379485f5cbb5b7cd1b55cd031fe7741ea"; - }; - - meta = { - description = ''Methods for travelsal and modification of Trees - using a zipper. ''; - license = stdenv.lib.licenses.wtfpl; - homepage = "https://github.com/Dkendal/zipper_tree"; - }; - } // packageOverrides) - ) {}; - - zipper_tree = zipper_tree_0_1_1; - - zlist_1_0_3 = callPackage - ( - { buildRebar3, packageOverrides ? {}, fetchHex }: - buildRebar3 ({ - name = "zlist"; - version = "1.0.3"; - src = fetchHex { - pkg = "zlist"; - version = "1.0.3"; - sha256 = - "c5ed3928628cfc9041afb6b1ee3d73d5c85473e6d3ce0f4cb6b1fcb20a207b89"; - }; - - meta = { - description = ''Erlang lazy list library''; - license = stdenv.lib.licenses.mit; - homepage = "https://github.com/egobrain/zlist"; - }; - } // packageOverrides) - ) {}; - - zlist = zlist_1_0_3; - - }; -in stdenv.lib.fix' (stdenv.lib.extends overrides packages) \ No newline at end of file diff --git a/pkgs/development/beam-modules/hex-registry-snapshot.nix b/pkgs/development/beam-modules/hex-registry-snapshot.nix deleted file mode 100644 index fbd2950b6d53b..0000000000000 --- a/pkgs/development/beam-modules/hex-registry-snapshot.nix +++ /dev/null @@ -1,27 +0,0 @@ -{stdenv, writeText, fetchFromGitHub }: - -stdenv.mkDerivation rec { - pname = "hex-registry"; - rev = "11d7a24e9f53f52490ce255a6248e71128e73aa1"; - version = "unstable-2018-07-12"; - - src = fetchFromGitHub { - inherit rev; - owner = "erlang-nix"; - repo = "hex-pm-registry-snapshots"; - sha256 = "0dbpcrdh6jqmvnm1ysmy7ixyc95vnbqmikyx5kk77qwgyd43fqgi"; - }; - - installPhase = '' - mkdir -p "$out/var/hex" - zcat "registry.ets.gz" > "$out/var/hex/registry.ets" - ''; - - setupHook = writeText "setupHook.sh" '' - export HEX_REGISTRY_SNAPSHOT="$1/var/hex/registry.ets" - ''; - - meta = { - platforms = stdenv.lib.platforms.unix; - }; -} diff --git a/pkgs/development/beam-modules/mix-bootstrap b/pkgs/development/beam-modules/mix-bootstrap index d7a912ee1ed76..7e31def71fa82 100755 --- a/pkgs/development/beam-modules/mix-bootstrap +++ b/pkgs/development/beam-modules/mix-bootstrap @@ -25,8 +25,7 @@ -record(data, {version , erl_libs , root - , name - , registry_snapshot}). + , name}). -define(LOCAL_HEX_REGISTRY, "registry.ets"). main(Args) -> @@ -51,8 +50,7 @@ gather_required_data_from_the_environment(_) -> {ok, #data{ version = guard_env("version") , erl_libs = os:getenv("ERL_LIBS", []) , root = code:root_dir() - , name = guard_env("name") - , registry_snapshot = guard_env("HEX_REGISTRY_SNAPSHOT")}}. + , name = guard_env("name")}}. -spec guard_env(string()) -> string(). guard_env(Name) -> diff --git a/pkgs/development/tools/build-managers/rebar3/default.nix b/pkgs/development/tools/build-managers/rebar3/default.nix index feb0086a355df..4ebeb7f052844 100644 --- a/pkgs/development/tools/build-managers/rebar3/default.nix +++ b/pkgs/development/tools/build-managers/rebar3/default.nix @@ -1,12 +1,10 @@ { stdenv, fetchFromGitHub, fetchHex, erlang, - tree, hexRegistrySnapshot }: + tree }: let version = "3.12.0"; - bootstrapper = ./rebar3-nix-bootstrap; - erlware_commons = fetchHex { pkg = "erlware_commons"; version = "1.3.1"; @@ -80,15 +78,9 @@ stdenv.mkDerivation rec { sha256 = "0936ix7lfwsamssap58b265zid7x2m97azrr2qpjcln3xysd16lg"; }; - inherit bootstrapper; - buildInputs = [ erlang tree ]; - # TODO: Remove registry snapshot - propagatedBuildInputs = [ hexRegistrySnapshot ]; - postPatch = '' - ${erlang}/bin/escript ${bootstrapper} registry-only mkdir -p _checkouts mkdir -p _build/default/lib/ diff --git a/pkgs/development/tools/build-managers/rebar3/rebar3-nix-bootstrap b/pkgs/development/tools/build-managers/rebar3/rebar3-nix-bootstrap index 802f47af6adf5..f1deed1df3521 100755 --- a/pkgs/development/tools/build-managers/rebar3/rebar3-nix-bootstrap +++ b/pkgs/development/tools/build-managers/rebar3/rebar3-nix-bootstrap @@ -25,14 +25,12 @@ %%% Environment Variable -record(data, {version - , registry_only = false , debug_info = false , compile_ports , erl_libs , plugins , root - , name - , registry_snapshot}). + , name}). -define(HEX_REGISTRY_PATH, ".cache/rebar3/hex/default/registry"). @@ -41,30 +39,24 @@ main(Args) -> {ok, RequiredData} = gather_required_data_from_the_environment(ArgData), do_the_bootstrap(RequiredData). -%% @doc There are two modes 'registry_only' where the register is -%% created from hex and everything else. -spec do_the_bootstrap(#data{}) -> ok. -do_the_bootstrap(RequiredData = #data{registry_only = true}) -> - ok = bootstrap_registry(RequiredData); do_the_bootstrap(RequiredData) -> - ok = bootstrap_registry(RequiredData), ok = bootstrap_configs(RequiredData), ok = bootstrap_plugins(RequiredData), ok = bootstrap_libs(RequiredData). %% @doc %% Argument parsing is super simple only because we want to keep the -%% dependencies minimal. For now there can be two entries on the -%% command line, "registry-only" and "debug-info" +%% dependencies minimal. For now there can be one entry on the +%% command line: "debug-info" -spec parse_args([string()]) -> #data{}. parse_args(Args0) -> - PossibleArgs = sets:from_list(["registry-only", "debug-info"]), + PossibleArgs = sets:from_list(["debug-info"]), Args1 = sets:from_list(Args0), Result = sets:subtract(Args1, PossibleArgs), case sets:to_list(Result) of [] -> - {ok, #data{registry_only = sets:is_element("registry-only", Args1), - debug_info = sets:is_element("debug-info", Args1)}}; + {ok, #data{debug_info = sets:is_element("debug-info", Args1)}}; UnknownArgs -> io:format("Unexpected command line arguments passed in: ~p~n", [UnknownArgs]), @@ -156,30 +148,6 @@ fixup_app_name(FileName) -> [Name, _Version, _Tag] -> Name end. --spec bootstrap_registry(#data{}) -> ok. -bootstrap_registry(#data{registry_snapshot = RegistrySnapshot}) -> - io:format("Bootstrapping Hex Registry for Rebar~n"), - make_sure_registry_snapshot_exists(RegistrySnapshot), - filelib:ensure_dir(?HEX_REGISTRY_PATH), - ok = case filelib:is_file(?HEX_REGISTRY_PATH) of - true -> - file:delete(?HEX_REGISTRY_PATH); - false -> - ok - end, - ok = file:make_symlink(RegistrySnapshot, - ?HEX_REGISTRY_PATH). - --spec make_sure_registry_snapshot_exists(string()) -> ok. -make_sure_registry_snapshot_exists(RegistrySnapshot) -> - case filelib:is_file(RegistrySnapshot) of - true -> - ok; - false -> - stderr("Registry snapshot (~s) does not exist!", [RegistrySnapshot]), - erlang:halt(1) - end. - -spec gather_required_data_from_the_environment(#data{}) -> {ok, #data{}}. gather_required_data_from_the_environment(ArgData) -> {ok, ArgData#data{ version = guard_env("version") @@ -187,8 +155,7 @@ gather_required_data_from_the_environment(ArgData) -> , plugins = get_env("buildPlugins", []) , root = code:root_dir() , name = guard_env("name") - , compile_ports = nix2bool(get_env("compilePorts", "")) - , registry_snapshot = guard_env("HEX_REGISTRY_SNAPSHOT")}}. + , compile_ports = nix2bool(get_env("compilePorts", ""))}}. -spec nix2bool(any()) -> boolean(). nix2bool("1") -> diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index dc4e0eeda4195..5cec7cf059dc3 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8889,9 +8889,9 @@ in lfe lfe_1_2; inherit (beam.packages.erlang) - rebar rebar3-open rebar3 - hexRegistrySnapshot fetchHex beamPackages - hex2nix relxExe; + rebar rebar3 + fetchHex beamPackages + relxExe; inherit (beam.packages.erlangR19) cuter; -- cgit 1.4.1