uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
37
pkgs/tools/text/chroma/default.nix
Normal file
37
pkgs/tools/text/chroma/default.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{ lib, buildGoModule, fetchFromGitHub }:
|
||||
|
||||
let
|
||||
srcInfo = lib.importJSON ./src.json;
|
||||
in
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "chroma";
|
||||
version = "0.10.0";
|
||||
|
||||
# To update:
|
||||
# nix-prefetch-git --rev v${version} https://github.com/alecthomas/chroma.git > src.json
|
||||
src = fetchFromGitHub {
|
||||
owner = "alecthomas";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
inherit (srcInfo) sha256;
|
||||
};
|
||||
|
||||
vendorSha256 = "09b718vjd6npg850fr7z6srs2sc5vsr7byzlz5yb5qx0vm3ajxpf";
|
||||
|
||||
modRoot = "./cmd/chroma";
|
||||
|
||||
# substitute version info as done in goreleaser builds
|
||||
ldflags = [
|
||||
"-X" "main.version=${version}"
|
||||
"-X" "main.commit=${srcInfo.rev}"
|
||||
"-X" "main.date=${srcInfo.date}"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/alecthomas/chroma";
|
||||
description = "A general purpose syntax highlighter in pure Go";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.sternenseemann ];
|
||||
};
|
||||
}
|
||||
11
pkgs/tools/text/chroma/src.json
Normal file
11
pkgs/tools/text/chroma/src.json
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"url": "https://github.com/alecthomas/chroma.git",
|
||||
"rev": "36bdd4b98823bd1d7be96767cde3dd575e60b406",
|
||||
"date": "2022-01-12T21:49:38+11:00",
|
||||
"path": "/nix/store/951ya4wlxp217a2j3qdni29zwqfq0z7v-chroma",
|
||||
"sha256": "0hjzb61m5lzx95xss82wil9s8f9hbw1zb3jj73ljfwkq5lqk76zq",
|
||||
"fetchLFS": false,
|
||||
"fetchSubmodules": false,
|
||||
"deepClone": false,
|
||||
"leaveDotGit": false
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue