nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 stdenv,
3 lib,
4 fetchFromGitHub,
5 ncurses,
6}:
7
8stdenv.mkDerivation rec {
9 pname = "smemstat";
10 version = "0.02.13";
11
12 src = fetchFromGitHub {
13 owner = "ColinIanKing";
14 repo = "smemstat";
15 rev = "V${version}";
16 hash = "sha256-wxgw5tPdZAhhISbay8BwoL5zxZJV4WstDpOtv9umf54=";
17 };
18
19 buildInputs = [ ncurses ];
20 installFlags = [
21 "BINDIR=${placeholder "out"}/bin"
22 "MANDIR=${placeholder "out"}/share/man/man8"
23 "BASHDIR=${placeholder "out"}/share/bash-completion/completions"
24 ];
25
26 meta = with lib; {
27 description = "Memory usage monitoring tool";
28 mainProgram = "smemstat";
29 homepage = "https://github.com/ColinIanKing/smemstat";
30 license = licenses.gpl2Plus;
31 platforms = platforms.linux;
32 maintainers = with maintainers; [ womfoo ];
33 };
34}