Skip to content

Commit

Permalink
flake: remove now-unnecessary nix-update hack
Browse files Browse the repository at this point in the history
  • Loading branch information
lilyinstarlight committed Sep 24, 2024
1 parent 738a6c4 commit c5ef1bb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 74 deletions.
65 changes: 0 additions & 65 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 1 addition & 9 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@
url = "github:nix-community/flake-compat";
flake = false;
};

# TODO: remove when nix-update is bumped in nixpkgs for a version addressing <https://github.com/Mic92/nix-update/pull/246#issuecomment-2323018854>
nix-update = {
url = "github:Mic92/nix-update";
inputs.nixpkgs.follows = "nixpkgs";
};
};

outputs = { self, nixpkgs, nixpkgs-stable, rust-overlay, ... }: let
Expand Down Expand Up @@ -52,9 +46,7 @@

legacyPackages = forAllSystems (system: let
lib = nixpkgs.lib;
# TODO: revert when nix-update is bumped in nixpkgs for a version addressing <https://github.com/Mic92/nix-update/pull/246#issuecomment-2323018854>
#pkgs = nixpkgs.legacyPackages.${system};
pkgs = nixpkgs.legacyPackages.${system}.extend (final: prev: { nix-update = self.inputs.nix-update.packages.${system}.default // { nix-update-script = prev.nix-update.nix-update-script.override { inherit (final) nix-update; }; meta = prev.nix-update.meta; }; });
pkgs = nixpkgs.legacyPackages.${system};
in {
update = pkgs.writeShellApplication {
name = "cosmic-unstable-update";
Expand Down

0 comments on commit c5ef1bb

Please sign in to comment.