From 588c4e084a6052167cc19b3f922b47cae93adbf7 Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Sat, 16 Mar 2024 13:42:49 +0000 Subject: [PATCH] Use new buildNimPackage in shell.nix --- .gitignore | 2 -- Tuprules.tup | 1 + shell.nix | 7 ++++++- 3 files changed, 7 insertions(+), 3 deletions(-) delete mode 100644 .gitignore create mode 100644 Tuprules.tup diff --git a/.gitignore b/.gitignore deleted file mode 100644 index e1d8c6a..0000000 --- a/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -.direnv -test_example_synchronous diff --git a/Tuprules.tup b/Tuprules.tup new file mode 100644 index 0000000..562fa41 --- /dev/null +++ b/Tuprules.tup @@ -0,0 +1 @@ +NIM = $(DIRENV) $(NIM) diff --git a/shell.nix b/shell.nix index 6a83b63..40c398e 100644 --- a/shell.nix +++ b/shell.nix @@ -1 +1,6 @@ -let pkgs = import { }; in pkgs.nim2Packages.getdns +let pkgs = import { }; +in pkgs.buildNimPackage { + name = "getdns-nim"; + nativeBuildInputs = [ pkgs.pkg-config ]; + buildInputs = [ pkgs.getdns ]; +} -- 2.45.2