From 0acb3d4e43365468ce8beb0e7d1d5b8f4ff0ef8d Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Thu, 4 May 2023 10:50:30 +0200 Subject: [PATCH] added devShell Flake --- flake.lock | 61 +++++++++++++++++++++++++++++++++++++++++++++++++ flake.nix | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 127 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..150167e56 --- /dev/null +++ b/flake.lock @@ -0,0 +1,61 @@ +{ + "nodes": { + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1681202837, + "narHash": "sha256-H+Rh19JDwRtpVPAWp64F+rlEtxUWBAQW28eAi3SRSzg=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "cfacdce06f30d2b68473a46042957675eebb3401", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1683082554, + "narHash": "sha256-emO6mChgdBi4RwchtCCtAkvFf/OSkMyOQMqk6EZEPJA=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "0d373d5af960504dd60c3d06c65e553b36ef29d8", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 000000000..ae7c0a502 --- /dev/null +++ b/flake.nix @@ -0,0 +1,66 @@ +{ + description = "AwesomeWM Flake"; + + inputs = { + nixpkgs.url = github:NixOS/nixpkgs/nixpkgs-unstable; + flake-utils.url = github:numtide/flake-utils; + }; + + outputs = { + self + , nixpkgs + , ... + }@inputs: + inputs.flake-utils.lib.eachDefaultSystem (system: + let + pkgs = nixpkgs.legacyPackages.${system}; + in + { + devShell = pkgs.mkShell { + nativeBuildInputs = with pkgs; [ + (lua.withPackages(p: with p; [ + busted + lgi + luacheck + ])) + (with xorg; [ + libpthreadstubs + libXau + libXdmcp + libxcb + libxshmfence + xcbutil + xcbutilimage + xcbutilkeysyms + xcbutilrenderutil + xcbutilwm + ]) + libxkbcommon + xcbutilxrm + xcb-util-cursor + pango + cairo + librsvg + gdk-pixbuf + dbus + gobject-introspection + libstartup_notification + libxdg_basedir + nettools + cmake + + # doc/dev deps + doxygen + imagemagick + pkg-config + xmlto + docbook_xml_dtd_45 + docbook_xsl + findXMLCatalogs + asciidoctor + ]; + }; + }); +} + +#vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80