mirror of
https://seed.radicle.dev/rad:z6cFWeWpnZNHh9rUW8phgA3b5yGt.git
synced 2026-10-18 19:10:31 +08:00
Port over all git relevant parts of the radicle-link repository[0]. The packages that are kept are: * git-ext * git-ref-format * git-trailers * link-git * macros * std-ext * test -- only the portions that test the above The development and testing scripts are also added for local and CI testing. [0]: https://github.com/radicle-dev/radicle-link/ Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com>
32 lines
715 B
Nix
32 lines
715 B
Nix
{ sources ? import ./nix/sources.nix
|
|
, pkgs ? import sources.nixpkgs {
|
|
overlays = [ (import sources.rust-overlay) ];
|
|
}
|
|
, rust-overlay ? pkgs.rust-bin.stable.latest.default
|
|
}:
|
|
let
|
|
# TODO: remove once cargo-nextest is available in nixpkgs stable
|
|
cargo-nextest = (pkgs.callPackage ./nix/cargo-nextest/default.nix { });
|
|
in
|
|
with pkgs;
|
|
mkShell {
|
|
name = "build";
|
|
buildInputs = [
|
|
# cargo tooling
|
|
cargo-deny
|
|
cargo-nextest
|
|
cargo-watch
|
|
pkgs.rust-bin.nightly."2022-07-01".rustfmt
|
|
|
|
# hard dependencies
|
|
cmake
|
|
openssl
|
|
pkgconfig
|
|
rust-overlay
|
|
|
|
# testing utilities
|
|
gettext # for `envsubst`
|
|
socat
|
|
];
|
|
}
|