From e31cc955ccf37076b9674e044db7ad5536602c9c Mon Sep 17 00:00:00 2001 From: tezlm Date: Mon, 4 Dec 2023 18:34:13 -0800 Subject: [PATCH] Add extremely basic dev shell flake --- flake.lock | 27 +++++++++++++++++++++++++++ flake.nix | 16 ++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 flake.lock create mode 100644 flake.nix diff --git a/flake.lock b/flake.lock new file mode 100644 index 00000000..ff6b166a --- /dev/null +++ b/flake.lock @@ -0,0 +1,27 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1701626906, + "narHash": "sha256-ugr1QyzzwNk505ICE4VMQzonHQ9QS5W33xF2FXzFQ00=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "0c6d8c783336a59f4c59d4a6daed6ab269c4b361", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 00000000..c7f675d4 --- /dev/null +++ b/flake.nix @@ -0,0 +1,16 @@ +# quick n dirty dev shell +# TODO: proper nix flake? + +{ + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; + }; + + outputs = { self, nixpkgs }: let + pkgs = nixpkgs.legacyPackages.x86_64-linux; + in { + devShell.x86_64-linux = pkgs.mkShell { + nativeBuildInputs = with pkgs; [openssl pkg-config]; + }; + }; +}