feat: integrate v1 into top-level fake

This commit is contained in:
DavHau 2023-03-12 21:45:11 +07:00
parent 93102e5fdf
commit ac63eb584f
3 changed files with 64 additions and 1 deletions

View File

@ -71,6 +71,30 @@
"type": "github"
}
},
"drv-parts": {
"inputs": {
"flake-compat": "flake-compat",
"flake-parts": [
"flake-parts"
],
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1678556855,
"narHash": "sha256-uQ8WzJ8e5jYRYPIxjfNZIhTCdWAGzCAKsMHOkZ24do8=",
"owner": "davhau",
"repo": "drv-parts",
"rev": "2be8135cff33e1f484f12c1548564dea50c769b1",
"type": "github"
},
"original": {
"owner": "davhau",
"repo": "drv-parts",
"type": "github"
}
},
"fenix": {
"inputs": {
"nixpkgs": [
@ -93,6 +117,22 @@
"type": "github"
}
},
"flake-compat": {
"flake": false,
"locked": {
"lastModified": 1673956053,
"narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9",
"type": "github"
},
"original": {
"owner": "edolstra",
"repo": "flake-compat",
"type": "github"
}
},
"flake-parts": {
"inputs": {
"nixpkgs-lib": [
@ -222,6 +262,21 @@
"type": "indirect"
}
},
"nixpkgsV1": {
"locked": {
"lastModified": 1678500271,
"narHash": "sha256-tRBLElf6f02HJGG0ZR7znMNFv/Uf7b2fFInpTHiHaSE=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "5eb98948b66de29f899c7fe27ae112a47964baf8",
"type": "github"
},
"original": {
"id": "nixpkgs",
"ref": "nixos-22.11",
"type": "indirect"
}
},
"poetry2nix": {
"flake": false,
"locked": {
@ -285,6 +340,7 @@
"all-cabal-json": "all-cabal-json",
"crane": "crane",
"devshell": "devshell",
"drv-parts": "drv-parts",
"flake-parts": "flake-parts",
"flake-utils-pre-commit": "flake-utils-pre-commit",
"ghc-utils": "ghc-utils",
@ -292,6 +348,7 @@
"mach-nix": "mach-nix",
"nix-pypi-fetcher": "nix-pypi-fetcher",
"nixpkgs": "nixpkgs",
"nixpkgsV1": "nixpkgsV1",
"poetry2nix": "poetry2nix",
"pre-commit-hooks": "pre-commit-hooks",
"pruned-racket-catalog": "pruned-racket-catalog"

View File

@ -8,10 +8,15 @@
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
nixpkgsV1.url = "nixpkgs/nixos-22.11";
flake-parts.url = "github:hercules-ci/flake-parts";
flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs";
drv-parts.url = "github:davhau/drv-parts";
drv-parts.inputs.nixpkgs.follows = "nixpkgs";
drv-parts.inputs.flake-parts.follows = "flake-parts";
### dev dependencies
alejandra.url = "github:kamadorueda/alejandra";
alejandra.inputs.nixpkgs.follows = "nixpkgs";
@ -342,6 +347,7 @@
imports = [
./tests
./templates
./v1/nix/modules/flake-parts/all-modules.nix
];
systems = [
"x86_64-linux"

View File

@ -19,7 +19,7 @@
evalCacheSetup
];
specialArgs.dependencySets = {
nixpkgs = inputs'.nixpkgs.legacyPackages;
nixpkgs = inputs'.nixpkgsV1.legacyPackages;
};
specialArgs.drv-parts = inputs.drv-parts;
};