From 7ba26044a78df1f87604d74754da3d28393607f7 Mon Sep 17 00:00:00 2001 From: Raymond Hogenson Date: Sat, 18 Aug 2018 08:34:37 -0400 Subject: 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. --- .gitignore | 3 +-- default.nix | 6 ++++++ 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 default.nix 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 {}; +((import ./bullet_hell.nix).bullet_hell {}).override { + crateOverrides = defaultCrateOverrides // { + bullet-hell = attrs: { buildInputs = [ SDL2 ]; }; + }; +} -- cgit v1.3.1