2024-02-08 01:43:55 +03:00
|
|
|
# NixOS Sample package.
|
|
|
|
|
|
|
|
## How to build.
|
|
|
|
|
|
|
|
```text
|
|
|
|
nix build
|
|
|
|
```
|
|
|
|
|
|
|
|
## How to integrate into the system (flakes).
|
|
|
|
|
|
|
|
```nix
|
|
|
|
{
|
|
|
|
inputs = {
|
2024-02-08 02:06:12 +03:00
|
|
|
sampleapp.url = "git+https://git.voronind.com/voronind/template_nixos_package.git";
|
2024-02-08 01:43:55 +03:00
|
|
|
};
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
```nix
|
|
|
|
{
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
inputs.sampleapp.packages.${pkgs.system}.default
|
|
|
|
];
|
|
|
|
}
|
|
|
|
```
|