silx: 2.1.1 -> 2.1.2 (#361612)
[NixPkgs.git] / pkgs / by-name / ta / tabiew / package.nix
blobcaa6be91040bc00da89f34a22fed0d23130a2d82
1 { lib
2 , fetchFromGitHub
3 , rustPlatform
4 , installShellFiles
5 }:
6 rustPlatform.buildRustPackage rec {
7   pname = "tabiew";
8   version = "0.7.1";
10   src = fetchFromGitHub {
11     owner = "shshemi";
12     repo = "tabiew";
13     rev = "v${version}";
14     hash = "sha256-c7Oo0sr/9uvOYwtNRTyYNWYVaBUWJXwJmMXaivv4RTg=";
15   };
17   cargoHash = "sha256-uGxqVA7LrO0bzYVCDaPt4yECxWEzV4PQxxvk+17IX4w=";
19   nativeBuildInputs = [ installShellFiles ];
21   outputs = [ "out" "man" ];
23   postInstall = ''
24     installManPage target/manual/tabiew.1
26     installShellCompletion \
27       --bash target/completion/tw.bash \
28       --zsh target/completion/_tw \
29       --fish target/completion/tw.fish
30   '';
32   doCheck = false; # there are no tests
34   meta = {
35     description =
36       "Lightweight, terminal-based application to view and query delimiter separated value formatted documents, such as CSV and TSV files";
37     homepage = "https://github.com/shshemi/tabiew";
38     changelog = "https://github.com/shshemi/tabiew/releases/tag/v${version}";
39     license = lib.licenses.mit;
40     mainProgram = "tw";
41     maintainers = with lib.maintainers; [ anas ];
42     platforms = with lib.platforms; unix ++ windows;
43   };