# Easy source filtering with file sets

**URL:** https://discourse.nixos.org/t/easy-source-filtering-with-file-sets/29117
**Category:** Development
**Created:** [June 14, 2023, 6:41pm UTC](https://discourse.nixos.org/t/easy-source-filtering-with-file-sets/29117 "2023-06-14T18:41:55Z")
**Posts on this page:** 1
**Showing post:** 20

<div class="post-metadata">

### Author: ![hinshun](https://discourse.nixos.org/user_avatar/discourse.nixos.org/hinshun/32/34317_2.png) [@hinshun](https://discourse.nixos.org/u/hinshun)
#### Post date: [October 25, 2024, 8:42am UTC](https://discourse.nixos.org/t/easy-source-filtering-with-file-sets/29117/20 "2024-10-25T08:42:20Z")

</div>

Hi zimbatm, this has now been manifested into reality!

> [@Globset: Source filtering using globs with filesets](https://discourse.nixos.org/t/globset-source-filtering-using-globs-with-filesets/54915):
>
> Hi there! I am Edgar and I wanted to share with you [globset](https://github.com/pdtpartners/globset), a Nix library to help specify what sources to include when building a Nix package using familiar glob patterns like “/.go”. “globset” provides a concise and simple way of specifying what sources should be included. It is built on top of the new “fileset” library introduced in Nixpkgs 23.11, and is composable with any libraries using it. This is our second open source project after releasing [nix-snapshotter last year](https://discourse.nixos.org/t/nix-snapshotter-native-understanding-of-nix-packages-for-containerd/32696). See correspondin…

---

_[View the full topic](https://discourse.nixos.org/t/easy-source-filtering-with-file-sets/29117)._
