depot/third_party/nixpkgs/pkgs/development/tools/lurk/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

37 lines
848 B
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
}:
rustPlatform.buildRustPackage rec {
pname = "lurk";
version = "0.3.7";
src = fetchFromGitHub {
owner = "jakwai01";
repo = pname;
rev = "v${version}";
hash = "sha256-99WdRyE2avoH5Ea277Dx/HNcOdWxOamR41W7dQQadpo=";
};
cargoHash = "sha256-BUIMtJCzK//bZuvn9iptBd7lVMGyWFNJ/0oTfwPu0DE=";
postPatch = ''
substituteInPlace src/lib.rs \
--replace-fail '/usr/bin/ls' 'ls'
'';
meta = with lib; {
description = "Simple and pretty alternative to strace";
mainProgram = "lurk";
homepage = "https://github.com/jakwai01/lurk";
changelog = "https://github.com/jakwai01/lurk/releases/tag/${src.rev}";
license = licenses.agpl3Only;
maintainers = with maintainers; [ figsoda ];
platforms = [
"i686-linux"
"x86_64-linux"
];
};
}