Merge master into staging-next

authored by

github-actions[bot] and committed by
GitHub
7a89380b 26447bdb

+1382 -1084
+2 -2
doc/builders/packages/citrix.section.md
··· 4 4 5 5 ## Basic usage {#sec-citrix-base} 6 6 7 - The tarball archive needs to be downloaded manually, as the license agreements of the vendor for [Citrix Workspace](https://www.citrix.de/downloads/workspace-app/linux/workspace-app-for-linux-latest.html) needs 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. 7 + The tarball archive needs to be downloaded manually, as the license agreements of the vendor for [Citrix Workspace](https://www.citrix.com/downloads/workspace-app/linux/workspace-app-for-linux-latest.html) needs 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. 8 8 9 9 ## Citrix Self-service {#sec-citrix-selfservice} 10 10 ··· 19 19 20 20 ## Custom certificates {#sec-citrix-custom-certs} 21 21 22 - The `Citrix Workspace App` in `nixpkgs` trusts several certificates [from the Mozilla database](https://curl.haxx.se/docs/caextract.html) 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`](https://developer-docs.citrix.com/projects/receiver-for-linux-command-reference/en/13.7/), 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`: 22 + The `Citrix Workspace App` in `nixpkgs` trusts several certificates [from the Mozilla database](https://curl.haxx.se/docs/caextract.html) 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`](https://citrix.github.io/receiver-for-linux-command-reference/), 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`: 23 23 24 24 ```nix 25 25 with import <nixpkgs> { config.allowUnfree = true; };
+1 -1
doc/builders/packages/ibus.section.md
··· 4 4 5 5 ## Activating the engine {#sec-ibus-typing-booster-activate} 6 6 7 - 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](https://mike-fabian.github.io/ibus-typing-booster/documentation.html). 7 + 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](https://mike-fabian.github.io/ibus-typing-booster/). 8 8 9 9 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: 10 10
+2 -2
doc/languages-frameworks/gnome.section.md
··· 34 34 35 35 ### GdkPixbuf loaders {#ssec-gnome-gdk-pixbuf-loaders} 36 36 37 - GTK applications typically use [GdkPixbuf](https://developer.gnome.org/gdk-pixbuf/stable/) to load images. But `gdk-pixbuf` package only supports basic bitmap formats like JPEG, PNG or TIFF, requiring to use third-party loader modules for other formats. This is especially painful since GTK itself includes SVG icons, which cannot be rendered without a loader provided by `librsvg`. 37 + GTK applications typically use [GdkPixbuf](https://gitlab.gnome.org/GNOME/gdk-pixbuf/) to load images. But `gdk-pixbuf` package only supports basic bitmap formats like JPEG, PNG or TIFF, requiring to use third-party loader modules for other formats. This is especially painful since GTK itself includes SVG icons, which cannot be rendered without a loader provided by `librsvg`. 38 38 39 39 Unlike other libraries mentioned in this section, GdkPixbuf only supports a single value in its controlling environment variable `GDK_PIXBUF_MODULE_FILE`. It is supposed to point to a cache file containing information about the available loaders. Each loader package will contain a `lib/gdk-pixbuf-2.0/2.10.0/loaders.cache` file describing the default loaders in `gdk-pixbuf` package plus the loader contained in the package itself. If you want to use multiple third-party loaders, you will need to create your own cache file manually. Fortunately, this is pretty rare as [not many loaders exist](https://gitlab.gnome.org/federico/gdk-pixbuf-survey/blob/master/src/modules.md). 40 40 ··· 70 70 71 71 ### GTK Themes {#ssec-gnome-themes} 72 72 73 - 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](https://elementary.io/docs/human-interface-guidelines#human-interface-guidelines)) might require a special theme like `pantheon.elementary-gtk-theme`. 73 + 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](https://docs.elementary.io/hig)) might require a special theme like `pantheon.elementary-gtk-theme`. 74 74 75 75 ### GObject introspection typelibs {#ssec-gnome-typelibs} 76 76
+2 -2
pkgs/applications/editors/nano/default.nix
··· 14 14 15 15 in stdenv.mkDerivation rec { 16 16 pname = "nano"; 17 - version = "7.1"; 17 + version = "7.2"; 18 18 19 19 src = fetchurl { 20 20 url = "mirror://gnu/nano/${pname}-${version}.tar.xz"; 21 - sha256 = "V7p1Hpt1GfD23e5QUgLjh8dd3kQMH3qhuTEMw4FAaDY="; 21 + sha256 = "hvNEJ2i9KHPOxpP4PN+AtLRErTzBR2C3Q2FHT8h6RSY="; 22 22 }; 23 23 24 24 nativeBuildInputs = [ texinfo ] ++ lib.optional enableNls gettext;
+5 -9
pkgs/applications/editors/standardnotes/src.json
··· 1 1 { 2 - "version": "3.129.0", 2 + "version": "3.139.0", 3 3 "appimage": { 4 4 "x86_64-linux": { 5 - "url": "https://github.com/standardnotes/app/releases/download/%40standardnotes/desktop%403.129.0/standard-notes-3.129.0-linux-x86_64.AppImage", 6 - "hash": "sha512-JLO2jX9Us6BjqmTZIkVyxy2pqFM/eFGpwi6vXicMOgDB0UsgEMTK+Ww+9g+vJ1KbFRFmlt187qkdSNcevQPt7w==" 5 + "url": "https://github.com/standardnotes/app/releases/download/%40standardnotes/desktop%403.139.0/standard-notes-3.139.0-linux-x86_64.AppImage", 6 + "hash": "sha512-0s/tQmP5PINoQB7FOhR5wYuBvynKHpM9uMNmkJs77z84rY+WXOdZRjki6ZeG60niNXr8rUSLOBffy4jyLka6tg==" 7 7 }, 8 8 "aarch64-linux": { 9 - "url": "https://github.com/standardnotes/app/releases/download/%40standardnotes/desktop%403.129.0/standard-notes-3.129.0-linux-arm64.AppImage", 10 - "hash": "sha512-LGUSRqMrJ+hVHyi/bjI/NkWRVsmY0Kh/wRY9RNJXm0C3dKQSFV8ca4GeY9+VCuJEecR4LGnWp4agS5jPybPP6w==" 11 - }, 12 - "i686-linux": { 13 - "url": "https://github.com/standardnotes/app/releases/download/%40standardnotes/desktop%403.129.0/standard-notes-3.129.0-linux-i386.AppImage", 14 - "hash": "sha512-XbQ4hn3QJ61hDC12cK95zsUowbyXPYArHZoRDx5trQ30phtQxtz6nV+pL00m4S9kYeEhsAwk1wXlRq9Ylbz2IA==" 9 + "url": "https://github.com/standardnotes/app/releases/download/%40standardnotes/desktop%403.139.0/standard-notes-3.139.0-linux-arm64.AppImage", 10 + "hash": "sha512-LralbOiIVQCtQTqmhTtKttdtMz4M14drPFZ00LPFcwzQviLdU2C/od3NUxf5H5piGgqt5TJlgMCOcLIiyoNKFA==" 15 11 } 16 12 } 17 13 }
-1
pkgs/applications/editors/standardnotes/update.nix
··· 50 50 51 51 updatePlatform x86_64-linux linux-x86_64 52 52 updatePlatform aarch64-linux linux-arm64 53 - updatePlatform i686-linux linux-i386 54 53 setJsonKey .version "$newVersion" 55 54 ''
+11 -12
pkgs/applications/misc/blender/default.nix
··· 16 16 , embree, gmp, libharu 17 17 }: 18 18 19 - with lib; 20 19 let 21 20 python = python310Packages.python; 22 21 optix = fetchzip { ··· 38 37 patches = lib.optional stdenv.isDarwin ./darwin.patch; 39 38 40 39 nativeBuildInputs = [ cmake makeWrapper python310Packages.wrapPython llvmPackages.llvm.dev ] 41 - ++ optionals cudaSupport [ addOpenGLRunpath ]; 40 + ++ lib.optionals cudaSupport [ addOpenGLRunpath ]; 42 41 buildInputs = 43 42 [ boost ffmpeg gettext glew ilmbase 44 43 freetype libjpeg libpng libsamplerate libsndfile libtiff libwebp ··· 63 62 else [ 64 63 llvmPackages.openmp SDL Cocoa CoreGraphics ForceFeedback OpenAL OpenGL 65 64 ]) 66 - ++ optional jackaudioSupport libjack2 67 - ++ optional cudaSupport cudaPackages.cudatoolkit 68 - ++ optional colladaSupport opencollada 69 - ++ optional spaceNavSupport libspnav; 65 + ++ lib.optional jackaudioSupport libjack2 66 + ++ lib.optional cudaSupport cudaPackages.cudatoolkit 67 + ++ lib.optional colladaSupport opencollada 68 + ++ lib.optional spaceNavSupport libspnav; 70 69 pythonPath = with python310Packages; [ numpy requests ]; 71 70 72 71 postPatch = '' ··· 118 117 "-DWITH_IMAGE_OPENJPEG=ON" 119 118 "-DWITH_OPENCOLLADA=${if colladaSupport then "ON" else "OFF"}" 120 119 ] 121 - ++ optionals stdenv.isDarwin [ 120 + ++ lib.optionals stdenv.isDarwin [ 122 121 "-DWITH_CYCLES_OSL=OFF" # requires LLVM 123 122 "-DWITH_OPENVDB=OFF" # OpenVDB currently doesn't build on darwin 124 123 125 124 "-DLIBDIR=/does-not-exist" 126 125 ] 127 126 # Clang doesn't support "-export-dynamic" 128 - ++ optional stdenv.cc.isClang "-DPYTHON_LINKFLAGS=" 129 - ++ optional jackaudioSupport "-DWITH_JACK=ON" 130 - ++ optionals cudaSupport [ 127 + ++ lib.optional stdenv.cc.isClang "-DPYTHON_LINKFLAGS=" 128 + ++ lib.optional jackaudioSupport "-DWITH_JACK=ON" 129 + ++ lib.optionals cudaSupport [ 131 130 "-DWITH_CYCLES_CUDA_BINARIES=ON" 132 131 "-DWITH_CYCLES_DEVICE_OPTIX=ON" 133 132 "-DOPTIX_ROOT_DIR=${optix}" ··· 137 136 138 137 # Since some dependencies are built with gcc 6, we need gcc 6's 139 138 # libstdc++ in our RPATH. Sigh. 140 - NIX_LDFLAGS = optionalString cudaSupport "-rpath ${stdenv.cc.cc.lib}/lib"; 139 + NIX_LDFLAGS = lib.optionalString cudaSupport "-rpath ${stdenv.cc.cc.lib}/lib"; 141 140 142 141 blenderExecutable = 143 142 placeholder "out" + (if stdenv.isDarwin then "/Applications/Blender.app/Contents/MacOS/Blender" else "/bin/blender"); ··· 154 153 155 154 # Set RUNPATH so that libcuda and libnvrtc in /run/opengl-driver(-32)/lib can be 156 155 # found. See the explanation in libglvnd. 157 - postFixup = optionalString cudaSupport '' 156 + postFixup = lib.optionalString cudaSupport '' 158 157 for program in $out/bin/blender $out/bin/.blender-wrapped; do 159 158 isELF "$program" || continue 160 159 addOpenGLRunpath "$program"
+2 -4
pkgs/applications/misc/electrum/update.nix
··· 10 10 , nix 11 11 }: 12 12 13 - with lib; 14 - 15 13 let 16 14 downloadPageUrl = "https://download.electrum.org"; 17 15 ··· 23 21 24 22 set -eu -o pipefail 25 23 26 - export PATH=${makeBinPath [ 24 + export PATH=${lib.makeBinPath [ 27 25 common-updater-scripts 28 26 coreutils 29 27 curl ··· 50 48 export GNUPGHOME=$PWD/gnupg 51 49 mkdir -m 700 -p "$GNUPGHOME" 52 50 53 - gpg --batch --recv-keys ${concatStringsSep " " (map (x: "'${x}'") signingKeys)} 51 + gpg --batch --recv-keys ${lib.concatStringsSep " " (map (x: "'${x}'") signingKeys)} 54 52 gpg --batch --verify "$sigFile" "$srcFile" 55 53 56 54 sha256=$(nix-prefetch-url --type sha256 "file://$PWD/$srcFile")
+1 -3
pkgs/applications/misc/elogind/default.nix
··· 25 25 , enableSystemd ? false 26 26 }: 27 27 28 - with lib; 29 - 30 28 stdenv.mkDerivation rec { 31 29 pname = "elogind"; 32 30 version = "246.10"; ··· 72 70 "-Dsysconfdir=${placeholder "out"}/etc" 73 71 ]; 74 72 75 - meta = { 73 + meta = with lib; { 76 74 homepage = "https://github.com/elogind/elogind"; 77 75 description = ''The systemd project's "logind", extracted to a standalone package''; 78 76 platforms = platforms.linux; # probably more
+3 -5
pkgs/applications/misc/gammu/default.nix
··· 4 4 , postgresSupport ? false, postgresql ? null 5 5 }: 6 6 7 - with lib; 8 - 9 7 stdenv.mkDerivation rec { 10 8 pname = "gammu"; 11 9 version = "1.42.0"; ··· 31 29 strictDeps = true; 32 30 33 31 buildInputs = [ bash bluez libusb1 curl gettext sqlite libiconv ] 34 - ++ optionals dbiSupport [ libdbi libdbiDrivers ] 35 - ++ optionals postgresSupport [ postgresql ]; 32 + ++ lib.optionals dbiSupport [ libdbi libdbiDrivers ] 33 + ++ lib.optionals postgresSupport [ postgresql ]; 36 34 37 - meta = { 35 + meta = with lib; { 38 36 homepage = "https://wammu.eu/gammu/"; 39 37 description = "Command line utility and library to control mobile phones"; 40 38 license = licenses.gpl2;
+2 -4
pkgs/applications/misc/get_iplayer/default.nix
··· 1 1 { lib, fetchFromGitHub, atomicparsley, flvstreamer, ffmpeg, makeWrapper, perl, perlPackages, rtmpdump}: 2 2 3 - with lib; 4 - 5 3 perlPackages.buildPerlPackage rec { 6 4 pname = "get_iplayer"; 7 5 version = "3.27"; ··· 26 24 installPhase = '' 27 25 mkdir -p $out/bin $out/share/man/man1 28 26 cp get_iplayer $out/bin 29 - wrapProgram $out/bin/get_iplayer --suffix PATH : ${makeBinPath [ atomicparsley ffmpeg flvstreamer rtmpdump ]} --prefix PERL5LIB : $PERL5LIB 27 + wrapProgram $out/bin/get_iplayer --suffix PATH : ${lib.makeBinPath [ atomicparsley ffmpeg flvstreamer rtmpdump ]} --prefix PERL5LIB : $PERL5LIB 30 28 cp get_iplayer.1 $out/share/man/man1 31 29 ''; 32 30 33 - meta = { 31 + meta = with lib; { 34 32 description = "Downloads TV and radio from BBC iPlayer"; 35 33 license = licenses.gpl3Plus; 36 34 homepage = "https://squarepenguin.co.uk/";
+7 -9
pkgs/applications/misc/k2pdfopt/default.nix
··· 8 8 , enableTesseract ? true, leptonica, tesseract4 9 9 }: 10 10 11 - with lib; 12 - 13 11 # k2pdfopt is a pain to package. It requires modified versions of mupdf, 14 12 # leptonica, and tesseract. Instead of shipping patches for these upstream 15 13 # packages, k2pdfopt includes just the modified source files for these ··· 140 138 }; 141 139 in 142 140 [ zlib libpng ] ++ 143 - optional enableGSL gsl ++ 144 - optional enableGhostScript ghostscript ++ 145 - optional enableMuPDF mupdf_modded ++ 146 - optional enableDJVU djvulibre ++ 147 - optional enableGOCR gocr ++ 148 - optionals enableTesseract [ leptonica_modded tesseract_modded ]; 141 + lib.optional enableGSL gsl ++ 142 + lib.optional enableGhostScript ghostscript ++ 143 + lib.optional enableMuPDF mupdf_modded ++ 144 + lib.optional enableDJVU djvulibre ++ 145 + lib.optional enableGOCR gocr ++ 146 + lib.optionals enableTesseract [ leptonica_modded tesseract_modded ]; 149 147 150 148 dontUseCmakeBuildDir = true; 151 149 ··· 157 155 install -D -m 755 k2pdfopt $out/bin/k2pdfopt 158 156 ''; 159 157 160 - preFixup = optionalString enableTesseract '' 158 + preFixup = lib.optionalString enableTesseract '' 161 159 wrapProgram $out/bin/k2pdfopt --set-default TESSDATA_PREFIX ${tesseract4}/share/tessdata 162 160 ''; 163 161
+14 -16
pkgs/applications/misc/keepassx/community.nix
··· 37 37 , nixosTests 38 38 }: 39 39 40 - with lib; 41 - 42 40 stdenv.mkDerivation rec { 43 41 pname = "keepassxc"; 44 42 version = "2.7.4"; ··· 50 48 sha256 = "sha256-amedKK9nplLVJTldeabN3/c+g/QesrdH+qx+rba2/4s="; 51 49 }; 52 50 53 - NIX_CFLAGS_COMPILE = optionalString stdenv.cc.isClang [ 51 + NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang [ 54 52 "-Wno-old-style-cast" 55 53 "-Wno-error" 56 54 "-D__BIG_ENDIAN__=${if stdenv.isBigEndian then "1" else "0"}" 57 55 ]; 58 56 59 - NIX_LDFLAGS = optionalString stdenv.isDarwin "-rpath ${libargon2}/lib"; 57 + NIX_LDFLAGS = lib.optionalString stdenv.isDarwin "-rpath ${libargon2}/lib"; 60 58 61 59 patches = [ 62 60 ./darwin.patch ··· 67 65 "-DWITH_GUI_TESTS=ON" 68 66 "-DWITH_XC_UPDATECHECK=OFF" 69 67 ] 70 - ++ (optional (!withKeePassX11) "-DWITH_XC_X11=OFF") 71 - ++ (optional (withKeePassFDOSecrets && stdenv.isLinux) "-DWITH_XC_FDOSECRETS=ON") 72 - ++ (optional (withKeePassYubiKey && stdenv.isLinux) "-DWITH_XC_YUBIKEY=ON") 73 - ++ (optional withKeePassBrowser "-DWITH_XC_BROWSER=ON") 74 - ++ (optional withKeePassKeeShare "-DWITH_XC_KEESHARE=ON") 75 - ++ (optional withKeePassNetworking "-DWITH_XC_NETWORKING=ON") 76 - ++ (optional withKeePassSSHAgent "-DWITH_XC_SSHAGENT=ON"); 68 + ++ (lib.optional (!withKeePassX11) "-DWITH_XC_X11=OFF") 69 + ++ (lib.optional (withKeePassFDOSecrets && stdenv.isLinux) "-DWITH_XC_FDOSECRETS=ON") 70 + ++ (lib.optional (withKeePassYubiKey && stdenv.isLinux) "-DWITH_XC_YUBIKEY=ON") 71 + ++ (lib.optional withKeePassBrowser "-DWITH_XC_BROWSER=ON") 72 + ++ (lib.optional withKeePassKeeShare "-DWITH_XC_KEESHARE=ON") 73 + ++ (lib.optional withKeePassNetworking "-DWITH_XC_NETWORKING=ON") 74 + ++ (lib.optional withKeePassSSHAgent "-DWITH_XC_SSHAGENT=ON"); 77 75 78 76 doCheck = true; 79 77 checkPhase = '' ··· 112 110 readline 113 111 zlib 114 112 ] 115 - ++ optional (stdenv.isDarwin && withKeePassTouchID) darwin.apple_sdk.frameworks.LocalAuthentication 116 - ++ optional stdenv.isDarwin qtmacextras 117 - ++ optional stdenv.isLinux libusb1 118 - ++ optional withKeePassX11 qtx11extras; 113 + ++ lib.optional (stdenv.isDarwin && withKeePassTouchID) darwin.apple_sdk.frameworks.LocalAuthentication 114 + ++ lib.optional stdenv.isDarwin qtmacextras 115 + ++ lib.optional stdenv.isLinux libusb1 116 + ++ lib.optional withKeePassX11 qtx11extras; 119 117 120 118 passthru.tests = nixosTests.keepassxc; 121 119 122 - meta = { 120 + meta = with lib; { 123 121 description = "Offline password manager with many features."; 124 122 longDescription = '' 125 123 A community fork of KeePassX, which is itself a port of KeePass Password Safe.
pkgs/applications/misc/lukesmithxyz-bible/kjv.nix pkgs/applications/misc/kjv/lukesmithxyz-kjv.nix
+2 -2
pkgs/applications/misc/madonctl/default.nix
··· 8 8 owner = "McKael"; 9 9 repo = "madonctl"; 10 10 rev = "v${version}"; 11 - sha256 = "sha256-mo185EKjLkiujAKcAFM1XqkXWvcfYbnv+r3dF9ywaf8="; 11 + hash = "sha256-mo185EKjLkiujAKcAFM1XqkXWvcfYbnv+r3dF9ywaf8="; 12 12 }; 13 13 14 - vendorSha256 = null; 14 + vendorHash = null; 15 15 16 16 nativeBuildInputs = [ installShellFiles ]; 17 17
+2 -2
pkgs/applications/misc/metadata-cleaner/default.nix
··· 18 18 19 19 python3.pkgs.buildPythonApplication rec { 20 20 pname = "metadata-cleaner"; 21 - version = "2.3.1"; 21 + version = "2.4.0"; 22 22 23 23 format = "other"; 24 24 ··· 26 26 owner = "rmnvgr"; 27 27 repo = pname; 28 28 rev = "v${version}"; 29 - hash = "sha256-nH2BsfXFwBdu7/YH2OuG90HxYgiuqKJqMC4p0PRlgPw="; 29 + hash = "sha256-/Zi82ri61cQHt1D8DjeVHTSeEn9ubQJD931kP0ffiOs="; 30 30 }; 31 31 32 32 nativeBuildInputs = [
+2 -2
pkgs/applications/misc/osmium-tool/default.nix
··· 14 14 15 15 stdenv.mkDerivation rec { 16 16 pname = "osmium-tool"; 17 - version = "1.14.0"; 17 + version = "1.15.0"; 18 18 19 19 src = fetchFromGitHub { 20 20 owner = "osmcode"; 21 21 repo = "osmium-tool"; 22 22 rev = "v${version}"; 23 - sha256 = "sha256-xedunFzar44o+b/45isXWacDcC81wWkxgGwnpLPH/n0="; 23 + sha256 = "sha256-xV/1LFby0L/o648XEQQ9gS9/eHssWhMIG7R1E8bfIDU="; 24 24 }; 25 25 26 26 nativeBuildInputs = [
+1 -1
pkgs/applications/misc/pokemon-colorscripts-mac/default.nix
··· 6 6 7 7 stdenv.mkDerivation rec { 8 8 pname = "pokemon-colorscripts-mac"; 9 - version = "stable=2021-08-10"; 9 + version = "stable-2021-08-10"; 10 10 11 11 src = fetchFromGitHub { 12 12 owner = "nuke-dash";
+1 -3
pkgs/applications/misc/rm-improved/default.nix
··· 1 1 { fetchFromGitHub, rustPlatform, lib }: 2 2 3 - with lib; 4 - 5 3 rustPlatform.buildRustPackage rec { 6 4 pname = "rm-improved"; 7 5 version = "0.13.0"; ··· 15 13 sha256 = "0d065xia4mwdhxkiqfg7pic6scfzipzmsvvx7l6l97w62lzpiqx3"; 16 14 }; 17 15 18 - meta = { 16 + meta = with lib; { 19 17 description = "Replacement for rm with focus on safety, ergonomics and performance"; 20 18 homepage = "https://github.com/nivekuil/rip"; 21 19 maintainers = with maintainers; [ nils-degroot ];
+3 -5
pkgs/applications/misc/slstatus/default.nix
··· 1 1 { lib, stdenv, fetchgit, pkg-config, writeText, libX11, conf ? null, patches ? [] }: 2 2 3 - with lib; 4 - 5 3 stdenv.mkDerivation rec { 6 4 pname = "slstatus"; 7 5 version = "unstable-2019-02-16"; ··· 12 10 sha256 = "0kayyhpmppybhwndxgabw48wsk9v8x9xdb05xrly9szkw3jbvgw4"; 13 11 }; 14 12 15 - configFile = optionalString (conf!=null) (writeText "config.def.h" conf); 16 - preBuild = optionalString (conf!=null) "cp ${configFile} config.def.h"; 13 + configFile = lib.optionalString (conf!=null) (writeText "config.def.h" conf); 14 + preBuild = lib.optionalString (conf!=null) "cp ${configFile} config.def.h"; 17 15 18 16 inherit patches; 19 17 ··· 24 22 25 23 installFlags = [ "PREFIX=$(out)" ]; 26 24 27 - meta = { 25 + meta = with lib; { 28 26 homepage = "https://tools.suckless.org/slstatus/"; 29 27 description = "status monitor for window managers that use WM_NAME like dwm"; 30 28 license = licenses.isc;
+2 -4
pkgs/applications/misc/veracrypt/default.nix
··· 14 14 , btrfs-progs 15 15 }: 16 16 17 - with lib; 18 - 19 17 stdenv.mkDerivation rec { 20 18 pname = "veracrypt"; 21 19 version = "1.25.9"; 22 20 23 21 src = fetchurl { 24 - url = "https://launchpad.net/${pname}/trunk/${toLower version}/+download/VeraCrypt_${version}_Source.tar.bz2"; 22 + url = "https://launchpad.net/${pname}/trunk/${lib.toLower version}/+download/VeraCrypt_${version}_Source.tar.bz2"; 25 23 sha256 = "sha256-drbhgYS8IaQdKUn/Y9ch1JBUpxbO/zpL13tcNRC3lK8="; 26 24 }; 27 25 ··· 54 52 --replace "Icon=veracrypt" "Icon=veracrypt.xpm" 55 53 ''; 56 54 57 - meta = { 55 + meta = with lib; { 58 56 description = "Free Open-Source filesystem on-the-fly encryption"; 59 57 homepage = "https://www.veracrypt.fr/"; 60 58 license = with licenses; [ asl20 /* and */ unfree /* TrueCrypt License version 3.0 */ ];
+2 -4
pkgs/applications/misc/xsuspender/default.nix
··· 1 1 { lib, stdenv, fetchFromGitHub, cmake, makeWrapper, pkg-config 2 2 , glib, libwnck, procps }: 3 3 4 - with lib; 5 - 6 4 stdenv.mkDerivation rec { 7 5 pname = "xsuspender"; 8 6 version = "1.3"; ··· 21 19 22 20 postInstall = '' 23 21 wrapProgram $out/bin/xsuspender \ 24 - --prefix PATH : "${makeBinPath [ procps ]}" 22 + --prefix PATH : "${lib.makeBinPath [ procps ]}" 25 23 ''; 26 24 27 - meta = { 25 + meta = with lib; { 28 26 description = "Auto-suspend inactive X11 applications"; 29 27 homepage = "https://kernc.github.io/xsuspender/"; 30 28 license = licenses.wtfpl;
+4 -6
pkgs/applications/misc/zathura/core/default.nix
··· 6 6 , gtk-mac-integration 7 7 }: 8 8 9 - with lib; 10 - 11 9 stdenv.mkDerivation rec { 12 10 pname = "zathura"; 13 11 version = "0.5.2"; ··· 28 26 "-Dsynctex=enabled" 29 27 # Make sure tests are enabled for doCheck 30 28 "-Dtests=enabled" 31 - ] ++ optional (!stdenv.isLinux) "-Dseccomp=disabled"; 29 + ] ++ lib.optional (!stdenv.isLinux) "-Dseccomp=disabled"; 32 30 33 31 nativeBuildInputs = [ 34 32 meson ninja pkg-config desktop-file-utils python3.pkgs.sphinx ··· 38 36 buildInputs = [ 39 37 gtk girara libintl sqlite glib file librsvg 40 38 texlive.bin.core 41 - ] ++ optional stdenv.isLinux libseccomp 42 - ++ optional stdenv.isDarwin gtk-mac-integration; 39 + ] ++ lib.optional stdenv.isLinux libseccomp 40 + ++ lib.optional stdenv.isDarwin gtk-mac-integration; 43 41 44 42 doCheck = !stdenv.isDarwin; 45 43 46 - meta = { 44 + meta = with lib; { 47 45 homepage = "https://git.pwmt.org/pwmt/zathura"; 48 46 description = "A core component for zathura PDF viewer"; 49 47 license = licenses.zlib;
+6 -6
pkgs/applications/networking/appgate-sdp/default.nix
··· 38 38 , xorg 39 39 , zlib 40 40 }: 41 - with lib; 41 + 42 42 let 43 43 deps = [ 44 44 alsa-lib ··· 89 89 version = "6.0.3"; 90 90 91 91 src = fetchurl { 92 - url = "https://bin.appgate-sdp.com/${versions.majorMinor version}/client/appgate-sdp_${version}_amd64.deb"; 92 + url = "https://bin.appgate-sdp.com/${lib.versions.majorMinor version}/client/appgate-sdp_${version}_amd64.deb"; 93 93 sha256 = "sha256-UDyVPoQM78CKVWXgr08An77QTiFVmRNHwQPGaj1jAIM="; 94 94 }; 95 95 ··· 134 134 --replace "/etc/appgate.conf" "$out/etc/appgate.conf" 135 135 136 136 wrapProgram $out/opt/appgate/service/createdump \ 137 - --set LD_LIBRARY_PATH "${makeLibraryPath [ stdenv.cc.cc ]}" 137 + --set LD_LIBRARY_PATH "${lib.makeLibraryPath [ stdenv.cc.cc ]}" 138 138 139 139 wrapProgram $out/opt/appgate/appgate-driver \ 140 - --prefix PATH : ${makeBinPath [ iproute2 networkmanager dnsmasq ]} \ 140 + --prefix PATH : ${lib.makeBinPath [ iproute2 networkmanager dnsmasq ]} \ 141 141 --set LD_LIBRARY_PATH $out/opt/appgate/service 142 142 143 143 # make xdg-open overrideable at runtime 144 144 makeWrapper $out/opt/appgate/Appgate $out/bin/appgate \ 145 - --suffix PATH : ${makeBinPath [ xdg-utils ]} \ 146 - --set LD_LIBRARY_PATH $out/opt/appgate:${makeLibraryPath deps} 145 + --suffix PATH : ${lib.makeBinPath [ xdg-utils ]} \ 146 + --set LD_LIBRARY_PATH $out/opt/appgate:${lib.makeLibraryPath deps} 147 147 148 148 wrapProgram $out/opt/appgate/linux/set_dns --set PYTHONPATH $PYTHONPATH 149 149 '';
+4 -6
pkgs/applications/networking/browsers/chromium/browser.nix
··· 3 3 , enableWideVine, ungoogled 4 4 }: 5 5 6 - with lib; 7 - 8 6 mkChromiumDerivation (base: rec { 9 7 name = "chromium-browser"; 10 8 packageName = "chromium"; ··· 76 74 77 75 meta = { 78 76 description = "An open source web browser from Google" 79 - + optionalString ungoogled ", with dependencies on Google web services removed"; 77 + + lib.optionalString ungoogled ", with dependencies on Google web services removed"; 80 78 longDescription = '' 81 79 Chromium is an open source web browser from Google that aims to build a 82 80 safer, faster, and more stable way for all Internet users to experience ··· 86 84 homepage = if ungoogled 87 85 then "https://github.com/Eloston/ungoogled-chromium" 88 86 else "https://www.chromium.org/"; 89 - maintainers = with maintainers; if ungoogled 87 + maintainers = with lib.maintainers; if ungoogled 90 88 then [ squalus primeos michaeladler ] 91 89 else [ primeos thefloweringash ]; 92 - license = if enableWideVine then licenses.unfree else licenses.bsd3; 93 - platforms = platforms.linux; 90 + license = if enableWideVine then lib.licenses.unfree else lib.licenses.bsd3; 91 + platforms = lib.platforms.linux; 94 92 mainProgram = "chromium"; 95 93 hydraPlatforms = if (channel == "stable" || channel == "ungoogled-chromium") 96 94 then ["aarch64-linux" "x86_64-linux"]
+15 -17
pkgs/applications/networking/browsers/chromium/common.nix
··· 51 51 52 52 buildFun: 53 53 54 - with lib; 55 - 56 54 let 57 55 python3WithPackages = python3.withPackages(ps: with ps; [ 58 56 ply jinja2 setuptools ··· 75 73 let 76 74 # Serialize Nix types into GN types according to this document: 77 75 # https://source.chromium.org/gn/gn/+/master:docs/language.md 78 - mkGnString = value: "\"${escape ["\"" "$" "\\"] value}\""; 76 + mkGnString = value: "\"${lib.escape ["\"" "$" "\\"] value}\""; 79 77 sanitize = value: 80 78 if value == true then "true" 81 79 else if value == false then "false" 82 - else if isList value then "[${concatMapStringsSep ", " sanitize value}]" 83 - else if isInt value then toString value 84 - else if isString value then mkGnString value 80 + else if lib.isList value then "[${lib.concatMapStringsSep ", " sanitize value}]" 81 + else if lib.isInt value then toString value 82 + else if lib.isString value then mkGnString value 85 83 else throw "Unsupported type for GN value `${value}'."; 86 84 toFlag = key: value: "${key}=${sanitize value}"; 87 - in attrs: concatStringsSep " " (attrValues (mapAttrs toFlag attrs)); 85 + in attrs: lib.concatStringsSep " " (lib.attrValues (lib.mapAttrs toFlag attrs)); 88 86 89 87 # https://source.chromium.org/chromium/chromium/src/+/master:build/linux/unbundle/replace_gn_files.py 90 88 gnSystemLibraries = [ ··· 151 149 libdrm wayland mesa.drivers libxkbcommon 152 150 curl 153 151 libepoxy 154 - ] ++ optional systemdSupport systemd 155 - ++ optionals cupsSupport [ libgcrypt cups ] 156 - ++ optional pulseSupport libpulseaudio; 152 + ] ++ lib.optional systemdSupport systemd 153 + ++ lib.optionals cupsSupport [ libgcrypt cups ] 154 + ++ lib.optional pulseSupport libpulseaudio; 157 155 158 156 patches = [ 159 157 # Optional patch to use SOURCE_DATE_EPOCH in compute_build_timestamp.py (should be upstreamed): ··· 237 235 # Allow building against system libraries in official builds 238 236 sed -i 's/OFFICIAL_BUILD/GOOGLE_CHROME_BUILD/' tools/generate_shim_headers/generate_shim_headers.py 239 237 240 - '' + optionalString stdenv.isAarch64 '' 238 + '' + lib.optionalString stdenv.isAarch64 '' 241 239 substituteInPlace build/toolchain/linux/BUILD.gn \ 242 240 --replace 'toolprefix = "aarch64-linux-gnu-"' 'toolprefix = ""' 243 - '' + optionalString ungoogled '' 241 + '' + lib.optionalString ungoogled '' 244 242 ${ungoogler}/utils/prune_binaries.py . ${ungoogler}/pruning.list || echo "some errors" 245 243 ${ungoogler}/utils/patches.py . ${ungoogler}/patches 246 244 ${ungoogler}/utils/domain_substitution.py apply -r ${ungoogler}/domain_regex.list -f ${ungoogler}/domain_substitution.list -c ./ungoogled-domsubcache.tar.gz . ··· 300 298 # as well to avoid incompatibilities (if this continues to be a problem 301 299 # from time to time): 302 300 use_system_libwayland = true; 303 - } // optionalAttrs proprietaryCodecs { 301 + } // lib.optionalAttrs proprietaryCodecs { 304 302 # enable support for the H.264 codec 305 303 proprietary_codecs = true; 306 304 enable_hangout_services_extension = true; 307 305 ffmpeg_branding = "Chrome"; 308 - } // optionalAttrs pulseSupport { 306 + } // lib.optionalAttrs pulseSupport { 309 307 use_pulseaudio = true; 310 308 link_pulseaudio = true; 311 - } // optionalAttrs ungoogled (importTOML ./ungoogled-flags.toml) 309 + } // lib.optionalAttrs ungoogled (lib.importTOML ./ungoogled-flags.toml) 312 310 // (extraAttrs.gnFlags or {})); 313 311 314 312 configurePhase = '' ··· 317 315 # This is to ensure expansion of $out. 318 316 libExecPath="${libExecPath}" 319 317 ${python3}/bin/python3 build/linux/unbundle/replace_gn_files.py --system-libraries ${toString gnSystemLibraries} 320 - ${gnChromium}/bin/gn gen --args=${escapeShellArg gnFlags} out/Release | tee gn-gen-outputs.txt 318 + ${gnChromium}/bin/gn gen --args=${lib.escapeShellArg gnFlags} out/Release | tee gn-gen-outputs.txt 321 319 322 320 # Fail if `gn gen` contains a WARNING. 323 321 grep -o WARNING gn-gen-outputs.txt && echo "Found gn WARNING, exiting nix build" && exit 1 ··· 342 340 ''; 343 341 targets = extraAttrs.buildTargets or []; 344 342 commands = map buildCommand targets; 345 - in concatStringsSep "\n" commands; 343 + in lib.concatStringsSep "\n" commands; 346 344 347 345 postFixup = '' 348 346 # Make sure that libGLESv2 is found by dlopen (if using EGL).
+6 -8
pkgs/applications/networking/browsers/google-chrome/default.nix
··· 47 47 , addOpenGLRunpath 48 48 }: 49 49 50 - with lib; 51 - 52 50 let 53 51 opusWithCustomModes = libopus.override { 54 52 withCustomModes = true; ··· 68 66 bzip2 libcap at-spi2-atk at-spi2-core 69 67 libkrb5 libdrm libglvnd mesa coreutils 70 68 libxkbcommon pipewire wayland 71 - ] ++ optional pulseSupport libpulseaudio 72 - ++ optional libvaSupport libva 69 + ] ++ lib.optional pulseSupport libpulseaudio 70 + ++ lib.optional libvaSupport libva 73 71 ++ [ gtk3 ]; 74 72 75 73 suffix = if channel != "stable" then "-" + channel else ""; ··· 99 97 tar xf data.tar.xz 100 98 ''; 101 99 102 - rpath = makeLibraryPath deps + ":" + makeSearchPathOutput "lib" "lib64" deps; 103 - binpath = makeBinPath deps; 100 + rpath = lib.makeLibraryPath deps + ":" + lib.makeSearchPathOutput "lib" "lib64" deps; 101 + binpath = lib.makeBinPath deps; 104 102 105 103 installPhase = '' 106 104 runHook preInstall ··· 149 147 --prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH:${addOpenGLRunpath.driverLink}/share" \ 150 148 --set CHROME_WRAPPER "google-chrome-$dist" \ 151 149 --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}" \ 152 - --add-flags ${escapeShellArg commandLineArgs} 150 + --add-flags ${lib.escapeShellArg commandLineArgs} 153 151 154 152 for elf in $out/share/google/$appname/{chrome,chrome-sandbox,${crashpadHandlerBinary},nacl_helper}; do 155 153 patchelf --set-rpath $rpath $elf ··· 159 157 runHook postInstall 160 158 ''; 161 159 162 - meta = { 160 + meta = with lib; { 163 161 description = "A freeware web browser developed by Google"; 164 162 homepage = "https://www.google.com/chrome/browser/"; 165 163 license = licenses.unfree;
+11 -13
pkgs/applications/networking/browsers/tor-browser-bundle-bin/default.nix
··· 53 53 , extraPrefs ? "" 54 54 }: 55 55 56 - with lib; 57 - 58 56 let 59 - libPath = makeLibraryPath libPkgs; 57 + libPath = lib.makeLibraryPath libPkgs; 60 58 61 59 libPkgs = [ 62 60 atk ··· 78 76 stdenv.cc.libc 79 77 zlib 80 78 ] 81 - ++ optionals pulseaudioSupport [ libpulseaudio ] 82 - ++ optionals mediaSupport [ 79 + ++ lib.optionals pulseaudioSupport [ libpulseaudio ] 80 + ++ lib.optionals mediaSupport [ 83 81 ffmpeg 84 82 ]; 85 83 86 84 # Library search path for the fte transport 87 - fteLibPath = makeLibraryPath [ stdenv.cc.cc gmp ]; 85 + fteLibPath = lib.makeLibraryPath [ stdenv.cc.cc gmp ]; 88 86 89 87 # Upstream source 90 88 version = "11.5.8"; ··· 156 154 libPath=${libPath}:$TBB_IN_STORE:$TBB_IN_STORE/TorBrowser/Tor 157 155 158 156 # apulse uses a non-standard library path. For now special-case it. 159 - ${optionalString (audioSupport && !pulseaudioSupport) '' 157 + ${lib.optionalString (audioSupport && !pulseaudioSupport) '' 160 158 libPath=${apulse}/lib/apulse:$libPath 161 159 ''} 162 160 ··· 224 222 clearPref("security.sandbox.content.write_path_whitelist"); 225 223 ''} 226 224 227 - ${optionalString (extraPrefs != "") '' 225 + ${lib.optionalString (extraPrefs != "") '' 228 226 ${extraPrefs} 229 227 ''} 230 228 EOF ··· 251 249 GeoIPv6File $TBB_IN_STORE/TorBrowser/Data/Tor/geoip6 252 250 EOF 253 251 254 - WRAPPER_LD_PRELOAD=${optionalString useHardenedMalloc 252 + WRAPPER_LD_PRELOAD=${lib.optionalString useHardenedMalloc 255 253 "${graphene-hardened-malloc}/lib/libhardened_malloc.so"} 256 254 257 - WRAPPER_XDG_DATA_DIRS=${concatMapStringsSep ":" (x: "${x}/share") [ 255 + WRAPPER_XDG_DATA_DIRS=${lib.concatMapStringsSep ":" (x: "${x}/share") [ 258 256 gnome.adwaita-icon-theme 259 257 shared-mime-info 260 258 ]} 261 - WRAPPER_XDG_DATA_DIRS+=":"${concatMapStringsSep ":" (x: "${x}/share/gsettings-schemas/${x.name}") [ 259 + WRAPPER_XDG_DATA_DIRS+=":"${lib.concatMapStringsSep ":" (x: "${x}/share/gsettings-schemas/${x.name}") [ 262 260 glib 263 261 gsettings-desktop-schemas 264 262 gtk3 ··· 270 268 #! ${runtimeShell} 271 269 set -o errexit -o nounset 272 270 273 - PATH=${makeBinPath [ coreutils ]} 271 + PATH=${lib.makeBinPath [ coreutils ]} 274 272 export LC_ALL=C 275 273 export LOCALE_ARCHIVE=${glibcLocales}/lib/locale/locale-archive 276 274 ··· 317 315 : "\''${XDG_RUNTIME_DIR:=/run/user/\$(id -u)}" 318 316 : "\''${XDG_CONFIG_HOME:=\$REAL_HOME/.config}" 319 317 320 - ${optionalString pulseaudioSupport '' 318 + ${lib.optionalString pulseaudioSupport '' 321 319 # Figure out some envvars for pulseaudio 322 320 : "\''${PULSE_SERVER:=\$XDG_RUNTIME_DIR/pulse/native}" 323 321 : "\''${PULSE_COOKIE:=\$XDG_CONFIG_HOME/pulse/cookie}"
+1 -3
pkgs/applications/networking/cluster/k3s/default.nix
··· 25 25 , pkgsBuildBuild 26 26 }: 27 27 28 - with lib; 29 - 30 28 # k3s is a kinda weird derivation. One of the main points of k3s is the 31 29 # simplicity of it being one binary that can perform several tasks. 32 30 # However, when you have a good package manager (like nix), that doesn't ··· 73 71 # run `grep github.com/kubernetes-sigs/cri-tools go.mod | head -n1 | awk '{print $4}'` in the k3s repo at the tag 74 72 criCtlVersion = "1.26.0-rc.0-k3s1"; 75 73 76 - baseMeta = { 74 + baseMeta = with lib; { 77 75 description = "A lightweight Kubernetes distribution"; 78 76 license = licenses.asl20; 79 77 homepage = "https://k3s.io";
+5 -7
pkgs/applications/networking/cluster/spark/default.nix
··· 12 12 , R 13 13 }: 14 14 15 - with lib; 16 - 17 15 let 18 16 spark = { pname, version, sha256, extraMeta ? {} }: 19 17 stdenv.mkDerivation rec { ··· 26 24 nativeBuildInputs = [ makeWrapper ]; 27 25 buildInputs = [ jdk python3Packages.python ] 28 26 ++ extraPythonPackages 29 - ++ optional RSupport R; 27 + ++ lib.optional RSupport R; 30 28 31 29 untarDir = "${pname}-${version}"; 32 30 installPhase = '' ··· 38 36 cat > $out/lib/${untarDir}/conf/spark-env.sh <<- EOF 39 37 export JAVA_HOME="${jdk}" 40 38 export SPARK_HOME="$out/lib/${untarDir}" 41 - '' + optionalString hadoopSupport '' 39 + '' + lib.optionalString hadoopSupport '' 42 40 export SPARK_DIST_CLASSPATH=$(${hadoop}/bin/hadoop classpath) 43 41 '' + '' 44 42 export PYSPARK_PYTHON="${python3Packages.python}/bin/${python3Packages.python.executable}" 45 43 export PYTHONPATH="\$PYTHONPATH:$PYTHONPATH" 46 - ${optionalString RSupport '' 44 + ${lib.optionalString RSupport '' 47 45 export SPARKR_R_SHELL="${R}/bin/R" 48 46 export PATH="\$PATH:${R}/bin"''} 49 47 EOF ··· 64 62 meta = { 65 63 description = "Apache Spark is a fast and general engine for large-scale data processing"; 66 64 homepage = "https://spark.apache.org/"; 67 - sourceProvenance = with sourceTypes; [ binaryBytecode ]; 65 + sourceProvenance = with lib.sourceTypes; [ binaryBytecode ]; 68 66 license = lib.licenses.asl20; 69 67 platforms = lib.platforms.all; 70 - maintainers = with maintainers; [ thoughtpolice offline kamilchm illustris ]; 68 + maintainers = with lib.maintainers; [ thoughtpolice offline kamilchm illustris ]; 71 69 } // extraMeta; 72 70 }; 73 71 in
+1 -3
pkgs/applications/networking/droopy/default.nix
··· 1 1 { stdenv, lib, fetchFromGitHub, wrapPython, fetchpatch }: 2 2 3 - with lib; 4 - 5 3 stdenv.mkDerivation { 6 4 pname = "droopy"; 7 5 version = "20160830"; ··· 32 30 wrapPythonPrograms 33 31 ''; 34 32 35 - meta = { 33 + meta = with lib; { 36 34 description = "Mini Web server that let others upload files to your computer"; 37 35 homepage = "http://stackp.online.fr/droopy"; 38 36 license = licenses.bsd3;
+1 -2
pkgs/applications/networking/instant-messengers/bitlbee-discord/default.nix
··· 1 1 { lib, fetchFromGitHub, stdenv, bitlbee, autoreconfHook, pkg-config, glib }: 2 2 3 - with lib; 4 3 stdenv.mkDerivation rec { 5 4 pname = "bitlbee-discord"; 6 5 version = "0.4.3"; ··· 21 20 ./autogen.sh 22 21 ''; 23 22 24 - meta = { 23 + meta = with lib; { 25 24 description = "Bitlbee plugin for Discord"; 26 25 27 26 homepage = "https://github.com/sm00th/bitlbee-discord";
+1 -2
pkgs/applications/networking/instant-messengers/bitlbee-mastodon/default.nix
··· 1 1 { lib, fetchgit, stdenv, bitlbee, autoreconfHook, pkg-config, glib }: 2 2 3 - with lib; 4 3 stdenv.mkDerivation rec { 5 4 pname = "bitlbee-mastodon"; 6 5 version = "1.4.5"; ··· 19 18 export BITLBEE_DATADIR=$out/share/bitlbee 20 19 ''; 21 20 22 - meta = { 21 + meta = with lib; { 23 22 description = "Bitlbee plugin for Mastodon"; 24 23 homepage = "https://alexschroeder.ch/cgit/bitlbee-mastodon/about"; 25 24 license = licenses.gpl2Plus;
+1 -2
pkgs/applications/networking/instant-messengers/bitlbee-steam/default.nix
··· 1 1 { lib, fetchFromGitHub, stdenv, bitlbee, autoconf, automake, libtool, pkg-config, libgcrypt }: 2 2 3 - with lib; 4 3 stdenv.mkDerivation rec { 5 4 version = "1.4.2"; 6 5 pname = "bitlbee-steam"; ··· 20 19 ./autogen.sh 21 20 ''; 22 21 23 - meta = { 22 + meta = with lib; { 24 23 description = "Steam protocol plugin for BitlBee"; 25 24 26 25 homepage = "https://github.com/jgeboski/bitlbee-steam";
+6 -7
pkgs/applications/networking/instant-messengers/bitlbee/default.nix
··· 3 3 , enablePam ? false, pam ? null 4 4 }: 5 5 6 - with lib; 7 6 stdenv.mkDerivation rec { 8 7 pname = "bitlbee"; 9 8 version = "3.6"; ··· 13 12 sha256 = "0zhhcbcr59sx9h4maf8zamzv2waya7sbsl7w74gbyilvy93dw5cz"; 14 13 }; 15 14 16 - nativeBuildInputs = [ pkg-config ] ++ optional doCheck check; 15 + nativeBuildInputs = [ pkg-config ] ++ lib.optional doCheck check; 17 16 18 17 buildInputs = [ gnutls libotr python3 ] 19 - ++ optional enableLibPurple pidgin 20 - ++ optional enablePam pam; 18 + ++ lib.optional enableLibPurple pidgin 19 + ++ lib.optional enablePam pam; 21 20 22 21 propagatedBuildInputs = [ glib ]; 23 22 ··· 25 24 "--otr=1" 26 25 "--ssl=gnutls" 27 26 "--pidfile=/var/lib/bitlbee/bitlbee.pid" 28 - ] ++ optional enableLibPurple "--purple=1" 29 - ++ optional enablePam "--pam=1"; 27 + ] ++ lib.optional enableLibPurple "--purple=1" 28 + ++ lib.optional enablePam "--pam=1"; 30 29 31 30 patches = [ 32 31 # This should be dropped once the issue is fixed upstream. ··· 46 45 47 46 enableParallelBuilding = true; 48 47 49 - meta = { 48 + meta = with lib; { 50 49 description = "IRC instant messaging gateway"; 51 50 52 51 longDescription = ''
-2
pkgs/applications/networking/instant-messengers/bitlbee/plugins.nix
··· 1 1 { lib, runCommandLocal, bitlbee }: 2 2 3 - with lib; 4 - 5 3 plugins: runCommandLocal "bitlbee-plugins" { 6 4 inherit plugins; 7 5 buildInputs = [ bitlbee plugins ];
+3 -5
pkgs/applications/networking/instant-messengers/ratox/default.nix
··· 1 1 { lib, stdenv, fetchgit, libtoxcore 2 2 , conf ? null }: 3 3 4 - with lib; 5 - 6 4 let 7 - configFile = optionalString (conf!=null) (builtins.toFile "config.h" conf); 5 + configFile = lib.optionalString (conf!=null) (builtins.toFile "config.h" conf); 8 6 9 7 in stdenv.mkDerivation { 10 8 pname = "ratox"; ··· 22 20 substituteInPlace config.mk \ 23 21 --replace '-lsodium -lopus -lvpx ' "" 24 22 25 - ${optionalString (conf!=null) "cp ${configFile} config.def.h"} 23 + ${lib.optionalString (conf!=null) "cp ${configFile} config.def.h"} 26 24 ''; 27 25 28 26 makeFlags = [ "PREFIX=$(out)" ]; 29 27 30 - meta = { 28 + meta = with lib; { 31 29 description = "FIFO based tox client"; 32 30 homepage = "http://ratox.2f30.org/"; 33 31 license = licenses.isc;
+7 -9
pkgs/applications/networking/instant-messengers/telegram/kotatogram-desktop/default.nix
··· 65 65 , MetalKit 66 66 }: 67 67 68 - with lib; 69 - 70 68 let 71 69 tg_owt = callPackage ./tg_owt.nix { 72 70 abseil-cpp = abseil-cpp.override { ··· 99 97 ./shortcuts-binary-path.patch 100 98 ]; 101 99 102 - postPatch = optionalString stdenv.isLinux '' 100 + postPatch = lib.optionalString stdenv.isLinux '' 103 101 substituteInPlace Telegram/ThirdParty/libtgvoip/os/linux/AudioInputALSA.cpp \ 104 102 --replace '"libasound.so.2"' '"${alsa-lib}/lib/libasound.so.2"' 105 103 substituteInPlace Telegram/ThirdParty/libtgvoip/os/linux/AudioOutputALSA.cpp \ 106 104 --replace '"libasound.so.2"' '"${alsa-lib}/lib/libasound.so.2"' 107 105 substituteInPlace Telegram/ThirdParty/libtgvoip/os/linux/AudioPulse.cpp \ 108 106 --replace '"libpulse.so.0"' '"${libpulseaudio}/lib/libpulse.so.0"' 109 - '' + optionalString stdenv.isDarwin '' 107 + '' + lib.optionalString stdenv.isDarwin '' 110 108 sed -i "13i#import <CoreAudio/CoreAudio.h>" Telegram/lib_webrtc/webrtc/mac/webrtc_media_devices_mac.mm 111 109 substituteInPlace Telegram/CMakeLists.txt \ 112 110 --replace 'COMMAND iconutil' 'COMMAND png2icns' \ ··· 122 120 python3 123 121 wrapQtAppsHook 124 122 removeReferencesTo 125 - ] ++ optionals stdenv.isLinux [ 123 + ] ++ lib.optionals stdenv.isLinux [ 126 124 # to build bundled libdispatch 127 125 clang 128 126 extra-cmake-modules ··· 143 141 rnnoise 144 142 tg_owt 145 143 microsoft_gsl 146 - ] ++ optionals stdenv.isLinux [ 144 + ] ++ lib.optionals stdenv.isLinux [ 147 145 kwayland 148 146 alsa-lib 149 147 libpulseaudio ··· 151 149 glibmm 152 150 jemalloc 153 151 wayland 154 - ] ++ optionals stdenv.isDarwin [ 152 + ] ++ lib.optionals stdenv.isDarwin [ 155 153 Cocoa 156 154 CoreFoundation 157 155 CoreServices ··· 192 190 "-DDESKTOP_APP_QT6=OFF" 193 191 ]; 194 192 195 - installPhase = optionalString stdenv.isDarwin '' 193 + installPhase = lib.optionalString stdenv.isDarwin '' 196 194 mkdir -p $out/Applications 197 195 cp -r Kotatogram.app $out/Applications 198 196 ln -s $out/Applications/Kotatogram.app/Contents/MacOS $out/bin ··· 209 207 inherit tg_owt; 210 208 }; 211 209 212 - meta = { 210 + meta = with lib; { 213 211 description = "Kotatogram – experimental Telegram Desktop fork"; 214 212 longDescription = '' 215 213 Unofficial desktop client for the Telegram messenger, based on Telegram Desktop.
+2 -4
pkgs/applications/networking/instant-messengers/telegram/kotatogram-desktop/with-webkit.nix
··· 1 1 { stdenv, lib, kotatogram-desktop, glib-networking, webkitgtk, makeWrapper }: 2 2 3 - with lib; 4 - 5 3 stdenv.mkDerivation { 6 4 pname = "${kotatogram-desktop.pname}-with-webkit"; 7 5 version = kotatogram-desktop.version; ··· 15 13 mkdir -p $out/bin 16 14 makeWrapper ${kotatogram-desktop}/bin/kotatogram-desktop $out/bin/kotatogram-desktop \ 17 15 --prefix GIO_EXTRA_MODULES : ${glib-networking}/lib/gio/modules \ 18 - --prefix LD_LIBRARY_PATH : ${makeLibraryPath [ webkitgtk ]} 16 + --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ webkitgtk ]} 19 17 ''; 20 18 meta = kotatogram-desktop.meta // { 21 - platforms = platforms.linux; 19 + platforms = lib.platforms.linux; 22 20 }; 23 21 }
+2 -4
pkgs/applications/networking/instant-messengers/wavebox/default.nix
··· 3 3 , xorg 4 4 }: 5 5 6 - with lib; 7 - 8 6 let 9 7 bits = "x86_64"; 10 8 ··· 19 17 categories = [ "Network" ]; 20 18 }; 21 19 22 - tarball = "Wavebox_${replaceStrings ["."] ["_"] (toString version)}_linux_${bits}.tar.gz"; 20 + tarball = "Wavebox_${lib.replaceStrings ["."] ["_"] (toString version)}_linux_${bits}.tar.gz"; 23 21 24 22 in stdenv.mkDerivation { 25 23 pname = "wavebox"; ··· 40 38 alsa-lib gtk3 nss 41 39 ]; 42 40 43 - runtimeDependencies = [ (getLib udev) libnotify ]; 41 + runtimeDependencies = [ (lib.getLib udev) libnotify ]; 44 42 45 43 installPhase = '' 46 44 mkdir -p $out/bin $out/opt/wavebox
+3 -5
pkgs/applications/networking/irc/convos/default.nix
··· 2 2 , nixosTests 3 3 }: 4 4 5 - with lib; 6 - 7 5 perlPackages.buildPerlPackage rec { 8 6 pname = "convos"; 9 7 version = "7.02"; ··· 16 14 }; 17 15 18 16 nativeBuildInputs = [ makeWrapper ] 19 - ++ optionals stdenv.isDarwin [ shortenPerlShebang ]; 17 + ++ lib.optionals stdenv.isDarwin [ shortenPerlShebang ]; 20 18 21 19 buildInputs = with perlPackages; [ 22 20 CryptPassphrase CryptPassphraseArgon2 CryptPassphraseBcrypt ··· 79 77 ln -s $AUTO_SHARE_PATH/public/asset $out/asset 80 78 cp -vR templates $out/templates 81 79 cp cpanfile $out/cpanfile 82 - '' + optionalString stdenv.isDarwin '' 80 + '' + lib.optionalString stdenv.isDarwin '' 83 81 shortenPerlShebang $out/bin/convos 84 82 '' + '' 85 83 wrapProgram $out/bin/convos --set MOJO_HOME $out ··· 91 89 homepage = "https://convos.chat"; 92 90 description = "Convos is the simplest way to use IRC in your browser"; 93 91 license = lib.licenses.artistic2; 94 - maintainers = with maintainers; [ sgo ]; 92 + maintainers = with lib.maintainers; [ sgo ]; 95 93 }; 96 94 }
+3 -5
pkgs/applications/networking/mailreaders/claws-mail/default.nix
··· 52 52 , enablePluginVcalendar ? true, libical 53 53 }: 54 54 55 - with lib; 56 - 57 55 let 58 56 pythonPkgs = with python3.pkgs; [ python3 wrapPython pygobject3 ]; 59 57 ··· 130 128 131 129 buildInputs = 132 130 [ curl gsettings-desktop-schemas glib-networking gtk3 ] 133 - ++ concatMap (f: optionals f.enabled f.deps) (filter (f: f ? deps) features) 131 + ++ lib.concatMap (f: lib.optionals f.enabled f.deps) (lib.filter (f: f ? deps) features) 134 132 ; 135 133 136 134 configureFlags = ··· 141 139 142 140 "--disable-gdata-plugin" # Complains about missing libgdata, even when provided 143 141 ] ++ 144 - (map (feature: map (flag: strings.enableFeature feature.enabled flag) feature.flags) features); 142 + (map (feature: map (flag: lib.strings.enableFeature feature.enabled flag) feature.flags) features); 145 143 146 144 enableParallelBuilding = true; 147 145 ··· 155 153 cp claws-mail.desktop $out/share/applications 156 154 ''; 157 155 158 - meta = { 156 + meta = with lib; { 159 157 description = "The user-friendly, lightweight, and fast email client"; 160 158 homepage = "https://www.claws-mail.org/"; 161 159 license = licenses.gpl3Plus;
+6 -8
pkgs/applications/networking/mailreaders/sylpheed/default.nix
··· 4 4 assert gpgSupport -> gpgme != null; 5 5 assert sslSupport -> openssl != null; 6 6 7 - with lib; 8 - 9 7 stdenv.mkDerivation rec { 10 8 pname = "sylpheed"; 11 9 version = "3.7.0"; ··· 33 31 nativeBuildInputs = [ pkg-config ]; 34 32 35 33 buildInputs = [ gtk2 ] 36 - ++ optionals gpgSupport [ gpgme ] 37 - ++ optionals sslSupport [ openssl ] 38 - ++ optionals stdenv.isDarwin [ Foundation ]; 34 + ++ lib.optionals gpgSupport [ gpgme ] 35 + ++ lib.optionals sslSupport [ openssl ] 36 + ++ lib.optionals stdenv.isDarwin [ Foundation ]; 39 37 40 - configureFlags = optional gpgSupport "--enable-gpgme" 41 - ++ optional sslSupport "--enable-ssl"; 38 + configureFlags = lib.optional gpgSupport "--enable-gpgme" 39 + ++ lib.optional sslSupport "--enable-ssl"; 42 40 43 41 # Undefined symbols for architecture arm64: "_OBJC_CLASS_$_NSAutoreleasePool" 44 42 NIX_LDFLAGS = lib.optionalString stdenv.isDarwin "-framework Foundation"; 45 43 46 - meta = { 44 + meta = with lib; { 47 45 homepage = "https://sylpheed.sraoss.jp/en/"; 48 46 description = "Lightweight and user-friendly e-mail client"; 49 47 maintainers = with maintainers; [ eelco ];
+7 -8
pkgs/applications/networking/p2p/qbittorrent/default.nix
··· 9 9 assert guiSupport -> (dbus != null); 10 10 assert trackerSearch -> (python3 != null); 11 11 12 - with lib; 13 12 mkDerivation rec { 14 13 pname = "qbittorrent"; 15 14 version = "4.4.5"; ··· 27 26 nativeBuildInputs = [ pkg-config ]; 28 27 29 28 buildInputs = [ boost libtorrent-rasterbar qtbase qttools qtsvg ] 30 - ++ optional guiSupport dbus # D(esktop)-Bus depends on GUI support 31 - ++ optional trackerSearch python3; 29 + ++ lib.optional guiSupport dbus # D(esktop)-Bus depends on GUI support 30 + ++ lib.optional trackerSearch python3; 32 31 33 32 # Otherwise qm_gen.pri assumes lrelease-qt5, which does not exist. 34 33 QMAKE_LRELEASE = "lrelease"; ··· 36 35 configureFlags = [ 37 36 "--with-boost-libdir=${boost.out}/lib" 38 37 "--with-boost=${boost.dev}" ] 39 - ++ optionals (!guiSupport) [ "--disable-gui" "--enable-systemd" ] # Also place qbittorrent-nox systemd service files 40 - ++ optional (!webuiSupport) "--disable-webui" 41 - ++ optional debugSupport "--enable-debug"; 38 + ++ lib.optionals (!guiSupport) [ "--disable-gui" "--enable-systemd" ] # Also place qbittorrent-nox systemd service files 39 + ++ lib.optional (!webuiSupport) "--disable-webui" 40 + ++ lib.optional debugSupport "--enable-debug"; 42 41 43 - qtWrapperArgs = optional trackerSearch "--prefix PATH : ${makeBinPath [ python3 ]}"; 42 + qtWrapperArgs = lib.optional trackerSearch "--prefix PATH : ${lib.makeBinPath [ python3 ]}"; 44 43 45 44 postInstall = lib.optionalString stdenv.isDarwin '' 46 45 mkdir -p $out/{Applications,bin} ··· 48 47 makeWrapper $out/{Applications/qbittorrent.app/Contents/MacOS,bin}/qbittorrent 49 48 ''; 50 49 51 - meta = { 50 + meta = with lib; { 52 51 description = "Featureful free software BitTorrent client"; 53 52 homepage = "https://www.qbittorrent.org/"; 54 53 changelog = "https://github.com/qbittorrent/qBittorrent/blob/release-${version}/Changelog";
+6 -8
pkgs/applications/networking/sniffers/wireshark/default.nix
··· 8 8 9 9 assert withQt -> qt5 != null; 10 10 11 - with lib; 12 - 13 11 let 14 12 version = "4.0.2"; 15 13 variant = if withQt then "qt" else "cli"; ··· 39 37 NIX_CFLAGS_COMPILE = [ "-DQT_NO_DEBUG" ]; 40 38 41 39 nativeBuildInputs = [ asciidoctor bison cmake flex makeWrapper pkg-config python3 perl ] 42 - ++ optionals withQt [ qt5.wrapQtAppsHook wrapGAppsHook ]; 40 + ++ lib.optionals withQt [ qt5.wrapQtAppsHook wrapGAppsHook ]; 43 41 44 42 depsBuildBuild = [ buildPackages.stdenv.cc ]; 45 43 46 44 buildInputs = [ 47 45 gettext pcre2 libpcap lua5 libssh nghttp2 openssl libgcrypt 48 46 libgpg-error gnutls geoip c-ares glib zlib 49 - ] ++ optionals withQt (with qt5; [ qtbase qtmultimedia qtsvg qttools ]) 50 - ++ optionals stdenv.isLinux [ libcap libnl ] 51 - ++ optionals stdenv.isDarwin [ SystemConfiguration ApplicationServices gmp ] 52 - ++ optionals (withQt && stdenv.isDarwin) (with qt5; [ qtmacextras ]); 47 + ] ++ lib.optionals withQt (with qt5; [ qtbase qtmultimedia qtsvg qttools ]) 48 + ++ lib.optionals stdenv.isLinux [ libcap libnl ] 49 + ++ lib.optionals stdenv.isDarwin [ SystemConfiguration ApplicationServices gmp ] 50 + ++ lib.optionals (withQt && stdenv.isDarwin) (with qt5; [ qtmacextras ]); 53 51 54 52 strictDeps = true; 55 53 ··· 72 70 install_name_tool -change "$dylib" "$out/lib/$dylib" "$f" 73 71 done 74 72 done 75 - '' else optionalString withQt '' 73 + '' else lib.optionalString withQt '' 76 74 pwd 77 75 install -Dm644 -t $out/share/applications ../resources/freedesktop/org.wireshark.Wireshark.desktop 78 76
+8 -10
pkgs/applications/networking/znc/default.nix
··· 9 9 , withDebug ? false 10 10 }: 11 11 12 - with lib; 13 - 14 12 stdenv.mkDerivation rec { 15 13 pname = "znc"; 16 14 version = "1.8.2"; ··· 23 21 nativeBuildInputs = [ pkg-config ]; 24 22 25 23 buildInputs = [ openssl ] 26 - ++ optional withPerl perl 27 - ++ optional withPython python3 28 - ++ optional withTcl tcl 29 - ++ optional withCyrus cyrus_sasl 30 - ++ optional withUnicode icu 31 - ++ optional withZlib zlib; 24 + ++ lib.optional withPerl perl 25 + ++ lib.optional withPython python3 26 + ++ lib.optional withTcl tcl 27 + ++ lib.optional withCyrus cyrus_sasl 28 + ++ lib.optional withUnicode icu 29 + ++ lib.optional withZlib zlib; 32 30 33 31 configureFlags = [ 34 32 (lib.enableFeature withPerl "perl") ··· 36 34 (lib.enableFeature withTcl "tcl") 37 35 (lib.withFeatureAs withTcl "tcl" "${tcl}/lib") 38 36 (lib.enableFeature withCyrus "cyrus") 39 - ] ++ optionals (!withIPv6) [ "--disable-ipv6" ] 40 - ++ optionals withDebug [ "--enable-debug" ]; 37 + ] ++ lib.optionals (!withIPv6) [ "--disable-ipv6" ] 38 + ++ lib.optionals withDebug [ "--enable-debug" ]; 41 39 42 40 enableParallelBuilding = true; 43 41
+3 -3
pkgs/applications/science/misc/openmvg/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, pkg-config, cmake 1 + { lib, stdenv, fetchFromGitHub, pkg-config, cmake, cereal, openmp 2 2 , libjpeg ? null 3 3 , zlib ? null 4 4 , libpng ? null ··· 19 19 fetchSubmodules = true; 20 20 }; 21 21 22 - buildInputs = [ libjpeg zlib libpng eigen libtiff ]; 22 + buildInputs = [ libjpeg zlib libpng eigen libtiff cereal openmp ]; 23 23 24 24 nativeBuildInputs = [ cmake pkg-config ]; 25 25 ··· 45 45 homepage = "https://openmvg.readthedocs.io/en/latest/"; 46 46 license = lib.licenses.mpl20; 47 47 platforms = lib.platforms.unix; 48 - maintainers = with lib.maintainers; [ mdaiter ]; 48 + maintainers = with lib.maintainers; [ mdaiter bouk ]; 49 49 }; 50 50 }
+17 -12
pkgs/data/fonts/aileron/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchzip }: 2 2 3 3 let 4 4 majorVersion = "0"; 5 5 minorVersion = "102"; 6 + in 7 + stdenvNoCC.mkDerivation (self: { 6 8 pname = "aileron"; 7 - in 9 + version = "${majorVersion}.${minorVersion}"; 10 + 11 + src = fetchzip { 12 + url = "https://dotcolon.net/download/fonts/${self.pname}_${majorVersion}${minorVersion}.zip"; 13 + hash = "sha256-Ht48gwJZrn0djo1yl6jHZ4+0b710FVwStiC1Zk5YXME="; 14 + stripRoot = false; 15 + }; 8 16 9 - fetchzip { 10 - name = "${pname}-font-${majorVersion}.${minorVersion}"; 17 + installPhase = '' 18 + runHook preInstall 11 19 12 - url = "http://dotcolon.net/DL/font/${pname}.zip"; 13 - sha256 = "04xnzdy9plzd2p02yq367h37m5ygx0w8cpkdv39cc3754ljlsxim"; 20 + install -D -m444 -t $out/share/fonts/opentype $src/*.otf 14 21 15 - postFetch = '' 16 - mkdir -p $out/share/fonts/opentype/${pname} 17 - unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype/${pname} 22 + runHook postInstall 18 23 ''; 19 24 20 25 meta = with lib; { 21 - homepage = "http://dotcolon.net/font/${pname}/"; 26 + homepage = "http://dotcolon.net/font/${self.pname}/"; 22 27 description = "A helvetica font in nine weights"; 23 28 platforms = platforms.all; 24 - maintainers = with maintainers; [ leenaars ]; 29 + maintainers = with maintainers; [ leenaars minijackson ]; 25 30 license = licenses.cc0; 26 31 }; 27 - } 32 + })
+41 -20
pkgs/data/fonts/arphic/default.nix
··· 1 - { lib, fetchzip, mkfontscale, mkfontdir }: 1 + { lib, stdenvNoCC, fetchurl, mkfontdir, mkfontscale }: 2 2 3 3 let 4 4 version = "0.2.20080216.2"; 5 - in { 6 - arphic-ukai = fetchzip { 7 - name = "arphic-ukai-${version}"; 5 + in 6 + { 7 + arphic-ukai = stdenvNoCC.mkDerivation rec { 8 + pname = "arphic-ukai"; 9 + inherit version; 10 + 11 + src = fetchurl { 12 + url = "mirror://ubuntu/pool/main/f/fonts-${pname}/fonts-${pname}_${version}.orig.tar.bz2"; 13 + hash = "sha256-tJaNc1GfT4dH6FVI+4XSG2Zdob8bqQCnxJmXbmqK49I="; 14 + }; 15 + 16 + nativeBuildInputs = [ 17 + mkfontscale 18 + mkfontdir 19 + ]; 8 20 9 - url = "mirror://ubuntu/pool/main/f/fonts-arphic-ukai/fonts-arphic-ukai_${version}.orig.tar.bz2"; 21 + installPhase = '' 22 + runHook preInstall 10 23 11 - postFetch = '' 12 - tar -xjvf $downloadedFile --strip-components=1 13 24 install -D -v ukai.ttc $out/share/fonts/truetype/arphic-ukai.ttc 14 25 cd $out/share/fonts 15 - ${mkfontdir}/bin/mkfontdir 16 - ${mkfontscale}/bin/mkfontscale 26 + mkfontdir 27 + mkfontscale 28 + 29 + runHook postInstall 17 30 ''; 18 31 19 - sha256 = "0xi5ycm7ydzpn7cqxv1kcj9vd70nr9wn8v27hmibyjc25y2qdmzl"; 20 - 21 32 meta = with lib; { 22 33 description = "CJK Unicode font Kai style"; 23 34 homepage = "https://www.freedesktop.org/wiki/Software/CJKUnifonts/"; ··· 28 39 }; 29 40 }; 30 41 31 - arphic-uming = fetchzip { 32 - name = "arphic-uming-${version}"; 42 + arphic-uming = stdenvNoCC.mkDerivation rec { 43 + pname = "arphic-uming"; 44 + inherit version; 33 45 34 - url = "mirror://ubuntu/pool/main/f/fonts-arphic-uming/fonts-arphic-uming_${version}.orig.tar.bz2"; 46 + src = fetchurl { 47 + url = "mirror://ubuntu/pool/main/f/fonts-${pname}/fonts-${pname}_${version}.orig.tar.bz2"; 48 + hash = "sha256-48GeBOp6VltKz/bx5CSAhNLhB1LjBb991sdugIYNwds="; 49 + }; 35 50 36 - postFetch = '' 37 - tar -xjvf $downloadedFile --strip-components=1 51 + nativeBuildInputs = [ 52 + mkfontscale 53 + mkfontdir 54 + ]; 55 + 56 + installPhase = '' 57 + runHook preInstall 58 + 38 59 install -D -v uming.ttc $out/share/fonts/truetype/arphic-uming.ttc 39 60 cd $out/share/fonts 40 - ${mkfontdir}/bin/mkfontdir 41 - ${mkfontscale}/bin/mkfontscale 61 + mkfontdir 62 + mkfontscale 63 + 64 + runHook postInstall 42 65 ''; 43 - 44 - sha256 = "16jybvj1cxamm682caj6nsm6l5c60x9mgchp1l2izrw2rvc8x38d"; 45 66 46 67 meta = with lib; { 47 68 description = "CJK Unicode font Ming style";
+17 -9
pkgs/data/fonts/baekmuk-ttf/default.nix
··· 1 - { fetchzip }: 1 + { lib, stdenvNoCC, fetchurl }: 2 2 3 - fetchzip rec { 4 - name = "baekmuk-ttf-2.2"; 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "baekmuk-ttf"; 5 + version = "2.2"; 5 6 6 - url = "http://kldp.net/baekmuk/release/865-${name}.tar.gz"; 7 - postFetch = '' 8 - tar -xzvf $downloadedFile --strip-components=1 7 + src = fetchurl { 8 + url = "http://kldp.net/baekmuk/release/865-${pname}-${version}.tar.gz"; 9 + hash = "sha256-CKt9/7VdWIfMlCzjcPXjO3VqVfu06vC5DyRAcOjVGII="; 10 + }; 11 + 12 + dontBuild = true; 13 + 14 + installPhase = '' 15 + runHook preInstall 16 + 9 17 install -m444 -Dt $out/share/fonts ttf/*.ttf 10 - install -m444 -Dt $out/share/doc/${name} COPYRIGHT* 18 + install -m444 -Dt $out/share/doc/${pname}-${version} COPYRIGHT* 19 + 20 + runHook postInstall 11 21 ''; 12 - sha256 = "1jgsvack1l14q8lbcv4qhgbswi30mf045k37rl772hzcmx0r206g"; 13 22 14 23 meta = { 15 24 description = "Korean font"; ··· 17 26 license = "BSD-like"; 18 27 }; 19 28 } 20 -
+16 -8
pkgs/data/fonts/bakoma-ttf/default.nix
··· 1 - { fetchzip }: 1 + { lib, stdenvNoCC, fetchurl }: 2 2 3 - fetchzip { 4 - name = "bakoma-ttf"; 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "bakoma-ttf"; 5 + version = "2.2"; 5 6 6 - url = "http://tarballs.nixos.org/sha256/1j1y3cq6ys30m734axc0brdm2q9n2as4h32jws15r7w5fwr991km"; 7 + src = fetchurl { 8 + name = "${pname}.tar.bz2"; 9 + url = "http://tarballs.nixos.org/sha256/1j1y3cq6ys30m734axc0brdm2q9n2as4h32jws15r7w5fwr991km"; 10 + hash = "sha256-dYaUMneFn1yC5lIMSLQSNmFRW16AdUXGqWBobzAbPsg="; 11 + }; 7 12 8 - postFetch = '' 9 - tar xjvf $downloadedFile --strip-components=1 13 + dontBuild = true; 14 + 15 + installPhase = '' 16 + runHook preInstall 17 + 10 18 mkdir -p $out/share/fonts/truetype 11 19 cp ttf/*.ttf $out/share/fonts/truetype 12 - ''; 13 20 14 - sha256 = "0g7i723n00cqx2va05z1h6v3a2ar69gqw4hy6pjj7m0ml906rngc"; 21 + runHook postInstall 22 + ''; 15 23 16 24 meta = { 17 25 description = "TrueType versions of the Computer Modern and AMS TeX Fonts";
+16 -9
pkgs/data/fonts/caladea/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchurl }: 2 2 3 - let 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "caladea"; 4 5 version = "20130214"; 5 - in fetchzip { 6 - name = "caladea-${version}"; 6 + 7 + src = fetchurl { 8 + url = "https://commondatastorage.googleapis.com/chromeos-localmirror/distfiles/crosextrafonts-${version}.tar.gz"; 9 + hash = "sha256-xI0cL9YTycBslZw02nuDiAWeJAjSuxmEXcPtNfduTQk="; 10 + }; 11 + 12 + dontBuild = true; 13 + 14 + installPhase = '' 15 + runHook preInstall 7 16 8 - url = "https://commondatastorage.googleapis.com/chromeos-localmirror/distfiles/crosextrafonts-${version}.tar.gz"; 9 - postFetch = '' 10 - tar -xzvf $downloadedFile --strip-components=1 11 17 mkdir -p $out/etc/fonts/conf.d 12 18 mkdir -p $out/share/fonts/truetype 13 19 cp -v *.ttf $out/share/fonts/truetype 14 20 cp -v ${./cambria-alias.conf} $out/etc/fonts/conf.d/30-cambria.conf 21 + 22 + runHook postInstall 15 23 ''; 16 - sha256 = "0kwm42ggr8kvcn3554cpmv90xzam1sdncx7x3zs3bzp88mxrnv1z"; 17 24 18 25 meta = with lib; { 19 26 # This font doesn't appear to have any official web site but this ··· 27 34 ''; 28 35 license = licenses.asl20; 29 36 platforms = platforms.all; 30 - maintainers = [maintainers.rycee]; 37 + maintainers = [ maintainers.rycee ]; 31 38 32 39 # Reduce the priority of this package. The intent is that if you 33 40 # also install the `vista-fonts` package, then you probably will
+5 -5
pkgs/data/fonts/carlito/default.nix
··· 1 - { lib, fetchzip, stdenvNoCC }: 1 + { lib, fetchurl, stdenvNoCC }: 2 2 3 3 stdenvNoCC.mkDerivation rec { 4 4 pname = "carlito"; 5 5 version = "20130920"; 6 6 7 - src = fetchzip { 7 + src = fetchurl { 8 8 url = "https://commondatastorage.googleapis.com/chromeos-localmirror/distfiles/crosextrafonts-carlito-${version}.tar.gz"; 9 - sha256 = "sha256-OGDO5WoF7OmiRdLRRrIXMzg276Pgeq1L3Offcl0W2jg="; 9 + sha256 = "sha256-S9ErbLwyHBzxbaduLFhcklzpVqCAZ65vbGTv9sz9r1o="; 10 10 }; 11 11 12 12 installPhase = '' 13 13 mkdir -p $out/etc/fonts/conf.d 14 14 mkdir -p $out/share/fonts/truetype 15 - cp -v $src/*.ttf $out/share/fonts/truetype 15 + cp -v *.ttf $out/share/fonts/truetype 16 16 cp -v ${./calibri-alias.conf} $out/etc/fonts/conf.d/30-calibri.conf 17 17 ''; 18 18 ··· 28 28 ''; 29 29 license = licenses.ofl; 30 30 platforms = platforms.all; 31 - maintainers = [maintainers.rycee]; 31 + maintainers = [ maintainers.rycee ]; 32 32 33 33 # Reduce the priority of this package. The intent is that if you 34 34 # also install the `vista-fonts` package, then you probably will
+15 -10
pkgs/data/fonts/cm-unicode/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchurl }: 2 2 3 - let 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "cm-unicode"; 4 5 version = "0.7.0"; 5 - in fetchzip rec { 6 - name = "cm-unicode-${version}"; 6 + 7 + src = fetchurl { 8 + url = "mirror://sourceforge/cm-unicode/cm-unicode/${version}/${pname}-${version}-otf.tar.xz"; 9 + hash = "sha256-VIp+vk1IYbEHW15wMrfGVOPqg1zBZDpgFx+jlypOHCg="; 10 + }; 11 + 12 + dontBuild = true; 7 13 8 - url = "mirror://sourceforge/cm-unicode/cm-unicode/${version}/${name}-otf.tar.xz"; 14 + installPhase = '' 15 + runHook preInstall 9 16 10 - postFetch = '' 11 - tar -xJvf $downloadedFile --strip-components=1 12 17 install -m444 -Dt $out/share/fonts/opentype *.otf 13 - install -m444 -Dt $out/share/doc/${name} README FontLog.txt 14 - ''; 18 + install -m444 -Dt $out/share/doc/${pname}-${version} README FontLog.txt 15 19 16 - sha256 = "1rzz7yhqq3lljyqxbg46jfzfd09qgpgx865lijr4sgc94riy1ypn"; 20 + runHook postInstall 21 + ''; 17 22 18 23 meta = with lib; { 19 24 homepage = "https://cm-unicode.sourceforge.io/";
+18 -11
pkgs/data/fonts/crimson/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchFromGitHub }: 2 2 3 - let 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "crimson"; 4 5 version = "2014.10"; 5 - in fetchzip rec { 6 - name = "crimson-${version}"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "skosch"; 9 + repo = "Crimson"; 10 + rev = "fonts-october2014"; 11 + hash = "sha256-Wp9L77q93TRmrAr0P4iH9gm0tqFY0X/xSsuFcd19aAE="; 12 + }; 13 + 14 + dontBuild = true; 7 15 8 - url = "https://github.com/skosch/Crimson/archive/fonts-october2014.tar.gz"; 16 + installPhase = '' 17 + runHook preInstall 9 18 10 - postFetch = '' 11 - tar -xzvf $downloadedFile --strip-components=1 12 19 install -m444 -Dt $out/share/fonts/opentype "Desktop Fonts/OTF/"*.otf 13 - install -m444 -Dt $out/share/doc/${name} README.md 20 + install -m444 -Dt $out/share/doc/${pname}-${version} README.md 21 + 22 + runHook postInstall 14 23 ''; 15 - 16 - sha256 = "0mg65f0ydyfmb43jqr1f34njpd10w8npw15cbb7z0nxmy4nkl842"; 17 24 18 25 meta = with lib; { 19 26 homepage = "https://github.com/skosch/Crimson"; 20 27 description = "A font family inspired by beautiful oldstyle typefaces"; 21 28 license = licenses.ofl; 22 29 platforms = platforms.all; 23 - maintainers = [maintainers.rycee]; 30 + maintainers = [ maintainers.rycee ]; 24 31 }; 25 32 }
+16 -8
pkgs/data/fonts/culmus/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchurl }: 2 2 3 - let 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "culmus"; 4 5 version = "0.133"; 5 - in fetchzip { 6 - name = "culmus-${version}"; 7 - url = "mirror://sourceforge/culmus/culmus/${version}/culmus-${version}.tar.gz"; 8 - postFetch = '' 9 - tar xf $downloadedFile --strip=1 6 + 7 + src = fetchurl { 8 + url = "mirror://sourceforge/${pname}/${pname}/${version}/${pname}-${version}.tar.gz"; 9 + hash = "sha256-wMaHN0LQdUT2us8q1S65yzkpdNVkJ5ONwd+8g5nGTQU="; 10 + }; 11 + 12 + dontBuild = true; 13 + 14 + installPhase = '' 15 + runHook preInstall 16 + 10 17 mkdir -p $out/share/fonts/{truetype,type1} 11 18 cp -v *.pfa $out/share/fonts/type1/ 12 19 cp -v *.afm $out/share/fonts/type1/ ··· 14 21 cp -v *.ttf $out/share/fonts/truetype/ 15 22 cp -v *.otf $out/share/fonts/truetype/ 16 23 cp -v fonts.scale-ttf $out/share/fonts/truetype/fonts.scale 24 + 25 + runHook postInstall 17 26 ''; 18 - sha256 = "0zqqjcrqmbd4389hqz2dwymkkcxjrq9ylyriiv3gbmzl6l1ffk3g"; 19 27 20 28 meta = { 21 29 description = "Culmus Hebrew fonts";
+49
pkgs/data/fonts/dotcolon-fonts/default.nix
··· 1 + { lib 2 + , symlinkJoin 3 + , aileron 4 + , vegur 5 + , f5_6 6 + , tenderness 7 + , medio 8 + , ferrum 9 + , seshat 10 + , penna 11 + , eunomia 12 + , route159 13 + , f1_8 14 + , nacelle 15 + , melete 16 + , fa_1 17 + }: 18 + 19 + symlinkJoin { 20 + name = "dotcolon-fonts"; 21 + 22 + paths = [ 23 + aileron 24 + vegur 25 + f5_6 26 + tenderness 27 + medio 28 + ferrum 29 + seshat 30 + penna 31 + eunomia 32 + route159 33 + f1_8 34 + nacelle 35 + melete 36 + fa_1 37 + ]; 38 + 39 + meta = { 40 + description = "Font Collection by Sora Sagano"; 41 + 42 + homepage = "https://dotcolon.net/"; 43 + 44 + license = with lib.licenses; [ cc0 ofl ]; 45 + 46 + platforms = lib.platforms.all; 47 + maintainers = with lib.maintainers; [ minijackson ]; 48 + }; 49 + }
+3 -3
pkgs/data/fonts/efont-unicode/default.nix
··· 1 - { lib, stdenv, fetchzip, libfaketime, xorg }: 1 + { lib, stdenv, fetchurl, libfaketime, xorg }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "efont-unicode"; 5 5 version = "0.4.2"; 6 6 7 - src = fetchzip { 7 + src = fetchurl { 8 8 url = "http://openlab.ring.gr.jp/efont/dist/unicode-bdf/${pname}-bdf-${version}.tar.bz2"; 9 - sha256 = "0bib3jgikq8s1m96imw4mlgbl5cbq1bs5sqig74s2l2cdfx3jaqc"; 9 + sha256 = "sha256-fT7SsYlV3dCQrf0IZfiNI1grj3ngDgr8IkWdg+f9m3M="; 10 10 }; 11 11 12 12 nativeBuildInputs = with xorg;
+16 -11
pkgs/data/fonts/eunomia/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchzip }: 2 2 3 3 let 4 4 majorVersion = "0"; 5 5 minorVersion = "200"; 6 + in 7 + stdenvNoCC.mkDerivation (self: { 6 8 pname = "eunomia"; 7 - in 9 + version = "${majorVersion}.${minorVersion}"; 8 10 9 - fetchzip { 10 - name = "${pname}-font-${majorVersion}.${minorVersion}"; 11 + src = fetchzip { 12 + url = "https://dotcolon.net/download/fonts/${self.pname}_${majorVersion}${minorVersion}.zip"; 13 + hash = "sha256-Rd2EakaTWjzoEV00tHTgg/bXgJUFfPjCyQUWi7QhFG4="; 14 + stripRoot = false; 15 + }; 16 + 17 + installPhase = '' 18 + runHook preInstall 11 19 12 - url = "http://dotcolon.net/DL/font/${pname}_${majorVersion}${minorVersion}.zip"; 13 - sha256 = "0lpmczs1d4p9dy4s0dnvv7bl5cd0f6yzyasfrkxij5s86glps38b"; 20 + install -D -m444 -t $out/share/fonts/opentype $src/*.otf 14 21 15 - postFetch = '' 16 - mkdir -p $out/share/fonts/opentype/${pname} 17 - unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype/${pname} 22 + runHook postInstall 18 23 ''; 19 24 20 25 meta = with lib; { 21 26 homepage = "http://dotcolon.net/font/eunomia/"; 22 27 description = "A futuristic decorative font"; 23 28 platforms = platforms.all; 24 - maintainers = with maintainers; [ leenaars ]; 29 + maintainers = with maintainers; [ leenaars minijackson ]; 25 30 license = licenses.ofl; 26 31 }; 27 - } 32 + })
+33
pkgs/data/fonts/f1_8/default.nix
··· 1 + { lib, stdenvNoCC, fetchzip }: 2 + 3 + let 4 + majorVersion = "1"; 5 + minorVersion = "101"; 6 + in 7 + stdenvNoCC.mkDerivation (self: { 8 + pname = "f1_8"; 9 + version = "${majorVersion}.${minorVersion}"; 10 + 11 + src = fetchzip { 12 + url = "https://note.com/api/v2/attachments/download/d83b2c4ec63d7826acaa76725d261ff4"; 13 + hash = "sha256-pe1G8WeFAo+KYjjsNwn0JmtXFn9QugE1SeGwaqnl1F0="; 14 + stripRoot = false; 15 + extension = "zip"; 16 + }; 17 + 18 + installPhase = '' 19 + runHook preInstall 20 + 21 + install -D -m444 -t $out/share/fonts/opentype $src/*.otf 22 + 23 + runHook postInstall 24 + ''; 25 + 26 + meta = with lib; { 27 + homepage = "http://dotcolon.net/font/${self.pname}/"; 28 + description = "A weighted decorative font"; 29 + platforms = platforms.all; 30 + maintainers = with maintainers; [ minijackson ]; 31 + license = licenses.ofl; 32 + }; 33 + })
+17 -12
pkgs/data/fonts/f5_6/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchzip }: 2 2 3 3 let 4 4 majorVersion = "0"; 5 5 minorVersion = "110"; 6 + in 7 + stdenvNoCC.mkDerivation (self: { 6 8 pname = "f5_6"; 7 - in 9 + version = "${majorVersion}.${minorVersion}"; 10 + 11 + src = fetchzip { 12 + url = "https://dotcolon.net/download/fonts/${self.pname}_${majorVersion}${minorVersion}.zip"; 13 + hash = "sha256-FeCU+mzR0iO5tixI72XUnhvpGj+WRfKyT3mhBtud3uE="; 14 + stripRoot = false; 15 + }; 8 16 9 - fetchzip { 10 - name = "${pname}-font-${majorVersion}.${minorVersion}"; 17 + installPhase = '' 18 + runHook preInstall 11 19 12 - url = "http://dotcolon.net/DL/font/${pname}_${majorVersion}${minorVersion}.zip"; 13 - sha256 = "04p6lccd26rhjbpq3ddxi5vkk3lk8lqbpnk8lakjzixp3fgdqpp4"; 20 + install -D -m444 -t $out/share/fonts/opentype $src/*.otf 14 21 15 - postFetch = '' 16 - mkdir -p $out/share/fonts/opentype/${pname} 17 - unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype/${pname} 22 + runHook postInstall 18 23 ''; 19 24 20 25 meta = with lib; { 21 - homepage = "http://dotcolon.net/font/${pname}/"; 26 + homepage = "http://dotcolon.net/font/${self.pname}/"; 22 27 description = "A weighted decorative font"; 23 28 platforms = platforms.all; 24 - maintainers = with maintainers; [ leenaars ]; 29 + maintainers = with maintainers; [ leenaars minijackson ]; 25 30 license = licenses.ofl; 26 31 }; 27 - } 32 + })
+32
pkgs/data/fonts/fa_1/default.nix
··· 1 + { lib, stdenvNoCC, fetchzip }: 2 + 3 + let 4 + majorVersion = "0"; 5 + minorVersion = "100"; 6 + in 7 + stdenvNoCC.mkDerivation (self: { 8 + pname = "fa_1"; 9 + version = "${majorVersion}.${minorVersion}"; 10 + 11 + src = fetchzip { 12 + url = "https://dotcolon.net/download/fonts/${self.pname}_${majorVersion}${minorVersion}.zip"; 13 + hash = "sha256-BPJ+wZMYXY/yg5oEgBc5YnswA6A7w6V0gdv+cac0qdc="; 14 + stripRoot = false; 15 + }; 16 + 17 + installPhase = '' 18 + runHook preInstall 19 + 20 + install -D -m444 -t $out/share/fonts/opentype $src/*.otf 21 + 22 + runHook postInstall 23 + ''; 24 + 25 + meta = with lib; { 26 + homepage = "http://dotcolon.net/font/${self.pname}/"; 27 + description = "A weighted decorative font"; 28 + platforms = platforms.all; 29 + maintainers = with maintainers; [ minijackson ]; 30 + license = licenses.ofl; 31 + }; 32 + })
+17 -12
pkgs/data/fonts/ferrum/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchzip }: 2 2 3 3 let 4 4 majorVersion = "0"; 5 5 minorVersion = "200"; 6 + in 7 + stdenvNoCC.mkDerivation (self: { 6 8 pname = "ferrum"; 7 - in 9 + version = "${majorVersion}.${minorVersion}"; 10 + 11 + src = fetchzip { 12 + url = "https://dotcolon.net/download/fonts/${self.pname}_${majorVersion}${minorVersion}.zip"; 13 + hash = "sha256-NDJwgFWZgyhMkGRWlY55l2omEw6ju3e3dHCEsWNzQIc="; 14 + stripRoot = false; 15 + }; 8 16 9 - fetchzip { 10 - name = "${pname}-font-${majorVersion}.${minorVersion}"; 17 + installPhase = '' 18 + runHook preInstall 11 19 12 - url = "http://dotcolon.net/DL/font/${pname}.zip"; 13 - sha256 = "1w1b3ch7ik4264f05lxms01ls0aargvlx770a9szm682dfmizn8w"; 20 + install -D -m444 -t $out/share/fonts/opentype $src/*.otf 14 21 15 - postFetch = '' 16 - mkdir -p $out/share/fonts/opentype/${pname} 17 - unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype/${pname} 22 + runHook postInstall 18 23 ''; 19 24 20 25 meta = with lib; { 21 - homepage = "http://dotcolon.net/font/${pname}/"; 26 + homepage = "http://dotcolon.net/font/${self.pname}/"; 22 27 description = "A decorative font"; 23 28 platforms = platforms.all; 24 - maintainers = with maintainers; [ leenaars ]; 29 + maintainers = with maintainers; [ leenaars minijackson ]; 25 30 license = licenses.cc0; 26 31 }; 27 - } 32 + })
+18 -13
pkgs/data/fonts/go-font/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchzip }: 2 2 3 - let 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "go-font"; 4 5 version = "2.010"; 5 - rev = "41969df76e82aeec85fa3821b1e24955ea993001"; 6 - in (fetchzip { 7 - name = "go-font-${version}"; 8 - url = "https://go.googlesource.com/image/+archive/${rev}/font/gofont/ttfs.tar.gz"; 9 - stripRoot = false; 6 + 7 + src = fetchzip { 8 + url = "https://go.googlesource.com/image/+archive/41969df76e82aeec85fa3821b1e24955ea993001/font/gofont/ttfs.tar.gz"; 9 + stripRoot = false; 10 + hash = "sha256-rdzt51wY4b7HEr7W/0Ar/FB0zMyf+nKLsOT+CRSEP3o="; 11 + }; 12 + 13 + dontBuild = true; 14 + 15 + installPhase = '' 16 + runHook preInstall 10 17 11 - postFetch = '' 12 18 mkdir -p $out/share/fonts/truetype 13 19 mkdir -p $out/share/doc/go-font 14 - mv $out/*.ttf $out/share/fonts/truetype 15 - mv $out/README $out/share/doc/go-font/LICENSE 20 + mv *.ttf $out/share/fonts/truetype 21 + mv README $out/share/doc/go-font/LICENSE 22 + 23 + runHook postInstall 16 24 ''; 17 25 18 - sha256 = "175jwq16qjnd2k923n9gcbjizchy7yv4n41dm691sjwrhbl0b13x"; 19 - }) // { 20 26 meta = with lib; { 21 27 homepage = "https://blog.golang.org/go-fonts"; 22 28 description = "The Go font family"; ··· 24 30 license = licenses.bsd3; 25 31 maintainers = with maintainers; [ sternenseemann ]; 26 32 platforms = lib.platforms.all; 27 - hydraPlatforms = []; 28 33 }; 29 34 }
+19 -14
pkgs/data/fonts/gyre/default.nix
··· 1 - # when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation' 2 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchzip }: 3 2 4 - let 5 - baseName = "gyre-fonts"; 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "gyre-fonts"; 6 5 version = "2.005"; 7 - in (fetchzip { 8 - name="${baseName}-${version}"; 6 + 7 + src = fetchzip { 8 + url = "http://www.gust.org.pl/projects/e-foundry/tex-gyre/whole/tg-${version}otf.zip"; 9 + stripRoot = false; 10 + hash = "sha256-+6IufuFf+IoLXoZEPlfHUNgRhKrQNBEZ1OwPD9/uOjg="; 11 + }; 12 + 13 + dontBuild = true; 14 + 15 + installPhase = '' 16 + runHook preInstall 9 17 10 - url = "http://www.gust.org.pl/projects/e-foundry/tex-gyre/whole/tg-${version}otf.zip"; 18 + mkdir -p $out/share/fonts/truetype 19 + cp *.otf $out/share/fonts/truetype 11 20 12 - sha256 = "17amdpahs6kn7hk3dqxpff1s095cg1caxzij3mxjbbxp8zy0l111"; 21 + runHook postInstall 22 + ''; 13 23 14 24 meta = { 15 25 description = "OpenType fonts from the Gyre project, suitable for use with (La)TeX"; ··· 25 35 platforms = lib.platforms.all; 26 36 maintainers = with lib.maintainers; [ bergey ]; 27 37 }; 28 - }).overrideAttrs (_: { 29 - postFetch = '' 30 - mkdir -p $out/share/fonts 31 - unzip -j $downloadedFile \*.otf -d $out/share/fonts/truetype 32 - ''; 33 - }) 38 + }
+15 -13
pkgs/data/fonts/hermit/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchzip }: 2 2 3 - let 3 + stdenvNoCC.mkDerivation rec { 4 4 pname = "hermit"; 5 5 version = "2.0"; 6 - in fetchzip rec { 7 - name = "${pname}-${version}"; 8 6 9 - url = "https://pcaro.es/d/otf-${name}.tar.gz"; 7 + src = fetchzip { 8 + url = "https://pcaro.es/d/otf-${pname}-${version}.tar.gz"; 9 + stripRoot = false; 10 + hash = "sha256-RYXZ2yJ8BIxsgeEwhXz7g0NnWG3kMPZoJaOLMUQyWWQ="; 11 + }; 10 12 11 - stripRoot = false; 12 - postFetch = '' 13 - install -m444 -Dt $out/share/fonts/opentype $out/*.otf 14 - shopt -s extglob dotglob 15 - rm -rf $out/!(share) 16 - shopt -u extglob dotglob 13 + dontBuild = true; 14 + 15 + installPhase = '' 16 + runHook preInstall 17 + 18 + install -m444 -Dt $out/share/fonts/opentype *.otf 19 + 20 + runHook postInstall 17 21 ''; 18 - sha256 = "127hnpxicqya7v1wmzxxqafq3aj1n33i4j5ncflbw6gj5g3bizwl"; 19 22 20 23 meta = with lib; { 21 24 description = "monospace font designed to be clear, pragmatic and very readable"; ··· 25 28 platforms = platforms.all; 26 29 }; 27 30 } 28 -
+15 -11
pkgs/data/fonts/julia-mono/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchzip }: 2 2 3 - let 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "JuliaMono-ttf"; 4 5 version = "0.046"; 5 6 6 - in 7 - fetchzip { 8 - name = "JuliaMono-ttf-${version}"; 9 - url = "https://github.com/cormullion/juliamono/releases/download/v${version}/JuliaMono-ttf.tar.gz"; 10 - sha256 = "sha256-+Ro517m1unQskQFhsT6oiz19aov87/tT1jlP/XB7kFU="; 7 + src = fetchzip { 8 + url = "https://github.com/cormullion/juliamono/releases/download/v${version}/${pname}.tar.gz"; 9 + stripRoot = false; 10 + hash = "sha256-mq37L3bhUhdjB8z3I9i8+wyLrMSsu/nZrZXOuqE3JlU="; 11 + }; 12 + 13 + dontBuild = true; 11 14 12 - stripRoot = false; 15 + installPhase = '' 16 + runHook preInstall 13 17 14 - postFetch = '' 15 18 mkdir -p $out/share/fonts/truetype 16 - mv $out/*.ttf $out/share/fonts/truetype 17 - rm $out/LICENSE 19 + mv *.ttf $out/share/fonts/truetype 20 + 21 + runHook postInstall 18 22 ''; 19 23 20 24 meta = with lib; {
+16 -9
pkgs/data/fonts/kacst/default.nix
··· 1 - { fetchzip, lib }: 1 + { lib, stdenvNoCC, fetchurl }: 2 2 3 - let 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "kacst"; 4 5 version = "2.01"; 5 - in 6 - fetchzip { 7 - name = "kacst-${version}"; 8 - url = "mirror://debian/pool/main/f/fonts-kacst/fonts-kacst_${version}+mry.orig.tar.bz2"; 9 - sha256 = "sha256-pIO58CXfmKYRKYJ1oI+tjTwlKBRnkZ/CpIM2Xa0CDA4="; 6 + 7 + src = fetchurl { 8 + url = "mirror://debian/pool/main/f/fonts-${pname}/fonts-${pname}_${version}+mry.orig.tar.bz2"; 9 + hash = "sha256-byiZzpYiMU6kJs+NSISfHPFzAnJtc8toNIbV/fKiMzg="; 10 + }; 11 + 12 + dontBuild = true; 13 + 14 + installPhase = '' 15 + runHook preInstall 10 16 11 - postFetch = '' 12 17 mkdir -p $out/share/fonts 13 - tar xjf $downloadedFile --strip-components=1 -C $out/share/fonts 18 + cp -R kacst $out/share/fonts 19 + 20 + runHook postInstall 14 21 ''; 15 22 16 23 meta = with lib; {
+15 -12
pkgs/data/fonts/khmeros/default.nix
··· 1 - { fetchzip, lib }: 1 + { lib, stdenvNoCC, fetchurl }: 2 2 3 - let 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "khmeros"; 4 5 version = "5.0"; 5 - in 6 - fetchzip { 7 - name = "khmeros-${version}"; 8 - url = "mirror://debian/pool/main/f/fonts-khmeros/fonts-khmeros_${version}.orig.tar.xz"; 9 - sha256 = "sha256-pS+7RQbGwlBxdCfSVxHmARCAkZrZttwYNlV/CrxqI+w="; 6 + 7 + src = fetchurl { 8 + url = "mirror://debian/pool/main/f/fonts-${pname}/fonts-${pname}_${version}.orig.tar.xz"; 9 + hash = "sha256-gBcM9YHSuhbxvwfQTvywH/5kN921GOyvGtkROcmcBiw="; 10 + }; 11 + 12 + dontBuild = true; 13 + 14 + installPhase = '' 15 + runHook preInstall 10 16 11 - postFetch = '' 12 - unpackDir="$TMPDIR/unpack" 13 - mkdir "$unpackDir" 14 - cd "$unpackDir" 15 - tar xf "$downloadedFile" --strip-components=1 16 17 mkdir -p $out/share/fonts 17 18 cp *.ttf $out/share/fonts 19 + 20 + runHook postInstall 18 21 ''; 19 22 20 23 meta = with lib; {
+16 -9
pkgs/data/fonts/lao/default.nix
··· 1 - { fetchzip, lib }: 1 + { lib, stdenvNoCC, fetchurl }: 2 2 3 - let 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "lao"; 4 5 version = "0.0.20060226"; 5 - in 6 - fetchzip { 7 - name = "lao-${version}"; 8 - url = "mirror://debian/pool/main/f/fonts-lao/fonts-lao_${version}.orig.tar.xz"; 9 - sha256 = "sha256-Ti3DNOgLR5VBJ1mSe8M+qs4UYbCR7qOPgqxRfmHa+jY="; 6 + 7 + src = fetchurl { 8 + url = "mirror://debian/pool/main/f/fonts-${pname}/fonts-${pname}_${version}.orig.tar.xz"; 9 + hash = "sha256-DlgdyfhxxzVkNIL+NGsQ+PRlNkCuG3v2OahkIEYx60o="; 10 + }; 11 + 12 + dontBuild = true; 13 + 14 + installPhase = '' 15 + runHook preInstall 10 16 11 - postFetch = '' 12 17 mkdir -p $out/share/fonts 13 - tar xf $downloadedFile --strip-components=1 -C $out/share/fonts fonts-lao-${version}/Phetsarath_OT.ttf 18 + cp Phetsarath_OT.ttf $out/share/fonts 19 + 20 + runHook postInstall 14 21 ''; 15 22 16 23 meta = with lib; {
+17 -10
pkgs/data/fonts/lklug-sinhala/default.nix
··· 1 - { fetchzip, lib }: 1 + { lib, stdenvNoCC, fetchurl }: 2 2 3 - let 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "lklug-sinhala"; 4 5 version = "0.6"; 5 - in 6 - fetchzip { 7 - name = "lklug-sinhala-${version}"; 8 - url = "mirror://debian/pool/main/f/fonts-lklug-sinhala/fonts-lklug-sinhala_${version}.orig.tar.xz"; 9 - sha256 = "sha256-Fy+QnAajA4yLf/I1vOQll5pRd0ZLfLe8UXq4XMC9qNc="; 6 + 7 + src = fetchurl { 8 + url = "mirror://debian/pool/main/f/fonts-${pname}/fonts-${pname}_${version}.orig.tar.xz"; 9 + hash = "sha256-oPCCa01PMQcCK5fEILgXjrGzoDg+UvxkqK6AgeQaKio="; 10 + }; 11 + 12 + dontBuild = true; 13 + 14 + installPhase = '' 15 + runHook preInstall 16 + 17 + mkdir -p $out/share/fonts/truetype 18 + cp *.ttf $out/share/fonts/truetype 10 19 11 - postFetch = '' 12 - mkdir -p $out/share/fonts 13 - tar xf $downloadedFile --strip-components=1 -C $out/share/fonts fonts-lklug-sinhala-${version}/lklug.ttf 20 + runHook postInstall 14 21 ''; 15 22 16 23 meta = with lib; {
+15 -12
pkgs/data/fonts/lmodern/default.nix
··· 1 - { fetchzip }: 1 + { lib, stdenvNoCC, fetchurl }: 2 2 3 - fetchzip { 4 - name = "lmodern-2.005"; 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "lmodern"; 5 + version = "2.005"; 5 6 6 - url = "mirror://debian/pool/main/l/lmodern/lmodern_2.005.orig.tar.gz"; 7 + src = fetchurl { 8 + url = "mirror://debian/pool/main/l/${pname}/${pname}_${version}.orig.tar.gz"; 9 + hash = "sha256-xlUuZt6rjW0pX4t6PKWAHkkv3PisGCj7ZwatZPAUNxk="; 10 + }; 11 + 12 + dontBuild = true; 7 13 8 - postFetch = '' 9 - tar xzvf $downloadedFile 14 + installPhase = '' 15 + runHook preInstall 10 16 11 17 mkdir -p $out/texmf-dist/ 12 18 mkdir -p $out/share/fonts/ 13 19 14 - cp -r lmodern-2.005/* $out/texmf-dist/ 15 - cp -r lmodern-2.005/fonts/{opentype,type1} $out/share/fonts/ 20 + cp -r * $out/texmf-dist/ 21 + cp -r fonts/{opentype,type1} $out/share/fonts/ 16 22 17 - ln -s -r $out/texmf* $out/share/ 23 + runHook postInstall 18 24 ''; 19 25 20 - sha256 = "sha256-ySdKUt8o5FqmpdnYSzbGJ1f9t8VmKYXqPt53e1/E/FA="; 21 - 22 26 meta = { 23 27 description = "Latin Modern font"; 24 28 }; 25 29 } 26 -
+16 -9
pkgs/data/fonts/luculent/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchurl }: 2 + 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "luculent"; 5 + version = "2.0.0"; 6 + 7 + src = fetchurl { 8 + url = "http://www.eastfarthing.com/${pname}/${pname}.tar.xz"; 9 + hash = "sha256-6NxLnTBnvHmTUTFa2wW0AuKPEbCqzaWQyiFVnF0sBqU="; 10 + }; 11 + 12 + dontBuild = true; 2 13 3 - let version = "2.0.0"; in 4 - fetchzip { 5 - name = "luculent-${version}"; 6 - url = "http://www.eastfarthing.com/luculent/luculent.tar.xz"; 14 + installPhase = '' 15 + runHook preInstall 7 16 8 - postFetch = '' 9 - tar -xJf $downloadedFile --strip-components=1 10 17 mkdir -p $out/share/fonts/truetype 11 18 cp *.ttf $out/share/fonts/truetype 12 - ''; 13 19 14 - sha256 = "1m3g64galwna1xjxb1fczmfplm6c1fn3ra1ln7f0vkm0ah5m4lbv"; 20 + runHook postInstall 21 + ''; 15 22 16 23 meta = with lib; { 17 24 description = "luculent font";
+14 -11
pkgs/data/fonts/lxgw-wenkai/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchurl }: 2 2 3 - fetchzip rec { 3 + stdenvNoCC.mkDerivation rec { 4 4 pname = "lxgw-wenkai"; 5 - version = "1.245.1"; 5 + version = "1.250"; 6 + 7 + src = fetchurl { 8 + url = "https://github.com/lxgw/LxgwWenKai/releases/download/v${version}/${pname}-v${version}.tar.gz"; 9 + hash = "sha256-Nkd0xXYCnR0NZAk/JCxy+zOlxIxD52Px4F9o2L9mgRE="; 10 + }; 11 + 12 + dontBuild = true; 6 13 7 - url = "https://github.com/lxgw/LxgwWenKai/releases/download/v${version}/lxgw-wenkai-v${version}.tar.gz"; 14 + installPhase = '' 15 + runHook preInstall 8 16 9 - postFetch = '' 10 17 mkdir -p $out/share/fonts/truetype 11 - mv $out/*.ttf $out/share/fonts/truetype 18 + mv *.ttf $out/share/fonts/truetype 12 19 13 - shopt -s extglob dotglob 14 - rm -rf $out/!(share) 15 - shopt -u extglob dotglob 20 + runHook postInstall 16 21 ''; 17 - 18 - hash = "sha256-4RQ+aqAZPQH3t6v2KvrNWgYT3J3uMuY34XTuvyLEOeI="; 19 22 20 23 meta = with lib; { 21 24 homepage = "https://lxgw.github.io/";
+15 -10
pkgs/data/fonts/marathi-cursive/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchurl }: 2 2 3 - let 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "marathi-cursive"; 4 5 version = "2.0"; 5 - in fetchzip rec { 6 - name = "marathi-cursive-${version}"; 6 + 7 + src = fetchurl { 8 + url = "https://github.com/MihailJP/MarathiCursive/releases/download/v${version}/MarathiCursive-${version}.tar.xz"; 9 + hash = "sha256-JE9T3UMSYn/JfEWuWHikDJIlt4nZl6GzY98v3vG6di4="; 10 + }; 11 + 12 + dontBuild = true; 7 13 8 - url = "https://github.com/MihailJP/MarathiCursive/releases/download/v${version}/MarathiCursive-${version}.tar.xz"; 14 + installPhase = '' 15 + runHook preInstall 9 16 10 - postFetch = '' 11 - tar -xJf $downloadedFile --strip-components=1 12 17 install -m444 -Dt $out/share/fonts/marathi-cursive *.otf *.ttf 13 - install -m444 -Dt $out/share/doc/${name} README *.txt 14 - ''; 18 + install -m444 -Dt $out/share/doc/${pname}-${version} README *.txt 15 19 16 - sha256 = "17pj60ajnjghxhxka8a046mz6vfwr79wnby7xd6pg5hgncin2hgg"; 20 + runHook postInstall 21 + ''; 17 22 18 23 meta = with lib; { 19 24 homepage = "https://github.com/MihailJP/MarathiCursive";
+17 -12
pkgs/data/fonts/medio/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchzip }: 2 2 3 3 let 4 4 majorVersion = "0"; 5 5 minorVersion = "200"; 6 + in 7 + stdenvNoCC.mkDerivation (self: { 6 8 pname = "medio"; 7 - in 9 + version = "${majorVersion}.${minorVersion}"; 10 + 11 + src = fetchzip { 12 + url = "https://dotcolon.net/download/fonts/${self.pname}_${majorVersion}${minorVersion}.zip"; 13 + hash = "sha256-S+CcwD4zGVk7cIFD6K4NnpE/0mrJq4RnDJC576rhcLQ="; 14 + stripRoot = false; 15 + }; 8 16 9 - fetchzip { 10 - name = "${pname}-font-${majorVersion}.${minorVersion}"; 17 + installPhase = '' 18 + runHook preInstall 11 19 12 - url = "http://dotcolon.net/DL/font/${pname}.zip"; 13 - sha256 = "0gxcmhjlsh2pzsmj78vw4v935ax7hfk533ddlhfhfma52zyxyh7x"; 20 + install -D -m444 -t $out/share/fonts/opentype $src/*.otf 14 21 15 - postFetch = '' 16 - mkdir -p $out/share/fonts/opentype/${pname} 17 - unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype/${pname} 22 + runHook postInstall 18 23 ''; 19 24 20 25 meta = with lib; { 21 - homepage = "http://dotcolon.net/font/${pname}/"; 26 + homepage = "http://dotcolon.net/font/${self.pname}/"; 22 27 description = "Serif font designed by Sora Sagano"; 23 28 longDescription = '' 24 29 Medio is a serif font designed by Sora Sagano, based roughly ··· 26 31 but with hairline serifs in the style of a Didone. 27 32 ''; 28 33 platforms = platforms.all; 29 - maintainers = with maintainers; [ leenaars ]; 34 + maintainers = with maintainers; [ leenaars minijackson ]; 30 35 license = licenses.cc0; 31 36 }; 32 - } 37 + })
+32
pkgs/data/fonts/melete/default.nix
··· 1 + { lib, stdenvNoCC, fetchzip }: 2 + 3 + let 4 + majorVersion = "0"; 5 + minorVersion = "200"; 6 + in 7 + stdenvNoCC.mkDerivation (self: { 8 + pname = "melete"; 9 + version = "${majorVersion}.${minorVersion}"; 10 + 11 + src = fetchzip { 12 + url = "https://dotcolon.net/download/fonts/${self.pname}_${majorVersion}${minorVersion}.zip"; 13 + hash = "sha256-y1xtNM1Oy92gOvbr9J71XNxb1JeTzOgxKms3G2YHK00="; 14 + stripRoot = false; 15 + }; 16 + 17 + installPhase = '' 18 + runHook preInstall 19 + 20 + install -D -m444 -t $out/share/fonts/opentype $src/*.otf 21 + 22 + runHook postInstall 23 + ''; 24 + 25 + meta = with lib; { 26 + homepage = "http://dotcolon.net/font/${self.pname}/"; 27 + description = "A headline typeface that could be used as a movie title"; 28 + platforms = platforms.all; 29 + maintainers = with maintainers; [ minijackson ]; 30 + license = licenses.ofl; 31 + }; 32 + })
+32
pkgs/data/fonts/nacelle/default.nix
··· 1 + { lib, stdenvNoCC, fetchzip }: 2 + 3 + let 4 + majorVersion = "1"; 5 + minorVersion = "00"; 6 + in 7 + stdenvNoCC.mkDerivation (self: { 8 + pname = "nacelle"; 9 + version = "${majorVersion}.${minorVersion}"; 10 + 11 + src = fetchzip { 12 + url = "https://dotcolon.net/download/fonts/${self.pname}_${majorVersion}${minorVersion}.zip"; 13 + hash = "sha256-e4QsPiyfWEAYHWdwR3CkGc2UzuA3hZPYYlWtIubY0Oo="; 14 + stripRoot = false; 15 + }; 16 + 17 + installPhase = '' 18 + runHook preInstall 19 + 20 + install -D -m444 -t $out/share/fonts/opentype $src/*.otf 21 + 22 + runHook postInstall 23 + ''; 24 + 25 + meta = with lib; { 26 + homepage = "http://dotcolon.net/font/${self.pname}/"; 27 + description = "A improved version of the Aileron font"; 28 + platforms = platforms.all; 29 + maintainers = with maintainers; [ minijackson ]; 30 + license = licenses.ofl; 31 + }; 32 + })
+15 -12
pkgs/data/fonts/nanum/default.nix
··· 1 - { fetchzip, lib }: 1 + { lib, stdenvNoCC, fetchurl }: 2 2 3 - let 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "nanum"; 4 5 version = "20170925"; 5 - in 6 - fetchzip { 7 - name = "nanum-${version}"; 8 - url = "mirror://ubuntu/pool/universe/f/fonts-nanum/fonts-nanum_${version}.orig.tar.xz"; 9 - sha256 = "sha256-lSTeQEuMmlQxiQqrx9tNScifE8nMOUDJF3lCfoAFIJk="; 6 + 7 + src = fetchurl { 8 + url = "mirror://ubuntu/pool/universe/f/fonts-${pname}/fonts-${pname}_${version}.orig.tar.xz"; 9 + hash = "sha256-GlVXH9YUU3wHMkNoz5miBv7N2oUEbwUXlcVoElQ9++4="; 10 + }; 11 + 12 + dontBuild = true; 13 + 14 + installPhase = '' 15 + runHook preInstall 10 16 11 - postFetch = '' 12 - unpackDir="$TMPDIR/unpack" 13 - mkdir "$unpackDir" 14 - cd "$unpackDir" 15 - tar xf "$downloadedFile" --strip-components=1 16 17 mkdir -p $out/share/fonts 17 18 cp *.ttf $out/share/fonts 19 + 20 + runHook postInstall 18 21 ''; 19 22 20 23 meta = with lib; {
+16 -11
pkgs/data/fonts/oldsindhi/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchurl }: 2 2 3 - let 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "oldsindhi"; 4 5 version = "1.0"; 5 - in fetchzip rec { 6 - name = "oldsindhi-${version}"; 6 + 7 + src = fetchurl { 8 + url = "https://github.com/MihailJP/${pname}/releases/download/v${version}/OldSindhi-${version}.tar.xz"; 9 + hash = "sha256-jOcl+mo6CJ9Lnn3nAUiXXHCJssovVgLoPrbGxj4uzQs="; 10 + }; 11 + 12 + dontBuild = true; 7 13 8 - url = "https://github.com/MihailJP/oldsindhi/releases/download/v${version}/OldSindhi-${version}.tar.xz"; 14 + installPhase = '' 15 + runHook preInstall 9 16 10 - postFetch = '' 11 - tar -xJf $downloadedFile --strip-components=1 12 17 install -m444 -Dt $out/share/fonts/truetype *.ttf 13 - install -m444 -Dt $out/share/doc/${name} README *.txt 18 + install -m444 -Dt $out/share/doc/${pname}-${version} README *.txt 19 + 20 + runHook postInstall 14 21 ''; 15 - 16 - sha256 = "03c483vbrwz2fpdfbys42fmik9788zxfmjmc4fgq4s2d0mraa0j1"; 17 22 18 23 meta = with lib; { 19 24 homepage = "https://github.com/MihailJP/oldsindhi"; 20 25 description = "Free Sindhi Khudabadi font"; 21 26 maintainers = with maintainers; [ mathnerd314 ]; 22 - license = with licenses; [mit ofl]; 27 + license = with licenses; [ mit ofl ]; 23 28 platforms = platforms.all; 24 29 }; 25 30 }
+18 -13
pkgs/data/fonts/penna/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchzip }: 2 2 3 3 let 4 4 majorVersion = "0"; 5 - minorVersion = "10"; 6 - pname = "penna"; 5 + minorVersion = "100"; 7 6 in 7 + stdenvNoCC.mkDerivation (self: { 8 + pname = "penna"; 9 + version = "${majorVersion}.${minorVersion}"; 8 10 9 - fetchzip { 10 - name = "${pname}-font-${majorVersion}.${minorVersion}"; 11 + src = fetchzip { 12 + url = "https://dotcolon.net/download/fonts/${self.pname}_${majorVersion}${minorVersion}.zip"; 13 + hash = "sha256-fmCJnEaoUGdW9JK3J7JSm5D4qOMRW7qVKPgVE7uCH5w="; 14 + stripRoot = false; 15 + }; 16 + 17 + installPhase = '' 18 + runHook preInstall 11 19 12 - url = "http://dotcolon.net/DL/font/${pname}.zip"; 13 - sha256 = "0hk15yndm56l6rbdykpkry2flffx0567mgjcqcnsx1iyzwwla5km"; 20 + install -D -m444 -t $out/share/fonts/opentype $src/*.otf 14 21 15 - postFetch = '' 16 - mkdir -p $out/share/fonts/opentype/${pname} 17 - unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype/${pname} 22 + runHook postInstall 18 23 ''; 19 24 20 25 meta = with lib; { 21 - homepage = "http://dotcolon.net/font/${pname}/"; 26 + homepage = "http://dotcolon.net/font/${self.pname}/"; 22 27 description = "Geometric sans serif designed by Sora Sagano"; 23 28 longDescription = '' 24 29 Penna is a geometric sans serif designed by Sora Sagano, ··· 26 31 with a small x-height. 27 32 ''; 28 33 platforms = platforms.all; 29 - maintainers = with maintainers; [ leenaars ]; 34 + maintainers = with maintainers; [ leenaars minijackson ]; 30 35 license = licenses.cc0; 31 36 }; 32 - } 37 + })
+17 -12
pkgs/data/fonts/route159/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchzip }: 2 2 3 3 let 4 4 majorVersion = "1"; 5 5 minorVersion = "10"; 6 + in 7 + stdenvNoCC.mkDerivation (self: { 6 8 pname = "route159"; 7 - in 9 + version = "${majorVersion}.${minorVersion}"; 10 + 11 + src = fetchzip { 12 + url = "https://dotcolon.net/download/fonts/${self.pname}_${majorVersion}${minorVersion}.zip"; 13 + hash = "sha256-1InyBW1LGbp/IU/ql9mvT14W3MTxJdWThFwRH6VHpTU="; 14 + stripRoot = false; 15 + }; 8 16 9 - fetchzip { 10 - name = "${pname}-font-${majorVersion}.${minorVersion}"; 17 + installPhase = '' 18 + runHook preInstall 11 19 12 - url = "http://dotcolon.net/DL/font/${pname}_${majorVersion}${minorVersion}.zip"; 13 - sha256 = "1nv5csg73arvvwpac7ylh4j9n0s3qp79rbv2s4jvs2bf6gqhsq7h"; 20 + install -D -m444 -t $out/share/fonts/opentype $src/*.otf 14 21 15 - postFetch = '' 16 - mkdir -p $out/share/fonts/opentype/${pname} 17 - unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype/${pname} 22 + runHook postInstall 18 23 ''; 19 24 20 25 meta = with lib; { 21 - homepage = "http://dotcolon.net/font/${pname}/"; 26 + homepage = "http://dotcolon.net/font/${self.pname}/"; 22 27 description = "A weighted sans serif font"; 23 28 platforms = platforms.all; 24 - maintainers = with maintainers; [ leenaars ]; 29 + maintainers = with maintainers; [ leenaars minijackson ]; 25 30 license = licenses.ofl; 26 31 }; 27 - } 32 + })
+17 -12
pkgs/data/fonts/seshat/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchzip }: 2 2 3 3 let 4 4 majorVersion = "0"; 5 5 minorVersion = "100"; 6 + in 7 + stdenvNoCC.mkDerivation (self: { 6 8 pname = "seshat"; 7 - in 9 + version = "${majorVersion}.${minorVersion}"; 10 + 11 + src = fetchzip { 12 + url = "https://dotcolon.net/download/fonts/${self.pname}_${majorVersion}${minorVersion}.zip"; 13 + hash = "sha256-XgprDhzAbcTzZw2QOwpCnzusYheYmSlM+ApU+Y0wO2Q="; 14 + stripRoot = false; 15 + }; 8 16 9 - fetchzip { 10 - name = "${pname}-font-${majorVersion}.${minorVersion}"; 17 + installPhase = '' 18 + runHook preInstall 11 19 12 - url = "http://dotcolon.net/DL/font/${pname}.zip"; 13 - sha256 = "1zzgc2d0jrris92p3irmxjhdq8aj99alz0z7dlz25qf37lcilrir"; 20 + install -D -m444 -t $out/share/fonts/opentype $src/*.otf 14 21 15 - postFetch = '' 16 - mkdir -p $out/share/fonts/opentype/${pname} 17 - unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype/${pname} 22 + runHook postInstall 18 23 ''; 19 24 20 25 meta = with lib; { 21 - homepage = "http://dotcolon.net/font/${pname}/"; 26 + homepage = "http://dotcolon.net/font/${self.pname}/"; 22 27 description = "Roman body font designed for main text by Sora Sagano"; 23 28 longDescription = '' 24 29 Seshat is a Roman body font designed for the main text. By ··· 31 36 It incorporates symbols and ligatures used in the European region. 32 37 ''; 33 38 platforms = platforms.all; 34 - maintainers = with maintainers; [ leenaars ]; 39 + maintainers = with maintainers; [ leenaars minijackson ]; 35 40 license = licenses.cc0; 36 41 }; 37 - } 42 + })
+15 -12
pkgs/data/fonts/takao/default.nix
··· 1 - { fetchzip, lib }: 1 + { lib, stdenvNoCC, fetchurl }: 2 2 3 - let 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "takao"; 4 5 version = "00303.01"; 5 - in 6 - fetchzip { 7 - name = "takao-${version}"; 8 - url = "mirror://ubuntu/pool/universe/f/fonts-takao/fonts-takao_${version}.orig.tar.gz"; 9 - sha256 = "sha256-TlPq3iIv8vHlxYu5dkX/Lf6ediYKQaQ5uMbFvypQM/w="; 6 + 7 + src = fetchurl { 8 + url = "mirror://ubuntu/pool/universe/f/fonts-${pname}/fonts-${pname}_${version}.orig.tar.gz"; 9 + hash = "sha256-0wjHNv1yStp0q9D0WfwjgUYoUKcCrXA5jFO8PEVgq5k="; 10 + }; 11 + 12 + dontBuild = true; 13 + 14 + installPhase = '' 15 + runHook preInstall 10 16 11 - postFetch = '' 12 - unpackDir="$TMPDIR/unpack" 13 - mkdir "$unpackDir" 14 - cd "$unpackDir" 15 - tar xf "$downloadedFile" --strip-components=1 16 17 mkdir -p $out/share/fonts 17 18 cp *.ttf $out/share/fonts 19 + 20 + runHook postInstall 18 21 ''; 19 22 20 23 meta = with lib; {
+17 -12
pkgs/data/fonts/tenderness/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchzip }: 2 2 3 3 let 4 4 majorVersion = "0"; 5 5 minorVersion = "601"; 6 + in 7 + stdenvNoCC.mkDerivation (self: { 6 8 pname = "tenderness"; 7 - in 9 + version = "${majorVersion}.${minorVersion}"; 10 + 11 + src = fetchzip { 12 + url = "https://dotcolon.net/download/fonts/${self.pname}_${majorVersion}${minorVersion}.zip"; 13 + hash = "sha256-bwJKW+rY7/r2pBCSA6HYlaRMsI/U8UdW2vV4tmYuJww="; 14 + stripRoot = false; 15 + }; 8 16 9 - fetchzip { 10 - name = "${pname}-font-${majorVersion}.${minorVersion}"; 17 + installPhase = '' 18 + runHook preInstall 11 19 12 - url = "http://dotcolon.net/DL/font/${pname}_${majorVersion}${minorVersion}.zip"; 13 - sha256 = "0d88l5mzq0k63zsmb8d5w3hfqxy04vpv4j0j8nmj1xv6kikhhybh"; 20 + install -D -m444 -t $out/share/fonts/opentype $src/*.otf 14 21 15 - postFetch = '' 16 - mkdir -p $out/share/fonts/opentype/${pname} 17 - unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype/${pname} 22 + runHook postInstall 18 23 ''; 19 24 20 25 meta = with lib; { 21 - homepage = "http://dotcolon.net/font/${pname}/"; 26 + homepage = "http://dotcolon.net/font/${self.pname}/"; 22 27 description = "Serif font designed by Sora Sagano with old-style figures"; 23 28 platforms = platforms.all; 24 - maintainers = with maintainers; [ leenaars ]; 29 + maintainers = with maintainers; [ leenaars minijackson ]; 25 30 license = licenses.ofl; 26 31 }; 27 - } 32 + })
+16 -9
pkgs/data/fonts/tibetan-machine/default.nix
··· 1 - { fetchzip, lib }: 1 + { lib, stdenvNoCC, fetchurl }: 2 2 3 - let 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "tibetan-machine"; 4 5 version = "1.901b"; 5 - in 6 - fetchzip { 7 - name = "tibetan-machine-${version}"; 8 - url = "mirror://debian/pool/main/f/fonts-tibetan-machine/fonts-tibetan-machine_${version}.orig.tar.bz2"; 9 - sha256 = "sha256-A+RgpFLsP4iTzl0PMRHaNzWGbDR5Qa38lRegNJ96ULo="; 6 + 7 + src = fetchurl { 8 + url = "mirror://debian/pool/main/f/fonts-${pname}/fonts-${pname}_${version}.orig.tar.bz2"; 9 + hash = "sha256-c/1Sgv7xKHpsJGjY9ZY2qOJHShGHL1robvphFNJOt5w="; 10 + }; 11 + 12 + dontBuild = true; 13 + 14 + installPhase = '' 15 + runHook preInstall 10 16 11 - postFetch = '' 12 17 mkdir -p $out/share/fonts 13 - tar xf $downloadedFile --strip-components=1 -C $out/share/fonts ttf-tmuni-${version}/TibMachUni-${version}.ttf 18 + cp *.ttf $out/share/fonts 19 + 20 + runHook postInstall 14 21 ''; 15 22 16 23 meta = with lib; {
+15 -12
pkgs/data/fonts/ttf-bitstream-vera/default.nix
··· 1 - { lib, fetchzip }: 2 - let 1 + { lib, stdenvNoCC, fetchurl }: 2 + 3 + stdenvNoCC.mkDerivation rec { 3 4 pname = "ttf-bitstream-vera"; 4 5 version = "1.10"; 5 - in 6 - fetchzip rec { 7 - name = "${pname}-${version}"; 6 + 7 + src = fetchurl { 8 + url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.bz2"; 9 + hash = "sha256-21sn33u7MYA269t1rNPpjxvW62YI+3CmfUeM0kPReNw="; 10 + }; 11 + 12 + dontBuild = true; 8 13 9 - url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${name}.tar.bz2"; 14 + installPhase = '' 15 + runHook preInstall 10 16 11 - postFetch = '' 12 - tar -xjf $downloadedFile --strip-components=1 13 17 install -m444 -Dt $out/share/fonts/truetype *.ttf 18 + 19 + runHook postInstall 14 20 ''; 15 21 16 - sha256 = "179hal4yi3367jg8rsvqx6h2w4s0kn9zzrv8c47sslyg28g39s4m"; 17 - 18 - meta = { 19 - }; 22 + meta = { }; 20 23 }
+15 -9
pkgs/data/fonts/unfonts-core/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchurl }: 2 2 3 - let 3 + stdenvNoCC.mkDerivation rec { 4 4 pname = "unfonts-core"; 5 5 version = "1.0.2-080608"; 6 - in fetchzip { 7 - name = "${pname}-${version}"; 8 - url = "https://kldp.net/unfonts/release/2607-un-fonts-core-${version}.tar.gz"; 9 - hash = "sha256-k9C7d/SbVLWFzRnDWpOIMtY6cAEIcaLcbxQAqjwuWds="; 10 6 11 - postFetch = '' 12 - tar -xzf $downloadedFile --strip-components=1 7 + src = fetchurl { 8 + url = "https://kldp.net/unfonts/release/2607-un-fonts-core-${version}.tar.gz"; 9 + hash = "sha256-OwpydPmqt+jw8ZOMAacOFYF2bVG0lLoUVoPzesVXkY4="; 10 + }; 11 + 12 + dontBuild = true; 13 + 14 + installPhase = '' 15 + runHook preInstall 16 + 13 17 install -m444 -Dt $out/share/fonts/truetype *.ttf 18 + 19 + runHook postInstall 14 20 ''; 15 21 16 22 meta = with lib; { ··· 20 26 The Un-fonts come from the HLaTeX as type1 fonts in 1998 by Koaunghi Un, he made type1 fonts to use with Korean TeX (HLaTeX) in the late 1990's and released it under the GPL license. 21 27 22 28 They were converted to TrueType with the FontForge (PfaEdit) by Won-kyu Park in 2003. 23 - ''; 29 + ''; 24 30 license = licenses.gpl2; 25 31 platforms = platforms.all; 26 32 maintainers = [ maintainers.ehmry ];
+15 -8
pkgs/data/fonts/vdrsymbols/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchurl }: 2 + 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "vdrsymbols"; 5 + version = "20100612"; 2 6 3 - fetchzip { 4 - name = "vdrsymbols-20100612"; 7 + src = fetchurl { 8 + url = "http://andreas.vdr-developer.org/fonts/download/${pname}-ttf-${version}.tgz"; 9 + hash = "sha256-YxB+JcDkta5are+OQyP/WKDL0vllgn0m26bU9mQ3C/Q="; 10 + }; 11 + 12 + dontBuild = true; 5 13 6 - url = "http://andreas.vdr-developer.org/fonts/download/vdrsymbols-ttf-20100612.tgz"; 14 + installPhase = '' 15 + runHook preInstall 7 16 8 - sha256 = "0wpxns8zqic98c84j18dr4zmj092v07yq07vwwgzblr0rw9n6gzr"; 17 + install -Dm444 -t "$out/share/fonts/truetype" *.ttf 9 18 10 - postFetch = '' 11 - tar xvzf "$downloadedFile" 12 - install -Dm444 -t "$out/share/fonts/truetype" */*.ttf 19 + runHook postInstall 13 20 ''; 14 21 15 22 meta = with lib; {
+20 -14
pkgs/data/fonts/vegur/default.nix
··· 1 - { lib, buildPackages, fetchzip }: 1 + { lib, stdenvNoCC, fetchzip }: 2 2 3 3 let 4 - version = "0.701"; 5 - in fetchzip { 6 - name = "vegur-font-${version}"; 4 + majorVersion = "0"; 5 + minorVersion = "701"; 6 + in 7 + stdenvNoCC.mkDerivation (self: { 8 + pname = "vegur"; 9 + version = "${majorVersion}.${minorVersion}"; 7 10 8 - # Upstream doesn't version their URLs. 9 - # http://dotcolon.net/font/vegur/ → http://dotcolon.net/DL/font/vegur.zip 10 - url = "http://download.opensuse.org/repositories/M17N:/fonts/SLE_12_SP3/src/dotcolon-vegur-fonts-0.701-1.4.src.rpm"; 11 + src = fetchzip { 12 + url = "https://dotcolon.net/download/fonts/${self.pname}_${majorVersion}${minorVersion}.zip"; 13 + hash = "sha256-sGb3mEb3g15ZiVCxEfAanly8zMUopLOOjw8W4qbXLPA="; 14 + stripRoot = false; 15 + }; 16 + 17 + installPhase = '' 18 + runHook preInstall 11 19 12 - postFetch = '' 13 - ${buildPackages.rpmextract}/bin/rpmextract $downloadedFile 14 - unzip vegur.zip 15 - install -m444 -Dt $out/share/fonts/Vegur *.otf 20 + install -D -m444 -t $out/share/fonts/opentype $src/*.otf 21 + 22 + runHook postInstall 16 23 ''; 17 - sha256 = "0iisi2scq72lyj7pc1f36fhfjnm676n5byl4zaavhbxpdrbc6d1v"; 18 24 19 25 meta = with lib; { 20 26 homepage = "http://dotcolon.net/font/vegur/"; 21 27 description = "A humanist sans serif font"; 22 28 platforms = platforms.all; 23 - maintainers = [ maintainers.samueldr ]; 29 + maintainers = with maintainers; [ minijackson samueldr ]; 24 30 license = licenses.cc0; 25 31 }; 26 - } 32 + })
+15 -9
pkgs/data/fonts/wqy-microhei/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchurl }: 2 2 3 - fetchzip rec { 4 - name = "wqy-microhei-0.2.0-beta"; 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "wqy-microhei"; 5 + version = "0.2.0"; 5 6 6 - url = "mirror://sourceforge/wqy/${name}.tar.gz"; 7 + src = fetchurl { 8 + url = "mirror://sourceforge/wqy/${pname}-${version}-beta.tar.gz"; 9 + hash = "sha256-KAKsgCOqNqZupudEWFTjoHjTd///QhaTQb0jeHH3IT4="; 10 + }; 7 11 8 - postFetch = '' 9 - tar -xzf $downloadedFile --strip-components=1 12 + dontBuild = true; 13 + 14 + installPhase = '' 15 + runHook preInstall 16 + 10 17 install -Dm644 wqy-microhei.ttc $out/share/fonts/wqy-microhei.ttc 18 + 19 + runHook postInstall 11 20 ''; 12 - 13 - sha256 = "0i5jh7mkp371fxqmsvn7say075r641yl4hq26isjyrqvb8cv92a9"; 14 21 15 22 meta = { 16 23 description = "A (mainly) Chinese Unicode font"; ··· 20 27 platforms = lib.platforms.all; 21 28 }; 22 29 } 23 -
+14 -9
pkgs/data/fonts/wqy-zenhei/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchurl }: 2 2 3 - let 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "wqy-zenhei"; 4 5 version = "0.9.45"; 5 - in fetchzip rec { 6 - name = "wqy-zenhei-${version}"; 6 + 7 + src = fetchurl { 8 + url = "mirror://sourceforge/wqy/${pname}-${version}.tar.gz"; 9 + hash = "sha256-5LfjBkdb+UJ9F1dXjw5FKJMMhMROqj8WfUxC8RDuddY="; 10 + }; 11 + 12 + dontBuild = true; 7 13 8 - url = "mirror://sourceforge/wqy/${name}.tar.gz"; 14 + installPhase = '' 15 + runHook preInstall 9 16 10 - postFetch = '' 11 - tar -xzf $downloadedFile --strip-components=1 12 17 mkdir -p $out/share/fonts 13 18 install -m644 *.ttc $out/share/fonts/ 19 + 20 + runHook postInstall 14 21 ''; 15 - 16 - sha256 = "0hbjq6afcd63nsyjzrjf8fmm7pn70jcly7fjzjw23v36ffi0g255"; 17 22 18 23 meta = { 19 24 description = "A (mainly) Chinese Unicode font";
+1 -1
pkgs/development/compilers/go-jsonnet/default.nix
··· 11 11 hash = "sha256-FgQYnas0qkIedRAA8ApZXLzEylg6PS6+8zzl7j+yOeI="; 12 12 }; 13 13 14 - vendorSha256 = "sha256-j1fTOUpLx34TgzW94A/BctLrg9XoTtb3cBizhVJoEEI="; 14 + vendorHash = "sha256-j1fTOUpLx34TgzW94A/BctLrg9XoTtb3cBizhVJoEEI="; 15 15 16 16 patches = [ 17 17 # See https://github.com/google/go-jsonnet/issues/653.
+2 -2
pkgs/development/libraries/mdds/default.nix
··· 8 8 9 9 stdenv.mkDerivation (finalAttrs: { 10 10 pname = "mdds"; 11 - version = "2.0.3"; 11 + version = "2.1.0"; 12 12 13 13 src = fetchFromGitLab { 14 14 owner = "mdds"; 15 15 repo = "mdds"; 16 16 rev = finalAttrs.version; 17 - hash = "sha256-Y9uBJKM34UTEj/3c1w69QHhvwFcMNlAohEco0O0B+xI="; 17 + hash = "sha256-RZ2wGwle4raWlogc5X+VEeriPGS0Nqs7CWGENFEotvs="; 18 18 }; 19 19 20 20 nativeBuildInputs = [ autoreconfHook ];
+11 -11
pkgs/development/libraries/raft-canonical/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "raft-canonical"; 5 - version = "0.11.2"; 5 + version = "0.16.0"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "canonical"; 9 9 repo = "raft"; 10 - rev = "v${version}"; 11 - sha256 = "050dwy34jh8dihfwfm0r1by2i3sy9crapipp9idw32idm79y4izb"; 10 + rev = "refs/tags/v${version}"; 11 + hash = "sha256-qDLAEhknY+BB83OC6tfi7w/ZY/K492J5ZglLNUoBwbc="; 12 12 }; 13 13 14 14 nativeBuildInputs = [ autoreconfHook file pkg-config ]; ··· 16 16 17 17 enableParallelBuilding = true; 18 18 19 - # Ignore broken test, likely not causing huge breakage 20 - # (https://github.com/canonical/raft/issues/292) 21 - postPatch = '' 22 - substituteInPlace test/integration/test_uv_tcp_connect.c --replace \ 23 - "TEST(tcp_connect, closeDuringHandshake, setUp, tearDownDeps, 0, NULL)" \ 24 - "TEST(tcp_connect, closeDuringHandshake, setUp, tearDownDeps, MUNIT_TEST_OPTION_TODO, NULL)" 25 - ''; 19 + patches = [ 20 + # network tests either hang indefinitely, or fail outright 21 + ./disable-net-tests.patch 22 + 23 + # missing dir check is flaky 24 + ./disable-missing-dir-test.patch 25 + ]; 26 26 27 27 preConfigure = '' 28 28 substituteInPlace configure --replace /usr/bin/ " " ··· 46 46 homepage = "https://github.com/canonical/raft"; 47 47 license = licenses.asl20; 48 48 platforms = platforms.linux; 49 - maintainers = with maintainers; [ wucke13 ]; 49 + maintainers = with maintainers; [ wucke13 adamcstephens ]; 50 50 }; 51 51 }
+23
pkgs/development/libraries/raft-canonical/disable-missing-dir-test.patch
··· 1 + diff --git a/test/unit/test_uv_fs.c b/test/unit/test_uv_fs.c 2 + index 638c39c..c8758d2 100644 3 + --- a/test/unit/test_uv_fs.c 4 + +++ b/test/unit/test_uv_fs.c 5 + @@ -40,18 +40,6 @@ TEST(UvFsCheckDir, exists, DirSetUp, DirTearDown, 0, NULL) 6 + return MUNIT_OK; 7 + } 8 + 9 + -/* If the directory doesn't exist, it an error is returned. */ 10 + -TEST(UvFsCheckDir, doesNotExist, DirSetUp, DirTearDown, 0, NULL) 11 + -{ 12 + - const char *parent = data; 13 + - char errmsg[RAFT_ERRMSG_BUF_SIZE]; 14 + - char dir[128]; 15 + - sprintf(errmsg, "%s/sub", parent); 16 + - sprintf(errmsg, "directory '%s' does not exist", dir); 17 + - CHECK_DIR_ERROR(dir, RAFT_NOTFOUND, errmsg); 18 + - return MUNIT_OK; 19 + -} 20 + - 21 + /* If the process can't access the directory, an error is returned. */ 22 + TEST(UvFsCheckDir, permissionDenied, NULL, NULL, 0, NULL) 23 + {
+16
pkgs/development/libraries/raft-canonical/disable-net-tests.patch
··· 1 + diff --git a/Makefile.am b/Makefile.am 2 + index 2137932..93abdb6 100644 3 + --- a/Makefile.am 4 + +++ b/Makefile.am 5 + @@ -198,11 +198,7 @@ test_integration_uv_SOURCES = \ 6 + test/integration/test_uv_bootstrap.c \ 7 + test/integration/test_uv_load.c \ 8 + test/integration/test_uv_recover.c \ 9 + - test/integration/test_uv_recv.c \ 10 + - test/integration/test_uv_send.c \ 11 + test/integration/test_uv_set_term.c \ 12 + - test/integration/test_uv_tcp_connect.c \ 13 + - test/integration/test_uv_tcp_listen.c \ 14 + test/integration/test_uv_snapshot_put.c \ 15 + test/integration/test_uv_truncate.c \ 16 + test/integration/test_uv_work.c
+2 -12
pkgs/development/python-modules/aio-geojson-client/default.nix
··· 3 3 , aresponses 4 4 , buildPythonPackage 5 5 , fetchFromGitHub 6 - , fetchpatch 7 6 , geojson 8 7 , haversine 9 8 , mock ··· 14 13 15 14 buildPythonPackage rec { 16 15 pname = "aio-geojson-client"; 17 - version = "0.17"; 16 + version = "0.18"; 18 17 format = "setuptools"; 19 18 20 19 disabled = pythonOlder "3.7"; ··· 23 22 owner = "exxamalte"; 24 23 repo = "python-aio-geojson-client"; 25 24 rev = "refs/tags/v${version}"; 26 - hash = "sha256-5GiQgtbvYeleovFbXO2vlr2XPsDIWZiElM64O+urMcY="; 25 + hash = "sha256-nvfy1XLiMjyCiQo/YuzRbDtxGmAUAiq8UJwS/SkN3oM="; 27 26 }; 28 - 29 - patches = [ 30 - # Remove asynctest, https://github.com/exxamalte/python-aio-geojson-client/pull/35 31 - (fetchpatch { 32 - name = "remove-asynctest.patch"; 33 - url = "https://github.com/exxamalte/python-aio-geojson-client/commit/bf617d9898a99b026b43b28bd87bb6479f518c0a.patch"; 34 - hash = "sha256-uomH3LCaklfGURDs8SsnvNyHkubbe+5dleLEjW+I+M4="; 35 - }) 36 - ]; 37 27 38 28 propagatedBuildInputs = [ 39 29 aiohttp
+2 -1
pkgs/development/python-modules/aio-geojson-generic-client/default.nix
··· 21 21 src = fetchFromGitHub { 22 22 owner = "exxamalte"; 23 23 repo = "python-aio-geojson-generic-client"; 24 - rev = "v${version}"; 24 + rev = "refs/tags/v${version}"; 25 25 hash = "sha256-6Gc3SRRQiISBZnCg7a+rCQHR4NQipBHmG5gWZZXIsxY="; 26 26 }; 27 27 ··· 45 45 meta = with lib; { 46 46 description = "Python library for accessing GeoJSON feeds"; 47 47 homepage = "https://github.com/exxamalte/python-aio-geojson-generic-client"; 48 + changelog = "https://github.com/exxamalte/python-aio-geojson-generic-client/blob/v${version}/CHANGELOG.md"; 48 49 license = with licenses; [ asl20 ]; 49 50 maintainers = with maintainers; [ fab ]; 50 51 };
+5 -4
pkgs/development/python-modules/aio-geojson-geonetnz-quakes/default.nix
··· 12 12 13 13 buildPythonPackage rec { 14 14 pname = "aio-geojson-geonetnz-quakes"; 15 - version = "0.14"; 15 + version = "0.15"; 16 16 format = "setuptools"; 17 17 18 18 disabled = pythonOlder "3.7"; ··· 20 20 src = fetchFromGitHub { 21 21 owner = "exxamalte"; 22 22 repo = "python-aio-geojson-geonetnz-quakes"; 23 - rev = "v${version}"; 24 - hash = "sha256-T3vQodb0/3YEjsyHLSI8DBKK75J8hvsaBqyQI7GkT3U="; 23 + rev = "refs/tags/v${version}"; 24 + hash = "sha256-/EPPEGLtiZBorZMnVg0NqwnHCbCXyZzz4449MzAYQx8="; 25 25 }; 26 26 27 27 propagatedBuildInputs = [ ··· 42 42 43 43 meta = with lib; { 44 44 description = "Python module for accessing the GeoNet NZ Quakes GeoJSON feeds"; 45 - homepage = "https://github.com/exxamalte/pythonaio-geojson-geonetnz-quakes"; 45 + homepage = "https://github.com/exxamalte/python-aio-geojson-geonetnz-quakes"; 46 + changelog = "https://github.com/exxamalte/python-aio-geojson-geonetnz-quakes/blob/v${version}/CHANGELOG.md"; 46 47 license = with licenses; [ asl20 ]; 47 48 maintainers = with maintainers; [ fab ]; 48 49 };
+2 -12
pkgs/development/python-modules/aio-geojson-geonetnz-volcano/default.nix
··· 5 5 , mock 6 6 , buildPythonPackage 7 7 , fetchFromGitHub 8 - , fetchpatch 9 8 , pytest-asyncio 10 9 , pytestCheckHook 11 10 , pytz ··· 14 13 15 14 buildPythonPackage rec { 16 15 pname = "aio-geojson-geonetnz-volcano"; 17 - version = "0.7"; 16 + version = "0.8"; 18 17 format = "setuptools"; 19 18 20 19 disabled = pythonOlder "3.7"; ··· 23 22 owner = "exxamalte"; 24 23 repo = "python-aio-geojson-geonetnz-volcano"; 25 24 rev = "refs/tags/v${version}"; 26 - sha256 = "sha256-2iVUHMk4ydmGmmGS6lJV5pvxJHyP9bRSeh/dOXbquE0="; 25 + sha256 = "sha256-wJVFjy6QgYb6GX9pZTylYFvCRWmD2lAFZKnodsa8Yqo="; 27 26 }; 28 - 29 - patches = [ 30 - # Remove asynctest, https://github.com/exxamalte/python-aio-geojson-geonetnz-volcano/pull/18 31 - (fetchpatch { 32 - name = "remove-asynctest.patch"; 33 - url = "https://github.com/exxamalte/python-aio-geojson-geonetnz-volcano/commit/d04a488130375c78efa541fd63a5d88bd6b0fd49.patch"; 34 - hash = "sha256-ArG8CovJckzzNebd03WeU5i/jPqy2HRVBL3ICk5nZ5Y="; 35 - }) 36 - ]; 37 27 38 28 propagatedBuildInputs = [ 39 29 aio-geojson-client
+4 -5
pkgs/development/python-modules/aio-geojson-nsw-rfs-incidents/default.nix
··· 2 2 , aio-geojson-client 3 3 , aiohttp 4 4 , aresponses 5 - , asynctest 6 5 , buildPythonPackage 7 6 , fetchFromGitHub 8 7 , pytest-asyncio ··· 13 12 14 13 buildPythonPackage rec { 15 14 pname = "aio-geojson-nsw-rfs-incidents"; 16 - version = "0.5"; 15 + version = "0.6"; 17 16 format = "setuptools"; 18 17 19 18 disabled = pythonOlder "3.7"; ··· 21 20 src = fetchFromGitHub { 22 21 owner = "exxamalte"; 23 22 repo = "python-aio-geojson-nsw-rfs-incidents"; 24 - rev = "v${version}"; 25 - sha256 = "sha256-rWlt4MYnuY+CzszFVDniWBnqpQW3WldSEl00ns3ko3U="; 23 + rev = "refs/tags/v${version}"; 24 + hash = "sha256-pn0r5iLpNnK3xmAhq/oX90hdiHgFDuwDQqfAzkp5jmw="; 26 25 }; 27 26 28 27 propagatedBuildInputs = [ ··· 33 32 34 33 nativeCheckInputs = [ 35 34 aresponses 36 - asynctest 37 35 pytest-asyncio 38 36 pytestCheckHook 39 37 ]; ··· 45 43 meta = with lib; { 46 44 description = "Python module for accessing the NSW Rural Fire Service incidents feeds"; 47 45 homepage = "https://github.com/exxamalte/python-aio-geojson-nsw-rfs-incidents"; 46 + changelog = "https://github.com/exxamalte/python-aio-geojson-geonetnz-quakes/blob/v${version}/CHANGELOG.md"; 48 47 license = with licenses; [ asl20 ]; 49 48 maintainers = with maintainers; [ fab ]; 50 49 };
+2 -1
pkgs/development/python-modules/aio-geojson-usgs-earthquakes/default.nix
··· 21 21 src = fetchFromGitHub { 22 22 owner = "exxamalte"; 23 23 repo = "python-aio-geojson-usgs-earthquakes"; 24 - rev = "v${version}"; 24 + rev = "refs/tags/v${version}"; 25 25 hash = "sha256-Hb0/BdK/jjxlPl9WJJpFdOCzZpZDCguXoGreGIyN8oo="; 26 26 }; 27 27 ··· 45 45 meta = with lib; { 46 46 description = "Python module for accessing the U.S. Geological Survey Earthquake Hazards Program feeds"; 47 47 homepage = "https://github.com/exxamalte/python-aio-geojson-usgs-earthquakes"; 48 + changelog = "https://github.com/exxamalte/python-aio-geojson-usgs-earthquakes/blob/v${version}/CHANGELOG.md"; 48 49 license = with licenses; [ asl20 ]; 49 50 maintainers = with maintainers; [ fab ]; 50 51 };
+2 -2
pkgs/development/python-modules/aioecowitt/default.nix
··· 10 10 11 11 buildPythonPackage rec { 12 12 pname = "aioecowitt"; 13 - version = "2022.11.0"; 13 + version = "2023.01.0"; 14 14 format = "setuptools"; 15 15 16 16 disabled = pythonOlder "3.9"; ··· 19 19 owner = "home-assistant-libs"; 20 20 repo = pname; 21 21 rev = "refs/tags/${version}"; 22 - hash = "sha256-v+O4J3GZZelF3H3BbL7LVRZEIH01WrDNnmOOWG4rVT0="; 22 + hash = "sha256-xOoKrGBkMEdpeiU1r27xlZp5s5sGJzvD7Ats+w6KR/o="; 23 23 }; 24 24 25 25 propagatedBuildInputs = [
+2 -2
pkgs/development/python-modules/aioshelly/default.nix
··· 9 9 10 10 buildPythonPackage rec { 11 11 pname = "aioshelly"; 12 - version = "5.2.1"; 12 + version = "5.3.0"; 13 13 format = "setuptools"; 14 14 15 15 disabled = pythonOlder "3.9"; ··· 18 18 owner = "home-assistant-libs"; 19 19 repo = pname; 20 20 rev = "refs/tags/${version}"; 21 - hash = "sha256-rz8r+FieBQAZKxZR741CffuEyGcLe6ghdEKFGfeD6vg="; 21 + hash = "sha256-tsjHs1v5Yth5XToznCdAWoe70Lhxqh6Mq/MHKSYYg14="; 22 22 }; 23 23 24 24 propagatedBuildInputs = [
+2 -2
pkgs/development/python-modules/boschshcpy/default.nix
··· 10 10 11 11 buildPythonPackage rec { 12 12 pname = "boschshcpy"; 13 - version = "0.2.43"; 13 + version = "0.2.48"; 14 14 format = "setuptools"; 15 15 16 16 disabled = pythonOlder "3.7"; ··· 19 19 owner = "tschamm"; 20 20 repo = pname; 21 21 rev = version; 22 - sha256 = "sha256-qxJ1yt8KI3ekza1KNfRRBtpPLNC/X0q7ITPhZkS1hPM="; 22 + sha256 = "sha256-EPS9kqlognIoMnpgmFl32FVT1ahyliizLzGfgE3N24Y="; 23 23 }; 24 24 25 25 propagatedBuildInputs = [
+3 -3
pkgs/development/python-modules/cometblue-lite/default.nix
··· 8 8 9 9 buildPythonPackage rec { 10 10 pname = "cometblue-lite"; 11 - version = "0.5.3"; 11 + version = "0.7.0"; 12 12 format = "setuptools"; 13 13 14 14 disabled = pythonOlder "3.8"; ··· 16 16 src = fetchFromGitHub { 17 17 owner = "neffs"; 18 18 repo = "python-cometblue_lite"; 19 - rev = version; 20 - hash = "sha256-KRWS2nqMFlF+IcBSmnQH3ptp6yxRQjAFY6aY0D7eZBs="; 19 + rev = "refs/tags/${version}"; 20 + hash = "sha256-Cjd7PdZ2/neRr1jStDY5iJaGMJ/srnFmCea8aLNan6g="; 21 21 }; 22 22 23 23 propagatedBuildInputs = [
+2 -2
pkgs/development/python-modules/dbus-fast/default.nix
··· 11 11 12 12 buildPythonPackage rec { 13 13 pname = "dbus-fast"; 14 - version = "1.83.1"; 14 + version = "1.84.0"; 15 15 format = "pyproject"; 16 16 17 17 disabled = pythonOlder "3.7"; ··· 20 20 owner = "Bluetooth-Devices"; 21 21 repo = pname; 22 22 rev = "refs/tags/v${version}"; 23 - hash = "sha256-hfO4dbMA6efQPwP0Bp/5IDb7mLHf1NuTuiJjhHivG6I="; 23 + hash = "sha256-AdfrzN7ufvy77tKjnHPNo+jHoHRw9fXtdUdYvdnMAjs="; 24 24 }; 25 25 26 26 nativeBuildInputs = [
+3 -2
pkgs/development/python-modules/django_silk/default.nix
··· 26 26 27 27 buildPythonPackage rec { 28 28 pname = "django-silk"; 29 - version = "5.0.2"; 29 + version = "5.0.3"; 30 30 format = "setuptools"; 31 31 32 32 disabled = pythonOlder "3.7"; ··· 35 35 owner = "jazzband"; 36 36 repo = "django-silk"; 37 37 rev = "refs/tags/${version}"; 38 - hash = "sha256-LzcbRZ9NLTkDTZ2eW+uXYqPbWDSdLZAJcYdD8JLuiDc="; 38 + hash = "sha256-91FcOqAYZK7/RCKgXjbQEPUQ2cZRFi7NzVLQF+MMDRI="; 39 39 }; 40 40 41 41 # "test_time_taken" tests aren't suitable for reproducible execution, but Django's ··· 95 95 meta = with lib; { 96 96 description = "Silky smooth profiling for the Django Framework"; 97 97 homepage = "https://github.com/jazzband/django-silk"; 98 + changelog = "https://github.com/jazzband/django-silk/blob/${version}/CHANGELOG.md"; 98 99 license = licenses.mit; 99 100 maintainers = with maintainers; [ ris ]; 100 101 };
+2 -2
pkgs/development/python-modules/garminconnect/default.nix
··· 8 8 9 9 buildPythonPackage rec { 10 10 pname = "garminconnect"; 11 - version = "0.1.50"; 11 + version = "0.1.51"; 12 12 format = "setuptools"; 13 13 14 14 disabled = pythonOlder "3.7"; ··· 17 17 owner = "cyberjunky"; 18 18 repo = "python-garminconnect"; 19 19 rev = "refs/tags/${version}"; 20 - hash = "sha256-M9FH8xbNo5NF2PktiG4SpZl4tjH7H937Rbqhe6VV+Bk="; 20 + hash = "sha256-SEolk0bbq3vNNMFz5B/qELaiCFCZFXJD4zTH8hBUX+Y="; 21 21 }; 22 22 23 23 propagatedBuildInputs = [
+3 -2
pkgs/development/python-modules/gehomesdk/default.nix
··· 13 13 14 14 buildPythonPackage rec { 15 15 pname = "gehomesdk"; 16 - version = "0.5.7"; 16 + version = "0.5.8"; 17 17 format = "setuptools"; 18 18 19 19 disabled = pythonOlder "3.7"; 20 20 21 21 src = fetchPypi { 22 22 inherit pname version; 23 - sha256 = "sha256-FmCoryNX1DnqMlGalad5iWO2ZRZwXgWgARQMYlJ6yVo="; 23 + hash = "sha256-x83CmOAZFaIDv4bzO01YZxVPVM/cwUpJtKdCWOxH/O4="; 24 24 }; 25 25 26 26 propagatedBuildInputs = [ ··· 44 44 meta = with lib; { 45 45 description = "Python SDK for GE smart appliances"; 46 46 homepage = "https://github.com/simbaja/gehome"; 47 + changelog = "https://github.com/simbaja/gehome/blob/master/CHANGELOG.md"; 47 48 license = licenses.mit; 48 49 maintainers = with maintainers; [ fab ]; 49 50 };
+3 -2
pkgs/development/python-modules/geojson-client/default.nix
··· 19 19 src = fetchFromGitHub { 20 20 owner = "exxamalte"; 21 21 repo = "python-geojson-client"; 22 - rev = "v${version}"; 23 - sha256 = "sha256-nzM5P1ww6yWM3e2v3hRw0ECoYmRPhTs0Q7Wwicl+IpU="; 22 + rev = "refs/tags/v${version}"; 23 + hash = "sha256-nzM5P1ww6yWM3e2v3hRw0ECoYmRPhTs0Q7Wwicl+IpU="; 24 24 }; 25 25 26 26 propagatedBuildInputs = [ ··· 41 41 meta = with lib; { 42 42 description = "Python module for convenient access to GeoJSON feeds"; 43 43 homepage = "https://github.com/exxamalte/python-geojson-client"; 44 + changelog = "https://github.com/exxamalte/python-geojson-client/blob/v${version}/CHANGELOG.md"; 44 45 license = with licenses; [ asl20 ]; 45 46 maintainers = with maintainers; [ fab ]; 46 47 };
+2 -2
pkgs/development/python-modules/google-cloud-pubsub/default.nix
··· 16 16 17 17 buildPythonPackage rec { 18 18 pname = "google-cloud-pubsub"; 19 - version = "2.13.12"; 19 + version = "2.14.0"; 20 20 format = "setuptools"; 21 21 22 22 disabled = pythonOlder "3.7"; 23 23 24 24 src = fetchPypi { 25 25 inherit pname version; 26 - hash = "sha256-/qa/3RKWC0SDgDeax/CwiZtSc9Nxm1cHJAKT6si2ecw="; 26 + hash = "sha256-4nFPB7dQRYvq9bB7Zw6ntgWO4VXAIcmH0LjmpAvzRG8="; 27 27 }; 28 28 29 29 propagatedBuildInputs = [
+2 -2
pkgs/development/python-modules/google-cloud-texttospeech/default.nix
··· 12 12 13 13 buildPythonPackage rec { 14 14 pname = "google-cloud-texttospeech"; 15 - version = "2.14.0"; 15 + version = "2.14.1"; 16 16 format = "setuptools"; 17 17 18 18 disabled = pythonOlder "3.8"; 19 19 20 20 src = fetchPypi { 21 21 inherit pname version; 22 - hash = "sha256-q4OD37ryZqg40L89BNZdLCNeC1QPwVhUaT4S5tO88Jk="; 22 + hash = "sha256-3XFvKnaK1nUCz9mbmSXFH/1uFr6TtBCr7v/arBkL/oE="; 23 23 }; 24 24 25 25 propagatedBuildInputs = [
+2 -2
pkgs/development/python-modules/griffe/default.nix
··· 12 12 13 13 buildPythonPackage rec { 14 14 pname = "griffe"; 15 - version = "0.25.3"; 15 + version = "0.25.4"; 16 16 format = "pyproject"; 17 17 18 18 disabled = pythonOlder "3.7"; ··· 21 21 owner = "mkdocstrings"; 22 22 repo = pname; 23 23 rev = "refs/tags/${version}"; 24 - hash = "sha256-t36uWIREn01/+dIYP5HYlkSPPjgoZoYbJYnFo3Y6qSw="; 24 + hash = "sha256-AZZhwHtVhdHkztzr/Hdi63VC5CjK2Vz8h8zizmSUdNY="; 25 25 }; 26 26 27 27 postPatch = ''
+14 -9
pkgs/development/python-modules/mkdocstrings/default.nix
··· 14 14 15 15 buildPythonPackage rec { 16 16 pname = "mkdocstrings"; 17 - version = "0.19.1"; 17 + version = "0.20.0"; 18 18 format = "pyproject"; 19 19 20 20 disabled = pythonOlder "3.7"; ··· 22 22 src = fetchFromGitHub { 23 23 owner = "mkdocstrings"; 24 24 repo = pname; 25 - rev = version; 26 - sha256 = "sha256-VCWUV+3vXmKbAXImAqY/K4vsA64gHBg83VkxbJua/ao="; 25 + rev = "refs/tags/${version}"; 26 + hash = "sha256-eFHcwbYEIwVWvDJWlmeUvEdqp3NYAF8SgdHJGw6bEMc="; 27 27 }; 28 + 29 + postPatch = '' 30 + substituteInPlace pyproject.toml \ 31 + --replace 'dynamic = ["version"]' 'version = "${version}"' \ 32 + --replace 'license = "ISC"' 'license = {text = "ISC"}' 33 + ''; 28 34 29 35 nativeBuildInputs = [ 30 36 pdm-pep517 ··· 43 49 pytestCheckHook 44 50 ]; 45 51 46 - postPatch = '' 47 - substituteInPlace pyproject.toml \ 48 - --replace 'dynamic = ["version"]' 'version = "${version}"' \ 49 - --replace 'license = "ISC"' 'license = {text = "ISC"}' 50 - ''; 51 - 52 52 pythonImportsCheck = [ 53 53 "mkdocstrings" 54 54 ]; ··· 56 56 disabledTestPaths = [ 57 57 # Circular dependencies 58 58 "tests/test_extension.py" 59 + ]; 60 + 61 + disabledTests = [ 62 + # Not all requirements are available 63 + "test_disabling_plugin" 59 64 ]; 60 65 61 66 meta = with lib; {
+21 -10
pkgs/development/python-modules/openai/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , fetchFromGitHub 4 + , aiohttp 4 5 , matplotlib 5 6 , numpy 6 7 , openpyxl 7 8 , pandas 8 9 , pandas-stubs 9 10 , plotly 11 + , pytest-asyncio 10 12 , pytest-mock 11 13 , pytestCheckHook 12 14 , pythonOlder ··· 16 18 , tqdm 17 19 , typing-extensions 18 20 , wandb 21 + , withOptionalDependencies ? false 19 22 }: 20 23 21 24 buildPythonPackage rec { 22 25 pname = "openai"; 23 - version = "0.25.0"; 26 + version = "0.26.1"; 24 27 format = "setuptools"; 25 28 26 29 disabled = pythonOlder "3.7.1"; ··· 29 32 owner = "openai"; 30 33 repo = "openai-python"; 31 34 rev = "v${version}"; 32 - hash = "sha256-bwv7lpdDYlk+y3KBjv7cSvaGr3v02riNCUfPFh6yv1I="; 35 + hash = "sha256-M6ZaYTOBAwLogWPafSnBYw3rUry+sS9VwQWAM9tDfr8="; 33 36 }; 34 37 35 38 propagatedBuildInputs = [ 36 - numpy 37 - openpyxl 38 - pandas 39 - pandas-stubs 39 + aiohttp 40 40 requests 41 41 tqdm 42 + ] ++ lib.optionals (pythonOlder "3.8") [ 42 43 typing-extensions 43 - ]; 44 + ] ++ lib.optionals withOptionalDependencies (builtins.attrValues { 45 + inherit (passthru.optional-dependencies) embeddings wandb; 46 + }); 44 47 45 48 passthru.optional-dependencies = { 46 - wandb = [ 47 - wandb 49 + datalib = [ 50 + numpy 51 + openpyxl 52 + pandas 53 + pandas-stubs 48 54 ]; 49 55 embeddings = [ 50 56 matplotlib 51 57 plotly 52 58 scikit-learn 53 59 tenacity 54 - ]; 60 + ] ++ passthru.optional-dependencies.datalib; 61 + wandb = [ 62 + wandb 63 + ] ++ passthru.optional-dependencies.datalib; 55 64 }; 56 65 57 66 pythonImportsCheck = [ ··· 60 69 61 70 nativeCheckInputs = [ 62 71 pytestCheckHook 72 + pytest-asyncio 63 73 pytest-mock 64 74 ]; 65 75 ··· 72 82 disabledTestPaths = [ 73 83 # Requires a real API key 74 84 "openai/tests/test_endpoints.py" 85 + "openai/tests/asyncio/test_endpoints.py" 75 86 # openai: command not found 76 87 "openai/tests/test_file_cli.py" 77 88 "openai/tests/test_long_examples_validator.py"
+2 -2
pkgs/development/python-modules/peaqevcore/default.nix
··· 6 6 7 7 buildPythonPackage rec { 8 8 pname = "peaqevcore"; 9 - version = "10.2.6"; 9 + version = "10.2.8"; 10 10 format = "setuptools"; 11 11 12 12 disabled = pythonOlder "3.7"; 13 13 14 14 src = fetchPypi { 15 15 inherit pname version; 16 - hash = "sha256-uQPz7IB14dFrupZIA87jG5P7USaGKs0WWlgbaLAEPp4="; 16 + hash = "sha256-wMC5SnC0KJ6pauvAKq+jTJiFoD0dlYBtxU8cag/JmnM="; 17 17 }; 18 18 19 19 postPatch = ''
+2 -2
pkgs/development/python-modules/pyvicare/default.nix
··· 10 10 11 11 buildPythonPackage rec { 12 12 pname = "pyvicare"; 13 - version = "2.23.0"; 13 + version = "2.24.0"; 14 14 format = "setuptools"; 15 15 16 16 disabled = pythonOlder "3.7"; ··· 19 19 owner = "somm15"; 20 20 repo = "PyViCare"; 21 21 rev = version; 22 - sha256 = "sha256-EBDk0XuE8zVFoGYbK2LIWeDfsj3iUZUUERNKARKwuKU="; 22 + sha256 = "sha256-D0N7kRTzfKCxLNtRJML+xykvsv3Mv0WHdlA05eLHl3M="; 23 23 }; 24 24 25 25 SETUPTOOLS_SCM_PRETEND_VERSION = version;
+2 -2
pkgs/development/python-modules/reikna/default.nix
··· 13 13 14 14 buildPythonPackage rec { 15 15 pname = "reikna"; 16 - version = "0.7.6"; 16 + version = "0.8.0"; 17 17 18 18 src = fetchPypi { 19 19 inherit pname version; 20 - sha256 = "722fefbd253d0bbcbf5250b7b9c4aca5722cde4ca38bfbf863a551a5fc26edfa"; 20 + sha256 = "sha256-fpa1Pfo5EAafg7Pgha17G6k5G13fdErjclv0On/uYyI="; 21 21 }; 22 22 23 23 nativeCheckInputs = [ sphinx pytest-cov pytest ];
+2 -2
pkgs/development/python-modules/rich-click/default.nix
··· 9 9 10 10 buildPythonPackage rec { 11 11 pname = "rich-click"; 12 - version = "1.6.0"; 12 + version = "1.6.1"; 13 13 format = "setuptools"; 14 14 15 15 disabled = pythonOlder "3.8"; ··· 18 18 owner = "ewels"; 19 19 repo = pname; 20 20 rev = "refs/tags/v${version}"; 21 - hash = "sha256-l8tMyxSkh4eckD21NofK9FBgeGKAqZB0J3B98HpWZ0s="; 21 + hash = "sha256-Be6okg3zmbdbdlB4/uwioUxn6CZUay/istiIoiFrsJk="; 22 22 }; 23 23 24 24 propagatedBuildInputs = [
+2 -2
pkgs/development/python-modules/sentry-sdk/default.nix
··· 40 40 41 41 buildPythonPackage rec { 42 42 pname = "sentry-sdk"; 43 - version = "1.12.1"; 43 + version = "1.14.0"; 44 44 format = "setuptools"; 45 45 46 46 disabled = pythonOlder "3.7"; ··· 49 49 owner = "getsentry"; 50 50 repo = "sentry-python"; 51 51 rev = "refs/tags/${version}"; 52 - hash = "sha256-ugCbjhOZTJ1+DeTKDTQJMIO6wjkqVL5tvPGoRrZKwGI="; 52 + hash = "sha256-2STQKIAoaGLreGGkqOSrNrByu7j+7oxZihwp9COhuGM="; 53 53 }; 54 54 55 55 propagatedBuildInputs = [
+2 -2
pkgs/development/python-modules/yalexs-ble/default.nix
··· 13 13 14 14 buildPythonPackage rec { 15 15 pname = "yalexs-ble"; 16 - version = "1.12.7"; 16 + version = "1.12.8"; 17 17 format = "pyproject"; 18 18 19 19 disabled = pythonOlder "3.9"; ··· 22 22 owner = "bdraco"; 23 23 repo = pname; 24 24 rev = "refs/tags/v${version}"; 25 - hash = "sha256-f2JrUzgSPbko/H7n6IYiw3nLU9SkIH8BgSEyMlGppok="; 25 + hash = "sha256-04Xl2TBs9RL+KWmJgUY+PDoYN4AAvrcWP7TJBEu5lNU="; 26 26 }; 27 27 28 28 nativeBuildInputs = [
+2 -2
pkgs/development/tools/bingo/default.nix
··· 8 8 owner = "bwplotka"; 9 9 repo = "bingo"; 10 10 rev = "v${version}"; 11 - sha256 = "sha256-s+vdtMzeHUtUlmMlvgnK83RYoMqS3GqrTnu7LssIK6A="; 11 + hash = "sha256-s+vdtMzeHUtUlmMlvgnK83RYoMqS3GqrTnu7LssIK6A="; 12 12 }; 13 13 14 - vendorSha256 = "sha256-28p1g+p+guJ0x4/5QDGsGN6gDnZkE4AKF/2cFgNjPDM="; 14 + vendorHash = "sha256-28p1g+p+guJ0x4/5QDGsGN6gDnZkE4AKF/2cFgNjPDM="; 15 15 16 16 postPatch = '' 17 17 rm get_e2e_test.go get_e2e_utils_test.go
+3 -3
pkgs/development/tools/cocogitto/default.nix
··· 2 2 3 3 rustPlatform.buildRustPackage rec { 4 4 pname = "cocogitto"; 5 - version = "5.2.0"; 5 + version = "5.3.0"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "oknozor"; 9 9 repo = pname; 10 10 rev = version; 11 - sha256 = "sha256-ZjDZMI84z8riRtidZVeCktwJUMkZU28E23MveJSD7xY="; 11 + sha256 = "sha256-BqyV4hJw7H9yN5Kj/XwhYS6hElXdKUJEUi5M/PNlPO0="; 12 12 }; 13 13 14 - cargoSha256 = "sha256-oaWWAVTKxrshfvqE+HMQ1WeeEz8lOE7qc6RrgSjDtdU="; 14 + cargoHash = "sha256-MA3XW2tPn0qVx7ve+UqCoG4nQ7UyuvXEebrPuLKqS4g="; 15 15 16 16 # Test depend on git configuration that would likly exist in a normal user enviroment 17 17 # and might be failing to create the test repository it works in.
+2 -2
pkgs/development/tools/cue/default.nix
··· 8 8 owner = "cue-lang"; 9 9 repo = "cue"; 10 10 rev = "v${version}"; 11 - sha256 = "sha256-v9MYrijnbtJpTgRZ4hmkaekisOyujldGewCRNbkVzWw="; 11 + hash = "sha256-v9MYrijnbtJpTgRZ4hmkaekisOyujldGewCRNbkVzWw="; 12 12 }; 13 13 14 14 postPatch = '' ··· 16 16 rm -f cmd/cue/cmd/script_test.go 17 17 ''; 18 18 19 - vendorSha256 = "sha256-jTfV8DJlr5LxS3HjOEBkVzBvZKiySrmINumXSUIq2mI="; 19 + vendorHash = "sha256-jTfV8DJlr5LxS3HjOEBkVzBvZKiySrmINumXSUIq2mI="; 20 20 21 21 excludedPackages = [ "internal/ci/updatetxtar" "internal/cmd/embedpkg" "internal/cmd/qgo" "pkg/gen" ]; 22 22
+2 -2
pkgs/development/tools/gojq/default.nix
··· 8 8 owner = "itchyny"; 9 9 repo = pname; 10 10 rev = "v${version}"; 11 - sha256 = "sha256-xJx3ge+8cIGL1j5vnU4JhCcwmXIRhJ66PYnEG223Fbc="; 11 + hash = "sha256-xJx3ge+8cIGL1j5vnU4JhCcwmXIRhJ66PYnEG223Fbc="; 12 12 }; 13 13 14 - vendorSha256 = "sha256-BnDtHqqU/kFJyeG1g4UZ51eSnUlbQ6eRKTFoz6kxl0s="; 14 + vendorHash = "sha256-BnDtHqqU/kFJyeG1g4UZ51eSnUlbQ6eRKTFoz6kxl0s="; 15 15 16 16 ldflags = [ "-s" "-w" ]; 17 17
+3 -3
pkgs/development/tools/kube-linter/default.nix
··· 2 2 3 3 buildGoModule rec { 4 4 pname = "kube-linter"; 5 - version = "0.5.1"; 5 + version = "0.6.0"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "stackrox"; 9 9 repo = pname; 10 10 rev = version; 11 - sha256 = "sha256-FEiUnJFmrHj97aSjfJtsjS9Qy4A6mzXicIrJZdgZbag="; 11 + sha256 = "sha256-/iwNyThgdXAXu1ulf68+X7nA9wE9jEqN7F5wuT5GMwk="; 12 12 }; 13 13 14 - vendorSha256 = "sha256-5dsM5jfD/apRs5NT/XqM8eHEgiyGQHHG3MG6cOFQKr8="; 14 + vendorHash = "sha256-jWXR7tHYT15h7QSxinYyPaBs5utUmdeWWm+GPpfwiA4="; 15 15 16 16 ldflags = [ 17 17 "-s" "-w" "-X golang.stackrox.io/kube-linter/internal/version.version=${version}"
+2 -2
pkgs/development/tools/language-servers/sumneko-lua-language-server/default.nix
··· 4 4 in 5 5 stdenv.mkDerivation rec { 6 6 pname = "sumneko-lua-language-server"; 7 - version = "3.6.5"; 7 + version = "3.6.7"; 8 8 9 9 src = fetchFromGitHub { 10 10 owner = "sumneko"; 11 11 repo = "lua-language-server"; 12 12 rev = version; 13 - sha256 = "sha256-4/RRE9IB/qy8YszPzEvrBVLi1X0XCNh+lJYwMXTTD1I="; 13 + sha256 = "sha256-x7/yO1rJ+VBG4EFpISYblRECLW2lsLz5wcqLR14UV/g="; 14 14 fetchSubmodules = true; 15 15 }; 16 16
+4 -4
pkgs/development/tools/open-policy-agent/default.nix
··· 11 11 12 12 buildGoModule rec { 13 13 pname = "open-policy-agent"; 14 - version = "0.47.4"; 14 + version = "0.48.0"; 15 15 16 16 src = fetchFromGitHub { 17 17 owner = "open-policy-agent"; 18 18 repo = "opa"; 19 19 rev = "v${version}"; 20 - sha256 = "sha256-EHDSil077g/K8XCWQ9Pry/oyh0Bs3ckS/5Co1z/+Yes="; 20 + hash = "sha256-//xwk5T477Ae61MqZCrj8VcG23mqrP04/VVuUwtxyio="; 21 21 }; 22 - vendorSha256 = null; 22 + vendorHash = null; 23 23 24 24 nativeBuildInputs = [ installShellFiles ]; 25 25 ··· 42 42 getGoDirs() { 43 43 go list ./... | grep -v -e e2e ${lib.optionalString stdenv.isDarwin "-e wasm"} 44 44 } 45 - '' + lib.optionalString stdenv.isDarwin '' 45 + '' + lib.optionalString stdenv.isDarwin '' 46 46 # remove tests that have "too many open files"/"no space left on device" issues on darwin in hydra 47 47 rm server/server_test.go 48 48 '';
+2 -2
pkgs/development/tools/pulumictl/default.nix
··· 2 2 3 3 buildGoModule rec { 4 4 pname = "pulumictl"; 5 - version = "0.0.39"; 5 + version = "0.0.41"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "pulumi"; 9 9 repo = "pulumictl"; 10 10 rev = "v${version}"; 11 - sha256 = "sha256-85a0qW4Fy+ojAhdlRU/m7mkHX91GoZAHlEGPljLAj4c="; 11 + sha256 = "sha256-6QBE6+wJ9MQXey9nXaJn69uVUhIVlWMdH9ROiMi7bZk="; 12 12 }; 13 13 14 14 vendorHash = "sha256-WzfTS68YIpoZYbm6i0USxXyEyR4px+hrNRbsCTXdJsk=";
+3 -3
pkgs/development/tools/rust/cargo-zigbuild/default.nix
··· 2 2 3 3 rustPlatform.buildRustPackage rec { 4 4 pname = "cargo-zigbuild"; 5 - version = "0.14.3"; 5 + version = "0.14.5"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "messense"; 9 9 repo = pname; 10 10 rev = "v${version}"; 11 - sha256 = "sha256-OHr+VCYt+w1VWv6XAfMZv0I7IZJ1m0UtErgMonGytns="; 11 + sha256 = "sha256-+H+T/PEpJyRySTJlVGbAevLzAEZs5J8BNqwZjiXhuuU="; 12 12 }; 13 13 14 - cargoSha256 = "sha256-tOJNQLPWpCqHCFRk85PW91axUTljo8YoeWUpPrl8P4c="; 14 + cargoSha256 = "sha256-IOR/G+SPGl3MgOMjmsVPpvoode8U7K52vqs7yu0BdQk="; 15 15 16 16 nativeBuildInputs = [ makeWrapper ]; 17 17
+3 -3
pkgs/development/tools/typos/default.nix
··· 2 2 3 3 rustPlatform.buildRustPackage rec { 4 4 pname = "typos"; 5 - version = "1.13.7"; 5 + version = "1.13.8"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "crate-ci"; 9 9 repo = pname; 10 10 rev = "v${version}"; 11 - hash = "sha256-9adccECtWty9GURjzUd6sPYn8qojGWzCrDIpUxswx4k="; 11 + hash = "sha256-ROMO6IkfpzFvB5Y4RRqrX5NnYzdHT1tsJBdCc1lDu7k="; 12 12 }; 13 13 14 - cargoHash = "sha256-5hg+w2IZOI6d06H7sAokO0v4b6ofxvak64v3he5n4LI="; 14 + cargoHash = "sha256-VAVlzciWVKcgl/QKiF3Hfzx11jUi/0J9b6EmaZzG9qE="; 15 15 16 16 meta = with lib; { 17 17 description = "Source code spell checker";
+2 -2
pkgs/os-specific/linux/virtio_vmmci/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 name = "virtio_vmmci"; 5 - version = "0.4.0"; 5 + version = "0.5.0"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "voutilad"; 9 9 repo = "virtio_vmmci"; 10 10 rev = "${version}"; 11 - sha256 = "104xnpcy5kb4y7ipy1fx1v6byddzs63bv2dqjy3yl23n764fsy43"; 11 + hash = "sha256-ZHslYYZFjM3wp0W5J3/WwCtQ2wDzT1jNc26Z/giTC8g="; 12 12 }; 13 13 14 14 hardeningDisable = [ "pic" "format" ];
+2 -2
pkgs/servers/bird/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "bird"; 5 - version = "2.0.11"; 5 + version = "2.0.12"; 6 6 7 7 src = fetchurl { 8 8 url = "ftp://bird.network.cz/pub/bird/${pname}-${version}.tar.gz"; 9 - hash = "sha256-YKe4O2e50InSp0WhH93RJGH2MavHtkW2wIWt+Qs/VdY="; 9 + hash = "sha256-PsRiojfQbR9EVdbsAKQvCxaGBh/JiOXImoQdAd11O1M="; 10 10 }; 11 11 12 12 nativeBuildInputs = [ flex bison ];
+2 -12
pkgs/servers/hylafaxplus/default.nix
··· 32 32 let 33 33 34 34 pname = "hylafaxplus"; 35 - version = "7.0.6"; 36 - hash = "sha512-0faeEwF/XQE/85zwUMOnrGzvGanuWRDr53SnrgbX0i/SHjHelzSEd2TK6plVOfV4w8RY7Ox7lSO1gjqEEzfZyw=="; 35 + version = "7.0.7"; 36 + hash = "sha512-nUvt+M0HBYN+MsGskuuDt1j0nI5Dk8MbfK/OVxP2FCDby3eiDg0eDtcpIxlOe4o0klko07zDRIb06zqh8ABuKA=="; 37 37 38 38 configSite = substituteAll { 39 39 name = "${pname}-config.site"; ··· 72 72 patches = [ 73 73 # adjust configure check to work with libtiff > 4.1 74 74 ./libtiff-4.patch 75 - # fix missing exports in libtiff 4.5+ 76 - # https://gitlab.com/libtiff/libtiff/-/issues/504 77 - # can probably be dropped with next hylafaxplus release 78 - (fetchurl { 79 - name = "hylafaxplus-7.0.6-tiff-4.5.0.patch"; 80 - url = "https://dev.gentoo.org/~sam/distfiles/net-misc/hylafaxplus/hylafaxplus-7.0.6-tiff-4.5.0.patch.xz"; 81 - downloadToTemp = true; 82 - postFetch = ''xz -d < $downloadedFile > $out''; 83 - hash = "sha256-koZvvzlgZHcANVaYdewnuLARz2TTeyDZRjm0EYWzsmk="; 84 - }) 85 75 ]; 86 76 # Note that `configure` (and maybe `faxsetup`) are looking 87 77 # for a couple of standard binaries in the `PATH` and
+1 -1
pkgs/servers/hylafaxplus/libtiff-4.patch
··· 5 5 echo '#define TIFFSTRIPBYTECOUNTS uint32_t' 6 6 echo '#define TIFFVERSION TIFF_VERSION' 7 7 echo '#define TIFFHEADER TIFFHeader';; 8 - - 4.[01234]) tiff_runlen_t="uint32_t" 8 + - 4.[012345]) tiff_runlen_t="uint32_t" 9 9 + 4.[0-9]) tiff_runlen_t="uint32_t" 10 10 tiff_offset_t="uint64_t" 11 11 echo '#define TIFFSTRIPBYTECOUNTS uint64_t'
+1 -1
pkgs/servers/matrix-synapse/default.nix
··· 1 1 { lib, stdenv, fetchFromGitHub, python3, openssl, rustPlatform 2 - , enableSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd, systemd 2 + , enableSystemd ? lib.meta.availableOn stdenv.hostPlatform python3.pkgs.systemd 3 3 , nixosTests 4 4 , enableRedis ? true 5 5 , callPackage
+1 -2
pkgs/servers/mautrix-facebook/default.nix
··· 1 1 { lib 2 2 , stdenv 3 - , systemd 4 - , enableSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd 5 3 , fetchFromGitHub 6 4 , fetchpatch 7 5 , python3 6 + , enableSystemd ? lib.meta.availableOn stdenv.hostPlatform python3.pkgs.systemd 8 7 }: 9 8 10 9 python3.pkgs.buildPythonPackage rec {
+2 -2
pkgs/servers/sql/postgresql/ext/timescaledb.nix
··· 8 8 9 9 stdenv.mkDerivation rec { 10 10 pname = "timescaledb"; 11 - version = "2.9.1"; 11 + version = "2.9.2"; 12 12 13 13 nativeBuildInputs = [ cmake ]; 14 14 buildInputs = [ postgresql openssl libkrb5 ]; ··· 17 17 owner = "timescale"; 18 18 repo = "timescaledb"; 19 19 rev = version; 20 - sha256 = "sha256-fvVSxDiGZAewyuQ2vZDb0I6tmlDXl6trjZp8+qDBtb8="; 20 + sha256 = "sha256-3n3nqAVow8nIocXPsgCZcNkV+jr/G5/CmnSUfj2WMWo="; 21 21 }; 22 22 23 23 cmakeFlags = [ "-DSEND_TELEMETRY_DEFAULT=OFF" "-DREGRESS_CHECKS=OFF" "-DTAP_CHECKS=OFF" ]
+1 -3
pkgs/tools/X11/xpra/default.nix
··· 36 36 , xorgserver 37 37 }: 38 38 39 - with lib; 40 - 41 39 let 42 40 inherit (python3.pkgs) cython buildPythonApplication; 43 41 ··· 206 204 updateScript = ./update.sh; 207 205 }; 208 206 209 - meta = { 207 + meta = with lib; { 210 208 homepage = "https://xpra.org/"; 211 209 downloadPage = "https://xpra.org/src/"; 212 210 description = "Persistent remote applications for X";
+3 -5
pkgs/tools/admin/pulumi-bin/default.nix
··· 1 1 { lib, stdenv, fetchurl, autoPatchelfHook, makeWrapper, installShellFiles }: 2 2 3 - with lib; 4 - 5 3 let 6 4 data = import ./data.nix {}; 7 5 in stdenv.mkDerivation { ··· 16 14 17 15 installPhase = '' 18 16 install -D -t $out/bin/ * 19 - '' + optionalString stdenv.isLinux '' 17 + '' + lib.optionalString stdenv.isLinux '' 20 18 wrapProgram $out/bin/pulumi --set LD_LIBRARY_PATH "${stdenv.cc.cc.lib}/lib" 21 19 '' + '' 22 20 installShellCompletion --cmd pulumi \ ··· 25 23 --zsh <($out/bin/pulumi completion zsh) 26 24 ''; 27 25 28 - nativeBuildInputs = [ installShellFiles ] ++ optionals stdenv.isLinux [ autoPatchelfHook makeWrapper ]; 26 + nativeBuildInputs = [ installShellFiles ] ++ lib.optionals stdenv.isLinux [ autoPatchelfHook makeWrapper ]; 29 27 30 - meta = { 28 + meta = with lib; { 31 29 homepage = "https://pulumi.io/"; 32 30 description = "Pulumi is a cloud development platform that makes creating cloud programs easy and productive"; 33 31 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
-2
pkgs/tools/admin/tigervnc/default.nix
··· 23 23 , nixosTests 24 24 }: 25 25 26 - with lib; 27 - 28 26 stdenv.mkDerivation rec { 29 27 version = "1.12.0"; 30 28 pname = "tigervnc";
+1 -1
pkgs/tools/audio/dsp/default.nix
··· 23 23 owner = "bmc0"; 24 24 repo = "dsp"; 25 25 rev = "v${version}"; 26 - sha256 = "sha256-S1pzVQ/ceNsx0vGmzdDWw2TjPVLiRgzR4edFblWsekY="; 26 + hash = "sha256-S1pzVQ/ceNsx0vGmzdDWw2TjPVLiRgzR4edFblWsekY="; 27 27 }; 28 28 29 29 nativeBuildInputs = [ pkg-config ];
+2 -4
pkgs/tools/backup/bup/default.nix
··· 7 7 8 8 let version = "0.32"; in 9 9 10 - with lib; 11 - 12 10 stdenv.mkDerivation { 13 11 pname = "bup"; 14 12 inherit version; ··· 31 29 postPatch = '' 32 30 patchShebangs . 33 31 substituteInPlace Makefile --replace "-Werror" "" 34 - '' + optionalString par2Support '' 32 + '' + lib.optionalString par2Support '' 35 33 substituteInPlace cmd/fsck-cmd.py --replace "'par2'" "'${par2cmdline}/bin/par2'" 36 34 ''; 37 35 ··· 49 47 --prefix PATH : ${git}/bin 50 48 ''; 51 49 52 - meta = { 50 + meta = with lib; { 53 51 homepage = "https://github.com/bup/bup"; 54 52 description = "Efficient file backup system based on the git packfile format"; 55 53 license = licenses.gpl2Plus;
+1 -2
pkgs/tools/backup/luckybackup/default.nix
··· 3 3 , rsync, ssh 4 4 }: 5 5 6 - with lib; 7 6 mkDerivation rec { 8 7 pname = "luckybackup"; 9 8 version = "0.5.0"; ··· 26 25 done 27 26 ''; 28 27 29 - meta = { 28 + meta = with lib; { 30 29 description = "A powerful, fast and reliable backup & sync tool"; 31 30 longDescription = '' 32 31 luckyBackup is an application for data back-up and synchronization
+3 -5
pkgs/tools/bluetooth/bluez-alsa/default.nix
··· 9 9 # TODO: aptxSupport 10 10 }: 11 11 12 - with lib; 13 - 14 12 stdenv.mkDerivation rec { 15 13 pname = "bluez-alsa"; 16 14 version = "4.0.0"; ··· 28 26 alsa-lib bluez glib sbc dbus 29 27 readline libbsd ncurses 30 28 ] 31 - ++ optional aacSupport fdk_aac; 29 + ++ lib.optional aacSupport fdk_aac; 32 30 33 31 configureFlags = [ 34 32 "--with-alsaplugindir=${placeholder "out"}/lib/alsa-lib" ··· 36 34 "--enable-rfcomm" 37 35 "--enable-hcitop" 38 36 ] 39 - ++ optional aacSupport "--enable-aac"; 37 + ++ lib.optional aacSupport "--enable-aac"; 40 38 41 - meta = { 39 + meta = with lib; { 42 40 description = "Bluez 5 Bluetooth Audio ALSA Backend"; 43 41 longDescription = '' 44 42 Bluez-ALSA (BlueALSA) is an ALSA backend for Bluez 5 audio interface.
+2 -2
pkgs/tools/filesystems/go-mtpfs/default.nix
··· 8 8 owner = "hanwen"; 9 9 repo = "go-mtpfs"; 10 10 rev = "v${version}"; 11 - sha256 = "sha256-HVfB8/MImgZZLx4tcrlYOfQjpAdHMHshEaSsd+n758w="; 11 + hash = "sha256-HVfB8/MImgZZLx4tcrlYOfQjpAdHMHshEaSsd+n758w="; 12 12 }; 13 13 14 - vendorSha256 = "sha256-OrAEvD2rF0Y0bvCD9TUv/E429lASsvC3uK3qNvbg734="; 14 + vendorHash = "sha256-OrAEvD2rF0Y0bvCD9TUv/E429lASsvC3uK3qNvbg734="; 15 15 16 16 ldflags = [ "-s" "-w" ]; 17 17
+1 -3
pkgs/tools/filesystems/squashfuse/default.nix
··· 1 1 { lib, stdenv, fetchFromGitHub, autoreconfHook, libtool, fuse, 2 2 pkg-config, lz4, xz, zlib, lzo, zstd }: 3 3 4 - with lib; 5 - 6 4 stdenv.mkDerivation rec { 7 5 8 6 pname = "squashfuse"; ··· 22 20 description = "FUSE filesystem to mount squashfs archives"; 23 21 homepage = "https://github.com/vasi/squashfuse"; 24 22 maintainers = [ ]; 25 - platforms = platforms.unix; 23 + platforms = lib.platforms.unix; 26 24 license = "BSD-2-Clause"; 27 25 }; 28 26 }
+4 -6
pkgs/tools/graphics/gifsicle/default.nix
··· 3 3 , static ? stdenv.hostPlatform.isStatic 4 4 }: 5 5 6 - with lib; 7 - 8 6 stdenv.mkDerivation rec { 9 7 pname = "gifsicle"; 10 8 version = "1.93"; ··· 14 12 sha256 = "sha256-kvZweXMr9MHaCH5q4JBSBYRuWsd3ulyqZtEqc6qUNEc="; 15 13 }; 16 14 17 - buildInputs = optionals gifview [ xorgproto libXt libX11 ]; 15 + buildInputs = lib.optionals gifview [ xorgproto libXt libX11 ]; 18 16 19 - configureFlags = optional (!gifview) "--disable-gifview"; 17 + configureFlags = lib.optional (!gifview) "--disable-gifview"; 20 18 21 - LDFLAGS = optionalString static "-static"; 19 + LDFLAGS = lib.optionalString static "-static"; 22 20 23 21 doCheck = true; 24 22 checkPhase = '' ··· 29 27 description = "Command-line tool for creating, editing, and getting information about GIF images and animations"; 30 28 homepage = "https://www.lcdf.org/gifsicle/"; 31 29 license = lib.licenses.gpl2; 32 - platforms = platforms.all; 30 + platforms = lib.platforms.all; 33 31 maintainers = with lib.maintainers; [ zimbatm ]; 34 32 }; 35 33 }
+2 -4
pkgs/tools/graphics/ldgallery/viewer/default.nix
··· 1 1 { lib, stdenv, fetchFromGitHub, pkgs, pandoc, CoreServices }: 2 2 3 - with lib; 4 - 5 3 let 6 4 # Note for maintainers: 7 5 # * keep version in sync with the ldgallery compiler ··· 21 19 nodePkg = nodePackages.package.override { 22 20 src = "${sourcePkg}/viewer"; 23 21 postInstall = "npm run build"; 24 - buildInputs = optionals stdenv.isDarwin [ CoreServices ]; 22 + buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ]; 25 23 }; 26 24 27 25 in 28 26 29 27 # making sure that the source and the node package are in sync 30 - assert versions.majorMinor nodePkg.version == removePrefix "v" sourcePkg.rev; 28 + assert lib.versions.majorMinor nodePkg.version == lib.removePrefix "v" sourcePkg.rev; 31 29 32 30 stdenv.mkDerivation { 33 31 pname = nodePkg.packageName;
+1 -3
pkgs/tools/graphics/optipng/default.nix
··· 4 4 5 5 # This package comes with its own copy of zlib, libpng and pngxtern 6 6 7 - with lib; 8 - 9 7 stdenv.mkDerivation rec { 10 8 pname = "optipng"; 11 9 version = "0.7.7"; ··· 17 15 18 16 buildInputs = [ libpng ]; 19 17 20 - LDFLAGS = optional static "-static"; 18 + LDFLAGS = lib.optional static "-static"; 21 19 # Workaround for crash in cexcept.h. See 22 20 # https://github.com/NixOS/nixpkgs/issues/28106 23 21 preConfigure = ''
-1
pkgs/tools/graphics/pgf/default.nix
··· 1 1 { lib, stdenv, fetchurl, autoconf, automake, libtool, dos2unix, libpgf, freeimage, doxygen }: 2 2 3 - with lib; 4 3 stdenv.mkDerivation rec { 5 4 pname = "pgf"; 6 5 version = "6.14.12";
+6 -8
pkgs/tools/inputmethods/ibus/default.nix
··· 34 34 , nixosTests 35 35 }: 36 36 37 - with lib; 38 - 39 37 let 40 38 python3Runtime = python3.withPackages (ps: with ps; [ pygobject3 ]); 41 39 python3BuildEnv = python3.buildEnv.override { ··· 88 86 89 87 configureFlags = [ 90 88 "--disable-memconf" 91 - (enableFeature (dconf != null) "dconf") 92 - (enableFeature (libnotify != null) "libnotify") 93 - (enableFeature withWayland "wayland") 94 - (enableFeature enableUI "ui") 89 + (lib.enableFeature (dconf != null) "dconf") 90 + (lib.enableFeature (libnotify != null) "libnotify") 91 + (lib.enableFeature withWayland "wayland") 92 + (lib.enableFeature enableUI "ui") 95 93 "--enable-gtk4" 96 94 "--enable-install-tests" 97 95 "--with-unicode-emoji-dir=${unicode-emoji}/share/unicode/emoji" ··· 133 131 isocodes 134 132 json-glib 135 133 libnotify 136 - ] ++ optionals withWayland [ 134 + ] ++ lib.optionals withWayland [ 137 135 libxkbcommon 138 136 wayland 139 137 ]; ··· 165 163 }; 166 164 }; 167 165 168 - meta = { 166 + meta = with lib; { 169 167 homepage = "https://github.com/ibus/ibus"; 170 168 description = "Intelligent Input Bus, input method framework"; 171 169 license = licenses.lgpl21Plus;
+20 -22
pkgs/tools/inputmethods/uim/default.nix
··· 18 18 , withMisc ? false, libeb ? null 19 19 }: 20 20 21 - with lib; 22 - 23 21 assert withGtk2 -> gtk2 != null; 24 22 assert withGtk3 -> gtk3 != null; 25 23 ··· 59 57 buildInputs = [ 60 58 ncurses m17n_lib m17n_db expat 61 59 ] 62 - ++ optional withAnthy anthy 63 - ++ optional withGtk2 gtk2 64 - ++ optional withGtk3 gtk3 65 - ++ optional withQt4 qt4 66 - ++ optionals withQt5 [ qt5.qtbase.bin qt5.qtbase.dev ] 67 - ++ optional withLibnotify libnotify 68 - ++ optional withSqlite sqlite 69 - ++ optionals withNetworking [ 60 + ++ lib.optional withAnthy anthy 61 + ++ lib.optional withGtk2 gtk2 62 + ++ lib.optional withGtk3 gtk3 63 + ++ lib.optional withQt4 qt4 64 + ++ lib.optionals withQt5 [ qt5.qtbase.bin qt5.qtbase.dev ] 65 + ++ lib.optional withLibnotify libnotify 66 + ++ lib.optional withSqlite sqlite 67 + ++ lib.optionals withNetworking [ 70 68 curl openssl 71 69 ] 72 - ++ optional withFFI libffi 73 - ++ optional withMisc libeb; 70 + ++ lib.optional withFFI libffi 71 + ++ lib.optional withMisc libeb; 74 72 75 73 prePatch = '' 76 74 patchShebangs *.sh */*.sh */*/*.sh ··· 113 111 "--with-xft" 114 112 "--with-expat=${expat.dev}" 115 113 ] 116 - ++ optional withAnthy "--with-anthy-utf8" 117 - ++ optional withGtk2 "--with-gtk2" 118 - ++ optional withGtk3 "--with-gtk3" 119 - ++ optionals withQt4 [ 114 + ++ lib.optional withAnthy "--with-anthy-utf8" 115 + ++ lib.optional withGtk2 "--with-gtk2" 116 + ++ lib.optional withGtk3 "--with-gtk3" 117 + ++ lib.optionals withQt4 [ 120 118 "--with-qt4" 121 119 "--with-qt4-immodule" 122 120 ] 123 - ++ optionals withQt5 [ 121 + ++ lib.optionals withQt5 [ 124 122 "--with-qt5" 125 123 "--with-qt5-immodule" 126 124 ] 127 - ++ optional withLibnotify "--enable-notify=libnotify" 128 - ++ optional withSqlite "--with-sqlite3" 129 - ++ optionals withNetworking [ 125 + ++ lib.optional withLibnotify "--enable-notify=libnotify" 126 + ++ lib.optional withSqlite "--with-sqlite3" 127 + ++ lib.optionals withNetworking [ 130 128 "--with-curl" 131 129 "--with-openssl-dir=${openssl.dev}" 132 130 ] 133 - ++ optional withFFI "--with-ffi" 134 - ++ optional withMisc "--with-eb"; 131 + ++ lib.optional withFFI "--with-ffi" 132 + ++ lib.optional withMisc "--with-eb"; 135 133 136 134 # TODO: things in `./configure --help`, but not in nixpkgs 137 135 #--with-canna Use Canna [default=no]
+1 -3
pkgs/tools/misc/catimg/default.nix
··· 1 1 { lib, stdenv, fetchFromGitHub, cmake } : 2 2 3 - with lib; 4 - 5 3 stdenv.mkDerivation rec { 6 4 pname = "catimg"; 7 5 version = "2.7.0"; ··· 15 13 16 14 nativeBuildInputs = [ cmake ]; 17 15 18 - meta = { 16 + meta = with lib; { 19 17 license = licenses.mit; 20 18 homepage = "https://github.com/posva/catimg"; 21 19 description = "Insanely fast image printing in your terminal";
+2 -2
pkgs/tools/misc/claws/default.nix
··· 8 8 rev = version; 9 9 owner = "thehowl"; 10 10 repo = pname; 11 - sha256 = "sha256-3zzUBeYfu9x3vRGX1DionLnAs1e44tFj8Z1dpVwjdCg="; 11 + hash = "sha256-3zzUBeYfu9x3vRGX1DionLnAs1e44tFj8Z1dpVwjdCg="; 12 12 }; 13 13 14 - vendorSha256 = "sha256-FP+3Rw5IdCahhx9giQrpepMMtF1pWcyjNglrlu9ju0Q="; 14 + vendorHash = "sha256-FP+3Rw5IdCahhx9giQrpepMMtF1pWcyjNglrlu9ju0Q="; 15 15 16 16 ldflags = [ "-s" "-w" ]; 17 17
+1 -3
pkgs/tools/misc/desktop-file-utils/default.nix
··· 1 1 { lib, stdenv, fetchurl, pkg-config, meson, ninja, glib, libintl }: 2 2 3 - with lib; 4 - 5 3 stdenv.mkDerivation rec { 6 4 pname = "desktop-file-utils"; 7 5 version = "0.26"; ··· 21 19 22 20 setupHook = ./setup-hook.sh; 23 21 24 - meta = { 22 + meta = with lib; { 25 23 homepage = "http://www.freedesktop.org/wiki/Software/desktop-file-utils"; 26 24 description = "Command line utilities for working with .desktop files"; 27 25 platforms = platforms.linux ++ platforms.darwin;
+8 -9
pkgs/tools/misc/grub/2.0x.nix
··· 13 13 , kbdcompSupport ? false, ckbcomp 14 14 }: 15 15 16 - with lib; 17 16 let 18 17 pcSystems = { 19 18 i686-linux.target = "i386"; ··· 40 39 riscv64-linux.target = "riscv64"; 41 40 }; 42 41 43 - canEfi = any (system: stdenv.hostPlatform.system == system) (mapAttrsToList (name: _: name) efiSystemsBuild); 44 - inPCSystems = any (system: stdenv.hostPlatform.system == system) (mapAttrsToList (name: _: name) pcSystems); 42 + canEfi = lib.any (system: stdenv.hostPlatform.system == system) (lib.mapAttrsToList (name: _: name) efiSystemsBuild); 43 + inPCSystems = lib.any (system: stdenv.hostPlatform.system == system) (lib.mapAttrsToList (name: _: name) pcSystems); 45 44 46 45 version = "2.06"; 47 46 ··· 330 329 depsBuildBuild = [ buildPackages.stdenv.cc ]; 331 330 nativeBuildInputs = [ bison flex python3 pkg-config gettext freetype autoreconfHook ]; 332 331 buildInputs = [ ncurses libusb-compat-0_1 freetype lvm2 fuse libtool bash ] 333 - ++ optional doCheck qemu 334 - ++ optional zfsSupport zfs; 332 + ++ lib.optional doCheck qemu 333 + ++ lib.optional zfsSupport zfs; 335 334 336 335 strictDeps = true; 337 336 ··· 369 368 370 369 configureFlags = [ 371 370 "--enable-grub-mount" # dep of os-prober 372 - ] ++ optionals (stdenv.hostPlatform != stdenv.buildPlatform) [ 371 + ] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [ 373 372 # grub doesn't do cross-compilation as usual and tries to use unprefixed 374 373 # tools to target the host. Provide toolchain information explicitly for 375 374 # cross builds. ··· 380 379 "TARGET_OBJCOPY=${stdenv.cc.targetPrefix}objcopy" 381 380 "TARGET_RANLIB=${stdenv.cc.targetPrefix}ranlib" 382 381 "TARGET_STRIP=${stdenv.cc.targetPrefix}strip" 383 - ] ++ optional zfsSupport "--enable-libzfs" 384 - ++ optionals efiSupport [ "--with-platform=efi" "--target=${efiSystemsBuild.${stdenv.hostPlatform.system}.target}" "--program-prefix=" ] 385 - ++ optionals xenSupport [ "--with-platform=xen" "--target=${efiSystemsBuild.${stdenv.hostPlatform.system}.target}"]; 382 + ] ++ lib.optional zfsSupport "--enable-libzfs" 383 + ++ lib.optionals efiSupport [ "--with-platform=efi" "--target=${efiSystemsBuild.${stdenv.hostPlatform.system}.target}" "--program-prefix=" ] 384 + ++ lib.optionals xenSupport [ "--with-platform=xen" "--target=${efiSystemsBuild.${stdenv.hostPlatform.system}.target}"]; 386 385 387 386 # save target that grub is compiled for 388 387 grubTarget = if efiSupport
-1
pkgs/tools/misc/grub/pvgrub_image/default.nix
··· 1 1 { lib, stdenv, grub2_xen }: 2 2 3 - with lib; 4 3 let 5 4 efiSystemsBuild = { 6 5 i686-linux.target = "i386";
+2 -3
pkgs/tools/misc/grub/trusted.nix
··· 18 18 , for_HP_laptop ? false 19 19 }: 20 20 21 - with lib; 22 21 let 23 22 pcSystems = { 24 23 i686-linux.target = "i386"; 25 24 x86_64-linux.target = "i386"; 26 25 }; 27 26 28 - inPCSystems = any (system: stdenv.hostPlatform.system == system) (mapAttrsToList (name: _: name) pcSystems); 27 + inPCSystems = lib.any (system: stdenv.hostPlatform.system == system) (lib.mapAttrsToList (name: _: name) pcSystems); 29 28 30 29 version = if for_HP_laptop then "1.2.1" else "1.2.0"; 31 30 ··· 59 58 60 59 nativeBuildInputs = [ autogen flex bison python2 autoconf automake ]; 61 60 buildInputs = [ ncurses libusb-compat-0_1 freetype gettext lvm2 ] 62 - ++ optional doCheck qemu; 61 + ++ lib.optional doCheck qemu; 63 62 64 63 hardeningDisable = [ "stackprotector" "pic" ]; 65 64
+1 -3
pkgs/tools/misc/hexd/default.nix
··· 1 1 { lib, stdenv, fetchFromGitHub }: 2 2 3 - with lib; 4 - 5 3 stdenv.mkDerivation rec { 6 4 pname = "hexd"; 7 5 version = "1.1.0"; ··· 15 13 16 14 makeFlags = [ "PREFIX=$(out)" ]; 17 15 18 - meta = { 16 + meta = with lib; { 19 17 description = "Colourful, human-friendly hexdump tool"; 20 18 homepage = "https://github.com/FireyFly/hexd"; 21 19 maintainers = [ maintainers.FireyFly ];
+2 -4
pkgs/tools/misc/logstash/6.x.nix
··· 7 7 , jre 8 8 }: 9 9 10 - with lib; 11 - 12 10 let this = stdenv.mkDerivation rec { 13 11 version = elk6Version; 14 - pname = "logstash${optionalString (!enableUnfree) "-oss"}"; 12 + pname = "logstash${lib.optionalString (!enableUnfree) "-oss"}"; 15 13 16 14 src = fetchurl { 17 15 url = "https://artifacts.elastic.co/downloads/logstash/${pname}-${version}.tar.gz"; ··· 63 61 maintainers = with maintainers; [ wjlroe offline basvandijk ]; 64 62 }; 65 63 passthru.tests = 66 - optionalAttrs (!enableUnfree) ( 64 + lib.optionalAttrs (!enableUnfree) ( 67 65 assert this.drvPath == nixosTests.elk.ELK-6.elkPackages.logstash.drvPath; 68 66 { 69 67 elk = nixosTests.elk.ELK-6;
+5 -7
pkgs/tools/misc/logstash/7.x.nix
··· 9 9 , jre 10 10 }: 11 11 12 - with lib; 13 - 14 12 let 15 - info = splitString "-" stdenv.hostPlatform.system; 16 - arch = elemAt info 0; 17 - plat = elemAt info 1; 13 + info = lib.splitString "-" stdenv.hostPlatform.system; 14 + arch = lib.elemAt info 0; 15 + plat = lib.elemAt info 1; 18 16 shas = 19 17 if enableUnfree 20 18 then { ··· 29 27 }; 30 28 this = stdenv.mkDerivation rec { 31 29 version = elk7Version; 32 - pname = "logstash${optionalString (!enableUnfree) "-oss"}"; 30 + pname = "logstash${lib.optionalString (!enableUnfree) "-oss"}"; 33 31 34 32 35 33 src = fetchurl { ··· 79 77 maintainers = with maintainers; [ wjlroe offline basvandijk ]; 80 78 }; 81 79 passthru.tests = 82 - optionalAttrs (config.allowUnfree && enableUnfree) ( 80 + lib.optionalAttrs (config.allowUnfree && enableUnfree) ( 83 81 assert this.drvPath == nixosTests.elk.unfree.ELK-7.elkPackages.logstash.drvPath; 84 82 { 85 83 elk = nixosTests.elk.unfree.ELK-7;
+2 -3
pkgs/tools/misc/moreutils/default.nix
··· 11 11 , darwin 12 12 }: 13 13 14 - with lib; 15 14 stdenv.mkDerivation rec { 16 15 pname = "moreutils"; 17 16 version = "0.67"; ··· 28 27 29 28 strictDeps = true; 30 29 nativeBuildInputs = [ makeWrapper perl libxml2 libxslt docbook-xsl docbook_xml_dtd_44 ]; 31 - buildInputs = optional stdenv.isDarwin darwin.cctools; 30 + buildInputs = lib.optional stdenv.isDarwin darwin.cctools; 32 31 33 32 propagatedBuildInputs = with perlPackages; [ perl IPCRun TimeDate TimeDuration ]; 34 33 ··· 40 39 wrapProgram $out/bin/ts --prefix PERL5LIB : $PERL5LIB 41 40 ''; 42 41 43 - meta = { 42 + meta = with lib; { 44 43 description = "Growing collection of the unix tools that nobody thought to write long ago when unix was young"; 45 44 homepage = "https://joeyh.name/code/moreutils/"; 46 45 maintainers = with maintainers; [ koral pSub ];
+1 -3
pkgs/tools/misc/pixd/default.nix
··· 1 1 { lib, stdenv, fetchFromGitHub }: 2 2 3 - with lib; 4 - 5 3 stdenv.mkDerivation rec { 6 4 pname = "pixd"; 7 5 version = "1.0.0"; ··· 15 13 16 14 makeFlags = [ "PREFIX=$(out)" ]; 17 15 18 - meta = { 16 + meta = with lib; { 19 17 description = "Colourful visualization tool for binary files"; 20 18 homepage = "https://github.com/FireyFly/pixd"; 21 19 maintainers = [ maintainers.FireyFly ];
+1 -2
pkgs/tools/misc/rmlint/default.nix
··· 20 20 21 21 assert withGui -> !stdenv.isDarwin; 22 22 23 - with lib; 24 23 stdenv.mkDerivation rec { 25 24 pname = "rmlint"; 26 25 version = "2.10.1"; ··· 78 77 gappsWrapperArgs+=(--prefix PYTHONPATH : "$(toPythonPath $out):$(toPythonPath ${python3.pkgs.pygobject3}):$(toPythonPath ${python3.pkgs.pycairo})") 79 78 ''; 80 79 81 - meta = { 80 + meta = with lib; { 82 81 description = "Extremely fast tool to remove duplicates and other lint from your filesystem"; 83 82 homepage = "https://rmlint.readthedocs.org"; 84 83 platforms = platforms.unix;
+10 -11
pkgs/tools/networking/dnsmasq/default.nix
··· 5 5 , nixosTests 6 6 }: 7 7 8 - with lib; 9 8 let 10 - copts = concatStringsSep " " ([ 9 + copts = lib.concatStringsSep " " ([ 11 10 "-DHAVE_IDN" 12 11 "-DHAVE_DNSSEC" 13 - ] ++ optionals dbusSupport [ 12 + ] ++ lib.optionals dbusSupport [ 14 13 "-DHAVE_DBUS" 15 - ] ++ optionals stdenv.isLinux [ 14 + ] ++ lib.optionals stdenv.isLinux [ 16 15 "-DHAVE_CONNTRACK" 17 16 ]); 18 17 in ··· 43 42 44 43 hardeningEnable = [ "pie" ]; 45 44 46 - postBuild = optionalString stdenv.isLinux '' 45 + postBuild = lib.optionalString stdenv.isLinux '' 47 46 make -C contrib/lease-tools 48 47 ''; 49 48 ··· 51 50 # module can create it in Nix-land? 52 51 postInstall = '' 53 52 install -Dm644 trust-anchors.conf $out/share/dnsmasq/trust-anchors.conf 54 - '' + optionalString stdenv.isDarwin '' 53 + '' + lib.optionalString stdenv.isDarwin '' 55 54 install -Dm644 contrib/MacOSX-launchd/uk.org.thekelleys.dnsmasq.plist \ 56 55 $out/Library/LaunchDaemons/uk.org.thekelleys.dnsmasq.plist 57 56 substituteInPlace $out/Library/LaunchDaemons/uk.org.thekelleys.dnsmasq.plist \ 58 57 --replace "/usr/local/sbin" "$out/bin" 59 - '' + optionalString stdenv.isLinux '' 58 + '' + lib.optionalString stdenv.isLinux '' 60 59 install -Dm755 contrib/lease-tools/dhcp_lease_time $out/bin/dhcp_lease_time 61 60 install -Dm755 contrib/lease-tools/dhcp_release $out/bin/dhcp_release 62 61 install -Dm755 contrib/lease-tools/dhcp_release6 $out/bin/dhcp_release6 63 62 64 - '' + optionalString dbusSupport '' 63 + '' + lib.optionalString dbusSupport '' 65 64 install -Dm644 dbus/dnsmasq.conf $out/share/dbus-1/system.d/dnsmasq.conf 66 65 mkdir -p $out/share/dbus-1/system-services 67 66 cat <<END > $out/share/dbus-1/system-services/uk.org.thekelleys.dnsmasq.service ··· 75 74 76 75 nativeBuildInputs = [ pkg-config ]; 77 76 buildInputs = [ nettle libidn ] 78 - ++ optionals dbusSupport [ dbus ] 79 - ++ optionals stdenv.isLinux [ libnetfilter_conntrack ]; 77 + ++ lib.optionals dbusSupport [ dbus ] 78 + ++ lib.optionals stdenv.isLinux [ libnetfilter_conntrack ]; 80 79 81 80 passthru.tests = { 82 81 prometheus-exporter = nixosTests.prometheus-exporters.dnsmasq; ··· 87 86 kubernetes-dns-multi = nixosTests.kubernetes.dns-multi-node; 88 87 }; 89 88 90 - meta = { 89 + meta = with lib; { 91 90 description = "An integrated DNS, DHCP and TFTP server for small networks"; 92 91 homepage = "https://www.thekelleys.org.uk/dnsmasq/doc.html"; 93 92 license = licenses.gpl2;
+5 -7
pkgs/tools/networking/eggdrop/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, tcl }: 1 + { lib, stdenv, fetchurl, tcl }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "eggdrop"; 5 - version = "1.9.3"; 5 + version = "1.9.4"; 6 6 7 - src = fetchFromGitHub { 8 - owner = "eggheads"; 9 - repo = "eggdrop"; 10 - rev = "v${version}"; 11 - sha256 = "sha256-BYPDIPn1nuVhnPjs2vZ6KC6pjBVYDWsRjB8c1Z6UUdE="; 7 + src = fetchurl { 8 + url = "https://ftp.eggheads.org/pub/eggdrop/source/${lib.versions.majorMinor version}/eggdrop-${version}.tar.gz"; 9 + hash = "sha256-DCh+N+h7XBidScnl2I9cwzhsmMB0MdPmAzgDwYkCltE="; 12 10 }; 13 11 14 12 buildInputs = [ tcl ];
+1 -3
pkgs/tools/networking/flannel/default.nix
··· 1 1 { lib, buildGoModule, fetchFromGitHub, nixosTests }: 2 2 3 - with lib; 4 - 5 3 buildGoModule rec { 6 4 pname = "flannel"; 7 5 version = "0.20.2"; ··· 23 21 24 22 passthru.tests = { inherit (nixosTests) flannel; }; 25 23 26 - meta = { 24 + meta = with lib; { 27 25 description = "Network fabric for containers, designed for Kubernetes"; 28 26 license = licenses.asl20; 29 27 homepage = "https://github.com/flannel-io/flannel";
-2
pkgs/tools/networking/logmein-hamachi/default.nix
··· 1 1 { lib, stdenv, fetchurl }: 2 2 3 - with lib; 4 - 5 3 let 6 4 arch = 7 5 if stdenv.hostPlatform.system == "x86_64-linux" then "x64"
+2 -4
pkgs/tools/networking/ndjbdns/default.nix
··· 1 1 { lib, stdenv, fetchFromGitHub, autoreconfHook, systemd, pkg-config }: 2 2 3 - with lib; 4 - 5 3 stdenv.mkDerivation { 6 4 version = "1.06"; 7 5 pname = "ndjbdns"; ··· 15 13 16 14 nativeBuildInputs = [ autoreconfHook pkg-config ]; 17 15 buildInputs = [ ] 18 - ++ optional stdenv.isLinux systemd; 16 + ++ lib.optional stdenv.isLinux systemd; 19 17 20 - meta = { 18 + meta = with lib; { 21 19 description = "A brand new release of the Djbdns"; 22 20 longDescription = '' 23 21 Djbdns is a fully‐fledged Domain Name System(DNS), originally written by the eminent author of qmail, Dr. D J Bernstein.
+2 -4
pkgs/tools/networking/ngrok/default.nix
··· 1 1 { lib, stdenv, fetchurl }: 2 2 3 - with lib; 4 - 5 3 let versions = lib.importJSON ./versions.json; 6 4 arch = if stdenv.isi686 then "386" 7 5 else if stdenv.isx86_64 then "amd64" ··· 37 35 # Stripping causes SEGFAULT on x86_64-darwin 38 36 dontStrip = true; 39 37 40 - meta = { 38 + meta = with lib; { 41 39 description = "Allows you to expose a web server running on your local machine to the internet"; 42 40 homepage = "https://ngrok.com/"; 43 - sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; 41 + sourceProvenance = with sourceTypes; [ binaryNativeCode ]; 44 42 license = licenses.unfree; 45 43 platforms = [ "i686-linux" "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ]; 46 44 maintainers = with maintainers; [ bobvanderlinden brodes ];
+12 -13
pkgs/tools/networking/openssh/common.nix
··· 30 30 , linkOpenssl ? true 31 31 }: 32 32 33 - with lib; 34 33 stdenv.mkDerivation rec { 35 34 inherit pname version src; 36 35 ··· 57 56 # This is not the same as the libkrb5 from the inputs! pkgs.libkrb5 is 58 57 # needed here to access krb5-config in order to cross compile. See: 59 58 # https://github.com/NixOS/nixpkgs/pull/107606 60 - ++ optional withKerberos pkgs.libkrb5 59 + ++ lib.optional withKerberos pkgs.libkrb5 61 60 ++ extraNativeBuildInputs; 62 61 buildInputs = [ zlib openssl libedit ] 63 - ++ optional withFIDO libfido2 64 - ++ optional withKerberos libkrb5 65 - ++ optional stdenv.isLinux pam; 62 + ++ lib.optional withFIDO libfido2 63 + ++ lib.optional withKerberos libkrb5 64 + ++ lib.optional stdenv.isLinux pam; 66 65 67 66 preConfigure = '' 68 67 # Setting LD causes `configure' and `make' to disagree about which linker ··· 80 79 "--with-libedit=yes" 81 80 "--disable-strip" 82 81 (if stdenv.isLinux then "--with-pam" else "--without-pam") 83 - ] ++ optional (etcDir != null) "--sysconfdir=${etcDir}" 84 - ++ optional withFIDO "--with-security-key-builtin=yes" 85 - ++ optional withKerberos (assert libkrb5 != null; "--with-kerberos5=${libkrb5}") 86 - ++ optional stdenv.isDarwin "--disable-libutil" 87 - ++ optional (!linkOpenssl) "--without-openssl" 82 + ] ++ lib.optional (etcDir != null) "--sysconfdir=${etcDir}" 83 + ++ lib.optional withFIDO "--with-security-key-builtin=yes" 84 + ++ lib.optional withKerberos (assert libkrb5 != null; "--with-kerberos5=${libkrb5}") 85 + ++ lib.optional stdenv.isDarwin "--disable-libutil" 86 + ++ lib.optional (!linkOpenssl) "--without-openssl" 88 87 ++ extraConfigureFlags; 89 88 90 89 ${if stdenv.hostPlatform.isStatic then "NIX_LDFLAGS" else null}= [ "-laudit" ] ++ lib.optionals withKerberos [ "-lkeyutils" ]; ··· 97 96 98 97 doCheck = true; 99 98 enableParallelChecking = false; 100 - nativeCheckInputs = optional (!stdenv.isDarwin) hostname; 99 + nativeCheckInputs = lib.optional (!stdenv.isDarwin) hostname; 101 100 preCheck = lib.optionalString (stdenv.hostPlatform == stdenv.buildPlatform) '' 102 101 # construct a dummy HOME 103 102 export HOME=$(realpath ../dummy-home) ··· 145 144 # integration tests hard to get working on darwin with its shaky 146 145 # sandbox 147 146 # t-exec tests fail on musl 148 - checkTarget = optional (!stdenv.isDarwin && !stdenv.hostPlatform.isMusl) "t-exec" 147 + checkTarget = lib.optional (!stdenv.isDarwin && !stdenv.hostPlatform.isMusl) "t-exec" 149 148 # other tests are less demanding of the environment 150 149 ++ [ "unit" "file-tests" "interop-tests" ]; 151 150 ··· 165 164 borgbackup-integration = nixosTests.borgbackup; 166 165 }; 167 166 168 - meta = { 167 + meta = with lib; { 169 168 description = "An implementation of the SSH protocol${extraDesc}"; 170 169 homepage = "https://www.openssh.com/"; 171 170 changelog = "https://www.openssh.com/releasenotes.html";
+1 -3
pkgs/tools/networking/snabb/default.nix
··· 3 3 , fetchFromGitHub 4 4 }: 5 5 6 - with lib; 7 - 8 6 stdenv.mkDerivation rec { 9 7 pname = "snabb"; 10 8 version = "2022.10"; ··· 21 19 cp src/snabb $out/bin 22 20 ''; 23 21 24 - meta = { 22 + meta = with lib; { 25 23 homepage = "https://github.com/SnabbCo/snabbswitch"; 26 24 description = "Simple and fast packet networking toolkit"; 27 25 longDescription = ''
+13 -15
pkgs/tools/networking/strongswan/default.nix
··· 14 14 # strongswan curl plugin may break. 15 15 # See https://wiki.strongswan.org/projects/strongswan/wiki/Curl for more info. 16 16 17 - with lib; 18 - 19 17 stdenv.mkDerivation rec { 20 18 pname = "strongswan"; 21 19 version = "5.9.8"; # Make sure to also update <nixpkgs/nixos/modules/services/networking/strongswan-swanctl/swanctl-params.nix> when upgrading! ··· 32 30 nativeBuildInputs = [ pkg-config autoreconfHook perl gperf bison flex ]; 33 31 buildInputs = 34 32 [ curl gmp python3 ldns unbound openssl pcsclite ] 35 - ++ optionals enableTNC [ trousers sqlite libxml2 ] 36 - ++ optionals stdenv.isLinux [ systemd.dev pam iptables ] 37 - ++ optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ SystemConfiguration ]) 38 - ++ optionals enableNetworkManager [ networkmanager glib ]; 33 + ++ lib.optionals enableTNC [ trousers sqlite libxml2 ] 34 + ++ lib.optionals stdenv.isLinux [ systemd.dev pam iptables ] 35 + ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ SystemConfiguration ]) 36 + ++ lib.optionals enableNetworkManager [ networkmanager glib ]; 39 37 40 38 patches = [ 41 39 ./ext_auth-path.patch ··· 43 41 ./updown-path.patch 44 42 ]; 45 43 46 - postPatch = optionalString stdenv.isLinux '' 44 + postPatch = lib.optionalString stdenv.isLinux '' 47 45 # glibc-2.26 reorganized internal includes 48 46 sed '1i#include <stdint.h>' -i src/libstrongswan/utils/utils/memory.h 49 47 ··· 62 60 "--enable-pkcs11" "--enable-eap-sim-pcsc" "--enable-dnscert" "--enable-unbound" 63 61 "--enable-chapoly" 64 62 "--enable-curl" ] 65 - ++ optionals stdenv.isLinux [ 63 + ++ lib.optionals stdenv.isLinux [ 66 64 "--enable-farp" "--enable-dhcp" 67 65 "--enable-systemd" "--with-systemdsystemunitdir=${placeholder "out"}/etc/systemd/system" 68 66 "--enable-xauth-pam" 69 67 "--enable-forecast" 70 68 "--enable-connmark" 71 69 "--enable-af-alg" ] 72 - ++ optionals stdenv.isx86_64 [ "--enable-aesni" "--enable-rdrand" ] 73 - ++ optional (stdenv.hostPlatform.system == "i686-linux") "--enable-padlock" 74 - ++ optionals enableTNC [ 70 + ++ lib.optionals stdenv.isx86_64 [ "--enable-aesni" "--enable-rdrand" ] 71 + ++ lib.optional (stdenv.hostPlatform.system == "i686-linux") "--enable-padlock" 72 + ++ lib.optionals enableTNC [ 75 73 "--disable-gmp" "--disable-aes" "--disable-md5" "--disable-sha1" "--disable-sha2" "--disable-fips-prf" 76 74 "--enable-eap-tnc" "--enable-eap-ttls" "--enable-eap-dynamic" "--enable-tnccs-20" 77 75 "--enable-tnc-imc" "--enable-imc-os" "--enable-imc-attestation" ··· 80 78 "--with-tss=trousers" 81 79 "--enable-aikgen" 82 80 "--enable-sqlite" ] 83 - ++ optionals enableNetworkManager [ 81 + ++ lib.optionals enableNetworkManager [ 84 82 "--enable-nm" 85 83 "--with-nm-ca-dir=/etc/ssl/certs" ] 86 84 # Taken from: https://wiki.strongswan.org/projects/strongswan/wiki/MacOSX 87 - ++ optionals stdenv.isDarwin [ 85 + ++ lib.optionals stdenv.isDarwin [ 88 86 "--disable-systemd" 89 87 "--disable-xauth-pam" 90 88 "--disable-kernel-netlink" ··· 100 98 echo "include /etc/ipsec.secrets" >> $out/etc/ipsec.secrets 101 99 ''; 102 100 103 - NIX_LDFLAGS = optionalString stdenv.cc.isGNU "-lgcc_s" ; 101 + NIX_LDFLAGS = lib.optionalString stdenv.cc.isGNU "-lgcc_s" ; 104 102 105 103 passthru.tests = { inherit (nixosTests) strongswan-swanctl; }; 106 104 107 - meta = { 105 + meta = with lib; { 108 106 description = "OpenSource IPsec-based VPN Solution"; 109 107 homepage = "https://www.strongswan.org"; 110 108 license = licenses.gpl2Plus;
+3 -5
pkgs/tools/package-management/nix-serve/default.nix
··· 8 8 , nixosTests 9 9 }: 10 10 11 - with lib; 12 - 13 11 let 14 12 rev = "e4675e38ab54942e351c7686e40fabec822120b9"; 15 13 sha256 = "1wm24p6pkxl1d7hrvf4ph6mwzawvqi22c60z9xzndn5xfyr4v0yr"; ··· 17 15 18 16 stdenv.mkDerivation { 19 17 pname = "nix-serve"; 20 - version = "0.2-${substring 0 7 rev}"; 18 + version = "0.2-${lib.substring 0 7 rev}"; 21 19 22 20 src = fetchFromGitHub { 23 21 owner = "edolstra"; ··· 33 31 install -Dm0755 nix-serve.psgi $out/libexec/nix-serve/nix-serve.psgi 34 32 35 33 makeWrapper ${perl.withPackages(p: [ p.DBDSQLite p.Plack p.Starman nix.perl-bindings ])}/bin/starman $out/bin/nix-serve \ 36 - --prefix PATH : "${makeBinPath [ bzip2 nix ]}" \ 34 + --prefix PATH : "${lib.makeBinPath [ bzip2 nix ]}" \ 37 35 --add-flags $out/libexec/nix-serve/nix-serve.psgi 38 36 ''; 39 37 ··· 42 40 nix-serve-ssh = nixosTests.nix-serve-ssh; 43 41 }; 44 42 45 - meta = { 43 + meta = with lib; { 46 44 homepage = "https://github.com/edolstra/nix-serve"; 47 45 description = "A utility for sharing a Nix store as a binary cache"; 48 46 maintainers = [ maintainers.eelco ];
+12 -1
pkgs/tools/package-management/poetry/default.nix
··· 6 6 }: 7 7 8 8 let 9 - python = python3; 9 + python = python3.override { 10 + packageOverrides = self: super: { 11 + dulwich = super.dulwich.overridePythonAttrs (old: rec { 12 + version = "0.20.50"; 13 + src = self.fetchPypi { 14 + inherit (old) pname; 15 + inherit version; 16 + hash = "sha256-UKlBeWssZ1vjm+co1UDBa1t853654bP4VWUOzmgy0r4="; 17 + }; 18 + }); 19 + }; 20 + }; 10 21 in python.pkgs.buildPythonApplication rec { 11 22 pname = "poetry"; 12 23 version = "1.3.2";
-2
pkgs/tools/security/afl/qemu.nix
··· 2 2 , texinfo, libuuid, flex, bison, pixman, autoconf 3 3 }: 4 4 5 - with lib; 6 - 7 5 let 8 6 cpuTarget = if stdenv.hostPlatform.system == "x86_64-linux" then "x86_64-linux-user" 9 7 else if stdenv.hostPlatform.system == "i686-linux" then "i386-linux-user"
-2
pkgs/tools/security/aflplusplus/qemu.nix
··· 2 2 , texinfo, libuuid, flex, bison, pixman, autoconf 3 3 }: 4 4 5 - with lib; 6 - 7 5 let 8 6 qemuName = "qemu-3.1.0"; 9 7 cpuTarget = if stdenv.targetPlatform.system == "x86_64-linux" then "x86_64-linux-user"
+2 -4
pkgs/tools/security/b2sum/default.nix
··· 1 1 { lib, stdenv, fetchFromGitHub, openmp ? null }: 2 2 3 - with lib; 4 - 5 3 stdenv.mkDerivation (finalAttrs: { 6 4 pname = "b2sum"; 7 5 version = "20190724"; ··· 24 22 25 23 buildInputs = [ openmp ]; 26 24 27 - buildFlags = [ (optional (openmp == null) "NO_OPENMP=1") ]; 25 + buildFlags = [ (lib.optional (openmp == null) "NO_OPENMP=1") ]; 28 26 installFlags = [ "PREFIX=$(out)" ]; 29 27 30 - meta = { 28 + meta = with lib; { 31 29 description = "The b2sum utility is similar to the md5sum or shasum utilities but for BLAKE2"; 32 30 homepage = "https://blake2.net"; 33 31 license = with licenses; [ asl20 cc0 openssl ];
+1 -3
pkgs/tools/security/john/default.nix
··· 2 2 , gcc, python3Packages, perl, perlPackages, makeWrapper, fetchpatch 3 3 }: 4 4 5 - with lib; 6 - 7 5 stdenv.mkDerivation rec { 8 6 pname = "john"; 9 7 version = "1.9.0-jumbo-1"; ··· 83 81 done 84 82 ''; 85 83 86 - meta = { 84 + meta = with lib; { 87 85 description = "John the Ripper password cracker"; 88 86 license = licenses.gpl2Plus; 89 87 homepage = "https://github.com/openwall/john/";
+3 -2
pkgs/tools/security/knockpy/default.nix
··· 5 5 6 6 python3.pkgs.buildPythonApplication rec { 7 7 pname = "knockpy"; 8 - version = "5.4.0"; 8 + version = "6.1.0"; 9 + format = "setuptools"; 9 10 10 11 src = fetchFromGitHub { 11 12 owner = "guelfoweb"; 12 13 repo = "knock"; 13 14 rev = "refs/tags/${version}"; 14 - hash = "sha256-If8w6Z75nQsayJBqJs+D9++7kqCbkmwkszOaMATDTpY="; 15 + hash = "sha256-O4tXq4pDzuTBEGAls2I9bfBRdHssF4rFBec4OtfUx6A="; 15 16 }; 16 17 17 18 propagatedBuildInputs = with python3.pkgs; [
+1 -3
pkgs/tools/security/modsecurity/default.nix
··· 3 3 , luaSupport ? false, lua5, perl 4 4 }: 5 5 6 - with lib; 7 - 8 6 let luaValue = if luaSupport then lua5 else "no"; 9 7 optional = lib.optional; 10 8 in ··· 49 47 cp -R * $nginx 50 48 ''; 51 49 52 - meta = { 50 + meta = with lib; { 53 51 description = "Open source, cross-platform web application firewall (WAF)"; 54 52 license = licenses.asl20; 55 53 homepage = "https://www.modsecurity.org/";
+4 -6
pkgs/tools/security/nmap/default.nix
··· 6 6 , withLua ? true 7 7 }: 8 8 9 - with lib; 10 - 11 9 stdenv.mkDerivation rec { 12 10 pname = "nmap"; 13 11 version = "7.93"; ··· 18 16 }; 19 17 20 18 patches = [ ./zenmap.patch ] 21 - ++ optionals stdenv.cc.isClang [( 19 + ++ lib.optionals stdenv.cc.isClang [( 22 20 # Fixes a compile error due an ambiguous reference to bind(2) in 23 21 # nping/EchoServer.cc, which is otherwise resolved to std::bind. 24 22 # https://github.com/nmap/nmap/pull/1363 ··· 29 27 } 30 28 )]; 31 29 32 - prePatch = optionalString stdenv.isDarwin '' 30 + prePatch = lib.optionalString stdenv.isDarwin '' 33 31 substituteInPlace libz/configure \ 34 32 --replace /usr/bin/libtool ar \ 35 33 --replace 'AR="libtool"' 'AR="ar"' \ ··· 43 41 "--without-zenmap" 44 42 ]; 45 43 46 - makeFlags = optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ 44 + makeFlags = lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ 47 45 "AR=${stdenv.cc.bintools.targetPrefix}ar" 48 46 "RANLIB=${stdenv.cc.bintools.targetPrefix}ranlib" 49 47 "CC=${stdenv.cc.targetPrefix}gcc" ··· 56 54 57 55 doCheck = false; # fails 3 tests, probably needs the net 58 56 59 - meta = { 57 + meta = with lib; { 60 58 description = "A free and open source utility for network discovery and security auditing"; 61 59 homepage = "http://www.nmap.org"; 62 60 license = licenses.gpl2;
+2 -4
pkgs/tools/security/pass/default.nix
··· 11 11 , tombPluginSupport ? false 12 12 }: 13 13 14 - with lib; 15 - 16 14 assert x11Support -> xclip != null; 17 15 assert waylandSupport -> wl-clipboard != null; 18 16 ··· 35 33 name = "pass"; 36 34 paths = selected; 37 35 nativeBuildInputs = [ makeWrapper ]; 38 - buildInputs = concatMap (x: x.buildInputs) selected; 36 + buildInputs = lib.concatMap (x: x.buildInputs) selected; 39 37 40 38 postBuild = '' 41 39 files=$(find $out/bin/ -type f -exec readlink -f {} \;) ··· 79 77 # dependencies (s.el) here. The user has to do this themselves. 80 78 mkdir -p "$out/share/emacs/site-lisp" 81 79 cp "contrib/emacs/password-store.el" "$out/share/emacs/site-lisp/" 82 - '' + optionalString dmenuSupport '' 80 + '' + lib.optionalString dmenuSupport '' 83 81 cp "contrib/dmenu/passmenu" "$out/bin/" 84 82 ''; 85 83
+2 -4
pkgs/tools/security/tcpcrypt/default.nix
··· 3 3 , libcap, libpcap, libnfnetlink, libnetfilter_conntrack, libnetfilter_queue 4 4 }: 5 5 6 - with lib; 7 - 8 6 stdenv.mkDerivation rec { 9 7 pname = "tcpcrypt"; 10 8 version = "0.5"; ··· 21 19 outputs = [ "bin" "dev" "out" ]; 22 20 nativeBuildInputs = [ autoreconfHook ]; 23 21 buildInputs = [ openssl libpcap ] 24 - ++ optionals stdenv.isLinux [ libcap libnfnetlink libnetfilter_conntrack libnetfilter_queue ]; 22 + ++ lib.optionals stdenv.isLinux [ libcap libnfnetlink libnetfilter_conntrack libnetfilter_queue ]; 25 23 26 24 enableParallelBuilding = true; 27 25 28 - meta = { 26 + meta = with lib; { 29 27 broken = stdenv.isDarwin; 30 28 homepage = "http://tcpcrypt.org/"; 31 29 description = "Fast TCP encryption";
+2 -4
pkgs/tools/security/tor/update.nix
··· 10 10 , nix 11 11 }: 12 12 13 - with lib; 14 - 15 13 let 16 14 downloadPageUrl = "https://dist.torproject.org"; 17 15 ··· 28 26 29 27 set -eu -o pipefail 30 28 31 - export PATH=${makeBinPath [ 29 + export PATH=${lib.makeBinPath [ 32 30 common-updater-scripts 33 31 coreutils 34 32 curl ··· 63 61 export GNUPGHOME=$PWD/gnupg 64 62 mkdir -m 700 -p "$GNUPGHOME" 65 63 66 - gpg --batch --recv-keys ${concatStringsSep " " (map (x: "'${x}'") signingKeys)} 64 + gpg --batch --recv-keys ${lib.concatStringsSep " " (map (x: "'${x}'") signingKeys)} 67 65 gpg --batch --verify "$sigFile" "$checksumFile" 68 66 69 67 sha256sum -c "$checksumFile"
+2 -2
pkgs/tools/system/jump/default.nix
··· 8 8 owner = "gsamokovarov"; 9 9 repo = pname; 10 10 rev = "v${version}"; 11 - sha256 = "sha256-nlCuotEiAX2+xx7T8jWZo2p4LNLhWXDdcU6DxJprgx0="; 11 + hash = "sha256-nlCuotEiAX2+xx7T8jWZo2p4LNLhWXDdcU6DxJprgx0="; 12 12 }; 13 13 14 - vendorSha256 = "sha256-nMUqZWdq//q/DNthvpKiYLq8f95O0QoItyX5w4vHzSA="; 14 + vendorHash = "sha256-nMUqZWdq//q/DNthvpKiYLq8f95O0QoItyX5w4vHzSA="; 15 15 16 16 nativeBuildInputs = [ installShellFiles ]; 17 17
+18 -20
pkgs/tools/system/netdata/default.nix
··· 14 14 , withDebug ? false 15 15 }: 16 16 17 - with lib; 18 - 19 17 let 20 18 go-d-plugin = callPackage ./go.d.plugin.nix {}; 21 19 in stdenv.mkDerivation rec { ··· 34 32 35 33 nativeBuildInputs = [ autoreconfHook pkg-config makeWrapper protobuf ]; 36 34 buildInputs = [ curl jemalloc libuv zlib ] 37 - ++ optionals stdenv.isDarwin [ CoreFoundation IOKit libossp_uuid ] 38 - ++ optionals (!stdenv.isDarwin) [ libcap libuuid ] 39 - ++ optionals withCups [ cups ] 40 - ++ optionals withDBengine [ lz4 ] 41 - ++ optionals withIpmi [ freeipmi ] 42 - ++ optionals withNetfilter [ libmnl libnetfilter_acct ] 43 - ++ optionals withCloud [ json_c ] 44 - ++ optionals withConnPubSub [ google-cloud-cpp grpc ] 45 - ++ optionals withConnPrometheus [ snappy ] 46 - ++ optionals (withCloud || withConnPrometheus) [ protobuf ] 47 - ++ optionals withSsl [ openssl ]; 35 + ++ lib.optionals stdenv.isDarwin [ CoreFoundation IOKit libossp_uuid ] 36 + ++ lib.optionals (!stdenv.isDarwin) [ libcap libuuid ] 37 + ++ lib.optionals withCups [ cups ] 38 + ++ lib.optionals withDBengine [ lz4 ] 39 + ++ lib.optionals withIpmi [ freeipmi ] 40 + ++ lib.optionals withNetfilter [ libmnl libnetfilter_acct ] 41 + ++ lib.optionals withCloud [ json_c ] 42 + ++ lib.optionals withConnPubSub [ google-cloud-cpp grpc ] 43 + ++ lib.optionals withConnPrometheus [ snappy ] 44 + ++ lib.optionals (withCloud || withConnPrometheus) [ protobuf ] 45 + ++ lib.optionals withSsl [ openssl ]; 48 46 49 47 patches = [ 50 48 # required to prevent plugins from relying on /etc ··· 68 66 # We pick zlib.dev as a simple canary package with pkg-config input. 69 67 disallowedReferences = [ zlib.dev ]; 70 68 71 - NIX_CFLAGS_COMPILE = optionalString withDebug "-O1 -ggdb -DNETDATA_INTERNAL_CHECKS=1"; 69 + NIX_CFLAGS_COMPILE = lib.optionalString withDebug "-O1 -ggdb -DNETDATA_INTERNAL_CHECKS=1"; 72 70 73 71 postInstall = '' 74 72 ln -s ${go-d-plugin}/lib/netdata/conf.d/* $out/lib/netdata/conf.d 75 73 ln -s ${go-d-plugin}/bin/godplugin $out/libexec/netdata/plugins.d/go.d.plugin 76 - '' + optionalString (!stdenv.isDarwin) '' 74 + '' + lib.optionalString (!stdenv.isDarwin) '' 77 75 # rename this plugin so netdata will look for setuid wrapper 78 76 mv $out/libexec/netdata/plugins.d/apps.plugin \ 79 77 $out/libexec/netdata/plugins.d/apps.plugin.org ··· 83 81 $out/libexec/netdata/plugins.d/perf.plugin.org 84 82 mv $out/libexec/netdata/plugins.d/slabinfo.plugin \ 85 83 $out/libexec/netdata/plugins.d/slabinfo.plugin.org 86 - ${optionalString withIpmi '' 84 + ${lib.optionalString withIpmi '' 87 85 mv $out/libexec/netdata/plugins.d/freeipmi.plugin \ 88 86 $out/libexec/netdata/plugins.d/freeipmi.plugin.org 89 87 ''} 90 88 ''; 91 89 92 - preConfigure = optionalString (!stdenv.isDarwin) '' 90 + preConfigure = lib.optionalString (!stdenv.isDarwin) '' 93 91 substituteInPlace collectors/python.d.plugin/python_modules/third_party/lm_sensors.py \ 94 92 --replace 'ctypes.util.find_library("sensors")' '"${lm_sensors.out}/lib/libsensors${stdenv.hostPlatform.extensions.sharedLibrary}"' 95 93 ''; ··· 99 97 "--sysconfdir=/etc" 100 98 "--disable-ebpf" 101 99 "--with-jemalloc=${jemalloc}" 102 - ] ++ optionals (!withDBengine) [ 100 + ] ++ lib.optionals (!withDBengine) [ 103 101 "--disable-dbengine" 104 - ] ++ optionals (!withCloud) [ 102 + ] ++ lib.optionals (!withCloud) [ 105 103 "--disable-cloud" 106 104 ]; 107 105 ··· 116 114 tests.netdata = nixosTests.netdata; 117 115 }; 118 116 119 - meta = { 117 + meta = with lib; { 120 118 broken = stdenv.isDarwin || stdenv.buildPlatform != stdenv.hostPlatform; 121 119 description = "Real-time performance monitoring tool"; 122 120 homepage = "https://www.netdata.cloud/";
+1 -3
pkgs/tools/system/socklog/default.nix
··· 1 1 { lib, stdenv, fetchurl }: 2 2 3 - with lib; 4 - 5 3 stdenv.mkDerivation rec { 6 4 pname = "socklog"; 7 5 version = "2.1.0"; ··· 49 47 50 48 doCheck = true; 51 49 52 - meta = { 50 + meta = with lib; { 53 51 broken = stdenv.isDarwin; 54 52 description = "System and kernel logging services"; 55 53 homepage = "http://smarden.org/socklog/";
+1 -3
pkgs/tools/text/ledger2beancount/default.nix
··· 1 1 { lib, stdenv, fetchFromGitHub, makeWrapper, perlPackages, beancount }: 2 2 3 - with lib; 4 - 5 3 let 6 4 perlDeps = with perlPackages; [ 7 5 DateCalc ··· 44 42 --set PERL5LIB "${perlPackages.makeFullPerlPath perlDeps}" 45 43 ''; 46 44 47 - meta = { 45 + meta = with lib; { 48 46 description = "Ledger to Beancount text-based converter"; 49 47 longDescription = '' 50 48 A script to automatically convert Ledger-based textual ledgers to Beancount ones.
+7 -8
pkgs/tools/video/rtmpdump/default.nix
··· 12 12 13 13 assert (gnutlsSupport || opensslSupport); 14 14 15 - with lib; 16 15 stdenv.mkDerivation { 17 16 pname = "rtmpdump"; 18 17 version = "unstable-2021-02-19"; ··· 36 35 "prefix=$(out)" 37 36 "CROSS_COMPILE=${stdenv.cc.targetPrefix}" 38 37 ] 39 - ++ optional gnutlsSupport "CRYPTO=GNUTLS" 40 - ++ optional opensslSupport "CRYPTO=OPENSSL" 41 - ++ optional stdenv.isDarwin "SYS=darwin" 42 - ++ optional stdenv.cc.isClang "CC=clang"; 38 + ++ lib.optional gnutlsSupport "CRYPTO=GNUTLS" 39 + ++ lib.optional opensslSupport "CRYPTO=OPENSSL" 40 + ++ lib.optional stdenv.isDarwin "SYS=darwin" 41 + ++ lib.optional stdenv.cc.isClang "CC=clang"; 43 42 44 43 propagatedBuildInputs = [ zlib ] 45 - ++ optionals gnutlsSupport [ gnutls nettle ] 46 - ++ optional opensslSupport openssl; 44 + ++ lib.optionals gnutlsSupport [ gnutls nettle ] 45 + ++ lib.optional opensslSupport openssl; 47 46 48 47 outputs = [ "out" "dev" ]; 49 48 50 49 separateDebugInfo = true; 51 50 52 - meta = { 51 + meta = with lib; { 53 52 description = "Toolkit for RTMP streams"; 54 53 homepage = "https://rtmpdump.mplayerhq.hu/"; 55 54 license = licenses.gpl2;
+14 -2
pkgs/top-level/all-packages.nix
··· 3391 3391 3392 3392 kjv = callPackage ../applications/misc/kjv { }; 3393 3393 3394 - lukesmithxyz-bible-kjv = callPackage ../applications/misc/lukesmithxyz-bible/kjv.nix { }; 3394 + lukesmithxyz-bible-kjv = callPackage ../applications/misc/kjv/lukesmithxyz-kjv.nix { }; 3395 3395 3396 3396 luigi = callPackage ../applications/networking/cluster/luigi { }; 3397 3397 ··· 10330 10330 10331 10331 openimagedenoise_1_2_x = callPackage ../development/libraries/openimagedenoise/1_2_x.nix { }; 10332 10332 10333 - openmvg = callPackage ../applications/science/misc/openmvg { }; 10333 + openmvg = callPackage ../applications/science/misc/openmvg { 10334 + inherit (llvmPackages) openmp; 10335 + }; 10334 10336 10335 10337 openmvs = callPackage ../applications/science/misc/openmvs { }; 10336 10338 ··· 26879 26881 26880 26882 dosemu_fonts = callPackage ../data/fonts/dosemu-fonts { }; 26881 26883 26884 + dotcolon-fonts = callPackage ../data/fonts/dotcolon-fonts { }; 26885 + 26882 26886 e17gtk = callPackage ../data/themes/e17gtk { }; 26883 26887 26884 26888 eb-garamond = callPackage ../data/fonts/eb-garamond { }; ··· 26898 26902 equilux-theme = callPackage ../data/themes/equilux-theme { }; 26899 26903 26900 26904 eunomia = callPackage ../data/fonts/eunomia { }; 26905 + 26906 + fa_1 = callPackage ../data/fonts/fa_1 { }; 26907 + 26908 + f1_8 = callPackage ../data/fonts/f1_8 { }; 26901 26909 26902 26910 f5_6 = callPackage ../data/fonts/f5_6 { }; 26903 26911 ··· 27236 27244 27237 27245 medio = callPackage ../data/fonts/medio { }; 27238 27246 27247 + melete = callPackage ../data/fonts/melete { }; 27248 + 27239 27249 mno16 = callPackage ../data/fonts/mno16 { }; 27240 27250 27241 27251 mnist = callPackage ../data/machine-learning/mnist { }; ··· 27271 27281 myrddin = callPackage ../development/compilers/myrddin { }; 27272 27282 27273 27283 myrica = callPackage ../data/fonts/myrica { }; 27284 + 27285 + nacelle = callPackage ../data/fonts/nacelle { }; 27274 27286 27275 27287 nafees = callPackage ../data/fonts/nafees { }; 27276 27288