fix(xonsh): account for new nixos option
This commit is contained in:
parent
81bee82c34
commit
607e6a486d
3 changed files with 5 additions and 17 deletions
6
flake.lock
generated
6
flake.lock
generated
|
@ -2,11 +2,11 @@
|
|||
"nodes": {
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1739580444,
|
||||
"narHash": "sha256-+/bSz4EAVbqz8/HsIGLroF8aNaO8bLRL7WfACN+24g4=",
|
||||
"lastModified": 1739866667,
|
||||
"narHash": "sha256-EO1ygNKZlsAC9avfcwHkKGMsmipUk1Uc0TbrEZpkn64=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "8bb37161a0488b89830168b81c48aed11569cb93",
|
||||
"rev": "73cf49b8ad837ade2de76f87eb53fc85ed5d4680",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
15
flake.nix
15
flake.nix
|
@ -14,19 +14,6 @@
|
|||
f {
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
});
|
||||
filterAttrs = f: attrs: let
|
||||
names = builtins.attrNames attrs;
|
||||
filtered = builtins.filter (n: f n attrs.${n}) names;
|
||||
in
|
||||
builtins.listToAttrs (
|
||||
map (
|
||||
name: {
|
||||
inherit name;
|
||||
value = attrs.${name};
|
||||
}
|
||||
)
|
||||
filtered
|
||||
);
|
||||
in {
|
||||
overlays.default = _: prev: (builtins.listToAttrs (
|
||||
builtins.map (
|
||||
|
@ -35,7 +22,7 @@
|
|||
value = prev.callPackage ./packages/${name} {inherit inputs;};
|
||||
}
|
||||
) (builtins.attrNames (
|
||||
filterAttrs (
|
||||
nixpkgs.lib.filterAttrs (
|
||||
_: v: v == "directory"
|
||||
) (builtins.readDir ./packages)
|
||||
))
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
inputs,
|
||||
system,
|
||||
zoxide,
|
||||
... # fuck you nixpkgs
|
||||
}: let
|
||||
xonsh =
|
||||
python3
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue