1
0
Fork 0
mirror of https://github.com/hercules-ci/flake-parts.git synced 2024-12-14 11:47:31 +00:00

23.05 -> 24.05

This commit is contained in:
Yang, Bo 2024-09-12 17:43:20 +00:00
parent 1796154f6e
commit 56f98c596a
2 changed files with 5 additions and 5 deletions

View file

@ -2,7 +2,7 @@
description = "Description for the project";
inputs = {
nixpkgs_23_05.url = "github:NixOS/nixpkgs/nixos-23.05";
nixpkgs_24_05.url = "github:NixOS/nixpkgs/nixos-24.05";
};
outputs = { flake-parts, self, nixpkgs, ... }@inputs:

View file

@ -12,19 +12,19 @@
options.customHello.enableUserStdenv = lib.mkEnableOption "stdenv from `flakeModules.customHello` user's nixpkgs";
options.perSystem = flake-parts-lib.mkPerSystemOption ({ pkgs, system, ... }: {
packages.hello =
(inputs.nixpkgs_23_05.legacyPackages.${system}.hello.override {
(inputs.nixpkgs_24_05.legacyPackages.${system}.hello.override {
stdenv =
if cfg.enableUserStdenv then
pkgs.stdenv
else
inputs.nixpkgs_23_05.legacyPackages.${system}.stdenv;
inputs.nixpkgs_24_05.legacyPackages.${system}.stdenv;
}).overrideAttrs (oldAttrs: {
meta = oldAttrs.meta // {
description = "A hello package from the `flakeModules.customHello` author's nixpkgs 23.05, built with stdenv from ${
description = "A hello package from the `flakeModules.customHello` author's nixpkgs 24.05, built with stdenv from ${
if cfg.enableUserStdenv then
"the `flakeModules.customHello` user's nixpkgs"
else
"the `flakeModules.customHello` author's nixpkgs 23.05"
"the `flakeModules.customHello` author's nixpkgs 24.05"
}";
};
});