module

Auto::Flake::Buffer

Constants

BUFFER = ["# /! auto-generated nix flake /!\\\n# do NOT edit !\n", "{", " inputs = {", " nixpkgs.url = \"github:NixOS/nixpkgs/nixos-unstable\";", " flake-utils.url = \"github:numtide/flake-utils\";", " };", " outputs = { self, nixpkgs, flake-utils }:", " flake-utils.lib.eachDefaultSystem (system:", " let", " pkgs = import nixpkgs {", " inherit system;", " };", " in", " with pkgs; {", " devShells.default = mkShell {", " buildInputs = [", " ];", " shellHook = ''", " export PKG_CONFIG_PATH=${pkgs.lib.makeLibraryPath [", " ]}:$PKG_CONFIG_PATH", " export LD_LIBRARY_PATH=${pkgs.lib.makeLibraryPath [", " ]}:$LD_LIBRARY_PATH", " '';", " };", " });", "}"]
FILENAME = "flake.nix"

Class methods

create_buffer(_pkgs : String, _libs : String) : Array(String)
Source
write_in_file(_buffer : Array(String))
Source