flake(goModule): filter out non-pertinent files...
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
...such as flake files or {shell,default}.nix to reduce the necessity to rebuild (when using `nix build`) after each change, even to non-go files. more files can be added to an exclude list in the future.
This commit is contained in:
parent
7121d8f91a
commit
103bbfa528
16
flake.lock
16
flake.lock
@ -16,6 +16,21 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nix-filter": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1653590866,
|
||||||
|
"narHash": "sha256-E4yKIrt/S//WfW5D9IhQ1dVuaAy8RE7EiCMfnbrOC78=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "nix-filter",
|
||||||
|
"rev": "3e81a637cdf9f6e9b39aeb4d6e6394d1ad158e16",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "nix-filter",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixgl": {
|
"nixgl": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
@ -55,6 +70,7 @@
|
|||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": "flake-compat",
|
"flake-compat": "flake-compat",
|
||||||
|
"nix-filter": "nix-filter",
|
||||||
"nixgl": "nixgl",
|
"nixgl": "nixgl",
|
||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": "nixpkgs"
|
||||||
}
|
}
|
||||||
|
16
flake.nix
16
flake.nix
@ -10,9 +10,13 @@
|
|||||||
flake = false;
|
flake = false;
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
nix-filter = {
|
||||||
|
url = "github:numtide/nix-filter";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixgl, nixpkgs, ... }:
|
outputs = { self, nixgl, nix-filter, nixpkgs, ... }:
|
||||||
let
|
let
|
||||||
|
|
||||||
# to work with older version of flakes
|
# to work with older version of flakes
|
||||||
@ -87,7 +91,15 @@
|
|||||||
|
|
||||||
# In 'nix develop', we don't need a copy of the source tree
|
# In 'nix develop', we don't need a copy of the source tree
|
||||||
# in the Nix store.
|
# in the Nix store.
|
||||||
src = lib.cleanSource ./.;
|
src = nix-filter.lib.filter {
|
||||||
|
root = lib.cleanSource ./.;
|
||||||
|
exclude = [
|
||||||
|
./flake.nix
|
||||||
|
./flake.lock
|
||||||
|
./default.nix
|
||||||
|
./shell.nix
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "an offline-capable xkcd webcomic reader written in Go";
|
description = "an offline-capable xkcd webcomic reader written in Go";
|
||||||
|
Loading…
Reference in New Issue
Block a user