cooklang-flake/packages/cookcli.nix
2022-12-30 19:56:26 +01:00

26 lines
813 B
Nix

{ lib, stdenv, fetchzip, swift, zlib }:
stdenv.mkDerivation (finalAttrs: {
pname = "cookcli";
version = "0.1.6";
src = fetchzip {
url = "https://github.com/cooklang/CookCLI/releases/download/v${finalAttrs.version}/CookCLI_${finalAttrs.version}_linux_amd64.zip";
sha256 = "sha256-8UBQ0OBVe6NC7E+3AKsNTNnESeyxgrlANOj9bMxCf6s=";
};
installPhase = ''
mkdir -p $out/bin
cp cook $out/bin/cook
chmod +x $out/bin/cook
'';
meta = with lib; {
description = "command line program which provides a suite of tools to create shopping lists and maintain recipes";
license = licenses.mit;
maintainers = with maintainers; [ MoritzBoehme ];
homepage = "https://github.com/cooklang/CookCLI";
platforms = with platforms; [ "x86_64-linux" ];
mainProgram = "cook";
};
})