Stop importing nixpkgs in the flake

This commit is contained in:
eriedaberrie 2024-04-16 09:53:53 -07:00
parent e8476369b7
commit 55cb5feb85
2 changed files with 6 additions and 6 deletions

View file

@ -2,11 +2,11 @@
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1701718080,
"narHash": "sha256-6ovz0pG76dE0P170pmmZex1wWcQoeiomUZGggfH9XPs=",
"lastModified": 1712963716,
"narHash": "sha256-WKm9CvgCldeIVvRz87iOMi8CFVB1apJlkUT4GGvA0iM=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "2c7f3c0fb7c08a0814627611d9d7d45ab6d75335",
"rev": "cfd6b5fc90b15709b780a5a1619695a88505a176",
"type": "github"
},
"original": {

View file

@ -12,11 +12,11 @@
"x86_64-linux"
"aarch64-linux"
];
pkgsFor = system: import nixpkgs {inherit system;};
pkgsFor = nixpkgs.legacyPackages;
in {
devShells = genSystems (
system: let
pkgs = pkgsFor system;
pkgs = pkgsFor.${system};
in {
default = pkgs.mkShell {
nativeBuildInputs = [
@ -46,6 +46,6 @@
}
);
formatter = genSystems (system: (pkgsFor system).alejandra);
formatter = genSystems (system: pkgsFor.system.alejandra);
};
}