Skip to content

Commit

Permalink
mdtree: -> v0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
goreleaserbot committed Aug 21, 2024
1 parent 9d05b99 commit 168263f
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions pkgs/mdtree/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# This file was generated by GoReleaser. DO NOT EDIT.
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
{
system ? builtins.currentSystem
, lib
, fetchurl
, installShellFiles
, stdenvNoCC
}:
let
shaMap = {
x86_64-linux = "1ra4g8grhwv7b7qh6gr16k6lns6yhv2nfx2lgaybdk85jfl6mlnh";
aarch64-linux = "1jjn9jwvc4vhz7nrq684icfb04yi56ayw3sf1dbbjd3wagqd83jf";
x86_64-darwin = "07skds1lcnkickhmvif0n54kjxjym9z8bdsikmg7svafg04f6x29";
aarch64-darwin = "07skds1lcnkickhmvif0n54kjxjym9z8bdsikmg7svafg04f6x29";
};

urlMap = {
x86_64-linux = "https://github.com/caarlos0/mdtree/releases/download/v0.1.0/mdtree_0.1.0_linux_amd64.tar.gz";
aarch64-linux = "https://github.com/caarlos0/mdtree/releases/download/v0.1.0/mdtree_0.1.0_linux_arm64.tar.gz";
x86_64-darwin = "https://github.com/caarlos0/mdtree/releases/download/v0.1.0/mdtree_0.1.0_darwin_all.tar.gz";
aarch64-darwin = "https://github.com/caarlos0/mdtree/releases/download/v0.1.0/mdtree_0.1.0_darwin_all.tar.gz";
};
in
stdenvNoCC.mkDerivation {
pname = "mdtree";
version = "0.1.0";
src = fetchurl {
url = urlMap.${system};
sha256 = shaMap.${system};
};

sourceRoot = ".";

nativeBuildInputs = [ installShellFiles ];

installPhase = ''
mkdir -p $out/bin
cp -vr ./mdtree $out/bin/mdtree
'';

system = system;

meta = {
description = "Convert markdown lists into beautiful ASCII trees";
homepage = "https://github.com/caarlos0/mdtree";
license = lib.licenses.mit;

sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];

platforms = [
"aarch64-darwin"
"aarch64-linux"
"x86_64-darwin"
"x86_64-linux"
];
};
}

0 comments on commit 168263f

Please sign in to comment.