Skip to content

Commit

Permalink
fix: update nix, added update script (#19)
Browse files Browse the repository at this point in the history
* fix: update nix, added update script

now it's possible to run

```sh
nix develop -c update
```

and it should take care of everything.

* fix: simplify
  • Loading branch information
caarlos0 authored Sep 12, 2024
1 parent b7d792e commit ac5f59f
Show file tree
Hide file tree
Showing 2 changed files with 89 additions and 26 deletions.
88 changes: 72 additions & 16 deletions flake.lock

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

27 changes: 17 additions & 10 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,32 @@
inputs = {
nixpkgs.url = "github:nixos/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
toolbox.url = "github:catppuccin/toolbox";
whiskers.url = "github:catppuccin/whiskers";
};

outputs = {
self,
flake-utils,
nixpkgs,
toolbox,
} @ inputs:
outputs =
{ self
, flake-utils
, nixpkgs
, whiskers
,
} @ inputs:
flake-utils.lib.eachDefaultSystem (
system: let
system:
let
pkgs = nixpkgs.legacyPackages.${system};
whiskers = inputs.toolbox.packages.${system}.whiskers;
in {
whiskers = inputs.whiskers.packages.${system}.default;
in
{
devShells.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
go
gopls
whiskers
(writeScriptBin "update" ''
whiskers go.tera
go fmt
'')
];
};
}
Expand Down

0 comments on commit ac5f59f

Please sign in to comment.