From 71568046fcff5edf6c2d9b3750bc1df7d7c59ab6 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Tue, 5 Dec 2023 10:53:47 -0600 Subject: [PATCH] adding a flake to nix-mode --- templates | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/templates b/templates index bd790cd1..0a0a745e 100644 --- a/templates +++ b/templates @@ -143,3 +143,34 @@ qml-mode (icon "Kirigami.Icon {" n> "id: " r n "}">) (search "Kirigami.SearchField {" n> "id: " r n "}">) +nix-mode + +(flake "{ + description = " (s description) "; + + inputs = { + nixpkgs.url = \"github:nixos/nixpkgs/nixos-unstable\"; + flake-utils.url = \"github:numtide/flake-utils\"; + }; + + outputs = inputs: with inputs; + flake-utils.lib.eachDefaultSystem + (system: + let + pkgs = import nixpkgs { + inherit system; + }; + in rec + { + devShell = pkgs.mkShell { + " p " + buildInputs = with pkgs; [ + stdenv + gnumake + pkg-config + ]; + }; + defaultPackage = pkgs.libsForQt5.callPackage ./default.nix { }; + } + ); +}")