add shell.nix for building/running on NixOS

clean-macosx-x86-64
Kye W. Shi 2019-10-15 10:45:45 -07:00 committed by John Benediktsson
parent 5f2ace09d2
commit b02ae64e91
1 changed files with 20 additions and 0 deletions

20
shell.nix Normal file
View File

@ -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