default.nix (635B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 }: 7 8 stdenv.mkDerivation (finalAttrs: { 9 pname = "heapusage"; 10 version = "2.07"; 11 12 src = fetchFromGitHub { 13 owner = "d99kris"; 14 repo = "heapusage"; 15 rev = "v${finalAttrs.version}"; 16 hash = "sha256-p7Yhx/w1I0+dxD7YH15Eojs4wh337/mZnXBwpiqlt4A="; 17 }; 18 19 nativeBuildInputs = [ cmake ]; 20 21 meta = { 22 description = "Light-weight tool for finding heap memory errors"; 23 homepage = "https://github.com/d99kris/heapusage"; 24 license = lib.licenses.bsd3; 25 maintainers = [ lib.maintainers.sikmir ]; 26 platforms = lib.platforms.unix; 27 mainProgram = "heapusage"; 28 }; 29 })