mirror of
https://github.com/zhaofengli/attic.git
synced 2025-03-15 21:08:23 +00:00
Migrate overlays to flake-parts
This commit is contained in:
parent
11163ab253
commit
8dc0bdbf7f
2 changed files with 14 additions and 8 deletions
|
@ -87,14 +87,6 @@
|
||||||
stableTests = lib.mapAttrs' (name: lib.nameValuePair "stable-${name}") (makeIntegrationTests pkgsStable);
|
stableTests = lib.mapAttrs' (name: lib.nameValuePair "stable-${name}") (makeIntegrationTests pkgsStable);
|
||||||
in lib.optionalAttrs pkgs.stdenv.isLinux (unstableTests // stableTests);
|
in lib.optionalAttrs pkgs.stdenv.isLinux (unstableTests // stableTests);
|
||||||
}) // {
|
}) // {
|
||||||
overlays = {
|
|
||||||
default = final: prev: let
|
|
||||||
cranePkgs = makeCranePkgs final;
|
|
||||||
in {
|
|
||||||
inherit (cranePkgs) attic attic-client attic-server;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
nixosModules = {
|
nixosModules = {
|
||||||
atticd = {
|
atticd = {
|
||||||
imports = [
|
imports = [
|
||||||
|
|
14
flake/overlays.nix
Normal file
14
flake/overlays.nix
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
{ makeCranePkgs, ... }:
|
||||||
|
{
|
||||||
|
flake.overlays = {
|
||||||
|
default = final: prev: let
|
||||||
|
cranePkgs = makeCranePkgs final;
|
||||||
|
in {
|
||||||
|
inherit (cranePkgs)
|
||||||
|
attic
|
||||||
|
attic-client
|
||||||
|
attic-server
|
||||||
|
;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue