at 23.11-beta 42 lines 906 B view raw
1{ lib 2, stdenv 3, fetchFromGitHub 4, python3 5}: 6 7stdenv.mkDerivation rec { 8 pname = "dool"; 9 version = "1.3.0"; 10 11 src = fetchFromGitHub { 12 owner = "scottchiefbaker"; 13 repo = "dool"; 14 rev = "v${version}"; 15 hash = "sha256-FekCxzB+jZtiPfJ/yAtvCsaNZJJkgWUAFe6hMXznSJw="; 16 }; 17 18 buildInputs = [ 19 python3 20 ]; 21 22 makeFlags = [ 23 "prefix=$(out)" 24 ]; 25 26 # fix the plugins directory 27 postPatch = '' 28 substituteInPlace dool \ 29 --replace \ 30 "os.path.abspath(os.path.dirname(sys.argv[0])) + '/plugins/'" \ 31 "'$out/share/dool/'" 32 ''; 33 34 meta = with lib; { 35 description = "Python3 compatible clone of dstat"; 36 homepage = "https://github.com/scottchiefbaker/dool"; 37 changelog = "https://github.com/scottchiefbaker/dool/blob/${src.rev}/ChangeLog"; 38 license = licenses.gpl3Plus; 39 maintainers = with maintainers; [ figsoda ]; 40 platforms = platforms.unix; 41 }; 42}