From eecb66f3f8dbb7c3dab4b4d86fe69620d126b0f2 Mon Sep 17 00:00:00 2001 From: Alex Ameen Date: Fri, 1 Mar 2019 01:17:16 -0600 Subject: adding ignores --- .gitignore | 4 +++- default.nix | 42 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 default.nix diff --git a/.gitignore b/.gitignore index add7d32..d4c2c97 100644 --- a/.gitignore +++ b/.gitignore @@ -13,4 +13,6 @@ cabal.sandbox.config /out/ /cabal.config codex.tags -cabal.project.local \ No newline at end of file +cabal.project.localtags +*.swp +tags diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..95d959e --- /dev/null +++ b/default.nix @@ -0,0 +1,42 @@ +{ mkDerivation, alsa-core, alsa-mixer, async, base, bytestring +, containers, dbus, directory, extensible-exceptions, filepath +, hinotify, hspec, http-conduit, http-types, iwlib, libmpd, libXpm +, libXrandr, libXrender, mtl, old-locale, parsec, parsec-numbers +, process, regex-compat, stdenv, stm, temporary, time +, timezone-olson, timezone-series, transformers, unix, utf8-string +, wirelesstools, X11, X11-xft +}: +mkDerivation { + pname = "xmobar"; + version = "0.29.5"; + src = ./.; + configureFlags = [ + "-fwith_alsa" "-fwith_conduit" "-fwith_datezone" "-fwith_dbus" + "-fwith_inotify" "-fwith_iwlib" "-fwith_mpd" "-fwith_mpris" + "-fwith_rtsopts" "-fwith_threaded" "-fwith_utf8" "-fwith_uvmeter" + "-fwith_weather" "-fwith_xft" "-fwith_xpm" + ]; + isLibrary = true; + isExecutable = true; + libraryHaskellDepends = [ + alsa-core alsa-mixer async base bytestring containers dbus + directory extensible-exceptions filepath hinotify http-conduit + http-types iwlib libmpd mtl old-locale parsec parsec-numbers + process regex-compat stm time timezone-olson timezone-series + transformers unix utf8-string X11 X11-xft + ]; + librarySystemDepends = [ + libXpm libXrandr libXrender wirelesstools + ]; + executableHaskellDepends = [ + async base containers directory filepath parsec unix X11 + ]; + testHaskellDepends = [ + alsa-core alsa-mixer async base bytestring containers directory + filepath hspec mtl old-locale parsec parsec-numbers process + regex-compat stm temporary time transformers unix X11 + ]; + homepage = "http://xmobar.org"; + description = "A Minimalistic Text Based Status Bar"; + license = stdenv.lib.licenses.bsd3; +} -- cgit v1.2.3