Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl, python3 }: 2 3stdenv.mkDerivation rec { 4 pname = "smem"; 5 version = "1.5"; 6 7 src = fetchurl { 8 url = "https://selenic.com/repo/smem/archive/${version}.tar.bz2"; 9 sha256 = "19ibv1byxf2b68186ysrgrhy5shkc5mc69abark1h18yigp3j34m"; 10 }; 11 12 buildInputs = [ python3 ]; 13 14 makeFlags = [ "smemcap" ]; 15 16 installPhase = 17 '' 18 install -Dm555 -t $out/bin/ smem smemcap 19 install -Dm444 -t $out/share/man/man8/ smem.8 20 ''; 21 22 meta = { 23 homepage = "https://www.selenic.com/smem/"; 24 description = "A memory usage reporting tool that takes shared memory into account"; 25 platforms = lib.platforms.linux; 26 maintainers = [ lib.maintainers.eelco ]; 27 license = lib.licenses.gpl2Plus; 28 }; 29}