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; +}