Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade nixpkgs 22.11 -> 23.05 #14

Merged
merged 7 commits into from
Oct 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
description = "A Nix flake containing EPICS-related modules and packages";

inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.11";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05";
inputs.bash-lib = {
url = "github:minijackson/bash-lib";
inputs.nixpkgs.follows = "nixpkgs";
Expand Down
3 changes: 2 additions & 1 deletion ioc/tests/cross/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
pkgs,
crossSystem,
system-name,
...
}: let
inherit (pkgs) epnixLib;
Expand All @@ -19,7 +20,7 @@
emulator = pkgs.lib.replaceStrings ["\""] ["\\\""] (hostPlatform.emulator pkgs);
in
pkgs.nixosTest {
name = "cross-for-${system}";
name = "cross-for-${system-name}";
meta.maintainers = with epnixLib.maintainers; [minijackson];

nodes.machine = {};
Expand Down
6 changes: 4 additions & 2 deletions ioc/tests/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@ with pkgs.lib;
in
nameValuePair
"cross-for-${system-name}"
(import ./cross/default.nix (args // {inherit crossSystem;}));
(import ./cross/default.nix (args // {inherit crossSystem system-name;}));

systemsToCheck = with systems.examples; [
# Maybe one day...
#mingwW64

# IFC1410
ppc64
# This is commented out now, due to an issue from Qemu
# The tests don't pass, but they run on actual hardware
#ppc64

powernv

Expand Down
5 changes: 2 additions & 3 deletions nixos/modules/archiver-appliance.nix
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,8 @@ in {
"${pkgs.epnix.mariadb_jdbc}/share/java/mariadb-java-client.jar"

# Dependencies of the mariadb connector, for UNIX sockets:
# TODO: use the nixpkgs version when we switch to NixOS 23.05
"${pkgs.epnix.jna}/share/java/jna.jar"
"${pkgs.epnix.jna}/share/java/jna-platform.jar"
"${pkgs.jna}/share/java/jna.jar"
"${pkgs.jna}/share/java/jna-platform.jar"
];

user = "archappl";
Expand Down
3 changes: 3 additions & 0 deletions nixos/tests/phoebus/olog.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
# not open-source. But as we're using it run tests, not exposing
# any service, this should be fine.
"elasticsearch"

# MongoDB also uses the SSPL.
"mongodb"
];

networking.firewall.allowedTCPPorts = [8181];
Expand Down
1 change: 0 additions & 1 deletion pkgs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ with prev;

# Other utilities

jna = callPackage ./epnix/tools/jna {};
mariadb_jdbc = callPackage ./epnix/tools/mariadb_jdbc {};

# EPNix specific packages
Expand Down
20 changes: 14 additions & 6 deletions pkgs/epnix/epics-base/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
fetchpatch,
version,
hash,
readline,
local_config_site ? {},
local_release ? {},
}:
with lib; let
older = versionOlder version;
atLeast = versionAtLeast version;

generateConf = (epnixLib.formats.make {}).generate;

Expand All @@ -37,11 +37,19 @@ in
inherit hash;
};

patches = optionals (older "7.0.5") [
# Support "undefine MYVAR" in convertRelease.pl
# Fixed by commit 79d7ac931502e1c25b247a43b7c4454353ac13a6
./handle-make-undefine-variable.patch
];
patches =
(optionals (atLeast "7.0.0") [
# From: https://github.com/epics-base/epics-base/pull/395
(fetchpatch {
url = "https://github.com/epics-base/epics-base/commit/d87fd0db0124faf450cff93226ae6a2cc02f02bf.patch";
hash = "sha256-BQWFOPCfRjSowDSAbqe8ClqEWT1OtfbgRh4k5jmAjpU=";
})
])
++ (optionals (older "7.0.5") [
# Support "undefine MYVAR" in convertRelease.pl
# Fixed by commit 79d7ac931502e1c25b247a43b7c4454353ac13a6
./handle-make-undefine-variable.patch
]);

# "build" as in Nix terminology (the build machine)
build_config_site =
Expand Down
44 changes: 0 additions & 44 deletions pkgs/epnix/tools/jna/default.nix

This file was deleted.