on master help sign in
gitignoresrc is not required (flakes already ignores them)
d79326dSridhar Ratnakumar
flake.lock+9−42
@@ -18,36 +18,20 @@
18 "type": "github"
18 "type": "github"
19 }
19 }
20 },
20 },
21− "gitignore": {
22− "inputs": {
23− "nixpkgs": "nixpkgs"
24− },
25− "locked": {
26− "lastModified": 1660459072,
27− "narHash": "sha256-8DFJjXG8zqoONA1vXtgeKXy68KdJL5UaXR8NtVMUbx8=",
28− "owner": "hercules-ci",
29− "repo": "gitignore.nix",
30− "rev": "a20de23b925fd8264fd7fad6454652e142fd7f73",
31− "type": "github"
32− },
33− "original": {
34− "owner": "hercules-ci",
35− "repo": "gitignore.nix",
36− "type": "github"
37− }
38− },
39 "nixpkgs": {
21 "nixpkgs": {
40 "locked": {
22 "locked": {
41− "lastModified": 1632846328,
23+ "lastModified": 1678594102,
42− "narHash": "sha256-sFi6YtlGK30TBB9o6CW7LG9mYHkgtKeWbSLAjjrNTX0=",
24+ "narHash": "sha256-OHAHYiMWJFPNxuW/PcOMlSD2tvXnEYC1jxREBADHwwQ=",
43− "owner": "NixOS",
25+ "owner": "nixos",
44 "repo": "nixpkgs",
26 "repo": "nixpkgs",
45− "rev": "2b71ddd869ad592510553d09fe89c9709fa26b2b",
27+ "rev": "796b4a3c1d903c4b9270cd2548fe46f524eeb886",
46 "type": "github"
28 "type": "github"
47 },
29 },
48 "original": {
30 "original": {
31+ "owner": "nixos",
32+ "ref": "nixpkgs-unstable",
49− "id": "nixpkgs",
33+ "repo": "nixpkgs",
50− "type": "indirect"
34+ "type": "github"
51 }
35 }
52 },
36 },
53 "nixpkgs-lib": {
37 "nixpkgs-lib": {
@@ -68,27 +52,10 @@
68 "type": "github"
52 "type": "github"
69 }
53 }
70 },
54 },
71− "nixpkgs_2": {
72− "locked": {
73− "lastModified": 1678594102,
74− "narHash": "sha256-OHAHYiMWJFPNxuW/PcOMlSD2tvXnEYC1jxREBADHwwQ=",
75− "owner": "nixos",
76− "repo": "nixpkgs",
77− "rev": "796b4a3c1d903c4b9270cd2548fe46f524eeb886",
78− "type": "github"
79− },
80− "original": {
81− "owner": "nixos",
82− "ref": "nixpkgs-unstable",
83− "repo": "nixpkgs",
84− "type": "github"
85− }
86− },
87 "root": {
55 "root": {
88 "inputs": {
56 "inputs": {
89 "flake-parts": "flake-parts",
57 "flake-parts": "flake-parts",
90− "gitignore": "gitignore",
91− "nixpkgs": "nixpkgs_2"
58+ "nixpkgs": "nixpkgs"
92 }
59 }
93 }
60 }
94 },
61 },
flake.nix+2−4
@@ -2,16 +2,14 @@
2 inputs = {
2 inputs = {
3 nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
3 nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
4 flake-parts.url = "github:hercules-ci/flake-parts";
4 flake-parts.url = "github:hercules-ci/flake-parts";
5− gitignore.url = "github:hercules-ci/gitignore.nix";
6 };
5 };
7− outputs = inputs@{ nixpkgs, flake-parts, gitignore, ... }:
6+ outputs = inputs@{ nixpkgs, flake-parts, ... }:
8 flake-parts.lib.mkFlake { inherit inputs; } {
7 flake-parts.lib.mkFlake { inherit inputs; } {
9 systems = nixpkgs.lib.systems.flakeExposed;
8 systems = nixpkgs.lib.systems.flakeExposed;
10 perSystem = { self', inputs', pkgs, system, ... }:
9 perSystem = { self', inputs', pkgs, system, ... }:
11 let
10 let
12− inherit (gitignore.lib) gitignoreSource;
13 overlay = self: super: {
11 overlay = self: super: {
14− jrec = self.callCabal2nix "jrec" (gitignoreSource ./.) { };
12+ jrec = self.callCabal2nix "jrec" ./. { };
15 };
13 };
16 haskellPackages' = pkgs.haskellPackages.extend overlay;
14 haskellPackages' = pkgs.haskellPackages.extend overlay;
17 in
15 in