Merge master into staging-next

This commit is contained in:
github-actions[bot] 2023-01-24 18:01:00 +00:00 committed by GitHub
commit 7a89380b7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
195 changed files with 1382 additions and 1084 deletions

View file

@ -4,7 +4,7 @@ The [Citrix Workspace App](https://www.citrix.com/products/workspace-app/) is a
## Basic usage {#sec-citrix-base}
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.
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.
## Citrix Self-service {#sec-citrix-selfservice}
@ -19,7 +19,7 @@ $ selfservice
## Custom certificates {#sec-citrix-custom-certs}
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`:
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`:
```nix
with import <nixpkgs> { config.allowUnfree = true; };

View file

@ -4,7 +4,7 @@ This package is an ibus-based completion method to speed up typing.
## Activating the engine {#sec-ibus-typing-booster-activate}
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).
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/).
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:

View file

@ -34,7 +34,7 @@ To allow software to use various virtual file systems, `gvfs` package can be als
### GdkPixbuf loaders {#ssec-gnome-gdk-pixbuf-loaders}
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`.
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`.
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).
@ -70,7 +70,7 @@ Also make sure that `icon-theme.cache` is installed for each theme provided by t
### GTK Themes {#ssec-gnome-themes}
Previously, a GTK theme needed to be in `XDG_DATA_DIRS`. This is no longer necessary for most programs since GTK incorporated Adwaita theme. Some programs (for example, those designed for [elementary HIG](https://elementary.io/docs/human-interface-guidelines#human-interface-guidelines)) might require a special theme like `pantheon.elementary-gtk-theme`.
Previously, a GTK theme needed to be in `XDG_DATA_DIRS`. This is no longer necessary for most programs since GTK incorporated Adwaita theme. Some programs (for example, those designed for [elementary HIG](https://docs.elementary.io/hig)) might require a special theme like `pantheon.elementary-gtk-theme`.
### GObject introspection typelibs {#ssec-gnome-typelibs}

View file

@ -14,11 +14,11 @@ let
in stdenv.mkDerivation rec {
pname = "nano";
version = "7.1";
version = "7.2";
src = fetchurl {
url = "mirror://gnu/nano/${pname}-${version}.tar.xz";
sha256 = "V7p1Hpt1GfD23e5QUgLjh8dd3kQMH3qhuTEMw4FAaDY=";
sha256 = "hvNEJ2i9KHPOxpP4PN+AtLRErTzBR2C3Q2FHT8h6RSY=";
};
nativeBuildInputs = [ texinfo ] ++ lib.optional enableNls gettext;

View file

@ -1,17 +1,13 @@
{
"version": "3.129.0",
"version": "3.139.0",
"appimage": {
"x86_64-linux": {
"url": "https://github.com/standardnotes/app/releases/download/%40standardnotes/desktop%403.129.0/standard-notes-3.129.0-linux-x86_64.AppImage",
"hash": "sha512-JLO2jX9Us6BjqmTZIkVyxy2pqFM/eFGpwi6vXicMOgDB0UsgEMTK+Ww+9g+vJ1KbFRFmlt187qkdSNcevQPt7w=="
"url": "https://github.com/standardnotes/app/releases/download/%40standardnotes/desktop%403.139.0/standard-notes-3.139.0-linux-x86_64.AppImage",
"hash": "sha512-0s/tQmP5PINoQB7FOhR5wYuBvynKHpM9uMNmkJs77z84rY+WXOdZRjki6ZeG60niNXr8rUSLOBffy4jyLka6tg=="
},
"aarch64-linux": {
"url": "https://github.com/standardnotes/app/releases/download/%40standardnotes/desktop%403.129.0/standard-notes-3.129.0-linux-arm64.AppImage",
"hash": "sha512-LGUSRqMrJ+hVHyi/bjI/NkWRVsmY0Kh/wRY9RNJXm0C3dKQSFV8ca4GeY9+VCuJEecR4LGnWp4agS5jPybPP6w=="
},
"i686-linux": {
"url": "https://github.com/standardnotes/app/releases/download/%40standardnotes/desktop%403.129.0/standard-notes-3.129.0-linux-i386.AppImage",
"hash": "sha512-XbQ4hn3QJ61hDC12cK95zsUowbyXPYArHZoRDx5trQ30phtQxtz6nV+pL00m4S9kYeEhsAwk1wXlRq9Ylbz2IA=="
"url": "https://github.com/standardnotes/app/releases/download/%40standardnotes/desktop%403.139.0/standard-notes-3.139.0-linux-arm64.AppImage",
"hash": "sha512-LralbOiIVQCtQTqmhTtKttdtMz4M14drPFZ00LPFcwzQviLdU2C/od3NUxf5H5piGgqt5TJlgMCOcLIiyoNKFA=="
}
}
}

View file

@ -50,6 +50,5 @@ writeScript "update-standardnotes" ''
updatePlatform x86_64-linux linux-x86_64
updatePlatform aarch64-linux linux-arm64
updatePlatform i686-linux linux-i386
setJsonKey .version "$newVersion"
''

View file

@ -16,7 +16,6 @@
, embree, gmp, libharu
}:
with lib;
let
python = python310Packages.python;
optix = fetchzip {
@ -38,7 +37,7 @@ stdenv.mkDerivation rec {
patches = lib.optional stdenv.isDarwin ./darwin.patch;
nativeBuildInputs = [ cmake makeWrapper python310Packages.wrapPython llvmPackages.llvm.dev ]
++ optionals cudaSupport [ addOpenGLRunpath ];
++ lib.optionals cudaSupport [ addOpenGLRunpath ];
buildInputs =
[ boost ffmpeg gettext glew ilmbase
freetype libjpeg libpng libsamplerate libsndfile libtiff libwebp
@ -63,10 +62,10 @@ stdenv.mkDerivation rec {
else [
llvmPackages.openmp SDL Cocoa CoreGraphics ForceFeedback OpenAL OpenGL
])
++ optional jackaudioSupport libjack2
++ optional cudaSupport cudaPackages.cudatoolkit
++ optional colladaSupport opencollada
++ optional spaceNavSupport libspnav;
++ lib.optional jackaudioSupport libjack2
++ lib.optional cudaSupport cudaPackages.cudatoolkit
++ lib.optional colladaSupport opencollada
++ lib.optional spaceNavSupport libspnav;
pythonPath = with python310Packages; [ numpy requests ];
postPatch = ''
@ -118,16 +117,16 @@ stdenv.mkDerivation rec {
"-DWITH_IMAGE_OPENJPEG=ON"
"-DWITH_OPENCOLLADA=${if colladaSupport then "ON" else "OFF"}"
]
++ optionals stdenv.isDarwin [
++ lib.optionals stdenv.isDarwin [
"-DWITH_CYCLES_OSL=OFF" # requires LLVM
"-DWITH_OPENVDB=OFF" # OpenVDB currently doesn't build on darwin
"-DLIBDIR=/does-not-exist"
]
# Clang doesn't support "-export-dynamic"
++ optional stdenv.cc.isClang "-DPYTHON_LINKFLAGS="
++ optional jackaudioSupport "-DWITH_JACK=ON"
++ optionals cudaSupport [
++ lib.optional stdenv.cc.isClang "-DPYTHON_LINKFLAGS="
++ lib.optional jackaudioSupport "-DWITH_JACK=ON"
++ lib.optionals cudaSupport [
"-DWITH_CYCLES_CUDA_BINARIES=ON"
"-DWITH_CYCLES_DEVICE_OPTIX=ON"
"-DOPTIX_ROOT_DIR=${optix}"
@ -137,7 +136,7 @@ stdenv.mkDerivation rec {
# Since some dependencies are built with gcc 6, we need gcc 6's
# libstdc++ in our RPATH. Sigh.
NIX_LDFLAGS = optionalString cudaSupport "-rpath ${stdenv.cc.cc.lib}/lib";
NIX_LDFLAGS = lib.optionalString cudaSupport "-rpath ${stdenv.cc.cc.lib}/lib";
blenderExecutable =
placeholder "out" + (if stdenv.isDarwin then "/Applications/Blender.app/Contents/MacOS/Blender" else "/bin/blender");
@ -154,7 +153,7 @@ stdenv.mkDerivation rec {
# Set RUNPATH so that libcuda and libnvrtc in /run/opengl-driver(-32)/lib can be
# found. See the explanation in libglvnd.
postFixup = optionalString cudaSupport ''
postFixup = lib.optionalString cudaSupport ''
for program in $out/bin/blender $out/bin/.blender-wrapped; do
isELF "$program" || continue
addOpenGLRunpath "$program"

View file

@ -10,8 +10,6 @@
, nix
}:
with lib;
let
downloadPageUrl = "https://download.electrum.org";
@ -23,7 +21,7 @@ writeScript "update-electrum" ''
set -eu -o pipefail
export PATH=${makeBinPath [
export PATH=${lib.makeBinPath [
common-updater-scripts
coreutils
curl
@ -50,7 +48,7 @@ sigFile=$srcFile.asc
export GNUPGHOME=$PWD/gnupg
mkdir -m 700 -p "$GNUPGHOME"
gpg --batch --recv-keys ${concatStringsSep " " (map (x: "'${x}'") signingKeys)}
gpg --batch --recv-keys ${lib.concatStringsSep " " (map (x: "'${x}'") signingKeys)}
gpg --batch --verify "$sigFile" "$srcFile"
sha256=$(nix-prefetch-url --type sha256 "file://$PWD/$srcFile")

View file

@ -25,8 +25,6 @@
, enableSystemd ? false
}:
with lib;
stdenv.mkDerivation rec {
pname = "elogind";
version = "246.10";
@ -72,7 +70,7 @@ stdenv.mkDerivation rec {
"-Dsysconfdir=${placeholder "out"}/etc"
];
meta = {
meta = with lib; {
homepage = "https://github.com/elogind/elogind";
description = ''The systemd project's "logind", extracted to a standalone package'';
platforms = platforms.linux; # probably more

View file

@ -4,8 +4,6 @@
, postgresSupport ? false, postgresql ? null
}:
with lib;
stdenv.mkDerivation rec {
pname = "gammu";
version = "1.42.0";
@ -31,10 +29,10 @@ stdenv.mkDerivation rec {
strictDeps = true;
buildInputs = [ bash bluez libusb1 curl gettext sqlite libiconv ]
++ optionals dbiSupport [ libdbi libdbiDrivers ]
++ optionals postgresSupport [ postgresql ];
++ lib.optionals dbiSupport [ libdbi libdbiDrivers ]
++ lib.optionals postgresSupport [ postgresql ];
meta = {
meta = with lib; {
homepage = "https://wammu.eu/gammu/";
description = "Command line utility and library to control mobile phones";
license = licenses.gpl2;

View file

@ -1,7 +1,5 @@
{ lib, fetchFromGitHub, atomicparsley, flvstreamer, ffmpeg, makeWrapper, perl, perlPackages, rtmpdump}:
with lib;
perlPackages.buildPerlPackage rec {
pname = "get_iplayer";
version = "3.27";
@ -26,11 +24,11 @@ perlPackages.buildPerlPackage rec {
installPhase = ''
mkdir -p $out/bin $out/share/man/man1
cp get_iplayer $out/bin
wrapProgram $out/bin/get_iplayer --suffix PATH : ${makeBinPath [ atomicparsley ffmpeg flvstreamer rtmpdump ]} --prefix PERL5LIB : $PERL5LIB
wrapProgram $out/bin/get_iplayer --suffix PATH : ${lib.makeBinPath [ atomicparsley ffmpeg flvstreamer rtmpdump ]} --prefix PERL5LIB : $PERL5LIB
cp get_iplayer.1 $out/share/man/man1
'';
meta = {
meta = with lib; {
description = "Downloads TV and radio from BBC iPlayer";
license = licenses.gpl3Plus;
homepage = "https://squarepenguin.co.uk/";

View file

@ -8,8 +8,6 @@
, enableTesseract ? true, leptonica, tesseract4
}:
with lib;
# k2pdfopt is a pain to package. It requires modified versions of mupdf,
# leptonica, and tesseract. Instead of shipping patches for these upstream
# packages, k2pdfopt includes just the modified source files for these
@ -140,12 +138,12 @@ in stdenv.mkDerivation rec {
};
in
[ zlib libpng ] ++
optional enableGSL gsl ++
optional enableGhostScript ghostscript ++
optional enableMuPDF mupdf_modded ++
optional enableDJVU djvulibre ++
optional enableGOCR gocr ++
optionals enableTesseract [ leptonica_modded tesseract_modded ];
lib.optional enableGSL gsl ++
lib.optional enableGhostScript ghostscript ++
lib.optional enableMuPDF mupdf_modded ++
lib.optional enableDJVU djvulibre ++
lib.optional enableGOCR gocr ++
lib.optionals enableTesseract [ leptonica_modded tesseract_modded ];
dontUseCmakeBuildDir = true;
@ -157,7 +155,7 @@ in stdenv.mkDerivation rec {
install -D -m 755 k2pdfopt $out/bin/k2pdfopt
'';
preFixup = optionalString enableTesseract ''
preFixup = lib.optionalString enableTesseract ''
wrapProgram $out/bin/k2pdfopt --set-default TESSDATA_PREFIX ${tesseract4}/share/tessdata
'';

View file

@ -37,8 +37,6 @@
, nixosTests
}:
with lib;
stdenv.mkDerivation rec {
pname = "keepassxc";
version = "2.7.4";
@ -50,13 +48,13 @@ stdenv.mkDerivation rec {
sha256 = "sha256-amedKK9nplLVJTldeabN3/c+g/QesrdH+qx+rba2/4s=";
};
NIX_CFLAGS_COMPILE = optionalString stdenv.cc.isClang [
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang [
"-Wno-old-style-cast"
"-Wno-error"
"-D__BIG_ENDIAN__=${if stdenv.isBigEndian then "1" else "0"}"
];
NIX_LDFLAGS = optionalString stdenv.isDarwin "-rpath ${libargon2}/lib";
NIX_LDFLAGS = lib.optionalString stdenv.isDarwin "-rpath ${libargon2}/lib";
patches = [
./darwin.patch
@ -67,13 +65,13 @@ stdenv.mkDerivation rec {
"-DWITH_GUI_TESTS=ON"
"-DWITH_XC_UPDATECHECK=OFF"
]
++ (optional (!withKeePassX11) "-DWITH_XC_X11=OFF")
++ (optional (withKeePassFDOSecrets && stdenv.isLinux) "-DWITH_XC_FDOSECRETS=ON")
++ (optional (withKeePassYubiKey && stdenv.isLinux) "-DWITH_XC_YUBIKEY=ON")
++ (optional withKeePassBrowser "-DWITH_XC_BROWSER=ON")
++ (optional withKeePassKeeShare "-DWITH_XC_KEESHARE=ON")
++ (optional withKeePassNetworking "-DWITH_XC_NETWORKING=ON")
++ (optional withKeePassSSHAgent "-DWITH_XC_SSHAGENT=ON");
++ (lib.optional (!withKeePassX11) "-DWITH_XC_X11=OFF")
++ (lib.optional (withKeePassFDOSecrets && stdenv.isLinux) "-DWITH_XC_FDOSECRETS=ON")
++ (lib.optional (withKeePassYubiKey && stdenv.isLinux) "-DWITH_XC_YUBIKEY=ON")
++ (lib.optional withKeePassBrowser "-DWITH_XC_BROWSER=ON")
++ (lib.optional withKeePassKeeShare "-DWITH_XC_KEESHARE=ON")
++ (lib.optional withKeePassNetworking "-DWITH_XC_NETWORKING=ON")
++ (lib.optional withKeePassSSHAgent "-DWITH_XC_SSHAGENT=ON");
doCheck = true;
checkPhase = ''
@ -112,14 +110,14 @@ stdenv.mkDerivation rec {
readline
zlib
]
++ optional (stdenv.isDarwin && withKeePassTouchID) darwin.apple_sdk.frameworks.LocalAuthentication
++ optional stdenv.isDarwin qtmacextras
++ optional stdenv.isLinux libusb1
++ optional withKeePassX11 qtx11extras;
++ lib.optional (stdenv.isDarwin && withKeePassTouchID) darwin.apple_sdk.frameworks.LocalAuthentication
++ lib.optional stdenv.isDarwin qtmacextras
++ lib.optional stdenv.isLinux libusb1
++ lib.optional withKeePassX11 qtx11extras;
passthru.tests = nixosTests.keepassxc;
meta = {
meta = with lib; {
description = "Offline password manager with many features.";
longDescription = ''
A community fork of KeePassX, which is itself a port of KeePass Password Safe.

View file

@ -8,10 +8,10 @@ buildGoModule rec {
owner = "McKael";
repo = "madonctl";
rev = "v${version}";
sha256 = "sha256-mo185EKjLkiujAKcAFM1XqkXWvcfYbnv+r3dF9ywaf8=";
hash = "sha256-mo185EKjLkiujAKcAFM1XqkXWvcfYbnv+r3dF9ywaf8=";
};
vendorSha256 = null;
vendorHash = null;
nativeBuildInputs = [ installShellFiles ];

View file

@ -18,7 +18,7 @@
python3.pkgs.buildPythonApplication rec {
pname = "metadata-cleaner";
version = "2.3.1";
version = "2.4.0";
format = "other";
@ -26,7 +26,7 @@ python3.pkgs.buildPythonApplication rec {
owner = "rmnvgr";
repo = pname;
rev = "v${version}";
hash = "sha256-nH2BsfXFwBdu7/YH2OuG90HxYgiuqKJqMC4p0PRlgPw=";
hash = "sha256-/Zi82ri61cQHt1D8DjeVHTSeEn9ubQJD931kP0ffiOs=";
};
nativeBuildInputs = [

View file

@ -14,13 +14,13 @@
stdenv.mkDerivation rec {
pname = "osmium-tool";
version = "1.14.0";
version = "1.15.0";
src = fetchFromGitHub {
owner = "osmcode";
repo = "osmium-tool";
rev = "v${version}";
sha256 = "sha256-xedunFzar44o+b/45isXWacDcC81wWkxgGwnpLPH/n0=";
sha256 = "sha256-xV/1LFby0L/o648XEQQ9gS9/eHssWhMIG7R1E8bfIDU=";
};
nativeBuildInputs = [

View file

@ -6,7 +6,7 @@
stdenv.mkDerivation rec {
pname = "pokemon-colorscripts-mac";
version = "stable=2021-08-10";
version = "stable-2021-08-10";
src = fetchFromGitHub {
owner = "nuke-dash";

View file

@ -1,7 +1,5 @@
{ fetchFromGitHub, rustPlatform, lib }:
with lib;
rustPlatform.buildRustPackage rec {
pname = "rm-improved";
version = "0.13.0";
@ -15,7 +13,7 @@ rustPlatform.buildRustPackage rec {
sha256 = "0d065xia4mwdhxkiqfg7pic6scfzipzmsvvx7l6l97w62lzpiqx3";
};
meta = {
meta = with lib; {
description = "Replacement for rm with focus on safety, ergonomics and performance";
homepage = "https://github.com/nivekuil/rip";
maintainers = with maintainers; [ nils-degroot ];

View file

@ -1,7 +1,5 @@
{ lib, stdenv, fetchgit, pkg-config, writeText, libX11, conf ? null, patches ? [] }:
with lib;
stdenv.mkDerivation rec {
pname = "slstatus";
version = "unstable-2019-02-16";
@ -12,8 +10,8 @@ stdenv.mkDerivation rec {
sha256 = "0kayyhpmppybhwndxgabw48wsk9v8x9xdb05xrly9szkw3jbvgw4";
};
configFile = optionalString (conf!=null) (writeText "config.def.h" conf);
preBuild = optionalString (conf!=null) "cp ${configFile} config.def.h";
configFile = lib.optionalString (conf!=null) (writeText "config.def.h" conf);
preBuild = lib.optionalString (conf!=null) "cp ${configFile} config.def.h";
inherit patches;
@ -24,7 +22,7 @@ stdenv.mkDerivation rec {
installFlags = [ "PREFIX=$(out)" ];
meta = {
meta = with lib; {
homepage = "https://tools.suckless.org/slstatus/";
description = "status monitor for window managers that use WM_NAME like dwm";
license = licenses.isc;

View file

@ -14,14 +14,12 @@
, btrfs-progs
}:
with lib;
stdenv.mkDerivation rec {
pname = "veracrypt";
version = "1.25.9";
src = fetchurl {
url = "https://launchpad.net/${pname}/trunk/${toLower version}/+download/VeraCrypt_${version}_Source.tar.bz2";
url = "https://launchpad.net/${pname}/trunk/${lib.toLower version}/+download/VeraCrypt_${version}_Source.tar.bz2";
sha256 = "sha256-drbhgYS8IaQdKUn/Y9ch1JBUpxbO/zpL13tcNRC3lK8=";
};
@ -54,7 +52,7 @@ stdenv.mkDerivation rec {
--replace "Icon=veracrypt" "Icon=veracrypt.xpm"
'';
meta = {
meta = with lib; {
description = "Free Open-Source filesystem on-the-fly encryption";
homepage = "https://www.veracrypt.fr/";
license = with licenses; [ asl20 /* and */ unfree /* TrueCrypt License version 3.0 */ ];

View file

@ -1,8 +1,6 @@
{ lib, stdenv, fetchFromGitHub, cmake, makeWrapper, pkg-config
, glib, libwnck, procps }:
with lib;
stdenv.mkDerivation rec {
pname = "xsuspender";
version = "1.3";
@ -21,10 +19,10 @@ stdenv.mkDerivation rec {
postInstall = ''
wrapProgram $out/bin/xsuspender \
--prefix PATH : "${makeBinPath [ procps ]}"
--prefix PATH : "${lib.makeBinPath [ procps ]}"
'';
meta = {
meta = with lib; {
description = "Auto-suspend inactive X11 applications";
homepage = "https://kernc.github.io/xsuspender/";
license = licenses.wtfpl;

View file

@ -6,8 +6,6 @@
, gtk-mac-integration
}:
with lib;
stdenv.mkDerivation rec {
pname = "zathura";
version = "0.5.2";
@ -28,7 +26,7 @@ stdenv.mkDerivation rec {
"-Dsynctex=enabled"
# Make sure tests are enabled for doCheck
"-Dtests=enabled"
] ++ optional (!stdenv.isLinux) "-Dseccomp=disabled";
] ++ lib.optional (!stdenv.isLinux) "-Dseccomp=disabled";
nativeBuildInputs = [
meson ninja pkg-config desktop-file-utils python3.pkgs.sphinx
@ -38,12 +36,12 @@ stdenv.mkDerivation rec {
buildInputs = [
gtk girara libintl sqlite glib file librsvg
texlive.bin.core
] ++ optional stdenv.isLinux libseccomp
++ optional stdenv.isDarwin gtk-mac-integration;
] ++ lib.optional stdenv.isLinux libseccomp
++ lib.optional stdenv.isDarwin gtk-mac-integration;
doCheck = !stdenv.isDarwin;
meta = {
meta = with lib; {
homepage = "https://git.pwmt.org/pwmt/zathura";
description = "A core component for zathura PDF viewer";
license = licenses.zlib;

View file

@ -38,7 +38,7 @@
, xorg
, zlib
}:
with lib;
let
deps = [
alsa-lib
@ -89,7 +89,7 @@ stdenv.mkDerivation rec {
version = "6.0.3";
src = fetchurl {
url = "https://bin.appgate-sdp.com/${versions.majorMinor version}/client/appgate-sdp_${version}_amd64.deb";
url = "https://bin.appgate-sdp.com/${lib.versions.majorMinor version}/client/appgate-sdp_${version}_amd64.deb";
sha256 = "sha256-UDyVPoQM78CKVWXgr08An77QTiFVmRNHwQPGaj1jAIM=";
};
@ -134,16 +134,16 @@ stdenv.mkDerivation rec {
--replace "/etc/appgate.conf" "$out/etc/appgate.conf"
wrapProgram $out/opt/appgate/service/createdump \
--set LD_LIBRARY_PATH "${makeLibraryPath [ stdenv.cc.cc ]}"
--set LD_LIBRARY_PATH "${lib.makeLibraryPath [ stdenv.cc.cc ]}"
wrapProgram $out/opt/appgate/appgate-driver \
--prefix PATH : ${makeBinPath [ iproute2 networkmanager dnsmasq ]} \
--prefix PATH : ${lib.makeBinPath [ iproute2 networkmanager dnsmasq ]} \
--set LD_LIBRARY_PATH $out/opt/appgate/service
# make xdg-open overrideable at runtime
makeWrapper $out/opt/appgate/Appgate $out/bin/appgate \
--suffix PATH : ${makeBinPath [ xdg-utils ]} \
--set LD_LIBRARY_PATH $out/opt/appgate:${makeLibraryPath deps}
--suffix PATH : ${lib.makeBinPath [ xdg-utils ]} \
--set LD_LIBRARY_PATH $out/opt/appgate:${lib.makeLibraryPath deps}
wrapProgram $out/opt/appgate/linux/set_dns --set PYTHONPATH $PYTHONPATH
'';

View file

@ -3,8 +3,6 @@
, enableWideVine, ungoogled
}:
with lib;
mkChromiumDerivation (base: rec {
name = "chromium-browser";
packageName = "chromium";
@ -76,7 +74,7 @@ mkChromiumDerivation (base: rec {
meta = {
description = "An open source web browser from Google"
+ optionalString ungoogled ", with dependencies on Google web services removed";
+ lib.optionalString ungoogled ", with dependencies on Google web services removed";
longDescription = ''
Chromium is an open source web browser from Google that aims to build a
safer, faster, and more stable way for all Internet users to experience
@ -86,11 +84,11 @@ mkChromiumDerivation (base: rec {
homepage = if ungoogled
then "https://github.com/Eloston/ungoogled-chromium"
else "https://www.chromium.org/";
maintainers = with maintainers; if ungoogled
maintainers = with lib.maintainers; if ungoogled
then [ squalus primeos michaeladler ]
else [ primeos thefloweringash ];
license = if enableWideVine then licenses.unfree else licenses.bsd3;
platforms = platforms.linux;
license = if enableWideVine then lib.licenses.unfree else lib.licenses.bsd3;
platforms = lib.platforms.linux;
mainProgram = "chromium";
hydraPlatforms = if (channel == "stable" || channel == "ungoogled-chromium")
then ["aarch64-linux" "x86_64-linux"]

View file

@ -51,8 +51,6 @@
buildFun:
with lib;
let
python3WithPackages = python3.withPackages(ps: with ps; [
ply jinja2 setuptools
@ -75,16 +73,16 @@ let
let
# Serialize Nix types into GN types according to this document:
# https://source.chromium.org/gn/gn/+/master:docs/language.md
mkGnString = value: "\"${escape ["\"" "$" "\\"] value}\"";
mkGnString = value: "\"${lib.escape ["\"" "$" "\\"] value}\"";
sanitize = value:
if value == true then "true"
else if value == false then "false"
else if isList value then "[${concatMapStringsSep ", " sanitize value}]"
else if isInt value then toString value
else if isString value then mkGnString value
else if lib.isList value then "[${lib.concatMapStringsSep ", " sanitize value}]"
else if lib.isInt value then toString value
else if lib.isString value then mkGnString value
else throw "Unsupported type for GN value `${value}'.";
toFlag = key: value: "${key}=${sanitize value}";
in attrs: concatStringsSep " " (attrValues (mapAttrs toFlag attrs));
in attrs: lib.concatStringsSep " " (lib.attrValues (lib.mapAttrs toFlag attrs));
# https://source.chromium.org/chromium/chromium/src/+/master:build/linux/unbundle/replace_gn_files.py
gnSystemLibraries = [
@ -151,9 +149,9 @@ let
libdrm wayland mesa.drivers libxkbcommon
curl
libepoxy
] ++ optional systemdSupport systemd
++ optionals cupsSupport [ libgcrypt cups ]
++ optional pulseSupport libpulseaudio;
] ++ lib.optional systemdSupport systemd
++ lib.optionals cupsSupport [ libgcrypt cups ]
++ lib.optional pulseSupport libpulseaudio;
patches = [
# Optional patch to use SOURCE_DATE_EPOCH in compute_build_timestamp.py (should be upstreamed):
@ -237,10 +235,10 @@ let
# Allow building against system libraries in official builds
sed -i 's/OFFICIAL_BUILD/GOOGLE_CHROME_BUILD/' tools/generate_shim_headers/generate_shim_headers.py
'' + optionalString stdenv.isAarch64 ''
'' + lib.optionalString stdenv.isAarch64 ''
substituteInPlace build/toolchain/linux/BUILD.gn \
--replace 'toolprefix = "aarch64-linux-gnu-"' 'toolprefix = ""'
'' + optionalString ungoogled ''
'' + lib.optionalString ungoogled ''
${ungoogler}/utils/prune_binaries.py . ${ungoogler}/pruning.list || echo "some errors"
${ungoogler}/utils/patches.py . ${ungoogler}/patches
${ungoogler}/utils/domain_substitution.py apply -r ${ungoogler}/domain_regex.list -f ${ungoogler}/domain_substitution.list -c ./ungoogled-domsubcache.tar.gz .
@ -300,15 +298,15 @@ let
# as well to avoid incompatibilities (if this continues to be a problem
# from time to time):
use_system_libwayland = true;
} // optionalAttrs proprietaryCodecs {
} // lib.optionalAttrs proprietaryCodecs {
# enable support for the H.264 codec
proprietary_codecs = true;
enable_hangout_services_extension = true;
ffmpeg_branding = "Chrome";
} // optionalAttrs pulseSupport {
} // lib.optionalAttrs pulseSupport {
use_pulseaudio = true;
link_pulseaudio = true;
} // optionalAttrs ungoogled (importTOML ./ungoogled-flags.toml)
} // lib.optionalAttrs ungoogled (lib.importTOML ./ungoogled-flags.toml)
// (extraAttrs.gnFlags or {}));
configurePhase = ''
@ -317,7 +315,7 @@ let
# This is to ensure expansion of $out.
libExecPath="${libExecPath}"
${python3}/bin/python3 build/linux/unbundle/replace_gn_files.py --system-libraries ${toString gnSystemLibraries}
${gnChromium}/bin/gn gen --args=${escapeShellArg gnFlags} out/Release | tee gn-gen-outputs.txt
${gnChromium}/bin/gn gen --args=${lib.escapeShellArg gnFlags} out/Release | tee gn-gen-outputs.txt
# Fail if `gn gen` contains a WARNING.
grep -o WARNING gn-gen-outputs.txt && echo "Found gn WARNING, exiting nix build" && exit 1
@ -342,7 +340,7 @@ let
'';
targets = extraAttrs.buildTargets or [];
commands = map buildCommand targets;
in concatStringsSep "\n" commands;
in lib.concatStringsSep "\n" commands;
postFixup = ''
# Make sure that libGLESv2 is found by dlopen (if using EGL).

View file

@ -47,8 +47,6 @@
, addOpenGLRunpath
}:
with lib;
let
opusWithCustomModes = libopus.override {
withCustomModes = true;
@ -68,8 +66,8 @@ let
bzip2 libcap at-spi2-atk at-spi2-core
libkrb5 libdrm libglvnd mesa coreutils
libxkbcommon pipewire wayland
] ++ optional pulseSupport libpulseaudio
++ optional libvaSupport libva
] ++ lib.optional pulseSupport libpulseaudio
++ lib.optional libvaSupport libva
++ [ gtk3 ];
suffix = if channel != "stable" then "-" + channel else "";
@ -99,8 +97,8 @@ in stdenv.mkDerivation {
tar xf data.tar.xz
'';
rpath = makeLibraryPath deps + ":" + makeSearchPathOutput "lib" "lib64" deps;
binpath = makeBinPath deps;
rpath = lib.makeLibraryPath deps + ":" + lib.makeSearchPathOutput "lib" "lib64" deps;
binpath = lib.makeBinPath deps;
installPhase = ''
runHook preInstall
@ -149,7 +147,7 @@ in stdenv.mkDerivation {
--prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH:${addOpenGLRunpath.driverLink}/share" \
--set CHROME_WRAPPER "google-chrome-$dist" \
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}" \
--add-flags ${escapeShellArg commandLineArgs}
--add-flags ${lib.escapeShellArg commandLineArgs}
for elf in $out/share/google/$appname/{chrome,chrome-sandbox,${crashpadHandlerBinary},nacl_helper}; do
patchelf --set-rpath $rpath $elf
@ -159,7 +157,7 @@ in stdenv.mkDerivation {
runHook postInstall
'';
meta = {
meta = with lib; {
description = "A freeware web browser developed by Google";
homepage = "https://www.google.com/chrome/browser/";
license = licenses.unfree;

View file

@ -53,10 +53,8 @@
, extraPrefs ? ""
}:
with lib;
let
libPath = makeLibraryPath libPkgs;
libPath = lib.makeLibraryPath libPkgs;
libPkgs = [
atk
@ -78,13 +76,13 @@ let
stdenv.cc.libc
zlib
]
++ optionals pulseaudioSupport [ libpulseaudio ]
++ optionals mediaSupport [
++ lib.optionals pulseaudioSupport [ libpulseaudio ]
++ lib.optionals mediaSupport [
ffmpeg
];
# Library search path for the fte transport
fteLibPath = makeLibraryPath [ stdenv.cc.cc gmp ];
fteLibPath = lib.makeLibraryPath [ stdenv.cc.cc gmp ];
# Upstream source
version = "11.5.8";
@ -156,7 +154,7 @@ stdenv.mkDerivation rec {
libPath=${libPath}:$TBB_IN_STORE:$TBB_IN_STORE/TorBrowser/Tor
# apulse uses a non-standard library path. For now special-case it.
${optionalString (audioSupport && !pulseaudioSupport) ''
${lib.optionalString (audioSupport && !pulseaudioSupport) ''
libPath=${apulse}/lib/apulse:$libPath
''}
@ -224,7 +222,7 @@ stdenv.mkDerivation rec {
clearPref("security.sandbox.content.write_path_whitelist");
''}
${optionalString (extraPrefs != "") ''
${lib.optionalString (extraPrefs != "") ''
${extraPrefs}
''}
EOF
@ -251,14 +249,14 @@ stdenv.mkDerivation rec {
GeoIPv6File $TBB_IN_STORE/TorBrowser/Data/Tor/geoip6
EOF
WRAPPER_LD_PRELOAD=${optionalString useHardenedMalloc
WRAPPER_LD_PRELOAD=${lib.optionalString useHardenedMalloc
"${graphene-hardened-malloc}/lib/libhardened_malloc.so"}
WRAPPER_XDG_DATA_DIRS=${concatMapStringsSep ":" (x: "${x}/share") [
WRAPPER_XDG_DATA_DIRS=${lib.concatMapStringsSep ":" (x: "${x}/share") [
gnome.adwaita-icon-theme
shared-mime-info
]}
WRAPPER_XDG_DATA_DIRS+=":"${concatMapStringsSep ":" (x: "${x}/share/gsettings-schemas/${x.name}") [
WRAPPER_XDG_DATA_DIRS+=":"${lib.concatMapStringsSep ":" (x: "${x}/share/gsettings-schemas/${x.name}") [
glib
gsettings-desktop-schemas
gtk3
@ -270,7 +268,7 @@ stdenv.mkDerivation rec {
#! ${runtimeShell}
set -o errexit -o nounset
PATH=${makeBinPath [ coreutils ]}
PATH=${lib.makeBinPath [ coreutils ]}
export LC_ALL=C
export LOCALE_ARCHIVE=${glibcLocales}/lib/locale/locale-archive
@ -317,7 +315,7 @@ stdenv.mkDerivation rec {
: "\''${XDG_RUNTIME_DIR:=/run/user/\$(id -u)}"
: "\''${XDG_CONFIG_HOME:=\$REAL_HOME/.config}"
${optionalString pulseaudioSupport ''
${lib.optionalString pulseaudioSupport ''
# Figure out some envvars for pulseaudio
: "\''${PULSE_SERVER:=\$XDG_RUNTIME_DIR/pulse/native}"
: "\''${PULSE_COOKIE:=\$XDG_CONFIG_HOME/pulse/cookie}"

View file

@ -25,8 +25,6 @@
, pkgsBuildBuild
}:
with lib;
# k3s is a kinda weird derivation. One of the main points of k3s is the
# simplicity of it being one binary that can perform several tasks.
# However, when you have a good package manager (like nix), that doesn't
@ -73,7 +71,7 @@ let
# run `grep github.com/kubernetes-sigs/cri-tools go.mod | head -n1 | awk '{print $4}'` in the k3s repo at the tag
criCtlVersion = "1.26.0-rc.0-k3s1";
baseMeta = {
baseMeta = with lib; {
description = "A lightweight Kubernetes distribution";
license = licenses.asl20;
homepage = "https://k3s.io";

View file

@ -12,8 +12,6 @@
, R
}:
with lib;
let
spark = { pname, version, sha256, extraMeta ? {} }:
stdenv.mkDerivation rec {
@ -26,7 +24,7 @@ let
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ jdk python3Packages.python ]
++ extraPythonPackages
++ optional RSupport R;
++ lib.optional RSupport R;
untarDir = "${pname}-${version}";
installPhase = ''
@ -38,12 +36,12 @@ let
cat > $out/lib/${untarDir}/conf/spark-env.sh <<- EOF
export JAVA_HOME="${jdk}"
export SPARK_HOME="$out/lib/${untarDir}"
'' + optionalString hadoopSupport ''
'' + lib.optionalString hadoopSupport ''
export SPARK_DIST_CLASSPATH=$(${hadoop}/bin/hadoop classpath)
'' + ''
export PYSPARK_PYTHON="${python3Packages.python}/bin/${python3Packages.python.executable}"
export PYTHONPATH="\$PYTHONPATH:$PYTHONPATH"
${optionalString RSupport ''
${lib.optionalString RSupport ''
export SPARKR_R_SHELL="${R}/bin/R"
export PATH="\$PATH:${R}/bin"''}
EOF
@ -64,10 +62,10 @@ let
meta = {
description = "Apache Spark is a fast and general engine for large-scale data processing";
homepage = "https://spark.apache.org/";
sourceProvenance = with sourceTypes; [ binaryBytecode ];
sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
license = lib.licenses.asl20;
platforms = lib.platforms.all;
maintainers = with maintainers; [ thoughtpolice offline kamilchm illustris ];
maintainers = with lib.maintainers; [ thoughtpolice offline kamilchm illustris ];
} // extraMeta;
};
in

View file

@ -1,7 +1,5 @@
{ stdenv, lib, fetchFromGitHub, wrapPython, fetchpatch }:
with lib;
stdenv.mkDerivation {
pname = "droopy";
version = "20160830";
@ -32,7 +30,7 @@ stdenv.mkDerivation {
wrapPythonPrograms
'';
meta = {
meta = with lib; {
description = "Mini Web server that let others upload files to your computer";
homepage = "http://stackp.online.fr/droopy";
license = licenses.bsd3;

View file

@ -1,6 +1,5 @@
{ lib, fetchFromGitHub, stdenv, bitlbee, autoreconfHook, pkg-config, glib }:
with lib;
stdenv.mkDerivation rec {
pname = "bitlbee-discord";
version = "0.4.3";
@ -21,7 +20,7 @@ stdenv.mkDerivation rec {
./autogen.sh
'';
meta = {
meta = with lib; {
description = "Bitlbee plugin for Discord";
homepage = "https://github.com/sm00th/bitlbee-discord";

View file

@ -1,6 +1,5 @@
{ lib, fetchgit, stdenv, bitlbee, autoreconfHook, pkg-config, glib }:
with lib;
stdenv.mkDerivation rec {
pname = "bitlbee-mastodon";
version = "1.4.5";
@ -19,7 +18,7 @@ stdenv.mkDerivation rec {
export BITLBEE_DATADIR=$out/share/bitlbee
'';
meta = {
meta = with lib; {
description = "Bitlbee plugin for Mastodon";
homepage = "https://alexschroeder.ch/cgit/bitlbee-mastodon/about";
license = licenses.gpl2Plus;

View file

@ -1,6 +1,5 @@
{ lib, fetchFromGitHub, stdenv, bitlbee, autoconf, automake, libtool, pkg-config, libgcrypt }:
with lib;
stdenv.mkDerivation rec {
version = "1.4.2";
pname = "bitlbee-steam";
@ -20,7 +19,7 @@ stdenv.mkDerivation rec {
./autogen.sh
'';
meta = {
meta = with lib; {
description = "Steam protocol plugin for BitlBee";
homepage = "https://github.com/jgeboski/bitlbee-steam";

View file

@ -3,7 +3,6 @@
, enablePam ? false, pam ? null
}:
with lib;
stdenv.mkDerivation rec {
pname = "bitlbee";
version = "3.6";
@ -13,11 +12,11 @@ stdenv.mkDerivation rec {
sha256 = "0zhhcbcr59sx9h4maf8zamzv2waya7sbsl7w74gbyilvy93dw5cz";
};
nativeBuildInputs = [ pkg-config ] ++ optional doCheck check;
nativeBuildInputs = [ pkg-config ] ++ lib.optional doCheck check;
buildInputs = [ gnutls libotr python3 ]
++ optional enableLibPurple pidgin
++ optional enablePam pam;
++ lib.optional enableLibPurple pidgin
++ lib.optional enablePam pam;
propagatedBuildInputs = [ glib ];
@ -25,8 +24,8 @@ stdenv.mkDerivation rec {
"--otr=1"
"--ssl=gnutls"
"--pidfile=/var/lib/bitlbee/bitlbee.pid"
] ++ optional enableLibPurple "--purple=1"
++ optional enablePam "--pam=1";
] ++ lib.optional enableLibPurple "--purple=1"
++ lib.optional enablePam "--pam=1";
patches = [
# This should be dropped once the issue is fixed upstream.
@ -46,7 +45,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
meta = {
meta = with lib; {
description = "IRC instant messaging gateway";
longDescription = ''

View file

@ -1,7 +1,5 @@
{ lib, runCommandLocal, bitlbee }:
with lib;
plugins: runCommandLocal "bitlbee-plugins" {
inherit plugins;
buildInputs = [ bitlbee plugins ];

View file

@ -1,10 +1,8 @@
{ lib, stdenv, fetchgit, libtoxcore
, conf ? null }:
with lib;
let
configFile = optionalString (conf!=null) (builtins.toFile "config.h" conf);
configFile = lib.optionalString (conf!=null) (builtins.toFile "config.h" conf);
in stdenv.mkDerivation {
pname = "ratox";
@ -22,12 +20,12 @@ in stdenv.mkDerivation {
substituteInPlace config.mk \
--replace '-lsodium -lopus -lvpx ' ""
${optionalString (conf!=null) "cp ${configFile} config.def.h"}
${lib.optionalString (conf!=null) "cp ${configFile} config.def.h"}
'';
makeFlags = [ "PREFIX=$(out)" ];
meta = {
meta = with lib; {
description = "FIFO based tox client";
homepage = "http://ratox.2f30.org/";
license = licenses.isc;

View file

@ -65,8 +65,6 @@
, MetalKit
}:
with lib;
let
tg_owt = callPackage ./tg_owt.nix {
abseil-cpp = abseil-cpp.override {
@ -99,14 +97,14 @@ stdenv.mkDerivation rec {
./shortcuts-binary-path.patch
];
postPatch = optionalString stdenv.isLinux ''
postPatch = lib.optionalString stdenv.isLinux ''
substituteInPlace Telegram/ThirdParty/libtgvoip/os/linux/AudioInputALSA.cpp \
--replace '"libasound.so.2"' '"${alsa-lib}/lib/libasound.so.2"'
substituteInPlace Telegram/ThirdParty/libtgvoip/os/linux/AudioOutputALSA.cpp \
--replace '"libasound.so.2"' '"${alsa-lib}/lib/libasound.so.2"'
substituteInPlace Telegram/ThirdParty/libtgvoip/os/linux/AudioPulse.cpp \
--replace '"libpulse.so.0"' '"${libpulseaudio}/lib/libpulse.so.0"'
'' + optionalString stdenv.isDarwin ''
'' + lib.optionalString stdenv.isDarwin ''
sed -i "13i#import <CoreAudio/CoreAudio.h>" Telegram/lib_webrtc/webrtc/mac/webrtc_media_devices_mac.mm
substituteInPlace Telegram/CMakeLists.txt \
--replace 'COMMAND iconutil' 'COMMAND png2icns' \
@ -122,7 +120,7 @@ stdenv.mkDerivation rec {
python3
wrapQtAppsHook
removeReferencesTo
] ++ optionals stdenv.isLinux [
] ++ lib.optionals stdenv.isLinux [
# to build bundled libdispatch
clang
extra-cmake-modules
@ -143,7 +141,7 @@ stdenv.mkDerivation rec {
rnnoise
tg_owt
microsoft_gsl
] ++ optionals stdenv.isLinux [
] ++ lib.optionals stdenv.isLinux [
kwayland
alsa-lib
libpulseaudio
@ -151,7 +149,7 @@ stdenv.mkDerivation rec {
glibmm
jemalloc
wayland
] ++ optionals stdenv.isDarwin [
] ++ lib.optionals stdenv.isDarwin [
Cocoa
CoreFoundation
CoreServices
@ -192,7 +190,7 @@ stdenv.mkDerivation rec {
"-DDESKTOP_APP_QT6=OFF"
];
installPhase = optionalString stdenv.isDarwin ''
installPhase = lib.optionalString stdenv.isDarwin ''
mkdir -p $out/Applications
cp -r Kotatogram.app $out/Applications
ln -s $out/Applications/Kotatogram.app/Contents/MacOS $out/bin
@ -209,7 +207,7 @@ stdenv.mkDerivation rec {
inherit tg_owt;
};
meta = {
meta = with lib; {
description = "Kotatogram experimental Telegram Desktop fork";
longDescription = ''
Unofficial desktop client for the Telegram messenger, based on Telegram Desktop.

View file

@ -1,7 +1,5 @@
{ stdenv, lib, kotatogram-desktop, glib-networking, webkitgtk, makeWrapper }:
with lib;
stdenv.mkDerivation {
pname = "${kotatogram-desktop.pname}-with-webkit";
version = kotatogram-desktop.version;
@ -15,9 +13,9 @@ stdenv.mkDerivation {
mkdir -p $out/bin
makeWrapper ${kotatogram-desktop}/bin/kotatogram-desktop $out/bin/kotatogram-desktop \
--prefix GIO_EXTRA_MODULES : ${glib-networking}/lib/gio/modules \
--prefix LD_LIBRARY_PATH : ${makeLibraryPath [ webkitgtk ]}
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ webkitgtk ]}
'';
meta = kotatogram-desktop.meta // {
platforms = platforms.linux;
platforms = lib.platforms.linux;
};
}

View file

@ -3,8 +3,6 @@
, xorg
}:
with lib;
let
bits = "x86_64";
@ -19,7 +17,7 @@ let
categories = [ "Network" ];
};
tarball = "Wavebox_${replaceStrings ["."] ["_"] (toString version)}_linux_${bits}.tar.gz";
tarball = "Wavebox_${lib.replaceStrings ["."] ["_"] (toString version)}_linux_${bits}.tar.gz";
in stdenv.mkDerivation {
pname = "wavebox";
@ -40,7 +38,7 @@ in stdenv.mkDerivation {
alsa-lib gtk3 nss
];
runtimeDependencies = [ (getLib udev) libnotify ];
runtimeDependencies = [ (lib.getLib udev) libnotify ];
installPhase = ''
mkdir -p $out/bin $out/opt/wavebox

View file

@ -2,8 +2,6 @@
, nixosTests
}:
with lib;
perlPackages.buildPerlPackage rec {
pname = "convos";
version = "7.02";
@ -16,7 +14,7 @@ perlPackages.buildPerlPackage rec {
};
nativeBuildInputs = [ makeWrapper ]
++ optionals stdenv.isDarwin [ shortenPerlShebang ];
++ lib.optionals stdenv.isDarwin [ shortenPerlShebang ];
buildInputs = with perlPackages; [
CryptPassphrase CryptPassphraseArgon2 CryptPassphraseBcrypt
@ -79,7 +77,7 @@ perlPackages.buildPerlPackage rec {
ln -s $AUTO_SHARE_PATH/public/asset $out/asset
cp -vR templates $out/templates
cp cpanfile $out/cpanfile
'' + optionalString stdenv.isDarwin ''
'' + lib.optionalString stdenv.isDarwin ''
shortenPerlShebang $out/bin/convos
'' + ''
wrapProgram $out/bin/convos --set MOJO_HOME $out
@ -91,6 +89,6 @@ perlPackages.buildPerlPackage rec {
homepage = "https://convos.chat";
description = "Convos is the simplest way to use IRC in your browser";
license = lib.licenses.artistic2;
maintainers = with maintainers; [ sgo ];
maintainers = with lib.maintainers; [ sgo ];
};
}

View file

@ -52,8 +52,6 @@
, enablePluginVcalendar ? true, libical
}:
with lib;
let
pythonPkgs = with python3.pkgs; [ python3 wrapPython pygobject3 ];
@ -130,7 +128,7 @@ in stdenv.mkDerivation rec {
buildInputs =
[ curl gsettings-desktop-schemas glib-networking gtk3 ]
++ concatMap (f: optionals f.enabled f.deps) (filter (f: f ? deps) features)
++ lib.concatMap (f: lib.optionals f.enabled f.deps) (lib.filter (f: f ? deps) features)
;
configureFlags =
@ -141,7 +139,7 @@ in stdenv.mkDerivation rec {
"--disable-gdata-plugin" # Complains about missing libgdata, even when provided
] ++
(map (feature: map (flag: strings.enableFeature feature.enabled flag) feature.flags) features);
(map (feature: map (flag: lib.strings.enableFeature feature.enabled flag) feature.flags) features);
enableParallelBuilding = true;
@ -155,7 +153,7 @@ in stdenv.mkDerivation rec {
cp claws-mail.desktop $out/share/applications
'';
meta = {
meta = with lib; {
description = "The user-friendly, lightweight, and fast email client";
homepage = "https://www.claws-mail.org/";
license = licenses.gpl3Plus;

View file

@ -4,8 +4,6 @@
assert gpgSupport -> gpgme != null;
assert sslSupport -> openssl != null;
with lib;
stdenv.mkDerivation rec {
pname = "sylpheed";
version = "3.7.0";
@ -33,17 +31,17 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config ];
buildInputs = [ gtk2 ]
++ optionals gpgSupport [ gpgme ]
++ optionals sslSupport [ openssl ]
++ optionals stdenv.isDarwin [ Foundation ];
++ lib.optionals gpgSupport [ gpgme ]
++ lib.optionals sslSupport [ openssl ]
++ lib.optionals stdenv.isDarwin [ Foundation ];
configureFlags = optional gpgSupport "--enable-gpgme"
++ optional sslSupport "--enable-ssl";
configureFlags = lib.optional gpgSupport "--enable-gpgme"
++ lib.optional sslSupport "--enable-ssl";
# Undefined symbols for architecture arm64: "_OBJC_CLASS_$_NSAutoreleasePool"
NIX_LDFLAGS = lib.optionalString stdenv.isDarwin "-framework Foundation";
meta = {
meta = with lib; {
homepage = "https://sylpheed.sraoss.jp/en/";
description = "Lightweight and user-friendly e-mail client";
maintainers = with maintainers; [ eelco ];

View file

@ -9,7 +9,6 @@
assert guiSupport -> (dbus != null);
assert trackerSearch -> (python3 != null);
with lib;
mkDerivation rec {
pname = "qbittorrent";
version = "4.4.5";
@ -27,8 +26,8 @@ mkDerivation rec {
nativeBuildInputs = [ pkg-config ];
buildInputs = [ boost libtorrent-rasterbar qtbase qttools qtsvg ]
++ optional guiSupport dbus # D(esktop)-Bus depends on GUI support
++ optional trackerSearch python3;
++ lib.optional guiSupport dbus # D(esktop)-Bus depends on GUI support
++ lib.optional trackerSearch python3;
# Otherwise qm_gen.pri assumes lrelease-qt5, which does not exist.
QMAKE_LRELEASE = "lrelease";
@ -36,11 +35,11 @@ mkDerivation rec {
configureFlags = [
"--with-boost-libdir=${boost.out}/lib"
"--with-boost=${boost.dev}" ]
++ optionals (!guiSupport) [ "--disable-gui" "--enable-systemd" ] # Also place qbittorrent-nox systemd service files
++ optional (!webuiSupport) "--disable-webui"
++ optional debugSupport "--enable-debug";
++ lib.optionals (!guiSupport) [ "--disable-gui" "--enable-systemd" ] # Also place qbittorrent-nox systemd service files
++ lib.optional (!webuiSupport) "--disable-webui"
++ lib.optional debugSupport "--enable-debug";
qtWrapperArgs = optional trackerSearch "--prefix PATH : ${makeBinPath [ python3 ]}";
qtWrapperArgs = lib.optional trackerSearch "--prefix PATH : ${lib.makeBinPath [ python3 ]}";
postInstall = lib.optionalString stdenv.isDarwin ''
mkdir -p $out/{Applications,bin}
@ -48,7 +47,7 @@ mkDerivation rec {
makeWrapper $out/{Applications/qbittorrent.app/Contents/MacOS,bin}/qbittorrent
'';
meta = {
meta = with lib; {
description = "Featureful free software BitTorrent client";
homepage = "https://www.qbittorrent.org/";
changelog = "https://github.com/qbittorrent/qBittorrent/blob/release-${version}/Changelog";

View file

@ -8,8 +8,6 @@
assert withQt -> qt5 != null;
with lib;
let
version = "4.0.2";
variant = if withQt then "qt" else "cli";
@ -39,17 +37,17 @@ in stdenv.mkDerivation {
NIX_CFLAGS_COMPILE = [ "-DQT_NO_DEBUG" ];
nativeBuildInputs = [ asciidoctor bison cmake flex makeWrapper pkg-config python3 perl ]
++ optionals withQt [ qt5.wrapQtAppsHook wrapGAppsHook ];
++ lib.optionals withQt [ qt5.wrapQtAppsHook wrapGAppsHook ];
depsBuildBuild = [ buildPackages.stdenv.cc ];
buildInputs = [
gettext pcre2 libpcap lua5 libssh nghttp2 openssl libgcrypt
libgpg-error gnutls geoip c-ares glib zlib
] ++ optionals withQt (with qt5; [ qtbase qtmultimedia qtsvg qttools ])
++ optionals stdenv.isLinux [ libcap libnl ]
++ optionals stdenv.isDarwin [ SystemConfiguration ApplicationServices gmp ]
++ optionals (withQt && stdenv.isDarwin) (with qt5; [ qtmacextras ]);
] ++ lib.optionals withQt (with qt5; [ qtbase qtmultimedia qtsvg qttools ])
++ lib.optionals stdenv.isLinux [ libcap libnl ]
++ lib.optionals stdenv.isDarwin [ SystemConfiguration ApplicationServices gmp ]
++ lib.optionals (withQt && stdenv.isDarwin) (with qt5; [ qtmacextras ]);
strictDeps = true;
@ -72,7 +70,7 @@ in stdenv.mkDerivation {
install_name_tool -change "$dylib" "$out/lib/$dylib" "$f"
done
done
'' else optionalString withQt ''
'' else lib.optionalString withQt ''
pwd
install -Dm644 -t $out/share/applications ../resources/freedesktop/org.wireshark.Wireshark.desktop

View file

@ -9,8 +9,6 @@
, withDebug ? false
}:
with lib;
stdenv.mkDerivation rec {
pname = "znc";
version = "1.8.2";
@ -23,12 +21,12 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ]
++ optional withPerl perl
++ optional withPython python3
++ optional withTcl tcl
++ optional withCyrus cyrus_sasl
++ optional withUnicode icu
++ optional withZlib zlib;
++ lib.optional withPerl perl
++ lib.optional withPython python3
++ lib.optional withTcl tcl
++ lib.optional withCyrus cyrus_sasl
++ lib.optional withUnicode icu
++ lib.optional withZlib zlib;
configureFlags = [
(lib.enableFeature withPerl "perl")
@ -36,8 +34,8 @@ stdenv.mkDerivation rec {
(lib.enableFeature withTcl "tcl")
(lib.withFeatureAs withTcl "tcl" "${tcl}/lib")
(lib.enableFeature withCyrus "cyrus")
] ++ optionals (!withIPv6) [ "--disable-ipv6" ]
++ optionals withDebug [ "--enable-debug" ];
] ++ lib.optionals (!withIPv6) [ "--disable-ipv6" ]
++ lib.optionals withDebug [ "--enable-debug" ];
enableParallelBuilding = true;

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, pkg-config, cmake
{ lib, stdenv, fetchFromGitHub, pkg-config, cmake, cereal, openmp
, libjpeg ? null
, zlib ? null
, libpng ? null
@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
fetchSubmodules = true;
};
buildInputs = [ libjpeg zlib libpng eigen libtiff ];
buildInputs = [ libjpeg zlib libpng eigen libtiff cereal openmp ];
nativeBuildInputs = [ cmake pkg-config ];
@ -45,6 +45,6 @@ stdenv.mkDerivation rec {
homepage = "https://openmvg.readthedocs.io/en/latest/";
license = lib.licenses.mpl20;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ mdaiter ];
maintainers = with lib.maintainers; [ mdaiter bouk ];
};
}

View file

@ -1,27 +1,32 @@
{ lib, fetchzip }:
{ lib, stdenvNoCC, fetchzip }:
let
majorVersion = "0";
minorVersion = "102";
pname = "aileron";
in
stdenvNoCC.mkDerivation (self: {
pname = "aileron";
version = "${majorVersion}.${minorVersion}";
fetchzip {
name = "${pname}-font-${majorVersion}.${minorVersion}";
src = fetchzip {
url = "https://dotcolon.net/download/fonts/${self.pname}_${majorVersion}${minorVersion}.zip";
hash = "sha256-Ht48gwJZrn0djo1yl6jHZ4+0b710FVwStiC1Zk5YXME=";
stripRoot = false;
};
url = "http://dotcolon.net/DL/font/${pname}.zip";
sha256 = "04xnzdy9plzd2p02yq367h37m5ygx0w8cpkdv39cc3754ljlsxim";
installPhase = ''
runHook preInstall
postFetch = ''
mkdir -p $out/share/fonts/opentype/${pname}
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype/${pname}
install -D -m444 -t $out/share/fonts/opentype $src/*.otf
runHook postInstall
'';
meta = with lib; {
homepage = "http://dotcolon.net/font/${pname}/";
homepage = "http://dotcolon.net/font/${self.pname}/";
description = "A helvetica font in nine weights";
platforms = platforms.all;
maintainers = with maintainers; [ leenaars ];
maintainers = with maintainers; [ leenaars minijackson ];
license = licenses.cc0;
};
}
})

View file

@ -1,22 +1,33 @@
{ lib, fetchzip, mkfontscale, mkfontdir }:
{ lib, stdenvNoCC, fetchurl, mkfontdir, mkfontscale }:
let
version = "0.2.20080216.2";
in {
arphic-ukai = fetchzip {
name = "arphic-ukai-${version}";
in
{
arphic-ukai = stdenvNoCC.mkDerivation rec {
pname = "arphic-ukai";
inherit version;
url = "mirror://ubuntu/pool/main/f/fonts-arphic-ukai/fonts-arphic-ukai_${version}.orig.tar.bz2";
src = fetchurl {
url = "mirror://ubuntu/pool/main/f/fonts-${pname}/fonts-${pname}_${version}.orig.tar.bz2";
hash = "sha256-tJaNc1GfT4dH6FVI+4XSG2Zdob8bqQCnxJmXbmqK49I=";
};
nativeBuildInputs = [
mkfontscale
mkfontdir
];
installPhase = ''
runHook preInstall
postFetch = ''
tar -xjvf $downloadedFile --strip-components=1
install -D -v ukai.ttc $out/share/fonts/truetype/arphic-ukai.ttc
cd $out/share/fonts
${mkfontdir}/bin/mkfontdir
${mkfontscale}/bin/mkfontscale
'';
mkfontdir
mkfontscale
sha256 = "0xi5ycm7ydzpn7cqxv1kcj9vd70nr9wn8v27hmibyjc25y2qdmzl";
runHook postInstall
'';
meta = with lib; {
description = "CJK Unicode font Kai style";
@ -28,20 +39,30 @@ in {
};
};
arphic-uming = fetchzip {
name = "arphic-uming-${version}";
arphic-uming = stdenvNoCC.mkDerivation rec {
pname = "arphic-uming";
inherit version;
url = "mirror://ubuntu/pool/main/f/fonts-arphic-uming/fonts-arphic-uming_${version}.orig.tar.bz2";
src = fetchurl {
url = "mirror://ubuntu/pool/main/f/fonts-${pname}/fonts-${pname}_${version}.orig.tar.bz2";
hash = "sha256-48GeBOp6VltKz/bx5CSAhNLhB1LjBb991sdugIYNwds=";
};
nativeBuildInputs = [
mkfontscale
mkfontdir
];
installPhase = ''
runHook preInstall
postFetch = ''
tar -xjvf $downloadedFile --strip-components=1
install -D -v uming.ttc $out/share/fonts/truetype/arphic-uming.ttc
cd $out/share/fonts
${mkfontdir}/bin/mkfontdir
${mkfontscale}/bin/mkfontscale
'';
mkfontdir
mkfontscale
sha256 = "16jybvj1cxamm682caj6nsm6l5c60x9mgchp1l2izrw2rvc8x38d";
runHook postInstall
'';
meta = with lib; {
description = "CJK Unicode font Ming style";

View file

@ -1,15 +1,24 @@
{ fetchzip }:
{ lib, stdenvNoCC, fetchurl }:
fetchzip rec {
name = "baekmuk-ttf-2.2";
stdenvNoCC.mkDerivation rec {
pname = "baekmuk-ttf";
version = "2.2";
src = fetchurl {
url = "http://kldp.net/baekmuk/release/865-${pname}-${version}.tar.gz";
hash = "sha256-CKt9/7VdWIfMlCzjcPXjO3VqVfu06vC5DyRAcOjVGII=";
};
dontBuild = true;
installPhase = ''
runHook preInstall
url = "http://kldp.net/baekmuk/release/865-${name}.tar.gz";
postFetch = ''
tar -xzvf $downloadedFile --strip-components=1
install -m444 -Dt $out/share/fonts ttf/*.ttf
install -m444 -Dt $out/share/doc/${name} COPYRIGHT*
install -m444 -Dt $out/share/doc/${pname}-${version} COPYRIGHT*
runHook postInstall
'';
sha256 = "1jgsvack1l14q8lbcv4qhgbswi30mf045k37rl772hzcmx0r206g";
meta = {
description = "Korean font";
@ -17,4 +26,3 @@ fetchzip rec {
license = "BSD-like";
};
}

View file

@ -1,17 +1,25 @@
{ fetchzip }:
{ lib, stdenvNoCC, fetchurl }:
fetchzip {
name = "bakoma-ttf";
stdenvNoCC.mkDerivation rec {
pname = "bakoma-ttf";
version = "2.2";
url = "http://tarballs.nixos.org/sha256/1j1y3cq6ys30m734axc0brdm2q9n2as4h32jws15r7w5fwr991km";
src = fetchurl {
name = "${pname}.tar.bz2";
url = "http://tarballs.nixos.org/sha256/1j1y3cq6ys30m734axc0brdm2q9n2as4h32jws15r7w5fwr991km";
hash = "sha256-dYaUMneFn1yC5lIMSLQSNmFRW16AdUXGqWBobzAbPsg=";
};
dontBuild = true;
installPhase = ''
runHook preInstall
postFetch = ''
tar xjvf $downloadedFile --strip-components=1
mkdir -p $out/share/fonts/truetype
cp ttf/*.ttf $out/share/fonts/truetype
'';
sha256 = "0g7i723n00cqx2va05z1h6v3a2ar69gqw4hy6pjj7m0ml906rngc";
runHook postInstall
'';
meta = {
description = "TrueType versions of the Computer Modern and AMS TeX Fonts";

View file

@ -1,19 +1,26 @@
{ lib, fetchzip }:
{ lib, stdenvNoCC, fetchurl }:
let
stdenvNoCC.mkDerivation rec {
pname = "caladea";
version = "20130214";
in fetchzip {
name = "caladea-${version}";
url = "https://commondatastorage.googleapis.com/chromeos-localmirror/distfiles/crosextrafonts-${version}.tar.gz";
postFetch = ''
tar -xzvf $downloadedFile --strip-components=1
src = fetchurl {
url = "https://commondatastorage.googleapis.com/chromeos-localmirror/distfiles/crosextrafonts-${version}.tar.gz";
hash = "sha256-xI0cL9YTycBslZw02nuDiAWeJAjSuxmEXcPtNfduTQk=";
};
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/etc/fonts/conf.d
mkdir -p $out/share/fonts/truetype
cp -v *.ttf $out/share/fonts/truetype
cp -v ${./cambria-alias.conf} $out/etc/fonts/conf.d/30-cambria.conf
runHook postInstall
'';
sha256 = "0kwm42ggr8kvcn3554cpmv90xzam1sdncx7x3zs3bzp88mxrnv1z";
meta = with lib; {
# This font doesn't appear to have any official web site but this
@ -27,7 +34,7 @@ in fetchzip {
'';
license = licenses.asl20;
platforms = platforms.all;
maintainers = [maintainers.rycee];
maintainers = [ maintainers.rycee ];
# Reduce the priority of this package. The intent is that if you
# also install the `vista-fonts` package, then you probably will

View file

@ -1,18 +1,18 @@
{ lib, fetchzip, stdenvNoCC }:
{ lib, fetchurl, stdenvNoCC }:
stdenvNoCC.mkDerivation rec {
pname = "carlito";
version = "20130920";
src = fetchzip {
src = fetchurl {
url = "https://commondatastorage.googleapis.com/chromeos-localmirror/distfiles/crosextrafonts-carlito-${version}.tar.gz";
sha256 = "sha256-OGDO5WoF7OmiRdLRRrIXMzg276Pgeq1L3Offcl0W2jg=";
sha256 = "sha256-S9ErbLwyHBzxbaduLFhcklzpVqCAZ65vbGTv9sz9r1o=";
};
installPhase = ''
mkdir -p $out/etc/fonts/conf.d
mkdir -p $out/share/fonts/truetype
cp -v $src/*.ttf $out/share/fonts/truetype
cp -v *.ttf $out/share/fonts/truetype
cp -v ${./calibri-alias.conf} $out/etc/fonts/conf.d/30-calibri.conf
'';
@ -28,7 +28,7 @@ stdenvNoCC.mkDerivation rec {
'';
license = licenses.ofl;
platforms = platforms.all;
maintainers = [maintainers.rycee];
maintainers = [ maintainers.rycee ];
# Reduce the priority of this package. The intent is that if you
# also install the `vista-fonts` package, then you probably will

View file

@ -1,19 +1,24 @@
{ lib, fetchzip }:
{ lib, stdenvNoCC, fetchurl }:
let
stdenvNoCC.mkDerivation rec {
pname = "cm-unicode";
version = "0.7.0";
in fetchzip rec {
name = "cm-unicode-${version}";
url = "mirror://sourceforge/cm-unicode/cm-unicode/${version}/${name}-otf.tar.xz";
src = fetchurl {
url = "mirror://sourceforge/cm-unicode/cm-unicode/${version}/${pname}-${version}-otf.tar.xz";
hash = "sha256-VIp+vk1IYbEHW15wMrfGVOPqg1zBZDpgFx+jlypOHCg=";
};
dontBuild = true;
installPhase = ''
runHook preInstall
postFetch = ''
tar -xJvf $downloadedFile --strip-components=1
install -m444 -Dt $out/share/fonts/opentype *.otf
install -m444 -Dt $out/share/doc/${name} README FontLog.txt
'';
install -m444 -Dt $out/share/doc/${pname}-${version} README FontLog.txt
sha256 = "1rzz7yhqq3lljyqxbg46jfzfd09qgpgx865lijr4sgc94riy1ypn";
runHook postInstall
'';
meta = with lib; {
homepage = "https://cm-unicode.sourceforge.io/";

View file

@ -1,25 +1,32 @@
{ lib, fetchzip }:
{ lib, stdenvNoCC, fetchFromGitHub }:
let
stdenvNoCC.mkDerivation rec {
pname = "crimson";
version = "2014.10";
in fetchzip rec {
name = "crimson-${version}";
url = "https://github.com/skosch/Crimson/archive/fonts-october2014.tar.gz";
src = fetchFromGitHub {
owner = "skosch";
repo = "Crimson";
rev = "fonts-october2014";
hash = "sha256-Wp9L77q93TRmrAr0P4iH9gm0tqFY0X/xSsuFcd19aAE=";
};
dontBuild = true;
installPhase = ''
runHook preInstall
postFetch = ''
tar -xzvf $downloadedFile --strip-components=1
install -m444 -Dt $out/share/fonts/opentype "Desktop Fonts/OTF/"*.otf
install -m444 -Dt $out/share/doc/${name} README.md
'';
install -m444 -Dt $out/share/doc/${pname}-${version} README.md
sha256 = "0mg65f0ydyfmb43jqr1f34njpd10w8npw15cbb7z0nxmy4nkl842";
runHook postInstall
'';
meta = with lib; {
homepage = "https://github.com/skosch/Crimson";
description = "A font family inspired by beautiful oldstyle typefaces";
license = licenses.ofl;
platforms = platforms.all;
maintainers = [maintainers.rycee];
maintainers = [ maintainers.rycee ];
};
}

View file

@ -1,12 +1,19 @@
{ lib, fetchzip }:
{ lib, stdenvNoCC, fetchurl }:
let
stdenvNoCC.mkDerivation rec {
pname = "culmus";
version = "0.133";
in fetchzip {
name = "culmus-${version}";
url = "mirror://sourceforge/culmus/culmus/${version}/culmus-${version}.tar.gz";
postFetch = ''
tar xf $downloadedFile --strip=1
src = fetchurl {
url = "mirror://sourceforge/${pname}/${pname}/${version}/${pname}-${version}.tar.gz";
hash = "sha256-wMaHN0LQdUT2us8q1S65yzkpdNVkJ5ONwd+8g5nGTQU=";
};
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/share/fonts/{truetype,type1}
cp -v *.pfa $out/share/fonts/type1/
cp -v *.afm $out/share/fonts/type1/
@ -14,8 +21,9 @@ in fetchzip {
cp -v *.ttf $out/share/fonts/truetype/
cp -v *.otf $out/share/fonts/truetype/
cp -v fonts.scale-ttf $out/share/fonts/truetype/fonts.scale
runHook postInstall
'';
sha256 = "0zqqjcrqmbd4389hqz2dwymkkcxjrq9ylyriiv3gbmzl6l1ffk3g";
meta = {
description = "Culmus Hebrew fonts";

View file

@ -0,0 +1,49 @@
{ lib
, symlinkJoin
, aileron
, vegur
, f5_6
, tenderness
, medio
, ferrum
, seshat
, penna
, eunomia
, route159
, f1_8
, nacelle
, melete
, fa_1
}:
symlinkJoin {
name = "dotcolon-fonts";
paths = [
aileron
vegur
f5_6
tenderness
medio
ferrum
seshat
penna
eunomia
route159
f1_8
nacelle
melete
fa_1
];
meta = {
description = "Font Collection by Sora Sagano";
homepage = "https://dotcolon.net/";
license = with lib.licenses; [ cc0 ofl ];
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ minijackson ];
};
}

View file

@ -1,12 +1,12 @@
{ lib, stdenv, fetchzip, libfaketime, xorg }:
{ lib, stdenv, fetchurl, libfaketime, xorg }:
stdenv.mkDerivation rec {
pname = "efont-unicode";
version = "0.4.2";
src = fetchzip {
src = fetchurl {
url = "http://openlab.ring.gr.jp/efont/dist/unicode-bdf/${pname}-bdf-${version}.tar.bz2";
sha256 = "0bib3jgikq8s1m96imw4mlgbl5cbq1bs5sqig74s2l2cdfx3jaqc";
sha256 = "sha256-fT7SsYlV3dCQrf0IZfiNI1grj3ngDgr8IkWdg+f9m3M=";
};
nativeBuildInputs = with xorg;

View file

@ -1,27 +1,32 @@
{ lib, fetchzip }:
{ lib, stdenvNoCC, fetchzip }:
let
majorVersion = "0";
minorVersion = "200";
pname = "eunomia";
in
stdenvNoCC.mkDerivation (self: {
pname = "eunomia";
version = "${majorVersion}.${minorVersion}";
fetchzip {
name = "${pname}-font-${majorVersion}.${minorVersion}";
src = fetchzip {
url = "https://dotcolon.net/download/fonts/${self.pname}_${majorVersion}${minorVersion}.zip";
hash = "sha256-Rd2EakaTWjzoEV00tHTgg/bXgJUFfPjCyQUWi7QhFG4=";
stripRoot = false;
};
url = "http://dotcolon.net/DL/font/${pname}_${majorVersion}${minorVersion}.zip";
sha256 = "0lpmczs1d4p9dy4s0dnvv7bl5cd0f6yzyasfrkxij5s86glps38b";
installPhase = ''
runHook preInstall
postFetch = ''
mkdir -p $out/share/fonts/opentype/${pname}
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype/${pname}
install -D -m444 -t $out/share/fonts/opentype $src/*.otf
runHook postInstall
'';
meta = with lib; {
homepage = "http://dotcolon.net/font/eunomia/";
description = "A futuristic decorative font";
platforms = platforms.all;
maintainers = with maintainers; [ leenaars ];
maintainers = with maintainers; [ leenaars minijackson ];
license = licenses.ofl;
};
}
})

View file

@ -0,0 +1,33 @@
{ lib, stdenvNoCC, fetchzip }:
let
majorVersion = "1";
minorVersion = "101";
in
stdenvNoCC.mkDerivation (self: {
pname = "f1_8";
version = "${majorVersion}.${minorVersion}";
src = fetchzip {
url = "https://note.com/api/v2/attachments/download/d83b2c4ec63d7826acaa76725d261ff4";
hash = "sha256-pe1G8WeFAo+KYjjsNwn0JmtXFn9QugE1SeGwaqnl1F0=";
stripRoot = false;
extension = "zip";
};
installPhase = ''
runHook preInstall
install -D -m444 -t $out/share/fonts/opentype $src/*.otf
runHook postInstall
'';
meta = with lib; {
homepage = "http://dotcolon.net/font/${self.pname}/";
description = "A weighted decorative font";
platforms = platforms.all;
maintainers = with maintainers; [ minijackson ];
license = licenses.ofl;
};
})

View file

@ -1,27 +1,32 @@
{ lib, fetchzip }:
{ lib, stdenvNoCC, fetchzip }:
let
majorVersion = "0";
minorVersion = "110";
pname = "f5_6";
in
stdenvNoCC.mkDerivation (self: {
pname = "f5_6";
version = "${majorVersion}.${minorVersion}";
fetchzip {
name = "${pname}-font-${majorVersion}.${minorVersion}";
src = fetchzip {
url = "https://dotcolon.net/download/fonts/${self.pname}_${majorVersion}${minorVersion}.zip";
hash = "sha256-FeCU+mzR0iO5tixI72XUnhvpGj+WRfKyT3mhBtud3uE=";
stripRoot = false;
};
url = "http://dotcolon.net/DL/font/${pname}_${majorVersion}${minorVersion}.zip";
sha256 = "04p6lccd26rhjbpq3ddxi5vkk3lk8lqbpnk8lakjzixp3fgdqpp4";
installPhase = ''
runHook preInstall
postFetch = ''
mkdir -p $out/share/fonts/opentype/${pname}
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype/${pname}
install -D -m444 -t $out/share/fonts/opentype $src/*.otf
runHook postInstall
'';
meta = with lib; {
homepage = "http://dotcolon.net/font/${pname}/";
homepage = "http://dotcolon.net/font/${self.pname}/";
description = "A weighted decorative font";
platforms = platforms.all;
maintainers = with maintainers; [ leenaars ];
maintainers = with maintainers; [ leenaars minijackson ];
license = licenses.ofl;
};
}
})

View file

@ -0,0 +1,32 @@
{ lib, stdenvNoCC, fetchzip }:
let
majorVersion = "0";
minorVersion = "100";
in
stdenvNoCC.mkDerivation (self: {
pname = "fa_1";
version = "${majorVersion}.${minorVersion}";
src = fetchzip {
url = "https://dotcolon.net/download/fonts/${self.pname}_${majorVersion}${minorVersion}.zip";
hash = "sha256-BPJ+wZMYXY/yg5oEgBc5YnswA6A7w6V0gdv+cac0qdc=";
stripRoot = false;
};
installPhase = ''
runHook preInstall
install -D -m444 -t $out/share/fonts/opentype $src/*.otf
runHook postInstall
'';
meta = with lib; {
homepage = "http://dotcolon.net/font/${self.pname}/";
description = "A weighted decorative font";
platforms = platforms.all;
maintainers = with maintainers; [ minijackson ];
license = licenses.ofl;
};
})

View file

@ -1,27 +1,32 @@
{ lib, fetchzip }:
{ lib, stdenvNoCC, fetchzip }:
let
majorVersion = "0";
minorVersion = "200";
pname = "ferrum";
in
stdenvNoCC.mkDerivation (self: {
pname = "ferrum";
version = "${majorVersion}.${minorVersion}";
fetchzip {
name = "${pname}-font-${majorVersion}.${minorVersion}";
src = fetchzip {
url = "https://dotcolon.net/download/fonts/${self.pname}_${majorVersion}${minorVersion}.zip";
hash = "sha256-NDJwgFWZgyhMkGRWlY55l2omEw6ju3e3dHCEsWNzQIc=";
stripRoot = false;
};
url = "http://dotcolon.net/DL/font/${pname}.zip";
sha256 = "1w1b3ch7ik4264f05lxms01ls0aargvlx770a9szm682dfmizn8w";
installPhase = ''
runHook preInstall
postFetch = ''
mkdir -p $out/share/fonts/opentype/${pname}
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype/${pname}
install -D -m444 -t $out/share/fonts/opentype $src/*.otf
runHook postInstall
'';
meta = with lib; {
homepage = "http://dotcolon.net/font/${pname}/";
homepage = "http://dotcolon.net/font/${self.pname}/";
description = "A decorative font";
platforms = platforms.all;
maintainers = with maintainers; [ leenaars ];
maintainers = with maintainers; [ leenaars minijackson ];
license = licenses.cc0;
};
}
})

View file

@ -1,22 +1,28 @@
{ lib, fetchzip }:
{ lib, stdenvNoCC, fetchzip }:
let
stdenvNoCC.mkDerivation rec {
pname = "go-font";
version = "2.010";
rev = "41969df76e82aeec85fa3821b1e24955ea993001";
in (fetchzip {
name = "go-font-${version}";
url = "https://go.googlesource.com/image/+archive/${rev}/font/gofont/ttfs.tar.gz";
stripRoot = false;
postFetch = ''
src = fetchzip {
url = "https://go.googlesource.com/image/+archive/41969df76e82aeec85fa3821b1e24955ea993001/font/gofont/ttfs.tar.gz";
stripRoot = false;
hash = "sha256-rdzt51wY4b7HEr7W/0Ar/FB0zMyf+nKLsOT+CRSEP3o=";
};
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/share/fonts/truetype
mkdir -p $out/share/doc/go-font
mv $out/*.ttf $out/share/fonts/truetype
mv $out/README $out/share/doc/go-font/LICENSE
mv *.ttf $out/share/fonts/truetype
mv README $out/share/doc/go-font/LICENSE
runHook postInstall
'';
sha256 = "175jwq16qjnd2k923n9gcbjizchy7yv4n41dm691sjwrhbl0b13x";
}) // {
meta = with lib; {
homepage = "https://blog.golang.org/go-fonts";
description = "The Go font family";
@ -24,6 +30,5 @@ in (fetchzip {
license = licenses.bsd3;
maintainers = with maintainers; [ sternenseemann ];
platforms = lib.platforms.all;
hydraPlatforms = [];
};
}

View file

@ -1,15 +1,25 @@
# when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation'
{ lib, fetchzip }:
{ lib, stdenvNoCC, fetchzip }:
let
baseName = "gyre-fonts";
stdenvNoCC.mkDerivation rec {
pname = "gyre-fonts";
version = "2.005";
in (fetchzip {
name="${baseName}-${version}";
url = "http://www.gust.org.pl/projects/e-foundry/tex-gyre/whole/tg-${version}otf.zip";
src = fetchzip {
url = "http://www.gust.org.pl/projects/e-foundry/tex-gyre/whole/tg-${version}otf.zip";
stripRoot = false;
hash = "sha256-+6IufuFf+IoLXoZEPlfHUNgRhKrQNBEZ1OwPD9/uOjg=";
};
sha256 = "17amdpahs6kn7hk3dqxpff1s095cg1caxzij3mxjbbxp8zy0l111";
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/share/fonts/truetype
cp *.otf $out/share/fonts/truetype
runHook postInstall
'';
meta = {
description = "OpenType fonts from the Gyre project, suitable for use with (La)TeX";
@ -25,9 +35,4 @@ in (fetchzip {
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ bergey ];
};
}).overrideAttrs (_: {
postFetch = ''
mkdir -p $out/share/fonts
unzip -j $downloadedFile \*.otf -d $out/share/fonts/truetype
'';
})
}

View file

@ -1,21 +1,24 @@
{ lib, fetchzip }:
{ lib, stdenvNoCC, fetchzip }:
let
stdenvNoCC.mkDerivation rec {
pname = "hermit";
version = "2.0";
in fetchzip rec {
name = "${pname}-${version}";
url = "https://pcaro.es/d/otf-${name}.tar.gz";
src = fetchzip {
url = "https://pcaro.es/d/otf-${pname}-${version}.tar.gz";
stripRoot = false;
hash = "sha256-RYXZ2yJ8BIxsgeEwhXz7g0NnWG3kMPZoJaOLMUQyWWQ=";
};
stripRoot = false;
postFetch = ''
install -m444 -Dt $out/share/fonts/opentype $out/*.otf
shopt -s extglob dotglob
rm -rf $out/!(share)
shopt -u extglob dotglob
dontBuild = true;
installPhase = ''
runHook preInstall
install -m444 -Dt $out/share/fonts/opentype *.otf
runHook postInstall
'';
sha256 = "127hnpxicqya7v1wmzxxqafq3aj1n33i4j5ncflbw6gj5g3bizwl";
meta = with lib; {
description = "monospace font designed to be clear, pragmatic and very readable";
@ -25,4 +28,3 @@ in fetchzip rec {
platforms = platforms.all;
};
}

View file

@ -1,20 +1,24 @@
{ lib, fetchzip }:
{ lib, stdenvNoCC, fetchzip }:
let
stdenvNoCC.mkDerivation rec {
pname = "JuliaMono-ttf";
version = "0.046";
in
fetchzip {
name = "JuliaMono-ttf-${version}";
url = "https://github.com/cormullion/juliamono/releases/download/v${version}/JuliaMono-ttf.tar.gz";
sha256 = "sha256-+Ro517m1unQskQFhsT6oiz19aov87/tT1jlP/XB7kFU=";
src = fetchzip {
url = "https://github.com/cormullion/juliamono/releases/download/v${version}/${pname}.tar.gz";
stripRoot = false;
hash = "sha256-mq37L3bhUhdjB8z3I9i8+wyLrMSsu/nZrZXOuqE3JlU=";
};
stripRoot = false;
dontBuild = true;
installPhase = ''
runHook preInstall
postFetch = ''
mkdir -p $out/share/fonts/truetype
mv $out/*.ttf $out/share/fonts/truetype
rm $out/LICENSE
mv *.ttf $out/share/fonts/truetype
runHook postInstall
'';
meta = with lib; {

View file

@ -1,16 +1,23 @@
{ fetchzip, lib }:
{ lib, stdenvNoCC, fetchurl }:
let
stdenvNoCC.mkDerivation rec {
pname = "kacst";
version = "2.01";
in
fetchzip {
name = "kacst-${version}";
url = "mirror://debian/pool/main/f/fonts-kacst/fonts-kacst_${version}+mry.orig.tar.bz2";
sha256 = "sha256-pIO58CXfmKYRKYJ1oI+tjTwlKBRnkZ/CpIM2Xa0CDA4=";
postFetch = ''
src = fetchurl {
url = "mirror://debian/pool/main/f/fonts-${pname}/fonts-${pname}_${version}+mry.orig.tar.bz2";
hash = "sha256-byiZzpYiMU6kJs+NSISfHPFzAnJtc8toNIbV/fKiMzg=";
};
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/share/fonts
tar xjf $downloadedFile --strip-components=1 -C $out/share/fonts
cp -R kacst $out/share/fonts
runHook postInstall
'';
meta = with lib; {

View file

@ -1,20 +1,23 @@
{ fetchzip, lib }:
{ lib, stdenvNoCC, fetchurl }:
let
stdenvNoCC.mkDerivation rec {
pname = "khmeros";
version = "5.0";
in
fetchzip {
name = "khmeros-${version}";
url = "mirror://debian/pool/main/f/fonts-khmeros/fonts-khmeros_${version}.orig.tar.xz";
sha256 = "sha256-pS+7RQbGwlBxdCfSVxHmARCAkZrZttwYNlV/CrxqI+w=";
postFetch = ''
unpackDir="$TMPDIR/unpack"
mkdir "$unpackDir"
cd "$unpackDir"
tar xf "$downloadedFile" --strip-components=1
src = fetchurl {
url = "mirror://debian/pool/main/f/fonts-${pname}/fonts-${pname}_${version}.orig.tar.xz";
hash = "sha256-gBcM9YHSuhbxvwfQTvywH/5kN921GOyvGtkROcmcBiw=";
};
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/share/fonts
cp *.ttf $out/share/fonts
runHook postInstall
'';
meta = with lib; {

View file

@ -1,16 +1,23 @@
{ fetchzip, lib }:
{ lib, stdenvNoCC, fetchurl }:
let
stdenvNoCC.mkDerivation rec {
pname = "lao";
version = "0.0.20060226";
in
fetchzip {
name = "lao-${version}";
url = "mirror://debian/pool/main/f/fonts-lao/fonts-lao_${version}.orig.tar.xz";
sha256 = "sha256-Ti3DNOgLR5VBJ1mSe8M+qs4UYbCR7qOPgqxRfmHa+jY=";
postFetch = ''
src = fetchurl {
url = "mirror://debian/pool/main/f/fonts-${pname}/fonts-${pname}_${version}.orig.tar.xz";
hash = "sha256-DlgdyfhxxzVkNIL+NGsQ+PRlNkCuG3v2OahkIEYx60o=";
};
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/share/fonts
tar xf $downloadedFile --strip-components=1 -C $out/share/fonts fonts-lao-${version}/Phetsarath_OT.ttf
cp Phetsarath_OT.ttf $out/share/fonts
runHook postInstall
'';
meta = with lib; {

View file

@ -1,16 +1,23 @@
{ fetchzip, lib }:
{ lib, stdenvNoCC, fetchurl }:
let
stdenvNoCC.mkDerivation rec {
pname = "lklug-sinhala";
version = "0.6";
in
fetchzip {
name = "lklug-sinhala-${version}";
url = "mirror://debian/pool/main/f/fonts-lklug-sinhala/fonts-lklug-sinhala_${version}.orig.tar.xz";
sha256 = "sha256-Fy+QnAajA4yLf/I1vOQll5pRd0ZLfLe8UXq4XMC9qNc=";
postFetch = ''
mkdir -p $out/share/fonts
tar xf $downloadedFile --strip-components=1 -C $out/share/fonts fonts-lklug-sinhala-${version}/lklug.ttf
src = fetchurl {
url = "mirror://debian/pool/main/f/fonts-${pname}/fonts-${pname}_${version}.orig.tar.xz";
hash = "sha256-oPCCa01PMQcCK5fEILgXjrGzoDg+UvxkqK6AgeQaKio=";
};
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/share/fonts/truetype
cp *.ttf $out/share/fonts/truetype
runHook postInstall
'';
meta = with lib; {

View file

@ -1,26 +1,29 @@
{ fetchzip }:
{ lib, stdenvNoCC, fetchurl }:
fetchzip {
name = "lmodern-2.005";
stdenvNoCC.mkDerivation rec {
pname = "lmodern";
version = "2.005";
url = "mirror://debian/pool/main/l/lmodern/lmodern_2.005.orig.tar.gz";
src = fetchurl {
url = "mirror://debian/pool/main/l/${pname}/${pname}_${version}.orig.tar.gz";
hash = "sha256-xlUuZt6rjW0pX4t6PKWAHkkv3PisGCj7ZwatZPAUNxk=";
};
postFetch = ''
tar xzvf $downloadedFile
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/texmf-dist/
mkdir -p $out/share/fonts/
cp -r lmodern-2.005/* $out/texmf-dist/
cp -r lmodern-2.005/fonts/{opentype,type1} $out/share/fonts/
cp -r * $out/texmf-dist/
cp -r fonts/{opentype,type1} $out/share/fonts/
ln -s -r $out/texmf* $out/share/
runHook postInstall
'';
sha256 = "sha256-ySdKUt8o5FqmpdnYSzbGJ1f9t8VmKYXqPt53e1/E/FA=";
meta = {
description = "Latin Modern font";
};
}

View file

@ -1,17 +1,24 @@
{ lib, fetchzip }:
{ lib, stdenvNoCC, fetchurl }:
let version = "2.0.0"; in
fetchzip {
name = "luculent-${version}";
url = "http://www.eastfarthing.com/luculent/luculent.tar.xz";
stdenvNoCC.mkDerivation rec {
pname = "luculent";
version = "2.0.0";
src = fetchurl {
url = "http://www.eastfarthing.com/${pname}/${pname}.tar.xz";
hash = "sha256-6NxLnTBnvHmTUTFa2wW0AuKPEbCqzaWQyiFVnF0sBqU=";
};
dontBuild = true;
installPhase = ''
runHook preInstall
postFetch = ''
tar -xJf $downloadedFile --strip-components=1
mkdir -p $out/share/fonts/truetype
cp *.ttf $out/share/fonts/truetype
'';
sha256 = "1m3g64galwna1xjxb1fczmfplm6c1fn3ra1ln7f0vkm0ah5m4lbv";
runHook postInstall
'';
meta = with lib; {
description = "luculent font";

View file

@ -1,22 +1,25 @@
{ lib, fetchzip }:
{ lib, stdenvNoCC, fetchurl }:
fetchzip rec {
stdenvNoCC.mkDerivation rec {
pname = "lxgw-wenkai";
version = "1.245.1";
version = "1.250";
url = "https://github.com/lxgw/LxgwWenKai/releases/download/v${version}/lxgw-wenkai-v${version}.tar.gz";
src = fetchurl {
url = "https://github.com/lxgw/LxgwWenKai/releases/download/v${version}/${pname}-v${version}.tar.gz";
hash = "sha256-Nkd0xXYCnR0NZAk/JCxy+zOlxIxD52Px4F9o2L9mgRE=";
};
dontBuild = true;
installPhase = ''
runHook preInstall
postFetch = ''
mkdir -p $out/share/fonts/truetype
mv $out/*.ttf $out/share/fonts/truetype
mv *.ttf $out/share/fonts/truetype
shopt -s extglob dotglob
rm -rf $out/!(share)
shopt -u extglob dotglob
runHook postInstall
'';
hash = "sha256-4RQ+aqAZPQH3t6v2KvrNWgYT3J3uMuY34XTuvyLEOeI=";
meta = with lib; {
homepage = "https://lxgw.github.io/";
description = "An open-source Chinese font derived from Fontworks' Klee One";

View file

@ -1,19 +1,24 @@
{ lib, fetchzip }:
{ lib, stdenvNoCC, fetchurl }:
let
stdenvNoCC.mkDerivation rec {
pname = "marathi-cursive";
version = "2.0";
in fetchzip rec {
name = "marathi-cursive-${version}";
url = "https://github.com/MihailJP/MarathiCursive/releases/download/v${version}/MarathiCursive-${version}.tar.xz";
src = fetchurl {
url = "https://github.com/MihailJP/MarathiCursive/releases/download/v${version}/MarathiCursive-${version}.tar.xz";
hash = "sha256-JE9T3UMSYn/JfEWuWHikDJIlt4nZl6GzY98v3vG6di4=";
};
dontBuild = true;
installPhase = ''
runHook preInstall
postFetch = ''
tar -xJf $downloadedFile --strip-components=1
install -m444 -Dt $out/share/fonts/marathi-cursive *.otf *.ttf
install -m444 -Dt $out/share/doc/${name} README *.txt
'';
install -m444 -Dt $out/share/doc/${pname}-${version} README *.txt
sha256 = "17pj60ajnjghxhxka8a046mz6vfwr79wnby7xd6pg5hgncin2hgg";
runHook postInstall
'';
meta = with lib; {
homepage = "https://github.com/MihailJP/MarathiCursive";

View file

@ -1,24 +1,29 @@
{ lib, fetchzip }:
{ lib, stdenvNoCC, fetchzip }:
let
majorVersion = "0";
minorVersion = "200";
pname = "medio";
in
stdenvNoCC.mkDerivation (self: {
pname = "medio";
version = "${majorVersion}.${minorVersion}";
fetchzip {
name = "${pname}-font-${majorVersion}.${minorVersion}";
src = fetchzip {
url = "https://dotcolon.net/download/fonts/${self.pname}_${majorVersion}${minorVersion}.zip";
hash = "sha256-S+CcwD4zGVk7cIFD6K4NnpE/0mrJq4RnDJC576rhcLQ=";
stripRoot = false;
};
url = "http://dotcolon.net/DL/font/${pname}.zip";
sha256 = "0gxcmhjlsh2pzsmj78vw4v935ax7hfk533ddlhfhfma52zyxyh7x";
installPhase = ''
runHook preInstall
postFetch = ''
mkdir -p $out/share/fonts/opentype/${pname}
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype/${pname}
install -D -m444 -t $out/share/fonts/opentype $src/*.otf
runHook postInstall
'';
meta = with lib; {
homepage = "http://dotcolon.net/font/${pname}/";
homepage = "http://dotcolon.net/font/${self.pname}/";
description = "Serif font designed by Sora Sagano";
longDescription = ''
Medio is a serif font designed by Sora Sagano, based roughly
@ -26,7 +31,7 @@ fetchzip {
but with hairline serifs in the style of a Didone.
'';
platforms = platforms.all;
maintainers = with maintainers; [ leenaars ];
maintainers = with maintainers; [ leenaars minijackson ];
license = licenses.cc0;
};
}
})

View file

@ -0,0 +1,32 @@
{ lib, stdenvNoCC, fetchzip }:
let
majorVersion = "0";
minorVersion = "200";
in
stdenvNoCC.mkDerivation (self: {
pname = "melete";
version = "${majorVersion}.${minorVersion}";
src = fetchzip {
url = "https://dotcolon.net/download/fonts/${self.pname}_${majorVersion}${minorVersion}.zip";
hash = "sha256-y1xtNM1Oy92gOvbr9J71XNxb1JeTzOgxKms3G2YHK00=";
stripRoot = false;
};
installPhase = ''
runHook preInstall
install -D -m444 -t $out/share/fonts/opentype $src/*.otf
runHook postInstall
'';
meta = with lib; {
homepage = "http://dotcolon.net/font/${self.pname}/";
description = "A headline typeface that could be used as a movie title";
platforms = platforms.all;
maintainers = with maintainers; [ minijackson ];
license = licenses.ofl;
};
})

View file

@ -0,0 +1,32 @@
{ lib, stdenvNoCC, fetchzip }:
let
majorVersion = "1";
minorVersion = "00";
in
stdenvNoCC.mkDerivation (self: {
pname = "nacelle";
version = "${majorVersion}.${minorVersion}";
src = fetchzip {
url = "https://dotcolon.net/download/fonts/${self.pname}_${majorVersion}${minorVersion}.zip";
hash = "sha256-e4QsPiyfWEAYHWdwR3CkGc2UzuA3hZPYYlWtIubY0Oo=";
stripRoot = false;
};
installPhase = ''
runHook preInstall
install -D -m444 -t $out/share/fonts/opentype $src/*.otf
runHook postInstall
'';
meta = with lib; {
homepage = "http://dotcolon.net/font/${self.pname}/";
description = "A improved version of the Aileron font";
platforms = platforms.all;
maintainers = with maintainers; [ minijackson ];
license = licenses.ofl;
};
})

View file

@ -1,20 +1,23 @@
{ fetchzip, lib }:
{ lib, stdenvNoCC, fetchurl }:
let
stdenvNoCC.mkDerivation rec {
pname = "nanum";
version = "20170925";
in
fetchzip {
name = "nanum-${version}";
url = "mirror://ubuntu/pool/universe/f/fonts-nanum/fonts-nanum_${version}.orig.tar.xz";
sha256 = "sha256-lSTeQEuMmlQxiQqrx9tNScifE8nMOUDJF3lCfoAFIJk=";
postFetch = ''
unpackDir="$TMPDIR/unpack"
mkdir "$unpackDir"
cd "$unpackDir"
tar xf "$downloadedFile" --strip-components=1
src = fetchurl {
url = "mirror://ubuntu/pool/universe/f/fonts-${pname}/fonts-${pname}_${version}.orig.tar.xz";
hash = "sha256-GlVXH9YUU3wHMkNoz5miBv7N2oUEbwUXlcVoElQ9++4=";
};
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/share/fonts
cp *.ttf $out/share/fonts
runHook postInstall
'';
meta = with lib; {

View file

@ -1,25 +1,30 @@
{ lib, fetchzip }:
{ lib, stdenvNoCC, fetchurl }:
let
stdenvNoCC.mkDerivation rec {
pname = "oldsindhi";
version = "1.0";
in fetchzip rec {
name = "oldsindhi-${version}";
url = "https://github.com/MihailJP/oldsindhi/releases/download/v${version}/OldSindhi-${version}.tar.xz";
src = fetchurl {
url = "https://github.com/MihailJP/${pname}/releases/download/v${version}/OldSindhi-${version}.tar.xz";
hash = "sha256-jOcl+mo6CJ9Lnn3nAUiXXHCJssovVgLoPrbGxj4uzQs=";
};
dontBuild = true;
installPhase = ''
runHook preInstall
postFetch = ''
tar -xJf $downloadedFile --strip-components=1
install -m444 -Dt $out/share/fonts/truetype *.ttf
install -m444 -Dt $out/share/doc/${name} README *.txt
'';
install -m444 -Dt $out/share/doc/${pname}-${version} README *.txt
sha256 = "03c483vbrwz2fpdfbys42fmik9788zxfmjmc4fgq4s2d0mraa0j1";
runHook postInstall
'';
meta = with lib; {
homepage = "https://github.com/MihailJP/oldsindhi";
description = "Free Sindhi Khudabadi font";
maintainers = with maintainers; [ mathnerd314 ];
license = with licenses; [mit ofl];
license = with licenses; [ mit ofl ];
platforms = platforms.all;
};
}

View file

@ -1,24 +1,29 @@
{ lib, fetchzip }:
{ lib, stdenvNoCC, fetchzip }:
let
majorVersion = "0";
minorVersion = "10";
pname = "penna";
minorVersion = "100";
in
stdenvNoCC.mkDerivation (self: {
pname = "penna";
version = "${majorVersion}.${minorVersion}";
fetchzip {
name = "${pname}-font-${majorVersion}.${minorVersion}";
src = fetchzip {
url = "https://dotcolon.net/download/fonts/${self.pname}_${majorVersion}${minorVersion}.zip";
hash = "sha256-fmCJnEaoUGdW9JK3J7JSm5D4qOMRW7qVKPgVE7uCH5w=";
stripRoot = false;
};
url = "http://dotcolon.net/DL/font/${pname}.zip";
sha256 = "0hk15yndm56l6rbdykpkry2flffx0567mgjcqcnsx1iyzwwla5km";
installPhase = ''
runHook preInstall
postFetch = ''
mkdir -p $out/share/fonts/opentype/${pname}
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype/${pname}
install -D -m444 -t $out/share/fonts/opentype $src/*.otf
runHook postInstall
'';
meta = with lib; {
homepage = "http://dotcolon.net/font/${pname}/";
homepage = "http://dotcolon.net/font/${self.pname}/";
description = "Geometric sans serif designed by Sora Sagano";
longDescription = ''
Penna is a geometric sans serif designed by Sora Sagano,
@ -26,7 +31,7 @@ fetchzip {
with a small x-height.
'';
platforms = platforms.all;
maintainers = with maintainers; [ leenaars ];
maintainers = with maintainers; [ leenaars minijackson ];
license = licenses.cc0;
};
}
})

View file

@ -1,27 +1,32 @@
{ lib, fetchzip }:
{ lib, stdenvNoCC, fetchzip }:
let
majorVersion = "1";
minorVersion = "10";
pname = "route159";
in
stdenvNoCC.mkDerivation (self: {
pname = "route159";
version = "${majorVersion}.${minorVersion}";
fetchzip {
name = "${pname}-font-${majorVersion}.${minorVersion}";
src = fetchzip {
url = "https://dotcolon.net/download/fonts/${self.pname}_${majorVersion}${minorVersion}.zip";
hash = "sha256-1InyBW1LGbp/IU/ql9mvT14W3MTxJdWThFwRH6VHpTU=";
stripRoot = false;
};
url = "http://dotcolon.net/DL/font/${pname}_${majorVersion}${minorVersion}.zip";
sha256 = "1nv5csg73arvvwpac7ylh4j9n0s3qp79rbv2s4jvs2bf6gqhsq7h";
installPhase = ''
runHook preInstall
postFetch = ''
mkdir -p $out/share/fonts/opentype/${pname}
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype/${pname}
install -D -m444 -t $out/share/fonts/opentype $src/*.otf
runHook postInstall
'';
meta = with lib; {
homepage = "http://dotcolon.net/font/${pname}/";
homepage = "http://dotcolon.net/font/${self.pname}/";
description = "A weighted sans serif font";
platforms = platforms.all;
maintainers = with maintainers; [ leenaars ];
maintainers = with maintainers; [ leenaars minijackson ];
license = licenses.ofl;
};
}
})

View file

@ -1,24 +1,29 @@
{ lib, fetchzip }:
{ lib, stdenvNoCC, fetchzip }:
let
majorVersion = "0";
minorVersion = "100";
pname = "seshat";
in
stdenvNoCC.mkDerivation (self: {
pname = "seshat";
version = "${majorVersion}.${minorVersion}";
fetchzip {
name = "${pname}-font-${majorVersion}.${minorVersion}";
src = fetchzip {
url = "https://dotcolon.net/download/fonts/${self.pname}_${majorVersion}${minorVersion}.zip";
hash = "sha256-XgprDhzAbcTzZw2QOwpCnzusYheYmSlM+ApU+Y0wO2Q=";
stripRoot = false;
};
url = "http://dotcolon.net/DL/font/${pname}.zip";
sha256 = "1zzgc2d0jrris92p3irmxjhdq8aj99alz0z7dlz25qf37lcilrir";
installPhase = ''
runHook preInstall
postFetch = ''
mkdir -p $out/share/fonts/opentype/${pname}
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype/${pname}
install -D -m444 -t $out/share/fonts/opentype $src/*.otf
runHook postInstall
'';
meta = with lib; {
homepage = "http://dotcolon.net/font/${pname}/";
homepage = "http://dotcolon.net/font/${self.pname}/";
description = "Roman body font designed for main text by Sora Sagano";
longDescription = ''
Seshat is a Roman body font designed for the main text. By
@ -31,7 +36,7 @@ fetchzip {
It incorporates symbols and ligatures used in the European region.
'';
platforms = platforms.all;
maintainers = with maintainers; [ leenaars ];
maintainers = with maintainers; [ leenaars minijackson ];
license = licenses.cc0;
};
}
})

View file

@ -1,20 +1,23 @@
{ fetchzip, lib }:
{ lib, stdenvNoCC, fetchurl }:
let
stdenvNoCC.mkDerivation rec {
pname = "takao";
version = "00303.01";
in
fetchzip {
name = "takao-${version}";
url = "mirror://ubuntu/pool/universe/f/fonts-takao/fonts-takao_${version}.orig.tar.gz";
sha256 = "sha256-TlPq3iIv8vHlxYu5dkX/Lf6ediYKQaQ5uMbFvypQM/w=";
postFetch = ''
unpackDir="$TMPDIR/unpack"
mkdir "$unpackDir"
cd "$unpackDir"
tar xf "$downloadedFile" --strip-components=1
src = fetchurl {
url = "mirror://ubuntu/pool/universe/f/fonts-${pname}/fonts-${pname}_${version}.orig.tar.gz";
hash = "sha256-0wjHNv1yStp0q9D0WfwjgUYoUKcCrXA5jFO8PEVgq5k=";
};
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/share/fonts
cp *.ttf $out/share/fonts
runHook postInstall
'';
meta = with lib; {

View file

@ -1,27 +1,32 @@
{ lib, fetchzip }:
{ lib, stdenvNoCC, fetchzip }:
let
majorVersion = "0";
minorVersion = "601";
pname = "tenderness";
in
stdenvNoCC.mkDerivation (self: {
pname = "tenderness";
version = "${majorVersion}.${minorVersion}";
fetchzip {
name = "${pname}-font-${majorVersion}.${minorVersion}";
src = fetchzip {
url = "https://dotcolon.net/download/fonts/${self.pname}_${majorVersion}${minorVersion}.zip";
hash = "sha256-bwJKW+rY7/r2pBCSA6HYlaRMsI/U8UdW2vV4tmYuJww=";
stripRoot = false;
};
url = "http://dotcolon.net/DL/font/${pname}_${majorVersion}${minorVersion}.zip";
sha256 = "0d88l5mzq0k63zsmb8d5w3hfqxy04vpv4j0j8nmj1xv6kikhhybh";
installPhase = ''
runHook preInstall
postFetch = ''
mkdir -p $out/share/fonts/opentype/${pname}
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype/${pname}
install -D -m444 -t $out/share/fonts/opentype $src/*.otf
runHook postInstall
'';
meta = with lib; {
homepage = "http://dotcolon.net/font/${pname}/";
homepage = "http://dotcolon.net/font/${self.pname}/";
description = "Serif font designed by Sora Sagano with old-style figures";
platforms = platforms.all;
maintainers = with maintainers; [ leenaars ];
maintainers = with maintainers; [ leenaars minijackson ];
license = licenses.ofl;
};
}
})

View file

@ -1,16 +1,23 @@
{ fetchzip, lib }:
{ lib, stdenvNoCC, fetchurl }:
let
stdenvNoCC.mkDerivation rec {
pname = "tibetan-machine";
version = "1.901b";
in
fetchzip {
name = "tibetan-machine-${version}";
url = "mirror://debian/pool/main/f/fonts-tibetan-machine/fonts-tibetan-machine_${version}.orig.tar.bz2";
sha256 = "sha256-A+RgpFLsP4iTzl0PMRHaNzWGbDR5Qa38lRegNJ96ULo=";
postFetch = ''
src = fetchurl {
url = "mirror://debian/pool/main/f/fonts-${pname}/fonts-${pname}_${version}.orig.tar.bz2";
hash = "sha256-c/1Sgv7xKHpsJGjY9ZY2qOJHShGHL1robvphFNJOt5w=";
};
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/share/fonts
tar xf $downloadedFile --strip-components=1 -C $out/share/fonts ttf-tmuni-${version}/TibMachUni-${version}.ttf
cp *.ttf $out/share/fonts
runHook postInstall
'';
meta = with lib; {

View file

@ -1,20 +1,23 @@
{ lib, fetchzip }:
let
{ lib, stdenvNoCC, fetchurl }:
stdenvNoCC.mkDerivation rec {
pname = "ttf-bitstream-vera";
version = "1.10";
in
fetchzip rec {
name = "${pname}-${version}";
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${name}.tar.bz2";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.bz2";
hash = "sha256-21sn33u7MYA269t1rNPpjxvW62YI+3CmfUeM0kPReNw=";
};
dontBuild = true;
installPhase = ''
runHook preInstall
postFetch = ''
tar -xjf $downloadedFile --strip-components=1
install -m444 -Dt $out/share/fonts/truetype *.ttf
runHook postInstall
'';
sha256 = "179hal4yi3367jg8rsvqx6h2w4s0kn9zzrv8c47sslyg28g39s4m";
meta = {
};
meta = { };
}

View file

@ -1,16 +1,22 @@
{ lib, fetchzip }:
{ lib, stdenvNoCC, fetchurl }:
let
stdenvNoCC.mkDerivation rec {
pname = "unfonts-core";
version = "1.0.2-080608";
in fetchzip {
name = "${pname}-${version}";
url = "https://kldp.net/unfonts/release/2607-un-fonts-core-${version}.tar.gz";
hash = "sha256-k9C7d/SbVLWFzRnDWpOIMtY6cAEIcaLcbxQAqjwuWds=";
postFetch = ''
tar -xzf $downloadedFile --strip-components=1
src = fetchurl {
url = "https://kldp.net/unfonts/release/2607-un-fonts-core-${version}.tar.gz";
hash = "sha256-OwpydPmqt+jw8ZOMAacOFYF2bVG0lLoUVoPzesVXkY4=";
};
dontBuild = true;
installPhase = ''
runHook preInstall
install -m444 -Dt $out/share/fonts/truetype *.ttf
runHook postInstall
'';
meta = with lib; {
@ -20,7 +26,7 @@ in fetchzip {
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.
They were converted to TrueType with the FontForge (PfaEdit) by Won-kyu Park in 2003.
'';
'';
license = licenses.gpl2;
platforms = platforms.all;
maintainers = [ maintainers.ehmry ];

View file

@ -1,15 +1,22 @@
{ lib, fetchzip }:
{ lib, stdenvNoCC, fetchurl }:
fetchzip {
name = "vdrsymbols-20100612";
stdenvNoCC.mkDerivation rec {
pname = "vdrsymbols";
version = "20100612";
url = "http://andreas.vdr-developer.org/fonts/download/vdrsymbols-ttf-20100612.tgz";
src = fetchurl {
url = "http://andreas.vdr-developer.org/fonts/download/${pname}-ttf-${version}.tgz";
hash = "sha256-YxB+JcDkta5are+OQyP/WKDL0vllgn0m26bU9mQ3C/Q=";
};
sha256 = "0wpxns8zqic98c84j18dr4zmj092v07yq07vwwgzblr0rw9n6gzr";
dontBuild = true;
postFetch = ''
tar xvzf "$downloadedFile"
install -Dm444 -t "$out/share/fonts/truetype" */*.ttf
installPhase = ''
runHook preInstall
install -Dm444 -t "$out/share/fonts/truetype" *.ttf
runHook postInstall
'';
meta = with lib; {

View file

@ -1,26 +1,32 @@
{ lib, buildPackages, fetchzip }:
{ lib, stdenvNoCC, fetchzip }:
let
version = "0.701";
in fetchzip {
name = "vegur-font-${version}";
majorVersion = "0";
minorVersion = "701";
in
stdenvNoCC.mkDerivation (self: {
pname = "vegur";
version = "${majorVersion}.${minorVersion}";
# Upstream doesn't version their URLs.
# http://dotcolon.net/font/vegur/ → http://dotcolon.net/DL/font/vegur.zip
url = "http://download.opensuse.org/repositories/M17N:/fonts/SLE_12_SP3/src/dotcolon-vegur-fonts-0.701-1.4.src.rpm";
src = fetchzip {
url = "https://dotcolon.net/download/fonts/${self.pname}_${majorVersion}${minorVersion}.zip";
hash = "sha256-sGb3mEb3g15ZiVCxEfAanly8zMUopLOOjw8W4qbXLPA=";
stripRoot = false;
};
postFetch = ''
${buildPackages.rpmextract}/bin/rpmextract $downloadedFile
unzip vegur.zip
install -m444 -Dt $out/share/fonts/Vegur *.otf
installPhase = ''
runHook preInstall
install -D -m444 -t $out/share/fonts/opentype $src/*.otf
runHook postInstall
'';
sha256 = "0iisi2scq72lyj7pc1f36fhfjnm676n5byl4zaavhbxpdrbc6d1v";
meta = with lib; {
homepage = "http://dotcolon.net/font/vegur/";
description = "A humanist sans serif font";
platforms = platforms.all;
maintainers = [ maintainers.samueldr ];
maintainers = with maintainers; [ minijackson samueldr ];
license = licenses.cc0;
};
}
})

View file

@ -1,16 +1,23 @@
{ lib, fetchzip }:
{ lib, stdenvNoCC, fetchurl }:
fetchzip rec {
name = "wqy-microhei-0.2.0-beta";
stdenvNoCC.mkDerivation rec {
pname = "wqy-microhei";
version = "0.2.0";
url = "mirror://sourceforge/wqy/${name}.tar.gz";
src = fetchurl {
url = "mirror://sourceforge/wqy/${pname}-${version}-beta.tar.gz";
hash = "sha256-KAKsgCOqNqZupudEWFTjoHjTd///QhaTQb0jeHH3IT4=";
};
dontBuild = true;
installPhase = ''
runHook preInstall
postFetch = ''
tar -xzf $downloadedFile --strip-components=1
install -Dm644 wqy-microhei.ttc $out/share/fonts/wqy-microhei.ttc
'';
sha256 = "0i5jh7mkp371fxqmsvn7say075r641yl4hq26isjyrqvb8cv92a9";
runHook postInstall
'';
meta = {
description = "A (mainly) Chinese Unicode font";
@ -20,4 +27,3 @@ fetchzip rec {
platforms = lib.platforms.all;
};
}

View file

@ -1,19 +1,24 @@
{ lib, fetchzip }:
{ lib, stdenvNoCC, fetchurl }:
let
stdenvNoCC.mkDerivation rec {
pname = "wqy-zenhei";
version = "0.9.45";
in fetchzip rec {
name = "wqy-zenhei-${version}";
url = "mirror://sourceforge/wqy/${name}.tar.gz";
src = fetchurl {
url = "mirror://sourceforge/wqy/${pname}-${version}.tar.gz";
hash = "sha256-5LfjBkdb+UJ9F1dXjw5FKJMMhMROqj8WfUxC8RDuddY=";
};
dontBuild = true;
installPhase = ''
runHook preInstall
postFetch = ''
tar -xzf $downloadedFile --strip-components=1
mkdir -p $out/share/fonts
install -m644 *.ttc $out/share/fonts/
'';
sha256 = "0hbjq6afcd63nsyjzrjf8fmm7pn70jcly7fjzjw23v36ffi0g255";
runHook postInstall
'';
meta = {
description = "A (mainly) Chinese Unicode font";

View file

@ -11,7 +11,7 @@ buildGoModule rec {
hash = "sha256-FgQYnas0qkIedRAA8ApZXLzEylg6PS6+8zzl7j+yOeI=";
};
vendorSha256 = "sha256-j1fTOUpLx34TgzW94A/BctLrg9XoTtb3cBizhVJoEEI=";
vendorHash = "sha256-j1fTOUpLx34TgzW94A/BctLrg9XoTtb3cBizhVJoEEI=";
patches = [
# See https://github.com/google/go-jsonnet/issues/653.

View file

@ -8,13 +8,13 @@
stdenv.mkDerivation (finalAttrs: {
pname = "mdds";
version = "2.0.3";
version = "2.1.0";
src = fetchFromGitLab {
owner = "mdds";
repo = "mdds";
rev = finalAttrs.version;
hash = "sha256-Y9uBJKM34UTEj/3c1w69QHhvwFcMNlAohEco0O0B+xI=";
hash = "sha256-RZ2wGwle4raWlogc5X+VEeriPGS0Nqs7CWGENFEotvs=";
};
nativeBuildInputs = [ autoreconfHook ];

View file

@ -2,13 +2,13 @@
stdenv.mkDerivation rec {
pname = "raft-canonical";
version = "0.11.2";
version = "0.16.0";
src = fetchFromGitHub {
owner = "canonical";
repo = "raft";
rev = "v${version}";
sha256 = "050dwy34jh8dihfwfm0r1by2i3sy9crapipp9idw32idm79y4izb";
rev = "refs/tags/v${version}";
hash = "sha256-qDLAEhknY+BB83OC6tfi7w/ZY/K492J5ZglLNUoBwbc=";
};
nativeBuildInputs = [ autoreconfHook file pkg-config ];
@ -16,13 +16,13 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
# Ignore broken test, likely not causing huge breakage
# (https://github.com/canonical/raft/issues/292)
postPatch = ''
substituteInPlace test/integration/test_uv_tcp_connect.c --replace \
"TEST(tcp_connect, closeDuringHandshake, setUp, tearDownDeps, 0, NULL)" \
"TEST(tcp_connect, closeDuringHandshake, setUp, tearDownDeps, MUNIT_TEST_OPTION_TODO, NULL)"
'';
patches = [
# network tests either hang indefinitely, or fail outright
./disable-net-tests.patch
# missing dir check is flaky
./disable-missing-dir-test.patch
];
preConfigure = ''
substituteInPlace configure --replace /usr/bin/ " "
@ -46,6 +46,6 @@ stdenv.mkDerivation rec {
homepage = "https://github.com/canonical/raft";
license = licenses.asl20;
platforms = platforms.linux;
maintainers = with maintainers; [ wucke13 ];
maintainers = with maintainers; [ wucke13 adamcstephens ];
};
}

View file

@ -0,0 +1,23 @@
diff --git a/test/unit/test_uv_fs.c b/test/unit/test_uv_fs.c
index 638c39c..c8758d2 100644
--- a/test/unit/test_uv_fs.c
+++ b/test/unit/test_uv_fs.c
@@ -40,18 +40,6 @@ TEST(UvFsCheckDir, exists, DirSetUp, DirTearDown, 0, NULL)
return MUNIT_OK;
}
-/* If the directory doesn't exist, it an error is returned. */
-TEST(UvFsCheckDir, doesNotExist, DirSetUp, DirTearDown, 0, NULL)
-{
- const char *parent = data;
- char errmsg[RAFT_ERRMSG_BUF_SIZE];
- char dir[128];
- sprintf(errmsg, "%s/sub", parent);
- sprintf(errmsg, "directory '%s' does not exist", dir);
- CHECK_DIR_ERROR(dir, RAFT_NOTFOUND, errmsg);
- return MUNIT_OK;
-}
-
/* If the process can't access the directory, an error is returned. */
TEST(UvFsCheckDir, permissionDenied, NULL, NULL, 0, NULL)
{

View file

@ -0,0 +1,16 @@
diff --git a/Makefile.am b/Makefile.am
index 2137932..93abdb6 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -198,11 +198,7 @@ test_integration_uv_SOURCES = \
test/integration/test_uv_bootstrap.c \
test/integration/test_uv_load.c \
test/integration/test_uv_recover.c \
- test/integration/test_uv_recv.c \
- test/integration/test_uv_send.c \
test/integration/test_uv_set_term.c \
- test/integration/test_uv_tcp_connect.c \
- test/integration/test_uv_tcp_listen.c \
test/integration/test_uv_snapshot_put.c \
test/integration/test_uv_truncate.c \
test/integration/test_uv_work.c

View file

@ -3,7 +3,6 @@
, aresponses
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, geojson
, haversine
, mock
@ -14,7 +13,7 @@
buildPythonPackage rec {
pname = "aio-geojson-client";
version = "0.17";
version = "0.18";
format = "setuptools";
disabled = pythonOlder "3.7";
@ -23,18 +22,9 @@ buildPythonPackage rec {
owner = "exxamalte";
repo = "python-aio-geojson-client";
rev = "refs/tags/v${version}";
hash = "sha256-5GiQgtbvYeleovFbXO2vlr2XPsDIWZiElM64O+urMcY=";
hash = "sha256-nvfy1XLiMjyCiQo/YuzRbDtxGmAUAiq8UJwS/SkN3oM=";
};
patches = [
# Remove asynctest, https://github.com/exxamalte/python-aio-geojson-client/pull/35
(fetchpatch {
name = "remove-asynctest.patch";
url = "https://github.com/exxamalte/python-aio-geojson-client/commit/bf617d9898a99b026b43b28bd87bb6479f518c0a.patch";
hash = "sha256-uomH3LCaklfGURDs8SsnvNyHkubbe+5dleLEjW+I+M4=";
})
];
propagatedBuildInputs = [
aiohttp
geojson

View file

@ -21,7 +21,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "exxamalte";
repo = "python-aio-geojson-generic-client";
rev = "v${version}";
rev = "refs/tags/v${version}";
hash = "sha256-6Gc3SRRQiISBZnCg7a+rCQHR4NQipBHmG5gWZZXIsxY=";
};
@ -45,6 +45,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Python library for accessing GeoJSON feeds";
homepage = "https://github.com/exxamalte/python-aio-geojson-generic-client";
changelog = "https://github.com/exxamalte/python-aio-geojson-generic-client/blob/v${version}/CHANGELOG.md";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};

View file

@ -12,7 +12,7 @@
buildPythonPackage rec {
pname = "aio-geojson-geonetnz-quakes";
version = "0.14";
version = "0.15";
format = "setuptools";
disabled = pythonOlder "3.7";
@ -20,8 +20,8 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "exxamalte";
repo = "python-aio-geojson-geonetnz-quakes";
rev = "v${version}";
hash = "sha256-T3vQodb0/3YEjsyHLSI8DBKK75J8hvsaBqyQI7GkT3U=";
rev = "refs/tags/v${version}";
hash = "sha256-/EPPEGLtiZBorZMnVg0NqwnHCbCXyZzz4449MzAYQx8=";
};
propagatedBuildInputs = [
@ -42,7 +42,8 @@ buildPythonPackage rec {
meta = with lib; {
description = "Python module for accessing the GeoNet NZ Quakes GeoJSON feeds";
homepage = "https://github.com/exxamalte/pythonaio-geojson-geonetnz-quakes";
homepage = "https://github.com/exxamalte/python-aio-geojson-geonetnz-quakes";
changelog = "https://github.com/exxamalte/python-aio-geojson-geonetnz-quakes/blob/v${version}/CHANGELOG.md";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};

Some files were not shown because too many files have changed in this diff Show more