Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
33 lines
803 B
Nix
33 lines
803 B
Nix
{ lib
|
|
, stdenv
|
|
, darwin
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "csvlens";
|
|
version = "0.10.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "YS-L";
|
|
repo = "csvlens";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-q4d3BE11LVAwA16+VEWLbZW/+pkbQ5/rp+pIAiuFTyg=";
|
|
};
|
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
|
|
darwin.apple_sdk.frameworks.AppKit
|
|
];
|
|
|
|
cargoHash = "sha256-eKREGxIBjzI3viieOnRRUAf+4zqKLi24Hn1aOFns8IQ=";
|
|
|
|
meta = with lib; {
|
|
description = "Command line csv viewer";
|
|
homepage = "https://github.com/YS-L/csvlens";
|
|
changelog = "https://github.com/YS-L/csvlens/blob/${src.rev}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ natsukium ];
|
|
mainProgram = "csvlens";
|
|
};
|
|
}
|