templates/minimum/flake.nix

21 lines
541 B
Nix
Raw Permalink Normal View History

2023-10-12 15:15:57 +02:00
{
description = "A bare minimum flake";
inputs = {
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (sys:
let pkgs = import nixpkgs { system = sys; };
2023-10-12 15:15:57 +02:00
deps = [ pkgs.cowsay ];
package = pkgs.writeScriptBin "program" "echo mjau | ${pkgs.cowsay}/bin/cowsay -f hellokitty";
in rec {
packages.default = package;
devShells.default = pkgs.mkShell {
packages = deps;
};
}
);
}