27 lines
813 B
Nix
27 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";
|
||
|
};
|
||
|
})
|