From 438f1dde3e3d347589ca2e19fe40209cb88bd6aa Mon Sep 17 00:00:00 2001 From: 778a69cd <778a69cd@potsda.mn> Date: Wed, 15 Mar 2023 21:57:31 +0100 Subject: [PATCH] init nix flake --- flake.lock | 27 +++++++++++++++++++++++++++ flake.nix | 23 +++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 flake.lock create mode 100644 flake.nix diff --git a/flake.lock b/flake.lock new file mode 100644 index 000000000..6cd15991f --- /dev/null +++ b/flake.lock @@ -0,0 +1,27 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1678819893, + "narHash": "sha256-lfA6WGdxPsPkBK5Y19ltr5Sn7v7MlT+jpZ4nUgco0Xs=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "7067edc68c035e21780259ed2d26e1f164addaa2", + "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 new file mode 100644 index 000000000..57bf7a811 --- /dev/null +++ b/flake.nix @@ -0,0 +1,23 @@ +{ + description = "A very basic flake"; + + inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + + outputs = { self, nixpkgs }: { + + packages.x86_64-linux.hello = nixpkgs.legacyPackages.x86_64-linux.hello; + + packages.x86_64-linux.default = self.packages.x86_64-linux.hello; + + devShells.x86_64-linux.default = let + pkgs = import nixpkgs { system = "x86_64-linux"; }; + in pkgs.mkShell { + buildInputs = with pkgs; [ + elixir + cmake + imagemagick + ]; + }; + + }; +}