nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 fetchFromGitHub,
3 lib,
4 rustPlatform,
5 versionCheckHook,
6}:
7
8rustPlatform.buildRustPackage (finalAttrs: {
9 pname = "procfd";
10 version = "1.3.0";
11
12 src = fetchFromGitHub {
13 owner = "deshaw";
14 repo = "procfd";
15 tag = "v${finalAttrs.version}";
16 hash = "sha256-Z18DUXT26ZRFbD25pCKqPlEnxboQKhyhKysXeOsebcE=";
17 };
18
19 cargoHash = "sha256-QsdHNZnh86qQTE6ZtycrzqU+L72EBmRlRNqJ2CRU4MI=";
20
21 nativeInstallCheckInputs = [
22 versionCheckHook
23 ];
24 doInstallCheck = true;
25
26 meta = {
27 description = "Linux lsof replacement to list open file descriptors for processes";
28 homepage = "https://github.com/deshaw/procfd";
29 license = lib.licenses.bsd3;
30 mainProgram = "procfd";
31 platforms = lib.platforms.linux;
32 maintainers = with lib.maintainers; [
33 de11n
34 despsyched
35 ];
36 };
37})