Skip to content

Commit

Permalink
build(nix): revert nixfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
sgoudham committed Jun 5, 2024
1 parent 49a1ab3 commit c1b5e68
Showing 1 changed file with 18 additions and 28 deletions.
46 changes: 18 additions & 28 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,26 @@

inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";

outputs =
{ self, nixpkgs, ... }:
let
systems = [
"aarch64-darwin"
"aarch64-linux"
"x86_64-darwin"
"x86_64-linux"
];
forEachSystem = fn: lib.genAttrs systems (system: fn (import nixpkgs { inherit system; }));
inherit (nixpkgs) lib;
in
{
checks = forEachSystem (pkgs: self.packages.${pkgs.system});
packages =
forEachSystem (pkgs: lib.filterAttrs (_: v: lib.isDerivation v) (pkgs.callPackage ./nix { }))
// {
whiskers = throw "This package has been moved to x `github:catppuccin/whiskers`";
};
overlays.default = final: prev: {
catppuccin-catwalk = (prev.callPackage ./nix { }).catwalk;
catppuccin-whiskers = throw "This package has been moved to x `github:catppuccin/whiskers`";
};
formatter = forEachSystem (pkgs: pkgs.alejandra);
outputs = {
self,
nixpkgs,
...
}: let
systems = ["aarch64-darwin" "aarch64-linux" "x86_64-darwin" "x86_64-linux"];
forEachSystem = fn: lib.genAttrs systems (system: fn (import nixpkgs {inherit system;}));
inherit (nixpkgs) lib;
in {
checks = forEachSystem (pkgs: self.packages.${pkgs.system});
packages = forEachSystem (pkgs: lib.filterAttrs (_: v: lib.isDerivation v) (pkgs.callPackage ./nix { }) // { whiskers = throw "This package has been moved to x `github:catppuccin/whiskers`"; } );
overlays.default = final: prev: {
catppuccin-catwalk = (prev.callPackage ./nix {}).catwalk;
catppuccin-whiskers = throw "This package has been moved to x `github:catppuccin/whiskers`";
};
formatter = forEachSystem (pkgs: pkgs.alejandra);
};

nixConfig = {
extra-substituters = [ "https://catppuccin.cachix.org" ];
extra-trusted-public-keys = [
"catppuccin.cachix.org-1:noG/4HkbhJb+lUAdKrph6LaozJvAeEEZj4N732IysmU="
];
extra-substituters = ["https://catppuccin.cachix.org"];
extra-trusted-public-keys = ["catppuccin.cachix.org-1:noG/4HkbhJb+lUAdKrph6LaozJvAeEEZj4N732IysmU="];
};
}

0 comments on commit c1b5e68

Please sign in to comment.