NorfairKing / super-user-spark

A safe way to never worry about your beautifully configured system again. (NO LONGER MAINTAINED. Use Nixos instead.)
MIT License
93 stars 9 forks source link

added nix-expressions #12

Closed badmutex closed 8 years ago

badmutex commented 8 years ago

Hi. I use super-user-spark with nixpkgs, and need to maintain support for SUS somewhere. I'm not sure if you want to include this PR as it may be outside the scope of what you want in the source tree, but asking doesn't hurt :)

This change adds three files:

create-nix-expr.sh: this calls cabal2nix (which is assumed to be in the PATH) and generates super-user-spark.nix.

shell.nix: allows one to call nix-shell to be dropped into an environment with a newly built spark binary. Tests will be built and run in the process.

NorfairKing commented 8 years ago

Woo-hoo, a user!

I wouldn't mind this at all but it may be wiser to put the scripts in a script sub-directory or so. Not every user uses Nix.

badmutex commented 8 years ago

On Sat, Nov 28, 2015 at 3:32 AM, Tom Sydney Kerckhove < notifications@github.com> wrote:

Woo-hoo, a user!

A happy one, since the first release :)

I wouldn't mind this at all but it may be wiser to put the scripts in a script sub-directory or so. Not every user uses Nix.

I agree. I made some changes. Namely:

  • removing generated files
  • creation of scripts/cabal2nix

This way there is only a 1-file addition to your tree.