]> gitweb.factorcode.org Git - factor.git/commitdiff
add shell.nix for building/running on NixOS
authorKye W. Shi <kwshi@hmc.edu>
Tue, 15 Oct 2019 17:45:45 +0000 (10:45 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Tue, 15 Oct 2019 18:26:20 +0000 (11:26 -0700)
shell.nix [new file with mode: 0644]

diff --git a/shell.nix b/shell.nix
new file mode 100644 (file)
index 0000000..458964d
--- /dev/null
+++ b/shell.nix
@@ -0,0 +1,20 @@
+{ pkgs ? import <nixpkgs> {} }:
+(pkgs.buildFHSUserEnv {
+  name = "factor";
+  targetPkgs = pkgs: (with pkgs; [
+    # for running factor
+    gtk2-x11
+    glib
+    gdk_pixbuf
+    gnome2.pango
+    cairo
+    gnome2.gtkglext
+
+    # for building factor
+    clang
+    git
+    curl
+    binutils
+  ]);
+  runScript = "bash";
+}).env