- buildPerlPackage = perlPackages.buildPerlPackage;
- mypkgs.note = buildPerlPackage rec {
- name = "note-1.3.26";
- src = fetchurl {
- url = "mirror://cpan/authors/id/T/TL/TLINDEN/${name}.tar.gz";
- sha256 = "1h645rnb5vpms48fcyzvp7cwwcbf9k5xq49w2bpniyzzgk2brjrq";
- };
- outputs = ["out" "man"];
- propagatedBuildInputs = [ perlPackages.YAML ];
- meta = with stdenv.lib; {
- description = "A perl script for maintaining notes";
- homepage = http://www.daemon.de/NOTE;
- license = licenses.gpl3;
- maintainers = with maintainers; [ { name = "T.v.Dein"; email = "tlinden@cpan.org"; } ];
- platforms = platforms.unix;
- };
- };
-
- mypkgs.terminal-velocity = with python36Packages; buildPythonApplication rec {
- pname = "terminal-velocity-git";
- version = "0.2.0";
-
- patches = [
- ./patches/terminal_velocity_sort_found_notes.patch
- ./patches/terminal_velocity_python3_support.patch
- # FIXME: update this patch when version changes
- ./patches/terminal_velocity_fix_build.patch
- ];
-
- propagatedBuildInputs = [ chardet urwid (sh.overridePythonAttrs { doCheck = false; }) pyyaml ];
- buildInputs = [ m2r (restructuredtext_lint.overridePythonAttrs { doCheck = false; }) pygments ];
-
- postInstall = ''
- rm $out/bin/terminal_velocity
- '';
- src = fetchPypi {
- inherit pname version;
- sha256 = "13yrkcmvh5h5fwnai61sbmqkrjyisz08n62pq0ada2lyyqf7g6b9";
- };
- };
-
- mypkgs.mtop = buildPerlPackage rec {
- name = "mtop-${version}";
- version = "0.6.6";
- src = fetchurl {
- url = "http://downloads.sourceforge.net/project/mtop/mtop/v${version}/mtop-${version}.tar.gz";
- sha256 = "0x0x5300b1j9i0xxk8rsrki0pspyzj2vylhzv8qg3l6j26aw0zrf";
- };
- outputs = ["out"];
- buildInputs = [ perlPackages.DBI perlPackages.DBDmysql perlPackages.Curses ];
-
- postInstall = ''
- cd "$out"
- preConfigure || true
- '';
- meta = with stdenv.lib; {
- description = "MySQL top (monitor and examine slow queries)";
- homepage = http://mtop.sourceforge.net/;
- license = licenses.gpl3;
- maintainers = with maintainers; [ { name = "Marc Prewitt"; email = "mprewitt@chelsea.net"; } ];
- platforms = platforms.unix;
- };
- };
-
- mypkgs.tiv = buildPerlPackage rec {
- name = "tiv-${version}";
- version = "2015";
- src = fetchurl {
- url = "http://xyne.archlinux.ca/projects/tiv/src/tiv-${version}.tar.xz";
- sha256 = "1vq073v7z7vmcd57lhs4rf4jasji69cpjgkz4dykp94a77p1qq90";
- };
- outputs = ["out"];
- buildInputs = [ perlPackages.PerlMagick ];
- perlPreHookScript = ./hooks/tiv_builder.sh;
- perlPreHook = ''
- source ${perlPreHookScript}
- '';
- installPhase = ''
- install -Dm755 tiv "$out/bin/tiv"
- '';
- };