outputs; update-list: remove
not needed with flakes
This commit is contained in:
parent
7a68545872
commit
a1e23e210f
2 changed files with 0 additions and 37 deletions
24
outputs.nix
24
outputs.nix
|
@ -78,30 +78,6 @@ self = {
|
||||||
builtins.attrValues
|
builtins.attrValues
|
||||||
builtins.listToAttrs
|
builtins.listToAttrs
|
||||||
];
|
];
|
||||||
# FIXME: currently impure
|
|
||||||
# NOTE: to run, you need to evaluate outputs.nix instead of default.nix
|
|
||||||
# nix-shell outputs.nix -A update
|
|
||||||
update = let
|
|
||||||
updateScript = (self.packagesForSystem (builtins.currentSystem)).den-update-script;
|
|
||||||
in updateScript {
|
|
||||||
path = "";
|
|
||||||
packages = lib.pipe ./update-list.nix [
|
|
||||||
import
|
|
||||||
(x: x self)
|
|
||||||
lib.attrsToList
|
|
||||||
(lib.imap1 (i: {name, value}: {
|
|
||||||
name = builtins.toString i;
|
|
||||||
value = value // {
|
|
||||||
# hack to pass isDerivation check in nixpkgs maintainers/scripts/update.nix
|
|
||||||
# https://github.com/NixOS/nixpkgs/blob/a1185f4064c18a5db37c5c84e5638c78b46e3341/maintainers/scripts/update.nix#L85
|
|
||||||
type = "derivation";
|
|
||||||
name = name;
|
|
||||||
};
|
|
||||||
}))
|
|
||||||
builtins.listToAttrs
|
|
||||||
lib.recurseIntoAttrs
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
in self
|
in self
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
self:
|
|
||||||
|
|
||||||
# MARK: inputs
|
|
||||||
( let
|
|
||||||
inputsWithPackages = import self.inputsPath {
|
|
||||||
pkgs = self.packagesForSystem builtins.currentSystem;
|
|
||||||
};
|
|
||||||
in {
|
|
||||||
"inputs/nixpkgs" = inputsWithPackages.nixpkgs;
|
|
||||||
"inputs/nixpkgs-unstable" = inputsWithPackages.nixpkgs-unstable;
|
|
||||||
"inputs/cosmic-modules" = inputsWithPackages.cosmic-modules;
|
|
||||||
"inputs/nixos-vscode-server" = inputsWithPackages.nixos-vscode-server;
|
|
||||||
})
|
|
Loading…
Add table
Add a link
Reference in a new issue