Skip to content

Commit

Permalink
build(nix): remove npm packages (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
nekowinston authored Nov 22, 2023
1 parent 5c3c4e7 commit ee2160b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 29 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cachix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ jobs:
run: nix flake check -Lv

- name: Build packages
run: nix build -L .#catwalk .#contrast_test .#docpuccin .#inkcat .#puccinier .#whiskers
run: nix build -L .#catwalk .#puccinier .#whiskers
28 changes: 0 additions & 28 deletions nix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,6 @@
pkgs,
version ? "dirty",
}: let
mkNodePkg = {
pname,
description,
...
} @ args:
pkgs.buildNpmPackage ({
inherit pname version;
src = pkgs.nix-gitignore.gitignoreSourcePure [../.gitignore] ../${pname};
dontNpmBuild = true;
prePatch = ''
cp -r ${../package-lock.json} ./package-lock.json
'';
npmDepsHash = "sha256-mxrzw1Y3c9/XuZBIsg3X026pj/quWm3WWLtyvT2jY0Q=";

meta = with pkgs.lib; {
inherit description;
homepage = "https://github.com/catppuccin/toolbox/tree/main/${pname}";
license = licenses.mit;
maintainers = with maintainers; [rubyowo];
};
}
// args);

mkRustPkg = {
pname,
description,
Expand Down Expand Up @@ -87,11 +64,6 @@
];
in
builtins.listToAttrs (builtins.map ({...} @ args: {
name = args.pname;
value = mkNodePkg args;
})
nodePkgs)
// builtins.listToAttrs (builtins.map ({...} @ args: {
name = args.pname;
value = mkRustPkg args;
})
Expand Down

0 comments on commit ee2160b

Please sign in to comment.