From 7549db936041e621c5cf73897e72a03fef6911f8 Mon Sep 17 00:00:00 2001 From: Iris System Date: Fri, 1 Oct 2021 14:26:59 +1300 Subject: [PATCH] nix: add shell.nix --- shell.nix | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 shell.nix diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..7f014a9 --- /dev/null +++ b/shell.nix @@ -0,0 +1,27 @@ +{ pkgs ? import {}, lib ? pkgs.lib }: + +with lib; + +let + neededLibraries = with pkgs; [ + curl + libxml2 + libxslt + ]; + +in +pkgs.mkShell { + buildInputs = with pkgs; [ + ruby + bundler + + pkg-config + shared-mime-info + cacert + ] ++ neededLibraries; + + "LD_LIBRARY_PATH" = makeLibraryPath neededLibraries; + "SSL_CERT_DIR" = "${pkgs.cacert}/etc/ssl/certs"; + "SSL_CERT_FILE" = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"; + "FREEDESKTOP_MIME_TYPES_PATH" = "${pkgs.shared-mime-info}/share/mime/packages/freedesktop.org.xml"; +}