diff --git a/outputs.nix b/outputs.nix index 4b5c419..427c178 100644 --- a/outputs.nix +++ b/outputs.nix @@ -78,30 +78,6 @@ self = { builtins.attrValues 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 diff --git a/update-list.nix b/update-list.nix deleted file mode 100644 index 9ce74c3..0000000 --- a/update-list.nix +++ /dev/null @@ -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; -})