mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-21 19:44:09 +00:00

We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
34 lines
865 B
Nix
34 lines
865 B
Nix
{ lib, fetchFromGitHub, buildGoModule }:
|
|
|
|
buildGoModule rec {
|
|
pname = "miller";
|
|
version = "6.13.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "johnkerl";
|
|
repo = "miller";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-eHiYIw/sQMXLow2Vy4zFTGeON28LmG0pK2Uca4ooInU=";
|
|
};
|
|
|
|
outputs = [ "out" "man" ];
|
|
|
|
vendorHash = "sha256-oc6Lp4rQ+MLmQDVcuNJ3CqYH277Vuuwu4zSSO2ICXsw=";
|
|
|
|
postInstall = ''
|
|
mkdir -p $man/share/man/man1
|
|
mv ./man/mlr.1 $man/share/man/man1
|
|
'';
|
|
|
|
subPackages = [ "cmd/mlr" ];
|
|
|
|
meta = with lib; {
|
|
description = "Like awk, sed, cut, join, and sort for data formats such as CSV, TSV, JSON, JSON Lines, and positionally-indexed";
|
|
homepage = "https://github.com/johnkerl/miller";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ mstarzyk ];
|
|
mainProgram = "mlr";
|
|
platforms = platforms.all;
|
|
};
|
|
}
|