Skip to content

Added a flake for build and packaging on Nix/NixOS.#149

Open
deephack1982 wants to merge 3 commits intomarcus:mainfrom
deephack1982:main
Open

Added a flake for build and packaging on Nix/NixOS.#149
deephack1982 wants to merge 3 commits intomarcus:mainfrom
deephack1982:main

Conversation

@deephack1982
Copy link

Created a simple flake which can build and install sidecar on Nix/NixOS environments just in case you want that. To locally build and test simply run

nix build

To add to your NixOS system you can add an input and include the default package like this.

inputs = {
    sidecar.url = "github:deephack1982/sidecar";

## more inputs
};

environment.systemPackages = with pkgs; [
  inputs.sidecar.packages.${pkgs.stdenv.hostPlatform.system}.default
]

@deephack1982
Copy link
Author

Okay had to patch this up a bit as I included the wrong td :-D

NixOS snippet is now this.

inputs = {
    sidecar.url = "github:deephack1982/sidecar";

## more inputs
};

environment.systemPackages = with pkgs; [
  inputs.sidecar.packages.${pkgs.stdenv.hostPlatform.system}.sidecar
  inputs.sidecar.packages.${pkgs.stdenv.hostPlatform.system}.td
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant