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 NixOS 24.05 -> 24.11 #227

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from
Draft
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
1 change: 1 addition & 0 deletions .github/workflows/update-flake-lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
matrix:
branch:
- master
- nixos-24.11
- nixos-24.05
permissions:
contents: write # to create branch
Expand Down
4 changes: 4 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@
# -- Options for the Nix domain ----------------------------------------------

nix_options_json_files = ["./nixos-options.json"]
# Sphinx 7.4.0, the display of the hierarchy of objects in the TOC changed,
# and sphinxcontrib-nixdomain doesn't support it,
# so we just display the full option path in the TOC
nix_toc_display_full_path = True


def nix_linkcode_resolve(path: str) -> str:
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ which is considered unstable,
meaning breaking changes might happen without notice.

EPNix also has release branches,
such as ``nixos-24.05``,
such as ``nixos-24.11``,
tied to the nixpkgs release branches,
where breaking changes are forbidden.

Expand Down
4 changes: 2 additions & 2 deletions docs/nixos-services/tutorials/archiver-appliance.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ Fill the file with these lines:
{
description = "Configuration for running Archiver Appliance in a VM";

inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
inputs.epnix.url = "github:epics-extensions/EPNix/nixos-24.05";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
inputs.epnix.url = "github:epics-extensions/EPNix/nixos-24.11";

outputs = { self, nixpkgs, epnix }: {
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
Expand Down
4 changes: 2 additions & 2 deletions docs/nixos-services/user-guides/pre-requisites.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ For example:

{
# ...
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
+ inputs.epnix.url = "github:epics-extensions/EPNix/nixos-24.05";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
+ inputs.epnix.url = "github:epics-extensions/EPNix/nixos-24.11";

# ...
outputs = {
Expand Down
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.

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

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
bash-lib = {
url = "github:minijackson/bash-lib";
inputs.nixpkgs.follows = "nixpkgs";
Expand Down Expand Up @@ -71,8 +71,6 @@
];
};
};

devShell = self.devShells.${system}.default;
};
in
# Not eachDefaultSystem right now, because `nix flake check` tries to
Expand Down Expand Up @@ -126,7 +124,6 @@
};

templates.default = self.templates.top;
defaultTemplate = self.templates.default;

formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.alejandra;
};
Expand Down
4 changes: 2 additions & 2 deletions nixos/modules/channel-finder/recceiver.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
}: let
cfg = config.services.recceiver;

pkg = pkgs.python3Packages.recceiver;
python = pkgs.python3.withPackages (
pkg = pkgs.python311Packages.recceiver;
python = pkgs.python311.withPackages (
ps: [
ps.recceiver
ps.twisted
Expand Down
9 changes: 7 additions & 2 deletions pkgs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,17 @@ in

channel-finder-service = callPackage ./epnix/tools/channel-finder/service {};

inherit (final.python3Packages) lewis pyepics;
# Lewis needs Python < 3.12
inherit (final.python311Packages) lewis;

inherit (final.python3Packages) pyepics;
inherit (callPackage ./epnix/tools/lewis/lib.nix {}) mkLewisSimulator;

pcas = callPackage ./epnix/tools/pcas {};

phoebus = callPackage ./epnix/tools/phoebus/client {};
phoebus = callPackage ./epnix/tools/phoebus/client {
openjfx = prev.openjfx21;
};
phoebus-alarm-server = callPackage ./epnix/tools/phoebus/alarm-server {};
phoebus-alarm-logger = callPackage ./epnix/tools/phoebus/alarm-logger {};
phoebus-archive-engine = callPackage ./epnix/tools/phoebus/archive-engine {};
Expand Down
2 changes: 1 addition & 1 deletion pkgs/docs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
in
stdenvNoCC.mkDerivation {
pname = "epnix-docs";
version = "24.05";
version = "24.11";

src = ../../docs;

Expand Down
5 changes: 5 additions & 0 deletions pkgs/epnix/tools/channel-finder/recceiver/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
epnixLib,
buildPythonPackage,
pythonAtLeast,
fetchFromGitHub,
python,
setuptools-scm,
Expand All @@ -13,6 +14,10 @@ buildPythonPackage rec {
version = "1.6";
pyproject = true;

# Should be fixed by https://github.com/ChannelFinder/recsync/pull/88
# but the patch doesn't apply cleanly
disabled = pythonAtLeast "3.12";

src = fetchFromGitHub {
owner = "ChannelFinder";
repo = "recsync";
Expand Down
4 changes: 4 additions & 0 deletions pkgs/epnix/tools/lewis/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
lib,
buildPythonPackage,
pythonAtLeast,
fetchFromGitHub,
approvaltests,
setuptools,
Expand All @@ -18,6 +19,9 @@ buildPythonPackage rec {
version = "1.3.1";
pyproject = true;

# Due to mrjob, which is needed by approvaltests
disabled = pythonAtLeast "3.12";

src = fetchFromGitHub {
owner = "ess-dmsc";
repo = "lewis";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/epnix/tools/phoebus/client/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ in
(epnix.phoebus-setup-hook.override {
jdk = jdk.override {
enableJavaFX = true;
openjfx = openjfx.override {
openjfx_jdk = openjfx.override {
withWebKit = true;
};
};
Expand Down
2 changes: 1 addition & 1 deletion pkgs/epnix/tools/phoebus/deps/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ stdenv.mkDerivation {

outputHashAlgo = "sha256";
outputHashMode = "recursive";
outputHash = "sha256-tJMULUSwH0rCmNeKvesPqMVTBH3PQWInx6gzGxwdPwY=";
outputHash = "sha256-WPTw40NQQclYE3z283yVmd5epP01R0oMsI+1UuADGB4=";

doCheck = false;

Expand Down
2 changes: 1 addition & 1 deletion pkgs/epnix/tools/phoebus/olog/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ maven.buildMavenPackage rec {
hash = "sha256-AHZowe4mmBpiFd5MMVRrnUHeTOJDwE6f0sZFUF+07lo=";
};

mvnHash = "sha256-xaoaoL1a9VP7e4HdI2YuOUPOADnMYlPesVbkhgLz3+M=";
mvnHash = "sha256-puUnYIbBVVXfoIcK9lkmBOH3TBfFAK+MeN8vsoxB8w0=";
mvnParameters = "-Dmaven.javadoc.skip=true -Dmaven.source.skip=true -Pdeployable-jar -Dproject.build.outputTimestamp=1980-01-01T00:00:02Z";

nativeBuildInputs = [makeWrapper];
Expand Down
2 changes: 1 addition & 1 deletion pkgs/tests/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
{pkgs, ...}: {
channelfinder-default-python = pkgs.python3Packages.channelfinder;
mrf-driver-default-linux = pkgs.linuxPackages.mrf;
recceiver-default-python = pkgs.python3Packages.recceiver;
recceiver-default-python = pkgs.python311Packages.recceiver;
}
2 changes: 1 addition & 1 deletion templates/top/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
description = "EPICS IOC for <...>";

inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.epnix.url = "github:epics-extensions/epnix/nixos-24.05";
inputs.epnix.url = "github:epics-extensions/epnix/nixos-24.11";

# If you have a support module as a separate EPNix repository,
# add it as an input here:
Expand Down
Loading