nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 44 lines 975 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 python3, 6}: 7 8stdenv.mkDerivation (finalAttrs: { 9 pname = "dool"; 10 version = "1.3.8"; 11 12 src = fetchFromGitHub { 13 owner = "scottchiefbaker"; 14 repo = "dool"; 15 rev = "v${finalAttrs.version}"; 16 hash = "sha256-aIGYv8UAC3toQe21xdtPUnsnrJhzbvQLfN/pPU3L2J0="; 17 }; 18 19 buildInputs = [ 20 python3 21 ]; 22 23 makeFlags = [ 24 "prefix=$(out)" 25 ]; 26 27 # fix the plugins directory 28 postPatch = '' 29 substituteInPlace dool \ 30 --replace-fail \ 31 "os.path.dirname(os.path.abspath(__file__)) + '/plugins/'" \ 32 "'$out/share/dool/'" 33 ''; 34 35 meta = { 36 description = "Python3 compatible clone of dstat"; 37 homepage = "https://github.com/scottchiefbaker/dool"; 38 changelog = "https://github.com/scottchiefbaker/dool/blob/${finalAttrs.src.rev}/ChangeLog"; 39 license = lib.licenses.gpl3Plus; 40 maintainers = [ lib.maintainers.matthiasbeyer ]; 41 platforms = lib.platforms.linux; 42 mainProgram = "dool"; 43 }; 44})