btrbk: add mainProgram
[NixPkgs.git] / pkgs / by-name / ta / tailspin / package.nix
blobbb4c046462b03ba3c6d0169b7d30dfa000f26023
1 { lib
2 , rustPlatform
3 , fetchFromGitHub
4 }:
6 rustPlatform.buildRustPackage rec {
7   pname = "tailspin";
8   version = "4.0.0";
10   src = fetchFromGitHub {
11     owner = "bensadeh";
12     repo = "tailspin";
13     rev = version;
14     hash = "sha256-5VbxQDK69If5N8EiS8sIKNqHkCAfquOz8nUS7ynp+nA=";
15   };
17   cargoHash = "sha256-ohfza2ti7Ar/9TV/WoTL5g6CPaONrxtr7nW0qmLdB/8=";
19   postPatch = ''
20     substituteInPlace tests/utils.rs --replace-fail \
21       'target/debug' "target/$(rustc -vV | sed -n 's|host: ||p')/debug"
22   '';
24   meta = with lib; {
25     description = "Log file highlighter";
26     homepage = "https://github.com/bensadeh/tailspin";
27     changelog = "https://github.com/bensadeh/tailspin/blob/${version}/CHANGELOG.md";
28     license = licenses.mit;
29     maintainers = with maintainers; [ dit7ya ];
30     mainProgram = "tspin";
31   };