Merge staging-next into staging

This commit is contained in:
github-actions[bot] 2023-02-06 18:02:09 +00:00 committed by GitHub
commit 36822caa75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
57 changed files with 460 additions and 160 deletions

View file

@ -195,7 +195,7 @@ maintenance work for `haskellPackages` is required. Besides that, it is not
possible to get the dependencies of a legacy project from nixpkgs or to use a possible to get the dependencies of a legacy project from nixpkgs or to use a
specific stack solver for compiling a project. specific stack solver for compiling a project.
Even though we couldnt use them directly in nixpkgs, it would be desirable Even though we couldnt use them directly in nixpkgs, it would be desirable
to have tooling to generate working Nix package sets from build plans generated to have tooling to generate working Nix package sets from build plans generated
by `cabal-install` or a specific Stackage snapshot via import-from-derivation. by `cabal-install` or a specific Stackage snapshot via import-from-derivation.
Sadly we currently dont have tooling for this. For this you might be Sadly we currently dont have tooling for this. For this you might be
@ -538,7 +538,7 @@ via [`shellFor`](#haskell-shellFor).
When using `cabal-install` for dependency resolution you need to be a bit When using `cabal-install` for dependency resolution you need to be a bit
careful to achieve build purity. `cabal-install` will find and use all careful to achieve build purity. `cabal-install` will find and use all
dependencies installed from the packages `env` via Nix, but it will also dependencies installed from the packages `env` via Nix, but it will also
consult Hackage to potentially download and compile dependencies if it cant consult Hackage to potentially download and compile dependencies if it cant
find a valid build plan locally. To prevent this you can either never run find a valid build plan locally. To prevent this you can either never run
`cabal update`, remove the cabal database from your `~/.cabal` folder or run `cabal update`, remove the cabal database from your `~/.cabal` folder or run
`cabal` with `--offline`. Note though, that for some usecases `cabal2nix` needs `cabal` with `--offline`. Note though, that for some usecases `cabal2nix` needs

View file

@ -38,6 +38,7 @@
<xi:include href="r.section.xml" /> <xi:include href="r.section.xml" />
<xi:include href="ruby.section.xml" /> <xi:include href="ruby.section.xml" />
<xi:include href="rust.section.xml" /> <xi:include href="rust.section.xml" />
<xi:include href="swift.section.xml" />
<xi:include href="texlive.section.xml" /> <xi:include href="texlive.section.xml" />
<xi:include href="titanium.section.xml" /> <xi:include href="titanium.section.xml" />
<xi:include href="vim.section.xml" /> <xi:include href="vim.section.xml" />

View file

@ -4,6 +4,48 @@
Nixpkgs provides a couple of facilities for working with this tool. Nixpkgs provides a couple of facilities for working with this tool.
- A [setup hook](#setup-hook-pkg-config) bundled with in the `pkg-config` package, to bring a derivation's declared build inputs into the environment. ## Writing packages providing pkg-config modules
- The [`validatePkgConfig` setup hook](https://nixos.org/manual/nixpkgs/stable/#validatepkgconfig), for packages that provide pkg-config modules.
- The `defaultPkgConfigPackages` package set: a set of aliases, named after the modules they provide. This is meant to be used by language-to-nix integrations. Hand-written packages should use the normal Nixpkgs attribute name instead. Packages should set `meta.pkgConfigProvides` with the list of package config modules they provide.
They should also use `testers.testMetaPkgConfig` to check that the final built package matches that list.
Additionally, the [`validatePkgConfig` setup hook](https://nixos.org/manual/nixpkgs/stable/#validatepkgconfig), will do extra checks on to-be-installed pkg-config modules.
A good example of all these things is zlib:
```
{ pkg-config, testers, ... }:
stdenv.mkDerivation (finalAttrs: {
...
nativeBuildInputs = [ pkg-config validatePkgConfig ];
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
meta = {
...
pkgConfigModules = [ "zlib" ];
};
})
```
## Accessing packages via pkg-config module name
### Within Nixpkgs
A [setup hook](#setup-hook-pkg-config) is bundled in the `pkg-config` package to bring a derivation's declared build inputs into the environment.
This will populate environment variables like `PKG_CONFIG_PATH`, `PKG_CONFIG_PATH_FOR_BUILD`, and `PKG_CONFIG_PATH_HOST` based on:
- how `pkg-config` itself is depended upon
- how other dependencies are depended upon
For more details see the section on [specifying dependencies in general](#ssec-stdenv-dependencies).
Normal pkg-config commands to look up dependencies by name will then work with those environment variables defined by the hook.
### Externally
The `defaultPkgConfigPackages` package set is a set of aliases, named after the modules they provide.
This is meant to be used by language-to-nix integrations.
Hand-written packages should use the normal Nixpkgs attribute name instead.

View file

@ -0,0 +1,176 @@
# Swift {#swift}
The Swift compiler is provided by the `swift` package:
```sh
# Compile and link a simple executable.
nix-shell -p swift --run 'swiftc -' <<< 'print("Hello world!")'
# Run it!
./main
```
The `swift` package also provides the `swift` command, with some caveats:
- Swift Package Manager (SwiftPM) is packaged separately as `swiftpm`. If you
need functionality like `swift build`, `swift run`, `swift test`, you must
also add the `swiftpm` package to your closure.
- On Darwin, the `swift repl` command requires an Xcode installation. This is
because it uses the system LLDB debugserver, which has special entitlements.
## Module search paths {#ssec-swift-module-search-paths}
Like other toolchains in Nixpkgs, the Swift compiler executables are wrapped
to help Swift find your application's dependencies in the Nix store. These
wrappers scan the `buildInputs` of your package derivation for specific
directories where Swift modules are placed by convention, and automatically
add those directories to the Swift compiler search paths.
Swift follows different conventions depending on the platform. The wrappers
look for the following directories:
- On Darwin platforms: `lib/swift/macosx`
(If not targeting macOS, replace `macosx` with the Xcode platform name.)
- On other platforms: `lib/swift/linux/x86_64`
(Where `linux` and `x86_64` are from lowercase `uname -sm`.)
- For convenience, Nixpkgs also adds simply `lib/swift` to the search path.
This can save a bit of work packaging Swift modules, because many Nix builds
will produce output for just one target any way.
## Core libraries {#ssec-swift-core-libraries}
In addition to the standard library, the Swift toolchain contains some
additional 'core libraries' that, on Apple platforms, are normally distributed
as part of the OS or Xcode. These are packaged separately in Nixpkgs, and can
be found (for use in `buildInputs`) as:
- `swiftPackages.Dispatch`
- `swiftPackages.Foundation`
- `swiftPackages.XCTest`
## Packaging with SwiftPM {#ssec-swift-packaging-with-swiftpm}
Nixpkgs includes a small helper `swiftpm2nix` that can fetch your SwiftPM
dependencies for you, when you need to write a Nix expression to package your
application.
The first step is to run the generator:
```sh
cd /path/to/my/project
# Enter a Nix shell with the required tools.
nix-shell -p swift swiftpm swiftpm2nix
# First, make sure the workspace is up-to-date.
swift package resolve
# Now generate the Nix code.
swiftpm2nix
```
This produces some files in a directory `nix`, which will be part of your Nix
expression. The next step is to write that expression:
```nix
{ stdenv, swift, swiftpm, swiftpm2nix, fetchFromGitHub }:
let
# Pass the generated files to the helper.
generated = swiftpm2nix.helpers ./nix;
in
stdenv.mkDerivation rec {
pname = "myproject";
version = "0.0.0";
src = fetchFromGitHub {
owner = "nixos";
repo = pname;
rev = version;
hash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
};
# Including SwiftPM as a nativeBuildInput provides a buildPhase for you.
# This by default performs a release build using SwiftPM, essentially:
# swift build -c release
nativeBuildInputs = [ swift swiftpm ];
# The helper provides a configure snippet that will prepare all dependencies
# in the correct place, where SwiftPM expects them.
configurePhase = generated.configure;
installPhase = ''
# This is a special function that invokes swiftpm to find the location
# of the binaries it produced.
binPath="$(swiftpmBinPath)"
# Now perform any installation steps.
mkdir -p $out/bin
cp $binPath/myproject $out/bin/
'';
}
```
### Custom build flags {#ssec-swiftpm-custom-build-flags}
If you'd like to build a different configuration than `release`:
```nix
swiftpmBuildConfig = "debug";
```
It is also possible to provide additional flags to `swift build`:
```nix
swiftpmFlags = [ "--disable-dead-strip" ];
```
The default `buildPhase` already passes `-j` for parallel building.
If these two customization options are insufficient, simply provide your own
`buildPhase` that invokes `swift build`.
### Running tests {#ssec-swiftpm-running-tests}
Including `swiftpm` in your `nativeBuildInputs` also provides a default
`checkPhase`, but it must be enabled with:
```nix
doCheck = true;
```
This essentially runs: `swift test -c release`
### Patching dependencies {#ssec-swiftpm-patching-dependencies}
In some cases, it may be necessary to patch a SwiftPM dependency. SwiftPM
dependencies are located in `.build/checkouts`, but the `swiftpm2nix` helper
provides these as symlinks to read-only `/nix/store` paths. In order to patch
them, we need to make them writable.
A special function `swiftpmMakeMutable` is available to replace the symlink
with a writable copy:
```
configurePhase = generated.configure ++ ''
# Replace the dependency symlink with a writable copy.
swiftpmMakeMutable swift-crypto
# Now apply a patch.
patch -p1 -d .build/checkouts/swift-crypto -i ${./some-fix.patch}
'';
```
## Considerations for custom build tools {#ssec-swift-considerations-for-custom-build-tools}
### Linking the standard library {#ssec-swift-linking-the-standard-library}
The `swift` package has a separate `lib` output containing just the Swift
standard library, to prevent Swift applications needing a dependency on the
full Swift compiler at run-time. Linking with the Nixpkgs Swift toolchain
already ensures binaries correctly reference the `lib` output.
Sometimes, Swift is used only to compile part of a mixed codebase, and the
link step is manual. Custom build tools often locate the standard library
relative to the `swift` compiler executable, and while the result will work,
when this path ends up in the binary, it will have the Swift compiler as an
unintended dependency.
In this case, you should investigate how your build process discovers the
standard library, and override the path. The correct path will be something
like: `"${swift.swift.lib}/${swift.swiftModuleSubdir}"`

View file

@ -89,7 +89,7 @@ with lib;
# This value determines the NixOS release from which the default # This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions # settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave # on your system were taken. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system. # this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option # Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).

View file

@ -46,6 +46,7 @@ with lib;
libextractor = super.libextractor.override { gtkSupport = false; }; libextractor = super.libextractor.override { gtkSupport = false; };
libva = super.libva-minimal; libva = super.libva-minimal;
limesuite = super.limesuite.override { withGui = false; }; limesuite = super.limesuite.override { withGui = false; };
mc = super.mc.override { x11Support = false; };
mpv-unwrapped = super.mpv-unwrapped.override { sdl2Support = false; x11Support = false; }; mpv-unwrapped = super.mpv-unwrapped.override { sdl2Support = false; x11Support = false; };
msmtp = super.msmtp.override { withKeyring = false; }; msmtp = super.msmtp.override { withKeyring = false; };
neofetch = super.neofetch.override { x11Support = false; }; neofetch = super.neofetch.override { x11Support = false; };

View file

@ -217,7 +217,7 @@ in
# This value determines the NixOS release from which the default # This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions # settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave # on your system were taken. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system. # this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option # Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).

View file

@ -130,7 +130,7 @@ in
to be compatible. The effect is that NixOS will use to be compatible. The effect is that NixOS will use
defaults corresponding to the specified release (such as using defaults corresponding to the specified release (such as using
an older version of PostgreSQL). an older version of PostgreSQL).
Its perfectly fine and recommended to leave this value at the Its perfectly fine and recommended to leave this value at the
release version of the first install of this system. release version of the first install of this system.
Changing this option will not upgrade your system. In fact it Changing this option will not upgrade your system. In fact it
is meant to stay constant exactly when you upgrade your system. is meant to stay constant exactly when you upgrade your system.

View file

@ -28,13 +28,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "musikcube"; pname = "musikcube";
version = "0.99.4"; version = "0.99.5";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "clangen"; owner = "clangen";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "sha256-GAO3CKtlZF8Ol4K+40lD8n2RtewiHj3f59d5RIatNws="; sha256 = "sha256-SbWL36GRIJPSvxZyj6sebJxTkSPsUcsKyC3TmcIq2O0";
}; };
outputs = [ "out" "dev" ]; outputs = [ "out" "dev" ];

View file

@ -6,7 +6,6 @@
, gpm , gpm
, file , file
, e2fsprogs , e2fsprogs
, libX11
, libICE , libICE
, perl , perl
, zip , zip
@ -17,6 +16,7 @@
, openssl , openssl
, coreutils , coreutils
, autoSignDarwinBinariesHook , autoSignDarwinBinariesHook
, x11Support ? true, libX11
# updater only # updater only
, writeScript , writeScript
@ -43,12 +43,12 @@ stdenv.mkDerivation rec {
gettext gettext
glib glib
libICE libICE
libX11
libssh2 libssh2
openssl openssl
slang slang
zip zip
] ++ lib.optionals (!stdenv.isDarwin) [ e2fsprogs gpm ]; ] ++ lib.optional x11Support [ libX11 ]
++ lib.optionals (!stdenv.isDarwin) [ e2fsprogs gpm ];
enableParallelBuilding = true; enableParallelBuilding = true;
@ -66,12 +66,9 @@ stdenv.mkDerivation rec {
postPatch = '' postPatch = ''
substituteInPlace src/filemanager/ext.c \ substituteInPlace src/filemanager/ext.c \
--replace /bin/rm ${coreutils}/bin/rm --replace /bin/rm ${coreutils}/bin/rm
substituteInPlace misc/ext.d/misc.sh.in \
--replace /bin/cat ${coreutils}/bin/cat
''; '';
postFixup = lib.optionalString (!stdenv.isDarwin) '' postFixup = lib.optionalString ((!stdenv.isDarwin) && x11Support) ''
# libX11.so is loaded dynamically so autopatch doesn't detect it # libX11.so is loaded dynamically so autopatch doesn't detect it
patchelf \ patchelf \
--add-needed ${libX11}/lib/libX11.so \ --add-needed ${libX11}/lib/libX11.so \

View file

@ -42,7 +42,8 @@ stdenv.mkDerivation rec {
# Relative paths. # Relative paths.
"BINDIR=/bin" "BINDIR=/bin"
"PERLDIR=/share/perl5" "PERLDIR=/share/perl5"
"MODSDIR=/lib/" "MODSDIR=/nonexistent" # AMC will test for that dir before
# defaulting to the "portable" strategy, so this test *must* fail.
"TEXDIR=/tex/latex/" # what texlive.combine expects "TEXDIR=/tex/latex/" # what texlive.combine expects
"TEXDOCDIR=/share/doc/texmf/" # TODO where to put this? "TEXDOCDIR=/share/doc/texmf/" # TODO where to put this?
"MAN1DIR=/share/man/man1" "MAN1DIR=/share/man/man1"

View file

@ -2,13 +2,13 @@
python3Packages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
pname = "toot"; pname = "toot";
version = "0.33.1"; version = "0.34.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ihabunek"; owner = "ihabunek";
repo = "toot"; repo = "toot";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
sha256 = "sha256-qZk42zGHWpeN5rZPFw7xAmDIvhPzqTePU3If+p/L98c="; sha256 = "sha256-UQR3BaBcnD2o7QJEBQmdZdtVaTo9R5vSHiUxywy1OaY=";
}; };
nativeCheckInputs = with python3Packages; [ pytest ]; nativeCheckInputs = with python3Packages; [ pytest ];

View file

@ -11,13 +11,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "obs-vaapi"; pname = "obs-vaapi";
version = "0.1.0"; version = "0.2.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "fzwoch"; owner = "fzwoch";
repo = pname; repo = pname;
rev = version; rev = version;
hash = "sha256-qA4xVVShkp40QHp2HmmRzVxQaBwskRpUNEULKetVMu8="; hash = "sha256-wrbVuqIe+DY3R+Jp3zCy2Uw3fv5ejYHtRV2Sv+y/n0w=";
}; };
nativeBuildInputs = [ pkg-config meson ninja ]; nativeBuildInputs = [ pkg-config meson ninja ];
@ -39,6 +39,12 @@ stdenv.mkDerivation rec {
gst-vaapi gst-vaapi
]; ];
# Fix output directory
postInstall = ''
mkdir $out/lib/obs-plugins
mv $out/lib/obs-vaapi.so $out/lib/obs-plugins/
'';
meta = with lib; { meta = with lib; {
description = "OBS Studio VAAPI support via GStreamer"; description = "OBS Studio VAAPI support via GStreamer";
homepage = "https://github.com/fzwoch/obs-vaapi"; homepage = "https://github.com/fzwoch/obs-vaapi";

View file

@ -123,4 +123,5 @@
hasPkgConfigModule = callPackage ./hasPkgConfigModule/tester.nix { }; hasPkgConfigModule = callPackage ./hasPkgConfigModule/tester.nix { };
testMetaPkgConfig = callPackage ./testMetaPkgConfig/tester.nix { };
} }

View file

@ -0,0 +1,14 @@
{ lib, runCommand, testers }:
package:
runCommand "check-meta-pkg-config-modules-for-${package.name}" {
meta = {
description = "Test whether ${package.name} exposes all pkg-config modules ${toString package.meta.pkgConfigModules}";
};
dependsOn = map
(moduleName: testers.hasPkgConfigModule { inherit package moduleName; })
package.meta.pkgConfigModules;
} ''
echo "found all of ${toString package.meta.pkgConfigModules}" > "$out"
''

View file

@ -1139,7 +1139,7 @@ self: super: {
# 2021-12-26: Too strict bounds on doctest # 2021-12-26: Too strict bounds on doctest
polysemy-plugin = doJailbreak super.polysemy-plugin; polysemy-plugin = doJailbreak super.polysemy-plugin;
# hasnt bumped upper bounds # hasnt bumped upper bounds
# upstream: https://github.com/obsidiansystems/which/pull/6 # upstream: https://github.com/obsidiansystems/which/pull/6
which = doJailbreak super.which; which = doJailbreak super.which;

View file

@ -69,7 +69,7 @@ self: super: {
# Pick right versions for GHC-specific packages # Pick right versions for GHC-specific packages
ghc-api-compat = doDistribute (unmarkBroken self.ghc-api-compat_8_10_7); ghc-api-compat = doDistribute (unmarkBroken self.ghc-api-compat_8_10_7);
# ghc versions which dont match the ghc-lib-parser-ex version need the # ghc versions which dont match the ghc-lib-parser-ex version need the
# additional dependency to compile successfully. # additional dependency to compile successfully.
ghc-lib-parser-ex = addBuildDepend self.ghc-lib-parser super.ghc-lib-parser-ex; ghc-lib-parser-ex = addBuildDepend self.ghc-lib-parser super.ghc-lib-parser-ex;
@ -77,7 +77,7 @@ self: super: {
base-noprelude = doJailbreak super.base-noprelude; base-noprelude = doJailbreak super.base-noprelude;
unliftio-core = doJailbreak super.unliftio-core; unliftio-core = doJailbreak super.unliftio-core;
# Jailbreaking because monoidal-containers hasnt bumped it's base dependency for 8.10. # Jailbreaking because monoidal-containers hasnt bumped it's base dependency for 8.10.
monoidal-containers = doJailbreak super.monoidal-containers; monoidal-containers = doJailbreak super.monoidal-containers;
# Jailbreak to fix the build. # Jailbreak to fix the build.

View file

@ -94,13 +94,13 @@ self: super: {
# ghc versions prior to 8.8.x needs additional dependency to compile successfully. # ghc versions prior to 8.8.x needs additional dependency to compile successfully.
ghc-lib-parser-ex = addBuildDepend self.ghc-lib-parser super.ghc-lib-parser-ex; ghc-lib-parser-ex = addBuildDepend self.ghc-lib-parser super.ghc-lib-parser-ex;
# This became a core library in ghc 8.10., so we dont have an "exception" attribute anymore. # This became a core library in ghc 8.10., so we dont have an "exception" attribute anymore.
exceptions = super.exceptions_0_10_4; exceptions = super.exceptions_0_10_4;
# Older compilers need the latest ghc-lib to build this package. # Older compilers need the latest ghc-lib to build this package.
hls-hlint-plugin = addBuildDepend self.ghc-lib super.hls-hlint-plugin; hls-hlint-plugin = addBuildDepend self.ghc-lib super.hls-hlint-plugin;
# vector 0.12.2 indroduced doctest checks that dont work on older compilers # vector 0.12.2 indroduced doctest checks that dont work on older compilers
vector = dontCheck super.vector; vector = dontCheck super.vector;
mmorph = super.mmorph_1_1_3; mmorph = super.mmorph_1_1_3;

View file

@ -125,12 +125,12 @@ self: super: {
liquid-vector = markBroken super.liquid-vector; liquid-vector = markBroken super.liquid-vector;
liquidhaskell = markBroken super.liquidhaskell; liquidhaskell = markBroken super.liquidhaskell;
# This became a core library in ghc 8.10., so we dont have an "exception" attribute anymore. # This became a core library in ghc 8.10., so we dont have an "exception" attribute anymore.
exceptions = super.exceptions_0_10_7; exceptions = super.exceptions_0_10_7;
ormolu = super.ormolu_0_2_0_0; ormolu = super.ormolu_0_2_0_0;
# vector 0.12.2 indroduced doctest checks that dont work on older compilers # vector 0.12.2 indroduced doctest checks that dont work on older compilers
vector = dontCheck super.vector; vector = dontCheck super.vector;
ghc-api-compat = doDistribute (unmarkBroken super.ghc-api-compat_8_6); ghc-api-compat = doDistribute (unmarkBroken super.ghc-api-compat_8_6);
@ -143,7 +143,7 @@ self: super: {
ghc-lib-parser = self.ghc-lib-parser_8_10_7_20220219; ghc-lib-parser = self.ghc-lib-parser_8_10_7_20220219;
# ghc versions which dont match the ghc-lib-parser-ex version need the # ghc versions which dont match the ghc-lib-parser-ex version need the
# additional dependency to compile successfully. # additional dependency to compile successfully.
ghc-lib-parser-ex = addBuildDepend self.ghc-lib-parser self.ghc-lib-parser-ex_8_10_0_24; ghc-lib-parser-ex = addBuildDepend self.ghc-lib-parser self.ghc-lib-parser-ex_8_10_0_24;

View file

@ -667,7 +667,7 @@ dont-distribute-packages:
- yices-easy - yices-easy
- yices-painless - yices-painless
# These packages dont build because they use deprecated webkit versions. # These packages dont build because they use deprecated webkit versions.
- diagrams-hsqml - diagrams-hsqml
- dialog - dialog
- ghcjs-dom-webkit - ghcjs-dom-webkit

View file

@ -1115,7 +1115,7 @@ self: super: builtins.intersectAttrs super {
hls-splice-plugin hls-splice-plugin
hls-refactor-plugin hls-refactor-plugin
hls-cabal-plugin; hls-cabal-plugin;
# Tests have file permissions expections that dont work with the nix store. # Tests have file permissions expections that dont work with the nix store.
hls-stylish-haskell-plugin = dontCheck super.hls-stylish-haskell-plugin; hls-stylish-haskell-plugin = dontCheck super.hls-stylish-haskell-plugin;
hls-gadt-plugin = dontCheck super.hls-gadt-plugin; hls-gadt-plugin = dontCheck super.hls-gadt-plugin;

View file

@ -2,11 +2,11 @@
buildGraalvmNativeImage rec { buildGraalvmNativeImage rec {
pname = "babashka"; pname = "babashka";
version = "1.1.172"; version = "1.1.173";
src = fetchurl { src = fetchurl {
url = "https://github.com/babashka/${pname}/releases/download/v${version}/${pname}-${version}-standalone.jar"; url = "https://github.com/babashka/${pname}/releases/download/v${version}/${pname}-${version}-standalone.jar";
sha256 = "sha256-mdcG4zKC9zX0J2S2lWCvFdFFr5sOxfOe9/iPzvEyImM="; sha256 = "sha256-p/KGDCocTksvUwj6x5l1xUEM1OZ4pNHtXL4mTgg7JUI=";
}; };
executable = "bb"; executable = "bb";

View file

@ -222,8 +222,8 @@ stdenv.mkDerivation rec {
"-DQT_FEATURE_journald=${if systemdSupport then "ON" else "OFF"}" "-DQT_FEATURE_journald=${if systemdSupport then "ON" else "OFF"}"
"-DQT_FEATURE_vulkan=ON" "-DQT_FEATURE_vulkan=ON"
] ++ lib.optionals stdenv.isDarwin [ ] ++ lib.optionals stdenv.isDarwin [
# build as a set of dynamic libraries # error: 'path' is unavailable: introduced in macOS 10.15
"-DFEATURE_framework=OFF" "-DQT_FEATURE_cxx17_filesystem=OFF"
]; ];
NIX_LDFLAGS = toString (lib.optionals stdenv.isDarwin [ NIX_LDFLAGS = toString (lib.optionals stdenv.isDarwin [

View file

@ -8,6 +8,7 @@
# the `.pc` file lists only the main output's lib dir. # the `.pc` file lists only the main output's lib dir.
# If false, and if `{ static = true; }`, the .a stays in the main output. # If false, and if `{ static = true; }`, the .a stays in the main output.
, splitStaticOutput ? shared && static , splitStaticOutput ? shared && static
, testers
}: }:
# Without either the build will actually still succeed because the build # Without either the build will actually still succeed because the build
@ -21,11 +22,13 @@ assert shared || static;
assert splitStaticOutput -> static; assert splitStaticOutput -> static;
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "zlib"; pname = "zlib";
version = "1.2.13"; version = "1.2.13";
src = fetchurl { src = let
inherit (finalAttrs) version;
in fetchurl {
urls = [ urls = [
# This URL works for 1.2.13 only; hopefully also for future releases. # This URL works for 1.2.13 only; hopefully also for future releases.
"https://github.com/madler/zlib/releases/download/v${version}/zlib-${version}.tar.gz" "https://github.com/madler/zlib/releases/download/v${version}/zlib-${version}.tar.gz"
@ -125,10 +128,13 @@ stdenv.mkDerivation rec {
"SHARED_MODE=1" "SHARED_MODE=1"
]; ];
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
meta = with lib; { meta = with lib; {
homepage = "https://zlib.net"; homepage = "https://zlib.net";
description = "Lossless data-compression library"; description = "Lossless data-compression library";
license = licenses.zlib; license = licenses.zlib;
platforms = platforms.all; platforms = platforms.all;
pkgConfigModules = [ "zlib" ];
}; };
} })

View file

@ -16,7 +16,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "bellows"; pname = "bellows";
version = "0.34.7"; version = "0.34.8";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -25,7 +25,7 @@ buildPythonPackage rec {
owner = "zigpy"; owner = "zigpy";
repo = "bellows"; repo = "bellows";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-+4OWiIRbCLvZWt5zn2djW20PrZJK4c5KOcz4Owbkozg="; hash = "sha256-0pSMBPUA3djl7roVyFWe6ml9OOmWooAhwNXjsBgeLmU=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View file

@ -12,12 +12,12 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "duecredit"; pname = "duecredit";
version = "0.9.1"; version = "0.9.2";
disabled = isPy27; disabled = isPy27;
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "f6192ce9315b35f6a67174761291e61d0831e496e8ff4acbc061731e7604faf8"; sha256 = "sha256-Dg/Yfp5GzmyUMI6feAwgP+g22JYoQE+L9a+Wp0V77Rw=";
}; };
propagatedBuildInputs = [ citeproc-py requests six ]; propagatedBuildInputs = [ citeproc-py requests six ];

View file

@ -10,7 +10,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "getmac"; pname = "getmac";
version = "0.9.1"; version = "0.9.2";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -19,7 +19,7 @@ buildPythonPackage rec {
owner = "GhostofGoes"; owner = "GhostofGoes";
repo = pname; repo = pname;
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-U04mtg7DCC78X5Fd0wGaHrf8XkUpDLi4+ctKCyR4dKg="; hash = "sha256-n4WpEbkaYUS0aGdZKO5T/cuDr5OxauiuOAAdK56/+AM=";
}; };
nativeCheckInputs = [ nativeCheckInputs = [

View file

@ -13,14 +13,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "google-cloud-container"; pname = "google-cloud-container";
version = "2.17.1"; version = "2.17.2";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-PXDUjipUG7cYqeO2ivqrqLybHzDIssvBtdZixEMqXOA="; hash = "sha256-VDhWYfAdU2PPzjSIhh0XMEnt9krogXV1fNTAFk6R3WM=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View file

@ -6,14 +6,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "peaqevcore"; pname = "peaqevcore";
version = "11.0.4"; version = "11.1.2";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-SU8vsKwZio/5UD2SMhLenfkBjXRuMZCPo2k6+1hx8Y4="; hash = "sha256-ZuXc/7xCCFl20+GAMpL1c4iavjr7iR0pTvAoDCMnxx4=";
}; };
postPatch = '' postPatch = ''

View file

@ -21,7 +21,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "plugwise"; pname = "plugwise";
version = "0.27.5"; version = "0.27.6";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -30,7 +30,7 @@ buildPythonPackage rec {
owner = pname; owner = pname;
repo = "python-plugwise"; repo = "python-plugwise";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-qEAXyWa5OjTpF4foi0ljHKbemIEHORPGE6vIVL57BOU="; hash = "sha256-lG41y7bJkb7JdSsbv4PA2uaapkND59CDQq6Fvi+0hgU=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View file

@ -13,7 +13,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "pydmd"; pname = "pydmd";
version = "0.4.0.post2301"; version = "0.4.0.post2302";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
@ -22,7 +22,7 @@ buildPythonPackage rec {
owner = "mathLab"; owner = "mathLab";
repo = "PyDMD"; repo = "PyDMD";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-0ss7yyT6u0if+YjBYNbKtx5beJU43JC1LD9rqHPKBS8="; hash = "sha256-EYVmaxwOxje3KVrNbvsjwRqQBD7Rje/JK+qB1F7EqA0=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View file

@ -0,0 +1,27 @@
{ buildPythonPackage
, lib
, fetchPypi
, scipy
}:
buildPythonPackage rec {
pname = "rmsd";
version = "1.5.1";
propagatedBuildInputs = [ scipy ];
src = fetchPypi {
inherit pname version;
hash = "sha256-wDQoIUMqrBDpgImHeHWizYu/YkFjlxB22TaGpA8Q0Sc=";
};
pythonImportsCheck = [ "rmsd" ];
meta = with lib; {
description = "Calculate root-mean-square deviation (RMSD) between two sets of cartesian coordinates";
homepage = "https://github.com/charnley/rmsd";
license = licenses.bsd2;
platforms = platforms.linux;
maintainers = with maintainers; [ sheepforce markuskowa ];
};
}

View file

@ -7,11 +7,11 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "solc-select"; pname = "solc-select";
version = "1.0.2"; version = "1.0.3";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-zrpWHQdoCVDGaDGDf9fWhnRsTe1GVwqk1qls1PyvlLw="; sha256 = "sha256-850IA1NVvQ4KiH5KEIjqEKFd1k5ECMx/zXLZE7Rvx5k=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View file

@ -2,16 +2,16 @@
buildGoModule rec { buildGoModule rec {
pname = "yj"; pname = "yj";
version = "5.0.0"; version = "5.1.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "sclevine"; owner = "sclevine";
repo = "yj"; repo = "yj";
rev = "c4c13b7641389c76ea028b48091f851f3efb6376"; rev = "v${version}";
sha256 = "0bnb88wfm2vagh4yb1h9xhp3045ga0b6a77n3j2z5b4mvwshx5dr"; hash = "sha256-lsn5lxtix5W7po6nzvGcHmifbyhrtHgvaKYT7RPPCOg=";
}; };
vendorSha256 = "0y0n9fsb85qlpf9slwsxzarmfi98asa4x04qp2r8pagl28l0i8wv"; vendorHash = "sha256-NeSOoL9wtFzq6ba8ghseB6D+Qq8Z5holQExcAUbtYrs=";
ldflags = [ "-s" "-w" "-X main.Version=${version}" ]; ldflags = [ "-s" "-w" "-X main.Version=${version}" ];

View file

@ -1,6 +1,8 @@
{ lib { lib
, buildGoModule , buildGoModule
, fetchFromGitHub , fetchFromGitHub
, testers
, zed
}: }:
buildGoModule rec { buildGoModule rec {
@ -18,11 +20,27 @@ buildGoModule rec {
subPackages = [ "cmd/zed" "cmd/zq" ]; subPackages = [ "cmd/zed" "cmd/zq" ];
ldflags = [
"-s"
"-w"
"-X=github.com/brimdata/zed/cli.Version=${version}"
];
passthru.tests = {
zed-version = testers.testVersion {
package = zed;
};
zq-version = testers.testVersion {
package = zed;
command = "zq --version";
};
};
meta = with lib; { meta = with lib; {
description = "A novel data lake based on super-structured data"; description = "A novel data lake based on super-structured data";
homepage = "https://github.com/brimdata/zed"; homepage = "https://zed.brimdata.io";
license = licenses.bsd3;
maintainers = with maintainers; [ dit7ya ];
changelog = "https://github.com/brimdata/zed/blob/v${version}/CHANGELOG.md"; changelog = "https://github.com/brimdata/zed/blob/v${version}/CHANGELOG.md";
license = licenses.bsd3;
maintainers = with maintainers; [ dit7ya knl ];
}; };
} }

View file

@ -1,34 +0,0 @@
{ lib
, stdenv
, fetchFromGitHub
, buildGoModule
, testers
, zq
}:
buildGoModule rec {
pname = "zq";
version = "1.4.0";
src = fetchFromGitHub {
owner = "brimdata";
repo = "zed";
rev = "v${version}";
hash = "sha256-ias2HKwZo5Q/0M4YZI4wLgzMVWmannruXlhp8IsOuyU=";
};
vendorHash = "sha256-h5NYx6xhIh4i/tS5cGHXBomnVZCUn8jJuzL6k1+IdKk=";
subPackages = [ "cmd/zq" ];
ldflags = [ "-s" "-X" "github.com/brimdata/zed/cli.Version=${version}" ];
passthru.tests = testers.testVersion { package = zq; };
meta = with lib; {
description = "A command-line tool for processing data in diverse input formats, providing search, analytics, and extensive transformations using the Zed language";
homepage = "https://zed.brimdata.io";
license = licenses.bsd3;
maintainers = with maintainers; [ knl ];
};
}

View file

@ -1,10 +1,10 @@
{ stdenv { stdenv
, lib , lib
, fetchFromBitbucket , fetchFromBitbucket
, makeDesktopItem
, copyDesktopItems
, cmake , cmake
, copyDesktopItems
, pkg-config , pkg-config
, makeWrapper
, zlib , zlib
, bzip2 , bzip2
, libjpeg , libjpeg
@ -16,27 +16,29 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "ecwolf"; pname = "ecwolf";
version = "1.4.0"; version = "1.4.1";
src = fetchFromBitbucket { src = fetchFromBitbucket {
owner = pname; owner = pname;
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "n1G1zvfE1l42fbJ7ZaMdV0QXn45PjMpaaZTDQAOBtYk="; sha256 = "V2pSP8i20zB50WtUMujzij+ISSupdQQ/oCYYrOaTU1g=";
}; };
nativeBuildInputs = [ cmake copyDesktopItems pkg-config ]; nativeBuildInputs = [ cmake copyDesktopItems pkg-config ]
++ lib.optionals stdenv.isDarwin [ makeWrapper ];
buildInputs = [ zlib bzip2 libjpeg SDL2 SDL2_net SDL2_mixer gtk3 ]; buildInputs = [ zlib bzip2 libjpeg SDL2 SDL2_net SDL2_mixer gtk3 ];
# Disable app bundle creation on Darwin. It fails, and it is not needed to run it from the Nix store NIX_LDFLAGS = lib.optionalString stdenv.isDarwin "-framework AppKit";
preConfigure = lib.optionalString stdenv.isDarwin ''
sed -i -e "s|include(\''${CMAKE_CURRENT_SOURCE_DIR}/macosx/install.txt)||" src/CMakeLists.txt
'';
# ECWolf installs its binary to the games/ directory, but Nix only adds bin/ # ECWolf installs its binary to the games/ directory, but Nix only adds bin/
# directories to the PATH. # directories to the PATH.
postInstall = '' postInstall = lib.optionalString stdenv.isLinux ''
mv "$out/games" "$out/bin" mv "$out/games" "$out/bin"
'' + lib.optionalString stdenv.isDarwin ''
mkdir -p $out/{Applications,bin}
cp -R ecwolf.app $out/Applications
makeWrapper $out/{Applications/ecwolf.app/Contents/MacOS,bin}/ecwolf
''; '';
meta = with lib; { meta = with lib; {
@ -45,7 +47,5 @@ stdenv.mkDerivation rec {
license = licenses.gpl2Plus; license = licenses.gpl2Plus;
maintainers = with maintainers; [ jayman2000 sander ]; maintainers = with maintainers; [ jayman2000 sander ];
platforms = platforms.all; platforms = platforms.all;
# On Darwin, the linker fails to find a bunch of symbols.
broken = stdenv.isDarwin;
}; };
} }

View file

@ -5,13 +5,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "wesnoth"; pname = "wesnoth";
version = "1.16.7"; version = "1.16.8";
src = fetchFromGitHub { src = fetchFromGitHub {
rev = version; rev = version;
owner = "wesnoth"; owner = "wesnoth";
repo = "wesnoth"; repo = "wesnoth";
sha256 = "sha256-YcBF/iNr6Q5NaA+G55xa0SOCCHW2BCoJlmXsTtkF1fk="; hash = "sha256-P7OUiKJxJZ0rGdesnxpQMbRBgCHsLpyt8+pRDh27JYQ=";
}; };
nativeBuildInputs = [ cmake pkg-config ]; nativeBuildInputs = [ cmake pkg-config ];
@ -20,6 +20,8 @@ stdenv.mkDerivation rec {
libvorbis fribidi dbus libpng pcre openssl icu ] libvorbis fribidi dbus libpng pcre openssl icu ]
++ lib.optionals stdenv.isDarwin [ Cocoa Foundation]; ++ lib.optionals stdenv.isDarwin [ Cocoa Foundation];
NIX_LDFLAGS = lib.optionalString stdenv.isDarwin "-framework AppKit";
meta = with lib; { meta = with lib; {
description = "The Battle for Wesnoth, a free, turn-based strategy game with a fantasy theme"; description = "The Battle for Wesnoth, a free, turn-based strategy game with a fantasy theme";
longDescription = '' longDescription = ''

View file

@ -22,22 +22,22 @@
"5.10": { "5.10": {
"patch": { "patch": {
"extra": "-hardened1", "extra": "-hardened1",
"name": "linux-hardened-5.10.165-hardened1.patch", "name": "linux-hardened-5.10.166-hardened1.patch",
"sha256": "0gnvnywagqqdsdrbd9fbl671pzfv49mf2xqan9bk3q41mgcyyfgg", "sha256": "1ygxald6mq47n7i6x80mv9d5idfpwk6gpcijci8bsazhndwvi7qy",
"url": "https://github.com/anthraxx/linux-hardened/releases/download/5.10.165-hardened1/linux-hardened-5.10.165-hardened1.patch" "url": "https://github.com/anthraxx/linux-hardened/releases/download/5.10.166-hardened1/linux-hardened-5.10.166-hardened1.patch"
}, },
"sha256": "03dg8yx0gdzm8zbwd1f9jn4c5jhr8qilhjzxgwm0mv8riz2fy7cp", "sha256": "1bz1sgkqniwg84wv9vcg08mksa5q533vgynsd3y0xnjv1rwa2l80",
"version": "5.10.165" "version": "5.10.166"
}, },
"5.15": { "5.15": {
"patch": { "patch": {
"extra": "-hardened1", "extra": "-hardened1",
"name": "linux-hardened-5.15.90-hardened1.patch", "name": "linux-hardened-5.15.91-hardened1.patch",
"sha256": "1zj80v6xpgz00z1lpw5j9qdm0gp44pk7vkflrngbk8m3cwmpw5ha", "sha256": "041yigcqzp7m6cibl9h3jgsz20xhxc9y7y5pay9c7fkh2ypy9zgz",
"url": "https://github.com/anthraxx/linux-hardened/releases/download/5.15.90-hardened1/linux-hardened-5.15.90-hardened1.patch" "url": "https://github.com/anthraxx/linux-hardened/releases/download/5.15.91-hardened1/linux-hardened-5.15.91-hardened1.patch"
}, },
"sha256": "0hiv74mxkp3v04lphnyw16akgavaz527bzhnfnpm6rv848047zg6", "sha256": "107yw7mibibhfrggm8idzn5bayjvkxaq1kv3kkm1lpxipsqjng56",
"version": "5.15.90" "version": "5.15.91"
}, },
"5.4": { "5.4": {
"patch": { "patch": {

View file

@ -3,7 +3,7 @@
with lib; with lib;
buildLinux (args // rec { buildLinux (args // rec {
version = "4.14.304"; version = "4.14.305";
# modDirVersion needs to be x.y.z, will automatically add .0 if needed # modDirVersion needs to be x.y.z, will automatically add .0 if needed
modDirVersion = versions.pad 3 version; modDirVersion = versions.pad 3 version;
@ -13,6 +13,6 @@ buildLinux (args // rec {
src = fetchurl { src = fetchurl {
url = "mirror://kernel/linux/kernel/v4.x/linux-${version}.tar.xz"; url = "mirror://kernel/linux/kernel/v4.x/linux-${version}.tar.xz";
sha256 = "1ma9qpsx0nvi0szlivf8v5l3pjykqwrv4x6y5g0nn6bcwhsb5jv4"; sha256 = "16lmhxqpbhyqmgmlyicjadzz3axhl5smfrr230x45ahkdghwsnx3";
}; };
} // (args.argsOverride or {})) } // (args.argsOverride or {}))

View file

@ -3,7 +3,7 @@
with lib; with lib;
buildLinux (args // rec { buildLinux (args // rec {
version = "4.19.271"; version = "4.19.272";
# modDirVersion needs to be x.y.z, will automatically add .0 if needed # modDirVersion needs to be x.y.z, will automatically add .0 if needed
modDirVersion = versions.pad 3 version; modDirVersion = versions.pad 3 version;
@ -13,6 +13,6 @@ buildLinux (args // rec {
src = fetchurl { src = fetchurl {
url = "mirror://kernel/linux/kernel/v4.x/linux-${version}.tar.xz"; url = "mirror://kernel/linux/kernel/v4.x/linux-${version}.tar.xz";
sha256 = "06lxh9skp9213n29ynx7a9cinz7wggaxjsz52kghdbwfnjf3yvb3"; sha256 = "1y8kyc48v8bsl53zc6dsy5xhazv0vyna98fycj181aypicvbk7s8";
}; };
} // (args.argsOverride or {})) } // (args.argsOverride or {}))

View file

@ -3,7 +3,7 @@
with lib; with lib;
buildLinux (args // rec { buildLinux (args // rec {
version = "5.10.166"; version = "5.10.167";
# modDirVersion needs to be x.y.z, will automatically add .0 if needed # modDirVersion needs to be x.y.z, will automatically add .0 if needed
modDirVersion = versions.pad 3 version; modDirVersion = versions.pad 3 version;
@ -13,6 +13,6 @@ buildLinux (args // rec {
src = fetchurl { src = fetchurl {
url = "mirror://kernel/linux/kernel/v5.x/linux-${version}.tar.xz"; url = "mirror://kernel/linux/kernel/v5.x/linux-${version}.tar.xz";
sha256 = "1bz1sgkqniwg84wv9vcg08mksa5q533vgynsd3y0xnjv1rwa2l80"; sha256 = "1iprbgwdgnylzw4dc8jgims54x8dkq070c9vs4642rp529wgj1yq";
}; };
} // (args.argsOverride or {})) } // (args.argsOverride or {}))

View file

@ -3,7 +3,7 @@
with lib; with lib;
buildLinux (args // rec { buildLinux (args // rec {
version = "5.15.91"; version = "5.15.92";
# modDirVersion needs to be x.y.z, will automatically add .0 if needed # modDirVersion needs to be x.y.z, will automatically add .0 if needed
modDirVersion = versions.pad 3 version; modDirVersion = versions.pad 3 version;
@ -13,6 +13,6 @@ buildLinux (args // rec {
src = fetchurl { src = fetchurl {
url = "mirror://kernel/linux/kernel/v5.x/linux-${version}.tar.xz"; url = "mirror://kernel/linux/kernel/v5.x/linux-${version}.tar.xz";
sha256 = "107yw7mibibhfrggm8idzn5bayjvkxaq1kv3kkm1lpxipsqjng56"; sha256 = "14ggwrvk9n2nvk38fp4g486k864knf3n9979mm51m8wrvd8h8hlz";
}; };
} // (args.argsOverride or { })) } // (args.argsOverride or { }))

View file

@ -3,7 +3,7 @@
with lib; with lib;
buildLinux (args // rec { buildLinux (args // rec {
version = "5.4.230"; version = "5.4.231";
# modDirVersion needs to be x.y.z, will automatically add .0 if needed # modDirVersion needs to be x.y.z, will automatically add .0 if needed
modDirVersion = versions.pad 3 version; modDirVersion = versions.pad 3 version;
@ -13,6 +13,6 @@ buildLinux (args // rec {
src = fetchurl { src = fetchurl {
url = "mirror://kernel/linux/kernel/v5.x/linux-${version}.tar.xz"; url = "mirror://kernel/linux/kernel/v5.x/linux-${version}.tar.xz";
sha256 = "0bz6hfhsahymys2g9s4nzf862z0zfq4346577cpvf98hrhnd6kx7"; sha256 = "1a1nbyvkf6iaj5lz6ahg7kk9pyrx7j77jmaj92fyihdl3mzyml4d";
}; };
} // (args.argsOverride or {})) } // (args.argsOverride or {}))

View file

@ -3,7 +3,7 @@
with lib; with lib;
buildLinux (args // rec { buildLinux (args // rec {
version = "6.1.9"; version = "6.1.10";
# modDirVersion needs to be x.y.z, will automatically add .0 if needed # modDirVersion needs to be x.y.z, will automatically add .0 if needed
modDirVersion = versions.pad 3 version; modDirVersion = versions.pad 3 version;
@ -13,6 +13,6 @@ buildLinux (args // rec {
src = fetchurl { src = fetchurl {
url = "mirror://kernel/linux/kernel/v6.x/linux-${version}.tar.xz"; url = "mirror://kernel/linux/kernel/v6.x/linux-${version}.tar.xz";
sha256 = "0awjynyy049px0h7li59w3zgn3z39alv6glzrmx6wf1wd62z236n"; sha256 = "17fifhfh2jrvlhry696n428ldl5ag3g2km5l9hx8gx8wm6dr3qhb";
}; };
} // (args.argsOverride or { })) } // (args.argsOverride or { }))

View file

@ -1,8 +1,8 @@
{ stdenv, lib, fetchsvn, linux { stdenv, lib, fetchsvn, linux
, scripts ? fetchsvn { , scripts ? fetchsvn {
url = "https://www.fsfla.org/svn/fsfla/software/linux-libre/releases/branches/"; url = "https://www.fsfla.org/svn/fsfla/software/linux-libre/releases/branches/";
rev = "19027"; rev = "19044";
sha256 = "0g7sf48rwicwzwhjpzs82j6v3j4s17xhrgfgysdd523r07437ryv"; sha256 = "1xiykp6lwvlz8x48i7f1f3izra2hfz75iihw3y4w5f1jlji6y56m";
} }
, ... , ...
}: }:

View file

@ -4,9 +4,9 @@
"sha256": "sha256-EU6T9yQCdOLx98Io8o01rEsgxDFF/Xoy42LgPopD2/A=" "sha256": "sha256-EU6T9yQCdOLx98Io8o01rEsgxDFF/Xoy42LgPopD2/A="
}, },
"invidious": { "invidious": {
"rev": "3b8e6c6040fe341fe4b9fc16cdbd3aea697dfad3", "rev": "d6dd341594cc837001ed57cbea3103d22c9988c1",
"sha256": "sha256-gESGo8zRJtGJZrZEkW0OS/O65ZwVzpDA3jmyLCV0RpI=", "sha256": "sha256-BHCbIX7Qi2adixIY+hcU8t5kBXBGAv8DTviJ7BPHKCg=",
"version": "unstable-2023-01-26" "version": "unstable-2023-02-02"
}, },
"lsquic": { "lsquic": {
"sha256": "sha256-hG8cUvhbCNeMOsKkaJlgGpzUrIx47E/WhmPIdI5F3qM=", "sha256": "sha256-hG8cUvhbCNeMOsKkaJlgGpzUrIx47E/WhmPIdI5F3qM=",

View file

@ -7,13 +7,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "klipper"; pname = "klipper";
version = "unstable-2023-01-07"; version = "unstable-2023-02-03";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "KevinOConnor"; owner = "KevinOConnor";
repo = "klipper"; repo = "klipper";
rev = "f1203d56f6bc2c84d00605a76525be4c13430324"; rev = "5644481590a16ac5b3d8c20874f0477d5d51a963";
sha256 = "sha256-7FJ+omzXpj49AThcv0xDilIekCyehtvpvck1+nrMS70="; sha256 = "sha256-OGFVcUPw0sqTbJyrMvCxp8nER9/42ZRN4zIrpm/qh4E=";
}; };
sourceRoot = "source/klippy"; sourceRoot = "source/klippy";

View file

@ -2,11 +2,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "wiki-js"; pname = "wiki-js";
version = "2.5.295"; version = "2.5.296";
src = fetchurl { src = fetchurl {
url = "https://github.com/Requarks/wiki/releases/download/v${version}/${pname}.tar.gz"; url = "https://github.com/Requarks/wiki/releases/download/v${version}/${pname}.tar.gz";
sha256 = "sha256-itiW9/QtNpc8cFS5skwlc3JSWoVqbBbIcSlEd+GRkH0="; sha256 = "sha256-05rGNKL7K4FgEUXH34jl9h4diCdwFRY98qDO+w9B52s=";
}; };
sourceRoot = "."; sourceRoot = ".";

View file

@ -271,6 +271,7 @@ let
sourceProvenance = listOf lib.types.attrs; sourceProvenance = listOf lib.types.attrs;
maintainers = listOf (attrsOf anything); # TODO use the maintainer type from lib/tests/maintainer-module.nix maintainers = listOf (attrsOf anything); # TODO use the maintainer type from lib/tests/maintainer-module.nix
priority = int; priority = int;
pkgConfigModules = listOf str;
platforms = listOf (either str (attrsOf anything)); # see lib.meta.platformMatch platforms = listOf (either str (attrsOf anything)); # see lib.meta.platformMatch
hydraPlatforms = listOf str; hydraPlatforms = listOf str;
broken = bool; broken = bool;

View file

@ -10,19 +10,31 @@
, pkg-config , pkg-config
, pcsclite , pcsclite
, help2man , help2man
, darwin
, libiconv
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "yubihsm-shell"; pname = "yubihsm-shell";
version = "2.3.2"; version = "2.4.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Yubico"; owner = "Yubico";
repo = "yubihsm-shell"; repo = "yubihsm-shell";
rev = version; rev = version;
sha256 = "sha256-rSIdI6ECLte+dEbT8NOUqS8jkozRhbo+eqFrdhTIKpY="; hash = "sha256-zWhvECPdZnrbSAVPDVZk54SWHVkd/HEQxS3FgXoqXHY=";
}; };
postPatch = ''
# Can't find libyubihsm at runtime because of dlopen() in C code
substituteInPlace lib/yubihsm.c \
--replace "libyubihsm_usb.so" "$out/lib/libyubihsm_usb.so" \
--replace "libyubihsm_http.so" "$out/lib/libyubihsm_http.so"
# ld: unknown option: -z
substituteInPlace CMakeLists.txt cmake/SecurityFlags.cmake \
--replace "AppleClang" "Clang"
'';
nativeBuildInputs = [ nativeBuildInputs = [
pkg-config pkg-config
cmake cmake
@ -34,16 +46,17 @@ stdenv.mkDerivation rec {
libusb1 libusb1
libedit libedit
curl curl
pcsclite
openssl openssl
] ++ lib.optionals stdenv.isLinux [
pcsclite
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.PCSC
libiconv
]; ];
postPatch = '' cmakeFlags = lib.optionals stdenv.isDarwin [
# Can't find libyubihsm at runtime because of dlopen() in C code "-DDISABLE_LTO=ON"
substituteInPlace lib/yubihsm.c \ ];
--replace "libyubihsm_usb.so" "$out/lib/libyubihsm_usb.so" \
--replace "libyubihsm_http.so" "$out/lib/libyubihsm_http.so"
'';
meta = with lib; { meta = with lib; {
description = "yubihsm-shell and libyubihsm"; description = "yubihsm-shell and libyubihsm";

View file

@ -0,0 +1,25 @@
{ lib
, rustPlatform
, fetchFromGitHub
}:
rustPlatform.buildRustPackage rec {
pname = "erdtree";
version = "1.0.0";
src = fetchFromGitHub {
owner = "solidiquis";
repo = pname;
rev = "v${version}";
hash = "sha256-gZC90flsfH03Grc1netzlv/iX/9DH+rpaSstfXFearc=";
};
cargoHash = "sha256-0I60lUYyR4Za2Q3FqcdqJhUKFjX5+PE88G6JxxxiBXw=";
meta = with lib; {
description = "File-tree visualizer and disk usage analyzer";
homepage = "https://github.com/solidiquis/erdtree";
license = licenses.mit;
maintainers = with maintainers; [ zendo ];
};
}

View file

@ -9,13 +9,13 @@
buildGoModule rec { buildGoModule rec {
pname = "gdu"; pname = "gdu";
version = "5.21.1"; version = "5.22.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "dundee"; owner = "dundee";
repo = pname; repo = pname;
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-QxepFU/ZQWVH19AeoSnXAAUhLO6VKmrZIIpVw1tTft4="; hash = "sha256-bWeMZ1tQkJsRJbolZBue9UzM4Qs7K5Rj5Z80Uotyb8I=";
}; };
vendorHash = "sha256-UP6IdJLc93gRP4vwKKOJl3sNt4sOFeYXjvwk8QM+D48="; vendorHash = "sha256-UP6IdJLc93gRP4vwKKOJl3sNt4sOFeYXjvwk8QM+D48=";

View file

@ -1698,6 +1698,7 @@ mapAliases ({
zdfmediathk = throw "'zdfmediathk' has been renamed to/replaced by 'mediathekview'"; # Converted to throw 2022-02-22 zdfmediathk = throw "'zdfmediathk' has been renamed to/replaced by 'mediathekview'"; # Converted to throw 2022-02-22
zimreader = throw "zimreader has been removed from nixpkgs as it has been replaced by kiwix-serve and stopped working with modern zimlib versions"; # Added 2021-03-28 zimreader = throw "zimreader has been removed from nixpkgs as it has been replaced by kiwix-serve and stopped working with modern zimlib versions"; # Added 2021-03-28
zimwriterfs = throw "zimwriterfs is now part of zim-tools"; # Added 2022-06-10. zimwriterfs = throw "zimwriterfs is now part of zim-tools"; # Added 2022-06-10.
zq = zed.overrideAttrs (old: { meta = old.meta // { mainProgram = "zq"; }; }); # Added 2023-02-06
# TODO(ekleog): add wasm alias to ocamlPackages.wasm after 19.03 # TODO(ekleog): add wasm alias to ocamlPackages.wasm after 19.03
# branch-off # branch-off

View file

@ -1628,8 +1628,6 @@ with pkgs;
breitbandmessung = callPackage ../applications/networking/breitbandmessung { }; breitbandmessung = callPackage ../applications/networking/breitbandmessung { };
zq = callPackage ../development/tools/zq { };
### APPLICATIONS/VERSION-MANAGEMENT ### APPLICATIONS/VERSION-MANAGEMENT
deepgit = callPackage ../applications/version-management/deepgit {}; deepgit = callPackage ../applications/version-management/deepgit {};
@ -4535,6 +4533,8 @@ with pkgs;
er-patcher = callPackage ../tools/games/er-patcher { }; er-patcher = callPackage ../tools/games/er-patcher { };
erdtree = callPackage ../tools/system/erdtree { };
errcheck = callPackage ../development/tools/errcheck { }; errcheck = callPackage ../development/tools/errcheck { };
eschalot = callPackage ../tools/security/eschalot { }; eschalot = callPackage ../tools/security/eschalot { };

View file

@ -5200,14 +5200,14 @@ let
CryptOpenSSLRSA = buildPerlPackage { CryptOpenSSLRSA = buildPerlPackage {
pname = "Crypt-OpenSSL-RSA"; pname = "Crypt-OpenSSL-RSA";
version = "0.31"; version = "0.33";
src = fetchurl { src = fetchurl {
url = "mirror://cpan/authors/id/T/TO/TODDR/Crypt-OpenSSL-RSA-0.31.tar.gz"; url = "mirror://cpan/authors/id/T/TO/TODDR/Crypt-OpenSSL-RSA-0.33.tar.gz";
hash = "sha256-QXNAOtTPdnMhkgmfgz+/vzzYEE4CRrOEQYeuOE0sVDY="; hash = "sha256-vb5jD21vVAMldGrZmXcnKshmT/gb0Z8K2rptb0Xv2GQ=";
}; };
propagatedBuildInputs = [ CryptOpenSSLRandom ]; propagatedBuildInputs = [ CryptOpenSSLRandom ];
NIX_CFLAGS_COMPILE = "-I${pkgs.openssl_1_1.dev}/include"; NIX_CFLAGS_COMPILE = "-I${pkgs.openssl.dev}/include";
NIX_CFLAGS_LINK = "-L${lib.getLib pkgs.openssl_1_1}/lib -lcrypto"; NIX_CFLAGS_LINK = "-L${lib.getLib pkgs.openssl}/lib -lcrypto";
buildInputs = [ CryptOpenSSLGuess ]; buildInputs = [ CryptOpenSSLGuess ];
meta = { meta = {
description = "RSA encoding and decoding, using the openSSL libraries"; description = "RSA encoding and decoding, using the openSSL libraries";

View file

@ -10067,6 +10067,8 @@ self: super: with self; {
rmrl = callPackage ../development/python-modules/rmrl { }; rmrl = callPackage ../development/python-modules/rmrl { };
rmsd = callPackage ../development/python-modules/rmsd { };
rnc2rng = callPackage ../development/python-modules/rnc2rng { }; rnc2rng = callPackage ../development/python-modules/rnc2rng { };
rnginline = callPackage ../development/python-modules/rnginline { }; rnginline = callPackage ../development/python-modules/rnginline { };