Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flake.nix: rewrite #4605

Merged
merged 23 commits into from
Dec 29, 2023
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
d3e73df
flake.lock: update to hotfix CUDA::cuda_driver
SomeoneSerge Dec 26, 2023
8364cf4
flake.nix: rewrite
philiptaron Dec 22, 2023
0607e24
flake.nix: use finalPackage instead of passing it manually
SomeoneSerge Dec 24, 2023
eab1c12
nix: unclutter darwin support
SomeoneSerge Dec 24, 2023
0259941
nix: pass most darwin frameworks unconditionally
SomeoneSerge Dec 24, 2023
0fa62c1
*.nix: nixfmt
SomeoneSerge Dec 25, 2023
69c56bc
flake.nix: add maintainers
SomeoneSerge Dec 25, 2023
a07407c
nix: move meta down to follow Nixpkgs style more closely
SomeoneSerge Dec 25, 2023
04bc417
nix: add missing meta attributes
SomeoneSerge Dec 25, 2023
d08690a
flake.nix: avoid re-evaluating nixpkgs too many times
SomeoneSerge Dec 25, 2023
a28c9ac
flake.nix: use flake-parts
SomeoneSerge Dec 25, 2023
a629371
nix: migrate to pname+version
SomeoneSerge Dec 25, 2023
e3b1ba2
flake.nix: overlay: expose both the namespace and the default attribute
SomeoneSerge Dec 25, 2023
12d4a68
ci: add the (Nix) flakestry workflow
SomeoneSerge Dec 25, 2023
a16f589
nix: cmakeFlags: explicit OFF bools
SomeoneSerge Dec 26, 2023
dd0e12c
nix: cuda: reduce runtime closure
SomeoneSerge Dec 26, 2023
4522c47
nix: fewer rebuilds
SomeoneSerge Dec 26, 2023
ae6bebc
nix: respect config.cudaCapabilities
SomeoneSerge Dec 26, 2023
1efbc6b
nix: add the impure driver's location to the DT_RUNPATHs
SomeoneSerge Dec 26, 2023
82e48e2
nix: clean sources more thoroughly
SomeoneSerge Dec 26, 2023
7bd8d8c
nix: explicit mpi support
SomeoneSerge Dec 26, 2023
d0adab6
nix: explicit jetson support
SomeoneSerge Dec 26, 2023
3f7003b
flake.nix: darwin: only expose the default
SomeoneSerge Dec 26, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
nix: clean sources more thoroughly
...this way outPaths change less frequently,
and so there are fewer rebuilds
  • Loading branch information
SomeoneSerge committed Dec 26, 2023
commit 82e48e256725f4865dd92a307786b4713e551af7
11 changes: 10 additions & 1 deletion .devops/nix/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,16 @@ effectiveStdenv.mkDerivation (
pname = "llama-cpp${pnameSuffix}";
version = llamaVersion;

src = lib.cleanSource ../../.;
src = lib.cleanSourceWith {
filter =
name: type:
!(builtins.any (_: _) [
(lib.hasSuffix ".nix" name) # Ignore *.nix files when computing outPaths
(name == "README.md") # Ignore *.md changes whe computing outPaths
(lib.hasPrefix "." name) # Skip hidden files and directories
]);
src = lib.cleanSource ../../.;
};

postPatch = ''
substituteInPlace ./ggml-metal.m \
Expand Down