adding a flake to nix-mode
This commit is contained in:
parent
dc1d25ba92
commit
71568046fc
31
templates
31
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 { };
|
||||
}
|
||||
);
|
||||
}")
|
||||
|
|
Loading…
Reference in a new issue