forked from scylladb/scylladb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: improvements & upgrades to Nix dev environment
* Add some more useful stuff to the shell environment, so it actually works for debugging & post-mortem analysis. * Wrap ccache & distcc transparently (distcc will be used unless NODISTCC is set to a non-empty value in the environment; ccache will be used if CCACHE_DIR is not empty). * Package the Scylla Python driver (instead of the C* one). * Catch up to misc build/test requirements (including optional) by requiring or custom-packaging: wasmtime 0.29.0, cxxbridge, pytest-asyncio, liburing. * Build statically-linked zstd in a saner and more idiomatic fashion. * In pure builds (where sources lack Git metadata), derive SCYLLA_RELEASE from source hash. * Refactor things for more parameterization. * Explicitly stub out installPhase (seeing that "nix build" succeeds up to installPhase means we didn't miss any dependencies). * Add flake support. * Add copious comments. Signed-off-by: Michael Livshin <[email protected]>
- Loading branch information
Michael Livshin
authored and
Michael Livshin
committed
Oct 2, 2022
1 parent
839d8f4
commit 7bd13be
Showing
11 changed files
with
907 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
nixpkgs: | ||
final: prev: | ||
|
||
let | ||
patched = pkg: patches: | ||
pkg.overrideAttrs (old: { | ||
patches = (old.patches or []) ++ (map final.fetchurl patches); | ||
}); | ||
in { | ||
gdbWithGreenThreadSupport = patched prev.gdb [{ | ||
url = "https://github.com/cmm/gnu-binutils/commit/1c52ca4b27e93e1684c68eeaee44ca3e36648410.patch"; | ||
sha256 = "sha256-3s3KvN70dHMdr7Sx1dtzbZ8S+MynPTN7yCocoGlea2Y="; | ||
}]; | ||
|
||
zstdStatic = final.callPackage "${nixpkgs}/pkgs/tools/compression/zstd" { | ||
static = true; | ||
buildContrib = false; | ||
doCheck = false; | ||
}; | ||
|
||
cxxbridge = final.callPackage ./pkg/upstreamable/cxxbridge { }; | ||
wasmtime = final.callPackage ./pkg/upstreamable/wasmtime { }; | ||
|
||
scylla-driver = final.callPackage ./pkg/upstreamable/python-driver { }; | ||
} |
Oops, something went wrong.