Skip to content

Add flake.nix for NixOS installations of snout-cli#46

Open
meir wants to merge 4 commits into
Darksecond:mainfrom
meir:main
Open

Add flake.nix for NixOS installations of snout-cli#46
meir wants to merge 4 commits into
Darksecond:mainfrom
meir:main

Conversation

@meir

@meir meir commented Jun 23, 2026

Copy link
Copy Markdown

Added a flake.nix that builds the snout-cli.
Updated README to include steps to install it on NixOS, however if @Helooprototo could scan over it to change it to be more inline with the rest of the readme, that would be nice

Comment thread README.md
environment.systemPackages = with pkgs; [
snout-cli
];
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A newline after the end of this code block is the only thing I'd add. Makes the formatter and some markdown parsers happy, and looks nicer. I can't comment on any of the nix stuff, so I trust that that's correct, thanks! ^^

Comment thread flake.nix Outdated
};
cargoBuildFlags = [ "--package" "snout-cli" ];

nativeBuildInputs = with pkgs; [

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe don't use with pkgs as it's a large attrset and will slow down eval

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

never knew about that, cant find much online about it though, but looking at examples of other repositories flake.nix it seems they do the same by calling pkgs.[package] directly.
updated flake.nix

Comment thread flake.nix Outdated
];

postFixup = let
libs = with pkgs; lib.makeLibraryPath [

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

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.

3 participants