nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 49 lines 1.4 kB view raw
1{ 2 fetchurl, 3 lib, 4 stdenv, 5 fetchpatch2, 6}: 7 8stdenv.mkDerivation (finalAttrs: { 9 pname = "acct"; 10 version = "6.6.4"; 11 12 src = fetchurl { 13 url = "mirror://gnu/acct/acct-${finalAttrs.version}.tar.gz"; 14 sha256 = "0gv6m8giazshvgpvwbng98chpas09myyfw1zr2y7hqxib0mvy5ac"; 15 }; 16 17 doCheck = true; 18 19 patches = [ 20 (fetchpatch2 { 21 url = "https://src.fedoraproject.org/rpms/psacct/raw/rawhide/f/psacct-6.6.4-sprintf-buffer-overflow.patch"; 22 hash = "sha256-l74tLIuhpXj+dIA7uAY9L0qMjQ2SbDdc+vjHMyVouFc="; 23 }) 24 # fix build with C23 25 # error: passing argument 4 of 'qsort' from incompatible pointer type 26 (fetchpatch2 { 27 url = "https://salsa.debian.org/abower/acct/-/raw/7aeb2192d729bcd4583a75765add28c65a7fcf47/debian/patches/Fix-FTBFS-with-C23.patch"; 28 hash = "sha256-q1LtmhYopgSWIzIoONbKjgigIBU+LPvSvtUM3iL36c0="; 29 }) 30 ]; 31 32 meta = { 33 description = "GNU Accounting Utilities, login and process accounting utilities"; 34 35 longDescription = '' 36 The GNU Accounting Utilities provide login and process accounting 37 utilities for GNU/Linux and other systems. It is a set of utilities 38 which reports and summarizes data about user connect times and process 39 execution statistics. 40 ''; 41 42 license = lib.licenses.gpl3Plus; 43 44 homepage = "https://www.gnu.org/software/acct/"; 45 46 maintainers = with lib.maintainers; [ pSub ]; 47 platforms = lib.platforms.linux; 48 }; 49})