Skip to content

Commit

Permalink
Merge master into haskell-updates
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Sep 15, 2024
2 parents b039994 + 5439240 commit 7270465
Show file tree
Hide file tree
Showing 241 changed files with 17,035 additions and 4,035 deletions.
3 changes: 3 additions & 0 deletions doc/hooks/cernlib.section.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CERNLIB {#cernlib-hook}

This hook sets the `CERN`, `CERN_LEVEL`, and `CERN_ROOT` environment variables. They are part of [CERNLIB's build system](https://cernlib.web.cern.ch/install/install.html), and are are needed for some programs to compile correctly.
1 change: 1 addition & 0 deletions doc/hooks/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ automake.section.md
autopatchelf.section.md
bmake.section.md
breakpoint.section.md
cernlib.section.md
cmake.section.md
gdk-pixbuf.section.md
ghc.section.md
Expand Down
15 changes: 15 additions & 0 deletions doc/packages/geant4.section.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Geant4 {#geant4}

[Geant4](https://www.geant4.org/) is a toolkit for simulating how particles pass through matter. It is available through the `geant4` package.

## Setup hook {#geant4-hook}

The setup hook included in the package applies the environment variables set by the [`geant4.sh` script](https://github.com/Geant4/geant4/blob/master/cmake/Modules/G4ConfigureGNUMakeHelpers.cmake#L4-L55), which is typically necessary for compiling `make`-based programs that depend on Geant4.

## Datasets {#geant4-datasets}

All of [the Geant4 datasets provided by CERN](https://geant4.web.cern.ch/support/download) are available through the `geant4.data` attrset.

### Setup hook {#geant4-datasets-hook}

The hook provided by the packages in `geant4.data` will set an appropriate environment variable in the form of `G4[...]DATA`. For example, for the `G4RadioactiveDecay` dataset, the `G4RADIOACTIVEDATA` environment variable is set to the value expected by Geant4.
2 changes: 2 additions & 0 deletions doc/packages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ emacs.section.md
firefox.section.md
fish.section.md
fuse.section.md
geant4.section.md
ibus.section.md
kakoune.section.md
krita.section.md
linux.section.md
lhapdf.section.md
locales.section.md
etc-files.section.md
nginx.section.md
Expand Down
11 changes: 11 additions & 0 deletions doc/packages/lhapdf.section.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# LHAPDF {#lhapdf}

[LHAPDF](https://lhapdf.hepforge.org/) is a tool for evaluating parton distribution functions (PDFs) in high-energy physics. LHAPDF is available in the `lhapdf` package.

## PDF sets {#lhapdf-sets}

All of [the PDF sets made available by the LHAPDF project](https://lhapdf.hepforge.org/pdfsets.html) are available through the `lhapdf.pdf_sets` attrset.

### Setup hook {#lhapdf-sets-hook}

Each package provided in the `lhapdf.pdf_sets` attrset contains a setup hook which adds itself to [the `LHAPDF_DATA_PATH` environment variable](https://lhapdf.hepforge.org/#sets).
18 changes: 18 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,12 @@
githubId = 45179933;
name = "Alex Jackson";
};
ajgon = {
email = "[email protected]";
github = "ajgon";
githubId = 150545;
name = "Igor Rzegocki";
};
ajgrf = {
email = "[email protected]";
github = "ajgrf";
Expand Down Expand Up @@ -2249,6 +2255,12 @@
github = "Baitinq";
githubId = 30861839;
};
baksa = {
email = "[email protected]";
name = "Kryštof Baksa";
github = "Golbinex";
githubId = 62813600;
};
balodja = {
email = "[email protected]";
github = "balodja";
Expand Down Expand Up @@ -11295,6 +11307,12 @@
githubId = 4032;
name = "Kristoffer Thømt Ravneberg";
};
kristianan = {
email = "[email protected]";
github = "KristianAN";
githubId = 80984519;
name = "Kristian Alvestad Nedevold-Hansen";
};
kristian-brucaj = {
email = "[email protected]";
github = "Flameslice";
Expand Down
1 change: 1 addition & 0 deletions maintainers/scripts/luarocks-packages.csv
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ luv,,,,1.48.0-2,,
lush.nvim,,,https://luarocks.org/dev,,,teto
lyaml,,,,,,lblasc
lz.n,,,,,,mrcjkb
lze,,,,,,birdee
lzn-auto-require,,,,,,mrcjkb
magick,,,,,5.1,donovanglover
markdown,,,,,,
Expand Down
Empty file modified maintainers/scripts/update.nix
100755 → 100644
Empty file.
3 changes: 0 additions & 3 deletions nixos/modules/installer/cd-dvd/installation-cd-minimal.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
./installation-cd-base.nix
];

# Causes a lot of uncached builds for a negligible decrease in size.
environment.noXlibs = lib.mkOverride 500 false;

documentation.man.enable = lib.mkOverride 500 true;

# Although we don't really need HTML documentation in the minimal installer,
Expand Down
2 changes: 0 additions & 2 deletions nixos/modules/profiles/minimal.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
with lib;

{
environment.noXlibs = mkDefault true;

documentation.enable = mkDefault false;

documentation.doc.enable = mkDefault false;
Expand Down
8 changes: 7 additions & 1 deletion nixos/modules/services/misc/paperless.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ let
exec ${cfg.package}/bin/paperless-ngx "$@"
'';

# Secure the services
defaultServiceConfig = {
Slice = "system-paperless.slice";
# Secure the services
ReadWritePaths = [
cfg.consumptionDir
cfg.dataDir
Expand Down Expand Up @@ -232,6 +233,11 @@ in
config = mkIf cfg.enable {
services.redis.servers.paperless.enable = mkIf enableRedis true;

systemd.slices.system-paperless = {
description = "Paperless slice";
documentation = [ "https://docs.paperless-ngx.com" ];
};

systemd.tmpfiles.settings."10-paperless" = let
defaultRule = {
inherit (cfg) user;
Expand Down
5 changes: 3 additions & 2 deletions nixos/modules/services/network-filesystems/samba.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ with lib;
let
cfg = config.services.samba;

settingsFormat = pkgs.formats.ini { };
settingsFormat = pkgs.formats.ini {
listToValue = lib.concatMapStringsSep " " (generators.mkValueStringDefault { });
};
# Ensure the global section is always first
globalConfigFile = settingsFormat.generate "smb-global.conf" { global = cfg.settings.global; };
sharesConfigFile = settingsFormat.generate "smb-shares.conf" (lib.removeAttrs cfg.settings [ "global" ]);
Expand Down Expand Up @@ -122,7 +124,6 @@ in
type = lib.types.listOf lib.types.str;
default = [ "root" ];
description = "List of users who are denied to login via Samba.";
apply = x: lib.concatStringsSep " " x;
};
global."passwd program" = lib.mkOption {
type = lib.types.str;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ let
systemdBootBuilder = pkgs.substituteAll rec {
name = "systemd-boot";

dir = "bin";

src = checkedSource;

isExecutable = true;
Expand Down Expand Up @@ -86,7 +88,7 @@ let

finalSystemdBootBuilder = pkgs.writeScript "install-systemd-boot.sh" ''
#!${pkgs.runtimeShell}
${systemdBootBuilder} "$@"
${systemdBootBuilder}/bin/systemd-boot "$@"
${cfg.extraInstallCommands}
'';
in {
Expand Down
1 change: 0 additions & 1 deletion nixos/modules/virtualisation/lxc-instance-common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
services.openssh.startWhenNeeded = lib.mkDefault true;

# As this is intended as a standalone image, undo some of the minimal profile stuff
environment.noXlibs = false;
documentation.enable = true;
documentation.nixos.enable = true;
services.logrotate.enable = true;
Expand Down
1 change: 1 addition & 0 deletions nixos/tests/curl-impersonate.nix
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: let
pyyaml
pytest-asyncio
dpkt
ts1-signatures
]}"
# Prepare test root prefix
Expand Down
2 changes: 2 additions & 0 deletions nixos/tests/libreswan.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ let
useDHCP = false;
interfaces.eth1.ipv4.addresses = lib.mkVMOverride [];
interfaces.eth2.ipv4.addresses = lib.mkVMOverride [];
interfaces.eth1.ipv6.addresses = lib.mkVMOverride [];
interfaces.eth2.ipv6.addresses = lib.mkVMOverride [];
# open a port for testing
firewall.allowedUDPPorts = [ 1234 ];
};
Expand Down
2 changes: 1 addition & 1 deletion nixos/tests/tandoor-recipes-script-name.nix
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ import ./make-test-python.nix (
elif value.startswith("/"):
self.urls.append(f"{origin_url}{value}")
else:
print("Ignoring external URL: {value}")
print(f"Ignoring non-path URL: {value}")
break
Expand Down
12 changes: 1 addition & 11 deletions pkgs/applications/audio/fmit/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,6 @@ mkDerivation rec {
PREFIXSHORTCUT=$out"
'';

postInstall = ''
mkdir -p $out/share/applications
ln -s $out/fmit.desktop $out/share/applications/fmit.desktop
mkdir -p $out/share/icons/hicolor/128x128/apps
ln -s $out/fmit.png $out/share/icons/hicolor/128x128/apps/fmit.png
mkdir -p $out/share/icons/hicolor/scalable/apps
ln -s $out/fmit.svg $out/share/icons/hicolor/scalable/apps/fmit.svg
'';

meta = with lib; {
description = "Free Musical Instrument Tuner";
longDescription = ''
Expand All @@ -55,6 +44,7 @@ mkDerivation rec {
'';
homepage = "http://gillesdegottex.github.io/fmit/";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ orivej ];
platforms = platforms.linux;
};
}
4 changes: 2 additions & 2 deletions pkgs/applications/audio/ft2-clone/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@

stdenv.mkDerivation rec {
pname = "ft2-clone";
version = "1.85";
version = "1.86";

src = fetchFromGitHub {
owner = "8bitbubsy";
repo = "ft2-clone";
rev = "v${version}";
hash = "sha256-1iIwfZVRumlZn67xEhlef6Gm2Hb52CHFAq9RPU4M13M=";
hash = "sha256-/sdMBRCZvuKTp8ygCrLmIy0DiWJC6lLWdsY+ZxRY+pY=";
};

nativeBuildInputs = [ cmake ];
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
pkgs:

self: super:

let
libExt = pkgs.stdenv.hostPlatform.extensions.sharedLibrary;
in
{
# TODO delete this when we get upstream fix https://debbugs.gnu.org/cgi/bugreport.cgi?bug=73241
eglot = super.eglot.overrideAttrs (old: {
postInstall =
old.postInstall or ""
+ ''
local info_file=eglot.info
pushd $out/share/emacs/site-lisp/elpa/eglot-*
# specify output info file to override the one defined in eglot.texi
makeinfo --output=$info_file eglot.texi
install-info $info_file dir
popd
'';
});

# native compilation for tests/seq-tests.el never ends
# delete tests/seq-tests.el to workaround this
seq = super.seq.overrideAttrs (old: {
dontUnpack = false;
postUnpack =
old.postUnpack or ""
+ "\n"
+ ''
local content_directory=$(echo seq-*)
rm --verbose $content_directory/tests/seq-tests.el
src=$PWD/$content_directory.tar
tar --create --verbose --file=$src $content_directory
'';
});

xeft = super.xeft.overrideAttrs (old: {
dontUnpack = false;
buildInputs = old.buildInputs or [ ] ++ [ pkgs.xapian ];
buildPhase =
old.buildPhase or ""
+ ''
$CXX -shared -o xapian-lite${libExt} xapian-lite.cc $NIX_CFLAGS_COMPILE -lxapian
'';
postInstall =
old.postInstall or ""
+ "\n"
+ ''
outd=$out/share/emacs/site-lisp/elpa/xeft-*
install -m444 -t $outd xapian-lite${libExt}
rm $outd/xapian-lite.cc $outd/emacs-module.h $outd/emacs-module-prelude.h $outd/demo.gif $outd/Makefile
'';
});
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,54 +45,18 @@ self: let
});
};

super = removeAttrs imported [ "dash" ];

overrides = {
eglot = super.eglot.overrideAttrs (old: {
postInstall = (old.postInstall or "") + ''
local info_file=eglot.info
pushd $out/share/emacs/site-lisp/elpa/eglot-*
# specify output info file to override the one defined in eglot.texi
makeinfo --output=$info_file eglot.texi
install-info $info_file dir
popd
'';
});
super = imported;

commonOverrides = import ./elpa-common-overrides.nix pkgs;

overrides = self: super: {
pq = super.pq.overrideAttrs (old: {
buildInputs = (old.buildInputs or [ ]) ++ [ pkgs.postgresql ];
});

xeft = super.xeft.overrideAttrs (old: let
libExt = pkgs.stdenv.hostPlatform.extensions.sharedLibrary;
in {
dontUnpack = false;

buildInputs = (old.buildInputs or [ ]) ++ [ pkgs.xapian ];
buildPhase = (old.buildPhase or "") + ''
$CXX -shared -o xapian-lite${libExt} xapian-lite.cc $NIX_CFLAGS_COMPILE -lxapian
'';
postInstall = (old.postInstall or "") + "\n" + ''
outd=$out/share/emacs/site-lisp/elpa/xeft-*
install -m444 -t $outd xapian-lite${libExt}
rm $outd/xapian-lite.cc $outd/emacs-module.h $outd/emacs-module-prelude.h $outd/demo.gif $outd/Makefile
'';
});

# native compilation for tests/seq-tests.el never ends
# delete tests/seq-tests.el to workaround this
seq = super.seq.overrideAttrs (old: {
dontUnpack = false;
postUnpack = (old.postUnpack or "") + "\n" + ''
local content_directory=$(echo seq-*)
rm --verbose $content_directory/tests/seq-tests.el
src=$PWD/$content_directory.tar
tar --create --verbose --file=$src $content_directory
'';
});
};

elpaDevelPackages = super // overrides;
elpaDevelPackages =
let super' = super // (commonOverrides self super); in super' // (overrides self super');

in elpaDevelPackages);

Expand Down
Loading

0 comments on commit 7270465

Please sign in to comment.