summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hogenson <rhogenson@posteo.net>2018-08-18 08:34:37 -0400
committerRaymond Hogenson <rhogenson@posteo.net>2018-08-18 08:34:37 -0400
commit7ba26044a78df1f87604d74754da3d28393607f7 (patch)
tree2b6acd76f1c6a0f889956254f563dd3bb8be9f35
parent804206beeb82671552ccd9b689b303a1251fade0 (diff)
downloadstallman-shooter-7ba26044a78df1f87604d74754da3d28393607f7.tar.zst
Rename the nix file and include in git
bullet_hell.nix is the automatically generated one, default.nix is my hand-crafted file to build the expression, given the automatically generated file as an input. Really carnix should have the capability to do this by itself, but I'm trying my best.
-rw-r--r--.gitignore3
-rw-r--r--default.nix6
2 files changed, 7 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 232e7c8..45f6009 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,5 @@
-
/target/
**/*.rs.bk
result
-default.nix
Cargo.lock
+bullet_hell.nix
diff --git a/default.nix b/default.nix
new file mode 100644
index 0000000..a9e20f7
--- /dev/null
+++ b/default.nix
@@ -0,0 +1,6 @@
+with import <nixpkgs> {};
+((import ./bullet_hell.nix).bullet_hell {}).override {
+ crateOverrides = defaultCrateOverrides // {
+ bullet-hell = attrs: { buildInputs = [ SDL2 ]; };
+ };
+}