From 8bc5579fad3f614ab01ea4e06062f3b78cd2ffea Mon Sep 17 00:00:00 2001 From: Aydin Mercan Date: Mon, 8 Nov 2021 15:44:10 +0300 Subject: [PATCH] nix: add nix flake Since I use NixOS, its only natural to add a flake development. --- flake.lock | 26 ++++++++++++++++++++++++++ flake.nix | 21 +++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 flake.lock create mode 100644 flake.nix diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..71991d9 --- /dev/null +++ b/flake.lock @@ -0,0 +1,26 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1636267212, + "narHash": "sha256-KDS173KqmqrYUPY9N4vf750GxIo+S6E0djyq2BsQm8s=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "c935f5e0add2cf0ae650d072c8357533e21b0c35", + "type": "github" + }, + "original": { + "id": "nixpkgs", + "ref": "nixos-unstable", + "type": "indirect" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..636b1b9 --- /dev/null +++ b/flake.nix @@ -0,0 +1,21 @@ +{ + description = "Nix flake for dumb-jose development."; + + inputs = { + nixpkgs.url = "nixpkgs/nixos-unstable"; + }; + + outputs = { self, nixpkgs }: + let + pkgs = nixpkgs.legacyPackages.x86_64-linux; + in + { + devShell.x86_64-linux = pkgs.mkShell { + buildInputs = with pkgs; [ + delve + go_1_17 + gopls + ]; + }; + }; +}