2024-05-01 20:21:16 -04:00
|
|
|
{ buildGoModule, fetchFromGitHub, testers, lib, csvq }:
|
2023-01-26 01:57:34 -05:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "csvq";
|
2023-03-29 04:47:05 -04:00
|
|
|
version = "1.18.1";
|
2023-01-26 01:57:34 -05:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mithrandie";
|
|
|
|
repo = "csvq";
|
|
|
|
rev = "v${version}";
|
2024-09-14 17:47:11 -04:00
|
|
|
hash = "sha256-1UK+LSMKryoUf2UWbGt8MU3zs5hH2WdpA2v/jBaIHYE=";
|
2023-01-26 01:57:34 -05:00
|
|
|
};
|
|
|
|
|
2023-03-29 04:47:05 -04:00
|
|
|
vendorHash = "sha256-byBYp+iNnnsAXR+T3XmdwaeeBG8oB1EgNkDabzgUC98=";
|
2023-01-26 01:57:34 -05:00
|
|
|
|
2024-05-01 20:21:16 -04:00
|
|
|
passthru.tests.version = testers.testVersion {
|
|
|
|
package = csvq;
|
|
|
|
version = "csvq version ${version}";
|
|
|
|
};
|
|
|
|
|
2023-01-26 01:57:34 -05:00
|
|
|
meta = with lib; {
|
|
|
|
description = "SQL-like query language for CSV";
|
2024-03-18 22:14:51 -04:00
|
|
|
mainProgram = "csvq";
|
2023-01-26 01:57:34 -05:00
|
|
|
homepage = "https://mithrandie.github.io/csvq/";
|
|
|
|
changelog = "https://github.com/mithrandie/csvq/releases/tag/v${version}";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ tomodachi94 ];
|
|
|
|
};
|
|
|
|
}
|