templates/minimum/flake.nix
2023-10-12 15:15:57 +02:00

21 lines
538 B
Nix

{
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 = nixpkgs.legacyPackages.${sys};
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;
};
}
);
}