Add .nix files for development env

This commit is contained in:
Matthias Beyer 2015-10-19 17:30:35 +02:00
parent b3508f5dc3
commit 4608b68628
2 changed files with 27 additions and 0 deletions

20
default.nix Normal file
View file

@ -0,0 +1,20 @@
{ stdenv
, pkgs ? (import <nixpkgs> {})
}:
let
env = with pkgs.rustPlatform; [
rustc
cargo
];
in
stdenv.mkDerivation rec {
name = "unfug.org";
src = ./.;
version = "0.0.0";
buildInputs = [ env ];
}

7
shell.nix Normal file
View file

@ -0,0 +1,7 @@
{ pkgs ? (import <nixpkgs> {})
}:
(import ./default.nix) {
stdenv = pkgs.stdenv;
pkgs = pkgs;
}