adding a flake to nix-mode

This commit is contained in:
Chris Cochrun 2023-12-05 10:53:47 -06:00
parent dc1d25ba92
commit 71568046fc

View file

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