diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2018-11-10 21:40:03 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-10 21:40:03 +0000 |
commit | e63da358ae3ef61ed57bb0809c030b87f7af75cf (patch) | |
tree | c953bf682844a8657efb393799dc46258adc7454 /pkgs/os-specific | |
parent | 0c9b49dfe26de514804c564cf91b0443077c07cc (diff) | |
parent | e8776d9a5f1bdc153080c5bcac6f7ce53f3477e0 (diff) | |
download | nixlib-e63da358ae3ef61ed57bb0809c030b87f7af75cf.tar nixlib-e63da358ae3ef61ed57bb0809c030b87f7af75cf.tar.gz nixlib-e63da358ae3ef61ed57bb0809c030b87f7af75cf.tar.bz2 nixlib-e63da358ae3ef61ed57bb0809c030b87f7af75cf.tar.lz nixlib-e63da358ae3ef61ed57bb0809c030b87f7af75cf.tar.xz nixlib-e63da358ae3ef61ed57bb0809c030b87f7af75cf.tar.zst nixlib-e63da358ae3ef61ed57bb0809c030b87f7af75cf.zip |
Merge pull request #50206 from c0bw3b/pkg/smem
smem: 1.4 -> 1.5
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r-- | pkgs/os-specific/linux/smem/default.nix | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/pkgs/os-specific/linux/smem/default.nix b/pkgs/os-specific/linux/smem/default.nix index ede8d425f12d..de12b3719af3 100644 --- a/pkgs/os-specific/linux/smem/default.nix +++ b/pkgs/os-specific/linux/smem/default.nix @@ -1,31 +1,26 @@ { lib, stdenv, fetchurl, python }: stdenv.mkDerivation rec { - name = "smem-1.4"; + name = "smem-${version}"; + version = "1.5"; src = fetchurl { - url = "https://www.selenic.com/smem/download/${name}.tar.gz"; - sha256 = "1v31vy23s7szl6vdrllq9zbg58bp36jf5xy3fikjfg6gyiwgia9f"; + url = "https://selenic.com/repo/smem/archive/${version}.tar.bz2"; + sha256 = "19ibv1byxf2b68186ysrgrhy5shkc5mc69abark1h18yigp3j34m"; }; buildInputs = [ python ]; - buildPhase = - '' - gcc -O2 smemcap.c -o smemcap - ''; + makeFlags = [ "smemcap" ]; installPhase = '' - mkdir -p $out/bin - cp smem smemcap $out/bin/ - - mkdir -p $out/share/man/man8 - cp smem.8 $out/share/man/man8/ + install -Dm555 -t $out/bin/ smem smemcap + install -Dm444 -t $out/share/man/man8/ smem.8 ''; meta = { - homepage = http://www.selenic.com/smem/; + homepage = https://www.selenic.com/smem/; description = "A memory usage reporting tool that takes shared memory into account"; platforms = lib.platforms.linux; maintainers = [ lib.maintainers.eelco ]; |