From 4608b6862810c84126d69a18bf753386ce03c050 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Mon, 19 Oct 2015 17:30:35 +0200 Subject: [PATCH] Add .nix files for development env --- default.nix | 20 ++++++++++++++++++++ shell.nix | 7 +++++++ 2 files changed, 27 insertions(+) create mode 100644 default.nix create mode 100644 shell.nix diff --git a/default.nix b/default.nix new file mode 100644 index 00000000..03e7c694 --- /dev/null +++ b/default.nix @@ -0,0 +1,20 @@ +{ stdenv +, pkgs ? (import {}) +}: + +let + env = with pkgs.rustPlatform; [ + rustc + cargo + ]; +in + +stdenv.mkDerivation rec { + name = "unfug.org"; + src = ./.; + version = "0.0.0"; + + buildInputs = [ env ]; + +} + diff --git a/shell.nix b/shell.nix new file mode 100644 index 00000000..4d666486 --- /dev/null +++ b/shell.nix @@ -0,0 +1,7 @@ +{ pkgs ? (import {}) +}: + +(import ./default.nix) { + stdenv = pkgs.stdenv; + pkgs = pkgs; +}