From 4b189cd50cfecb95fac84bb2fc7ad8037c8861d2 Mon Sep 17 00:00:00 2001 From: Lloyd Date: Mon, 1 Sep 2025 22:33:28 +1000 Subject: [PATCH] =?UTF-8?q?=F0=9F=99=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- flake.lock | 27 +++++++++++++++++++++++++++ flake.nix | 13 ++++++++++--- 2 files changed, 37 insertions(+), 3 deletions(-) create mode 100644 flake.lock diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..dade030 --- /dev/null +++ b/flake.lock @@ -0,0 +1,27 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1756542300, + "narHash": "sha256-tlOn88coG5fzdyqz6R93SQL5Gpq+m/DsWpekNFhqPQk=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "d7600c775f877cd87b4f5a831c28aa94137377aa", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix index d02576e..1595293 100644 --- a/flake.nix +++ b/flake.nix @@ -8,9 +8,16 @@ outputs = { self, nixpkgs, - }: { - packages.x86_64-linux.hello = nixpkgs.legacyPackages.x86_64-linux.hello; + }: let + system = "x86_64-linux"; + pkgs = import nixpkgs {inherit system;}; + in { + devShells.default = pkgs.mkShell { + buildInputs = with pkgs; [ + openssl + ]; - packages.x86_64-linux.default = self.packages.x86_64-linux.hello; + nativeBuildInputs = [pkgs.pkg-config]; + }; }; }