Skip to content

feat: nix flake#59

Merged
maaslalani merged 1 commit intomainfrom
nix
Apr 5, 2024
Merged

feat: nix flake#59
maaslalani merged 1 commit intomainfrom
nix

Conversation

@meowgorithm
Copy link
Member

No description provided.

Comment on lines +13 to +18
}:
flake-utils.lib.eachDefaultSystem (system: let
pkgs = import nixpkgs {inherit system;};
in {
packages.default = import ./default.nix {inherit pkgs;};
})
Copy link
Contributor

@isabelroses isabelroses Mar 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you could remove flake-utils here by using the snippit below. It would also eliminate the slower import.

}: let
    forAllSystems = nixpkgs.lib.genAttrs ["x86_64-linux" "x86_64-darwin" "i686-linux" "aarch64-linux" "aarch64-darwin"];
    
    pkgsForEach = nixpkgs.legacyPackages;
  in {
    packages = forAllSystems (system: {
      default = pkgsForEach.${system}.callPackage ./default.nix {};
    });

Though i'm not sure how this would affect the overlay, i'm not the best with those.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After a bit of testing a better overlay would be.

 overlays.default = final: prev: {
   charm-freeze = final.callPackage ./default.nix {};
 };

@maaslalani maaslalani merged commit c8ae034 into main Apr 5, 2024
@maaslalani maaslalani mentioned this pull request Apr 5, 2024
@maaslalani maaslalani deleted the nix branch April 5, 2024 08:51
@hauleth
Copy link

hauleth commented Apr 5, 2024

This do not build on macOS due to vendorHash mismatch.

@isabelroses isabelroses mentioned this pull request Apr 5, 2024
@maaslalani
Copy link
Contributor

This do not build on macOS due to vendorHash mismatch.

This should now be fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants