Skip to content

Commit

Permalink
feat: add talhelper package and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tonybutt authored and budimanjojo committed Oct 19, 2024
1 parent 5cd36a1 commit 7fae270
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
26 changes: 26 additions & 0 deletions docs/docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,32 @@ You can get `talhelper` as [Nix Flakes](https://nixos.wiki/wiki/Flakes) from the
```
- The package is now available at `packages.<system>.default` of the flake. You can call it in your `home.packages` or `environment.systemPackages` or `devShell` by referencing the input as `inputs.talhelper.packages.<system>.default`.
- Additionally we provide a convenient overlay for your nixpkgs
```nix
{
...
pkgs = import nixpkgs {
overlays = [
inputs.talhelper.overlays.default
];
};
}
# In any of the places you define packages
{
# Nixos
environment.systemPackages = with pkgs; [
talhelper
];
# Home Manager
home.packages = with pkgs; [
talhelper
];
# Flakes
pkgs.mkShell = with pkgs; [
talhelper
];
}
```
## Using Pacman
Expand Down
5 changes: 4 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@
# })
# ];
};
packages.default = pkgs.callPackage ./default.nix { };
packages = rec {
default = talhelper;
talhelper = pkgs.callPackage ./default.nix { };
};
devShells.default =
with pkgs;
mkShell {
Expand Down

0 comments on commit 7fae270

Please sign in to comment.