Add .nix files for development env
This commit is contained in:
parent
b3508f5dc3
commit
4608b68628
2 changed files with 27 additions and 0 deletions
20
default.nix
Normal file
20
default.nix
Normal 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
7
shell.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ pkgs ? (import <nixpkgs> {})
|
||||
}:
|
||||
|
||||
(import ./default.nix) {
|
||||
stdenv = pkgs.stdenv;
|
||||
pkgs = pkgs;
|
||||
}
|
Loading…
Reference in a new issue