From 90e4683d855c8507e666cbf969a6cc652f6a9348 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tristan=20Dani=C3=ABl=20Maat?= Date: Fri, 3 Dec 2021 02:02:43 +0000 Subject: [PATCH] Initial commit --- .gitignore | 3 +++ flake.lock | 24 ++++++++++++++++++++++++ flake.nix | 10 ++++++++++ 3 files changed, 37 insertions(+) create mode 100644 .gitignore create mode 100644 flake.lock create mode 100644 flake.nix diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ed4fdbd --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.hi +*.o +/1/depthcounter diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..8b760a8 --- /dev/null +++ b/flake.lock @@ -0,0 +1,24 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1636552551, + "narHash": "sha256-k7Hq/bvUnRlAfFjPGuw3FsSqqspQdRHsCHpgadw6UkQ=", + "path": "/nix/store/79dixgv7ckd5zf325r8v3pjpfqqc553l-source", + "rev": "9e86f5f7a19db6da2445f07bafa6694b556f9c6d", + "type": "path" + }, + "original": { + "id": "nixpkgs", + "type": "indirect" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..87a4133 --- /dev/null +++ b/flake.nix @@ -0,0 +1,10 @@ +{ + outputs = { nixpkgs, ... }: + let + system = "x86_64-linux"; + pkgs = import nixpkgs { inherit system; }; + in { + devShell."${system}" = + pkgs.mkShell { buildInputs = with pkgs; [ ghc stylish-haskell ]; }; + }; +}