-
-
Notifications
You must be signed in to change notification settings - Fork 200
Expand file tree
/
Copy pathdefault.nix
More file actions
27 lines (24 loc) · 627 Bytes
/
default.nix
File metadata and controls
27 lines (24 loc) · 627 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{
flake ? import ./nix/flake-compat.nix { },
pkgs ? import flake.inputs.nixpkgs { },
}:
let
inherit (pkgs) lib;
inherit
(import (pkgs.fetchFromGitHub {
owner = "hercules-ci";
repo = "gitignore.nix";
rev = "80463148cd97eebacf80ba68cf0043598f0d7438";
sha256 = "1l34rmh4lf4w8a1r8vsvkmg32l1chl0p593fl12r28xx83vn150v";
}) { })
gitignoreSource
;
nixFilter = name: type: !(lib.hasSuffix ".nix" name);
srcFilter =
src:
lib.cleanSourceWith {
filter = nixFilter;
src = gitignoreSource src;
};
in
pkgs.callPackage ./nix/immer.nix { sources = srcFilter ./.; }