Skip to content

Commit

Permalink
templates/top: make EPNix release branch 23.11 the default
Browse files Browse the repository at this point in the history
  • Loading branch information
minijackson committed Jun 5, 2024
1 parent 5fed3bf commit c52318c
Showing 1 changed file with 25 additions and 26 deletions.
51 changes: 25 additions & 26 deletions 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";
inputs.epnix.url = "github:epics-extensions/epnix/nixos-23.11";

# If you have a support module as a separate EPNix repository,
# add it as an input here:
Expand Down Expand Up @@ -80,35 +80,34 @@
# ---
# "x86_64-linux" should still be specified so that the development
# environment can be built on your machine.
flake-utils.lib.eachSystem ["x86_64-linux"] (system:
with epnix.lib; let
epnixDistribution = evalEpnixModules {
nixpkgsConfig = {
# This specifies the build architecture
inherit system;

# This specifies the host architecture, uncomment for cross-compiling
#
# The complete of example architectures is here:
# https://github.com/NixOS/nixpkgs/blob/nixos-22.11/lib/systems/examples.nix
# ---
#crossSystem = epnix.inputs.nixpkgs.lib.systems.examples.armv7l-hf-multiplatform;
};
epnixConfig = myEpnixConfig;
flake-utils.lib.eachSystem ["x86_64-linux"] (system: let
epnixDistribution = epnix.lib.evalEpnixModules {
nixpkgsConfig = {
# This specifies the build architecture
inherit system;

# This specifies the host architecture, uncomment for cross-compiling
#
# The complete of example architectures is here:
# https://github.com/NixOS/nixpkgs/blob/nixos-22.11/lib/systems/examples.nix
# ---
#crossSystem = epnix.inputs.nixpkgs.lib.systems.examples.armv7l-hf-multiplatform;
};
epnixConfig = myEpnixConfig;
};
in {
packages =
epnixDistribution.outputs
// {
default = self.packages.${system}.build;
};
in {
packages =
epnixDistribution.outputs
// {
default = self.packages.${system}.build;
};

inherit epnixDistribution;
inherit epnixDistribution;

devShells.default = self.packages.${system}.devShell;
devShells.default = self.packages.${system}.devShell;

checks = epnixDistribution.config.epnix.checks.derivations;
})
checks = epnixDistribution.config.epnix.checks.derivations;
})
// {
overlays.default = final: prev:
self.epnixDistribution.x86_64-linux.generatedOverlay final prev;
Expand Down

0 comments on commit c52318c

Please sign in to comment.