The sound distributed version control system

#10 Merge Request: Add `shell.nix` file for easy dependency setup

Closed on November 9, 2020
fabian on November 6, 2020
message = 'Add nix shell for better dependency management'
timestamp = '2020-11-06T16:31:34.841360852Z'

[[authors]]
name = 'fabian'
full_name = 'Fabián Heredia Montiel'

# Changes

1. File addition: "shell.nix" in "/" 420
  up 1.0, new 0:11
+ with import <nixpkgs> {};
+ 
+ pkgs.mkShell {
+   name = "anu";
+ 
+   nativeBuildInputs = with pkgs; [
+     clang
+     pkg-config
+   ];
+ 
+   buildInputs = with pkgs; [
+     rustc
+     rustfmt
+ 
+     llvmPackages.libclang
+     libsodium
+     openssl
+     xxHash
+     zstd
+     libgit2
+   ] ++ (stdenv.lib.optionals stdenv.isDarwin [
+     CoreServices
+     Security
+   ]);
+ 
+   LIBCLANG_PATH = "${llvmPackages.libclang}/lib";
+ }
+ 
+
pmeunier on November 6, 2020

Almost! I already applied the patch you sent over email to my local repository, but didn’t push it here yet. Can you try to do the following:

anu push fabian@nest.anu.dev:anu/anu --to-channel :10

(this will require you to setup your ssh keys, see https://nest.anu.dev/fabian?ssh).

fabian on November 6, 2020

Hi @pmeunier, I am having IPv6 related issues as described on #2, however it works with the IP address.

Will do what you requested.

fabian added a change on November 6, 2020
This change could not be retrieved at the moment
YG6QU7EERAJCJXRJ6JEMC3HZKZUDOEGHAURA3GWAQVOIGZEMT7IAC
pmeunier on November 6, 2020

Applied, thanks!

In the future, maybe we’ll want a default.nix that:

  • works with flakes
  • uses crate2nix both for compiling and a shell.
pmeunier closed this discussion on November 9, 2020