summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Vink <mike1994vink@gmail.com>2022-11-15 22:18:26 +0100
committerMike Vink <mike1994vink@gmail.com>2022-11-15 22:18:26 +0100
commited339965dd0cde575bac951d8db8736c2839fe6c (patch)
treee135031399c51678132b8a504056da27d4b3cca6
setup basic racket environment
-rw-r--r--flake.lock43
-rw-r--r--flake.nix24
-rw-r--r--test.rkt7
3 files changed, 74 insertions, 0 deletions
diff --git a/flake.lock b/flake.lock
new file mode 100644
index 0000000..2133be8
--- /dev/null
+++ b/flake.lock
@@ -0,0 +1,43 @@
+{
+ "nodes": {
+ "flake-utils": {
+ "locked": {
+ "lastModified": 1667395993,
+ "narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=",
+ "owner": "numtide",
+ "repo": "flake-utils",
+ "rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f",
+ "type": "github"
+ },
+ "original": {
+ "owner": "numtide",
+ "repo": "flake-utils",
+ "type": "github"
+ }
+ },
+ "nixpkgs": {
+ "locked": {
+ "lastModified": 1668326430,
+ "narHash": "sha256-fJEsHe+lzFf3qcQVTTdK9jqRtUUVXH71tdfgjcKJNpA=",
+ "owner": "NixOS",
+ "repo": "nixpkgs",
+ "rev": "fc07622617a373a742ed96d4dd536849d4bc1ec6",
+ "type": "github"
+ },
+ "original": {
+ "owner": "NixOS",
+ "ref": "nixos-unstable",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
+ "root": {
+ "inputs": {
+ "flake-utils": "flake-utils",
+ "nixpkgs": "nixpkgs"
+ }
+ }
+ },
+ "root": "root",
+ "version": 7
+}
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..414ee15
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,24 @@
+{
+ description = "Application packaged using poetry2nix";
+
+ inputs.flake-utils.url = "github:numtide/flake-utils";
+ inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
+
+ outputs = {
+ self,
+ nixpkgs,
+ flake-utils,
+ }: (flake-utils.lib.eachDefaultSystem (system: let
+ pkgs = import nixpkgs {
+ inherit system;
+ overlays = [];
+ };
+ in {
+ devShell = pkgs.mkShell {
+ buildInputs = with pkgs; [
+ mitscheme
+ racket
+ ];
+ };
+ }));
+}
diff --git a/test.rkt b/test.rkt
new file mode 100644
index 0000000..207ae6a
--- /dev/null
+++ b/test.rkt
@@ -0,0 +1,7 @@
+#lang sicp
+(inc 487)
+nil
+
+the-empty-stream
+
+(runtime)