2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, nim, termbox, pcre }:
|
2020-06-15 09:00:19 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
noise = fetchFromGitHub {
|
|
|
|
owner = "jangko";
|
|
|
|
repo = "nim-noise";
|
2021-04-13 19:55:02 +01:00
|
|
|
rev = "v0.1.14";
|
|
|
|
sha256 = "0wndiphznfyb1pac6zysi3bqljwlfwj6ziarcwnpf00sw2zni449";
|
2020-06-15 09:00:19 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nimbox = fetchFromGitHub {
|
|
|
|
owner = "dom96";
|
|
|
|
repo = "nimbox";
|
|
|
|
rev = "6a56e76c01481176f16ae29b7d7c526bd83f229b";
|
|
|
|
sha256 = "15x1sdfxa1xcqnr68705jfnlv83lm0xnp2z9iz3pgc4bz5vwn4x1";
|
|
|
|
};
|
|
|
|
|
|
|
|
lscolors = fetchFromGitHub {
|
|
|
|
owner = "joachimschmidt557";
|
|
|
|
repo = "nim-lscolors";
|
|
|
|
rev = "v0.3.3";
|
|
|
|
sha256 = "0526hqh46lcfsvymb67ldsc8xbfn24vicn3b8wrqnh6mag8wynf4";
|
|
|
|
};
|
|
|
|
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
pname = "nimmm";
|
2021-04-13 19:55:02 +01:00
|
|
|
version = "0.2.0";
|
2020-06-15 09:00:19 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "joachimschmidt557";
|
|
|
|
repo = "nimmm";
|
|
|
|
rev = "v${version}";
|
2021-04-13 19:55:02 +01:00
|
|
|
sha256 = "168n61avphbxsxfq8qzcnlqx6wgvz5yrjvs14g25cg3k46hj4xqg";
|
2020-06-15 09:00:19 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ nim ];
|
|
|
|
buildInputs = [ termbox pcre ];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
export HOME=$TMPDIR;
|
|
|
|
nim -p:${noise} -p:${nimbox} -p:${lscolors}/src c -d:release src/nimmm.nim
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -Dt $out/bin src/nimmm
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-06-15 09:00:19 +01:00
|
|
|
description = "Terminal file manager written in nim";
|
|
|
|
homepage = "https://github.com/joachimschmidt557/nimmm";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.joachimschmidt557 ];
|
|
|
|
};
|
|
|
|
}
|