recipes/flake.nix

32 lines
1.0 KiB
Nix
Raw Permalink Normal View History

2022-03-26 11:55:43 -04:00
{
inputs = {
nixpkgs.url = "nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
kitchen.url = "github:zaphar/kitchen?ref=main";
};
outputs = {self, kitchen, nixpkgs, flake-utils, ...}:
flake-utils.lib.eachDefaultSystem (system:
{
defaultPackage = let
pkgs = import nixpkgs { inherit system; };
in with pkgs;
stdenv.mkDerivation {
name = "recipes";
2022-08-13 17:44:02 -04:00
src = ./.;
2022-03-26 11:55:43 -04:00
phases = [ "installPhase" ];
installPhase = ''
mkdir $out
2022-08-13 17:44:02 -04:00
cp -r $src/recipes $out/
cp -r $src/categories.txt $out/
2022-03-26 11:55:43 -04:00
'';
};
devShell =
let
pkgs = import nixpkgs { inherit system; };
in
pkgs.mkShell {
buildInputs = [ kitchen.defaultPackage."${system}" ];
};
});
}