Skip to content

Commit

Permalink
refactor(nix)!: more minmal shell; remove package (catppuccin#1025)
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelroses authored Jun 27, 2024
1 parent 23ecff2 commit 49dc543
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 135 deletions.
78 changes: 5 additions & 73 deletions flake.lock

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

35 changes: 15 additions & 20 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,25 +1,20 @@
{
description = "Catppuccin userstyles";

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
nix-deno.url = "github:nekowinston/nix-deno";
};
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";

outputs = {
nixpkgs,
flake-utils,
...
} @ inputs:
flake-utils.lib.eachDefaultSystem (system: let
pkgs = import nixpkgs {
inherit system;
overlays = [inputs.nix-deno.overlays.default];
};
in {
packages.default = pkgs.callPackage ./nix/default.nix {};

devShells.default = pkgs.callPackage ./nix/shell.nix {};
});
outputs =
{ nixpkgs, ... }:
let
forAllSystems =
function:
nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed (
system: function nixpkgs.legacyPackages.${system}
);
in
{
devShells = forAllSystems (pkgs: {
default = pkgs.callPackage ./shell.nix { };
});
};
}
26 changes: 0 additions & 26 deletions nix/default.nix

This file was deleted.

16 changes: 0 additions & 16 deletions nix/shell.nix

This file was deleted.

14 changes: 14 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
deno,
typos,
mkShellNoCC,
nodePackages,
...
}:
mkShellNoCC {
packages = [
deno
typos
nodePackages.prettier
];
}

0 comments on commit 49dc543

Please sign in to comment.