21 lines
538 B
Nix
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;
|
||
|
};
|
||
|
}
|
||
|
);
|
||
|
}
|