Add none working mytop

Installation / compilation works, but execution is broken.
See comment within the default.nix file.
This commit is contained in:
Daniel Siepmann 2022-02-08 20:22:30 +01:00
parent 00b8f205e4
commit d00eb968a4
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
3 changed files with 29 additions and 4 deletions

View file

@ -48,6 +48,7 @@
pkgs.litecli
pkgs.sqlite
pkgs.mycli
# pkgs.mytop
pkgs.robo3t
pkgs.mkcert
pkgs.tig

View file

@ -0,0 +1,28 @@
self: super: {
mytop = super.pkgs.perlPackages.buildPerlPackage rec {
pname = "mytop";
version = "1.6";
src = super.pkgs.fetchurl {
url = "https://jeremy.zawodny.com/mysql/${pname}/${pname}-${version}.tar.gz";
sha256 = "b17c702598b10bb0ce2695f609122637c799eaaaec1afaa73246b048f07be9bd";
};
# TODO: Builds, but is not executable
# I've no clue of perl, never used it.
# Error when executing:
# Can't locate DBI.pm in @INC (you may need to install the DBI module)
# Didn't find anything relating dbi for perl in nixpks.
# It self explaines: runs on most Unix systems which have Perl, DBI, and Term::ReadKey installed. And with Term::ANSIColor installed you even get color.
outputs = [
"out"
];
meta = with super.lib; {
description = "A top clone for MySQL";
homepage = "https://jeremy.zawodny.com/mysql/mytop/";
license = licenses.gpl2Only;
};
};
}

View file

@ -95,10 +95,6 @@ No particular order:
* Migrate neovim
* Add derivation for things that don't exist yet:
* mytop
* Migrate ssh config (I don't really like to expose customer server names and configs to outer world, how to handle?)
* Migrate PGP?