nixpkgs/pkgs/by-name/lu/lurk/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
848 B
Nix
Raw Normal View History

2024-07-21 10:19:14 +00:00
{
lib,
rustPlatform,
fetchFromGitHub,
}:
2022-07-31 05:42:10 +00:00
rustPlatform.buildRustPackage rec {
pname = "lurk";
2024-10-27 13:04:57 +00:00
version = "0.3.9";
2022-07-31 05:42:10 +00:00
src = fetchFromGitHub {
owner = "jakwai01";
repo = pname;
rev = "v${version}";
2024-10-27 13:04:57 +00:00
hash = "sha256-KiM5w0YPxEpJ4cR/8YfhWlTrffqf5Ak1eu0yxgOmqUs=";
2022-07-31 05:42:10 +00:00
};
2024-10-27 13:04:57 +00:00
cargoHash = "sha256-wccehO+zHKINMk9q7vZjUUl7puB6NzcYdl+meA5Bh/c=";
2024-07-21 10:19:14 +00:00
postPatch = ''
substituteInPlace src/lib.rs \
--replace-fail '/usr/bin/ls' 'ls'
'';
2022-07-31 05:42:10 +00:00
meta = with lib; {
description = "Simple and pretty alternative to strace";
mainProgram = "lurk";
2022-07-31 05:42:10 +00:00
homepage = "https://github.com/jakwai01/lurk";
changelog = "https://github.com/jakwai01/lurk/releases/tag/${src.rev}";
2022-07-31 05:42:10 +00:00
license = licenses.agpl3Only;
maintainers = with maintainers; [ figsoda ];
2024-07-21 10:19:14 +00:00
platforms = [
"i686-linux"
"x86_64-linux"
];
2022-07-31 05:42:10 +00:00
};
}