init
This commit is contained in:
commit
c83861fde9
4 changed files with 114 additions and 0 deletions
27
packages/cook-docs.nix
Normal file
27
packages/cook-docs.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{ lib, buildGoModule, fetchFromGitHub, git }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "cook-docs";
|
||||
version = "0.7.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "nicholaswilde";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-5wK8juYdr9S8Ugck5dfjHZXD8NYkYawsF3mCqzfbv/o=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ git ];
|
||||
|
||||
doCheck = false;
|
||||
|
||||
vendorHash = null;
|
||||
|
||||
meta = with lib; {
|
||||
description = "A tool for automatically generating markdown documentation for cooklang recipes";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ MoritzBoehme ];
|
||||
homepage = "https://github.com/nicholaswilde/cook-docs";
|
||||
platforms = [ "x86_64-linux" ];
|
||||
};
|
||||
}
|
||||
26
packages/cookcli.nix
Normal file
26
packages/cookcli.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{ 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";
|
||||
};
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue