btrbk: add mainProgram
[NixPkgs.git] / pkgs / by-name / cs / csvlens / package.nix
blobe8d562d10cf80d4d4523af69faf88eac5f072769
1 { lib
2 , stdenv
3 , darwin
4 , rustPlatform
5 , fetchFromGitHub
6 }:
8 rustPlatform.buildRustPackage rec {
9   pname = "csvlens";
10   version = "0.10.1";
12   src = fetchFromGitHub {
13     owner = "YS-L";
14     repo = "csvlens";
15     rev = "refs/tags/v${version}";
16     hash = "sha256-q4d3BE11LVAwA16+VEWLbZW/+pkbQ5/rp+pIAiuFTyg=";
17   };
19   buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
20     darwin.apple_sdk.frameworks.AppKit
21   ];
23   cargoHash = "sha256-eKREGxIBjzI3viieOnRRUAf+4zqKLi24Hn1aOFns8IQ=";
25   meta = with lib; {
26     description = "Command line csv viewer";
27     homepage = "https://github.com/YS-L/csvlens";
28     changelog = "https://github.com/YS-L/csvlens/blob/${src.rev}/CHANGELOG.md";
29     license = licenses.mit;
30     maintainers = with maintainers; [ natsukium ];
31     mainProgram = "csvlens";
32   };