You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before I create a separate issue, I would like to piggy-back on this issue:
Are all the use-cases covered in the readme?
I was about to create another issue because the readme does not state anything about flake/flake support.
As a nix-n00b, I first assumed that it doesn't support flakes and wasn't sure how to include it in my flake-based project.
Only after looking at the project for the second time, I saw that it does include flake.nix.
So I would like to extend the Usage section as:
Flake support
Or alternatively, if you are using it as a flake, this is how you could use it in your flake.nix file:
{inputs={nixpkgs.url="github:nixos/nixpkgs/nixos-22.11";nix-filter.url="github:numtide/nix-filter";};outputs={self,nixpkgs,nix-filter}:
letpkgs=nixpkgs.legacyPackages.x86_64-linux;# Avoid calling it nix-filter as it may result in an infinite recursionfilter=importnix-filter;# ....in{# ...};}
{inputs={nixpkgs.url="github:nixos/nixpkgs/nixos-22.11";nix-filter.url="github:numtide/nix-filter";};outputs={self,nixpkgs,nix-filter}:
letpkgs=nixpkgs.legacyPackages.x86_64-linux;# Avoid calling it nix-filter as it may result in an infinite recursionfilter=nix-filter.lib;# ....in{# ...};}
The doc could be better.
What is the best notation to describe nix functions?
Are all the use-cases covered in the readme?
The text was updated successfully, but these errors were encountered: