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 { }; + } + ); +}")