Commit graph

19110 commits

Author SHA1 Message Date
Vincent Ambo
ad1ee4d89e * updated cabal file (dependency on recaptcha package) 2012-04-04 02:21:42 +02:00
Vincent Ambo
3e16a443e6 version 3.3:
* added reCaptcha again (got too much spam)
2012-04-04 02:20:56 +02:00
Eelco Dolstra
b8fb0ce563 Update "nix-build --help" 2012-03-27 11:59:36 +02:00
Eelco Dolstra
5144abe5b6 Add an option "--exclude" to filter dependencies in "nix-build --run-env"
Sometimes when doing "nix-build --run-env" you don't want all
dependencies to be built.  For instance, if we want to do "--run-env"
on the "build" attribute in Hydra's release.nix (to get Hydra's build
environment), we don't want its "tarball" dependency to be built.  So
we can do:

  $ nix-build --run-env release.nix -A build --exclude 'hydra-tarball'

This will skip the dependency whose name matches the "hydra-tarball"
regular expression.  The "--exclude" option can be repeated any number
of times.
2012-03-27 11:40:47 +02:00
Eelco Dolstra
3e94ffffd6 Allow the command executed by "nix-build --run-env" to be overriden with --command 2012-03-27 11:16:43 +02:00
Eelco Dolstra
446b827bae Mac OS X fix 2012-03-26 23:18:36 +02:00
Eelco Dolstra
480dda0e42 Delete non-directory valid paths right away
It's unlikely that rename() is faster than unlink() on a regular file
or symlink, so don't bother.
2012-03-26 20:56:30 +02:00
Eelco Dolstra
117670be57 Make the garbage collector more concurrent
Make the garbage collector more concurrent by deleting valid paths
outside the region where we're holding the global GC lock.  This
should greatly reduce the time during which new builds are blocked,
since the deletion accounts for the vast majority of the time spent in
the GC.

To ensure that this is safe, the valid paths are invalidated and
renamed to some arbitrary path while we're holding the lock.  This
ensures that we when we finally delete the path, it's not a (newly)
valid or locked path.
2012-03-26 20:43:33 +02:00
Eelco Dolstra
8be1979f1a Remove the --max-links GC option
We don't need this anymore now that current filesystems support more
than 32,000 files in a directory.
2012-03-26 20:00:02 +02:00
Vincent Ambo
5b80f528c7 * default rss feed link now points to an XML file 2012-03-25 20:56:19 +02:00
Vincent Ambo
1e45dcf7c8 * update and run scripts (using privbind) 2012-03-25 19:56:38 +02:00
Vincent Ambo
4b66c19242 * updated TODO 2012-03-25 19:54:26 +02:00
Vincent Ambo
dfc81e1282 * updated version in Cabal file 2012-03-25 19:35:30 +02:00
Vincent Ambo
658ba0c999 * updated Cabal file 2012-03-25 19:35:14 +02:00
Vincent Ambo
8b64d14a72 * removed System.Environment from Main.hs
* using the brand-new Options package to parse command line options (--port and --statedir)
2012-03-25 19:29:38 +02:00
Vincent Ambo
74ce7d9bf0 * small colouriser tool to run .hs files through HsColour 2012-03-25 19:01:56 +02:00
Vincent Ambo
7f4761bf7c * changed version tag to 3.2 2012-03-24 00:34:41 +01:00
Vincent Ambo
efbec9ff76 * added RSS.hs: functions to create an RSS feed
* added RSS feed handler
* FromReqURI instance for BlogLang
* fixed RSS-feed link
2012-03-24 00:32:38 +01:00
Vincent Ambo
a405e185ba Updated .hgignore to include the entire BlogState/ directory and *.orig files 2012-03-23 22:55:59 +01:00
Vincent Ambo
a57faddd25 * sequence_ $ map to mapM_ 2012-03-23 22:52:54 +01:00
Vincent Ambo
2738271e67 version 3.1.2:
* CSS changes for HsColour
2012-03-23 03:20:36 +01:00
Vincent Ambo
87924c405d version 3.1.1:
* added background texture for .middle
* removed accidental </br> which caused W3 validation to fail

New design is now complete.

--HG--
rename : res/ios-linen.jpg => res/hbg.jpg
2012-03-22 20:58:13 +01:00
Lluís Batlle i Rossell
85799bf89e Fixing the default of sync-before-registering
Setting 'false' as default, as suggested by Eelco.

I also added a comment about the setting in the code.
2012-03-22 20:05:54 +01:00
Lluís Batlle i Rossell
25de80e2b6 Adding a nix option to sync before registering a path, for non-ext*
filesystems.
2012-03-22 19:57:42 +01:00
Vincent Ambo
ac1a4ddcb0 * backup script 2012-03-22 14:46:35 +01:00
Vincent Ambo
c620521f47 * restored missing file 2012-03-22 14:43:59 +01:00
Vincent Ambo
6a8ffaf25a * cleaned up res/ folder
* serving static/ content from res/ with 20 years expiration date
* linen texture
2012-03-22 14:34:04 +01:00
Vincent Ambo
f6f066a93e * font-weight for .contacts 2012-03-20 20:16:27 +01:00
Eelco Dolstra
19d9762ad5 nix-store --clear-failed-paths: Clear derivation outputs
If the argument to ‘nix-store --clear-failed-paths’ is a derivation,
then clear the failed state of its outputs.
2012-03-20 18:23:26 +01:00
Vincent Ambo
ed05e92669 * gzip compression for dynamic files 2012-03-20 18:01:36 +01:00
Vincent Ambo
877a7f84b0 version 3.1:
* entirely new design (looks a lot better. Thanks to @not_eden and @agoptron for their advice)
* multi-author support (I won't use it yet)
* blogstyle.css serves as the "source" for blog.css
* displaying article eDate and author on entry page
2012-03-20 00:26:50 +01:00
Eelco Dolstra
cb79e91ec3 Fix the coverage build 2012-03-19 17:05:42 +01:00
Eelco Dolstra
457dd55962 Fix the Deb builds 2012-03-19 15:11:22 +01:00
Eelco Dolstra
4b83483142 Fix the RPM 2012-03-19 14:30:59 +01:00
Vincent Ambo
39a30af9c2 * Google analytics 2012-03-19 04:27:00 +01:00
Eelco Dolstra
7f38087f35 Add a command "nix-build --run-env" to reproduce the environment of a derivation
This command builds or fetches all dependencies of the given
derivation, then starts a shell with the environment variables from
the derivation.  This shell also sources $stdenv/setup to initialise
the environment further.

The current directory is not changed.  Thus this is a convenient way
to reproduce a build environment in an existing working tree.

Existing environment variables are left untouched (unless the
derivation overrides them).  As a special hack, the original value of
$PATH is appended to the $PATH produced by $stdenv/setup.

Example session:

$ nix-build --run-env '<nixpkgs>' -A xterm
(the dependencies of xterm are built/fetched...)
$ tar xf $src
$ ./configure
$ make
$ emacs
(... hack source ...)
$ make
$ ./xterm
2012-03-19 04:14:21 +01:00
Eelco Dolstra
ea402a255f Replace "make check" with "make installcheck"
Ensuring that the tests work from the build tree requires a growing
number of nasty hacks.  The tests also don't verify that the installed
Nix actually works.  Thus, the tests now require "make install" to
have been run.
2012-03-19 01:20:02 +01:00
Eelco Dolstra
4b23900ff1 Fix the optional dependency on OpenSSL
http://hydra.nixos.org/build/2306540
2012-03-19 01:06:13 +01:00
Vincent Ambo
a762db84ae * min-height for <body> 2012-03-19 00:08:27 +01:00
Eelco Dolstra
b006a31d52 Drop the externals directory
Nix now requires SQLite and bzip2 to be pre-installed.  SQLite is
detected using pkg-config.  We required DBD::SQLite anyway, so
depending on SQLite is not a big problem.

The --with-bzip2, --with-openssl and --with-sqlite flags are gone.
2012-03-18 23:54:57 +01:00
Vincent Ambo
da38878212 * correctly serving 404s with status code 404 :| 2012-03-18 23:49:50 +01:00
Vincent Ambo
515660fa7d * fixed 404 page 2012-03-18 23:47:13 +01:00
Vincent Ambo
b7e34eba74 * changed entryEscape 2012-03-18 23:23:02 +01:00
Eelco Dolstra
2e0322efd1 Clean up when building from a working tree 2012-03-18 22:10:59 +01:00
Vincent Ambo
b8a045d163 * proper comment escaping 2012-03-15 21:26:45 +01:00
Vincent Ambo
f591f6b4f7 * newlines in comments 2012-03-15 20:51:53 +01:00
Vincent Ambo
cc1bf63468 * port 80 2012-03-15 20:19:25 +01:00
Vincent Ambo
579c11cd2a * version 3.0
* fixed read-more links
2012-03-15 20:16:39 +01:00
Vincent Ambo
df9a17b695 * updating entries and entrylist
* entryEscape ("\n" -> "<br>")
2012-03-15 18:32:01 +01:00
Vincent Ambo
47e1be1f78 * fixed entry-adding
* temporarily removed adminHandler and merged it into tazBlog :: ServerPart Response
2012-03-14 01:36:57 +01:00