mirror of
https://github.com/hercules-ci/flake-parts.git
synced 2025-03-16 13:28:20 +00:00
23.05 -> 24.05
This commit is contained in:
parent
1796154f6e
commit
56f98c596a
2 changed files with 5 additions and 5 deletions
|
@ -2,7 +2,7 @@
|
||||||
description = "Description for the project";
|
description = "Description for the project";
|
||||||
|
|
||||||
inputs = {
|
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:
|
outputs = { flake-parts, self, nixpkgs, ... }@inputs:
|
||||||
|
|
|
@ -12,19 +12,19 @@
|
||||||
options.customHello.enableUserStdenv = lib.mkEnableOption "stdenv from `flakeModules.customHello` user's nixpkgs";
|
options.customHello.enableUserStdenv = lib.mkEnableOption "stdenv from `flakeModules.customHello` user's nixpkgs";
|
||||||
options.perSystem = flake-parts-lib.mkPerSystemOption ({ pkgs, system, ... }: {
|
options.perSystem = flake-parts-lib.mkPerSystemOption ({ pkgs, system, ... }: {
|
||||||
packages.hello =
|
packages.hello =
|
||||||
(inputs.nixpkgs_23_05.legacyPackages.${system}.hello.override {
|
(inputs.nixpkgs_24_05.legacyPackages.${system}.hello.override {
|
||||||
stdenv =
|
stdenv =
|
||||||
if cfg.enableUserStdenv then
|
if cfg.enableUserStdenv then
|
||||||
pkgs.stdenv
|
pkgs.stdenv
|
||||||
else
|
else
|
||||||
inputs.nixpkgs_23_05.legacyPackages.${system}.stdenv;
|
inputs.nixpkgs_24_05.legacyPackages.${system}.stdenv;
|
||||||
}).overrideAttrs (oldAttrs: {
|
}).overrideAttrs (oldAttrs: {
|
||||||
meta = oldAttrs.meta // {
|
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
|
if cfg.enableUserStdenv then
|
||||||
"the `flakeModules.customHello` user's nixpkgs"
|
"the `flakeModules.customHello` user's nixpkgs"
|
||||||
else
|
else
|
||||||
"the `flakeModules.customHello` author's nixpkgs 23.05"
|
"the `flakeModules.customHello` author's nixpkgs 24.05"
|
||||||
}";
|
}";
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue