aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Perry <np@nathanperry.dev>2021-01-23 04:19:38 -0500
committerNathan Perry <np@nathanperry.dev>2021-01-23 04:19:38 -0500
commit4d38dd872ae39d3faa34afafc7edc34dbf8ad4c1 (patch)
tree86203e0da3630740982d812aad02e866efd1865b
parentaad031275083b015a42797925746d7f83aa255d5 (diff)
modulo naersk issue, it builds
-rw-r--r--.envrc3
-rw-r--r--flake.nix14
2 files changed, 13 insertions, 4 deletions
diff --git a/.envrc b/.envrc
new file mode 100644
index 0000000..cee480e
--- /dev/null
+++ b/.envrc
@@ -0,0 +1,3 @@
+watch_file flake.nix
+eval "$(nix print-dev-env .#)"
+
diff --git a/flake.nix b/flake.nix
index 4d9d8e4..76207cf 100644
--- a/flake.nix
+++ b/flake.nix
@@ -45,6 +45,13 @@
inherit (pkgs) cargo rustc;
});
+ deps = with pkgs; [
+ openssl
+ pkgconfig
+ libopus
+ postgresql
+ ];
+
pkg = naersk.buildPackage {
pname = "thulani";
version = self.rev or "dirty";
@@ -53,16 +60,15 @@
cargoBuildOptions = old: old ++ [ "--offline" ];
- buildInputs = [
- ];
+ buildInputs = deps;
};
in {
devShell = pkgs.mkShell {
- buildInputs = with pkgs; [
+ buildInputs = (with pkgs; [
cargo
rustc
- ];
+ ]) ++ deps;
};
defaultPackage = pkg;