2015-01-14 20:24:38 +00:00
|
|
|
{ stdenv, fetchgit, python3 }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2017-01-03 11:31:55 +00:00
|
|
|
name = "cortex-2015-08-23";
|
2015-01-14 20:24:38 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/gglucas/cortex";
|
2017-01-03 11:31:55 +00:00
|
|
|
rev = "ff10ff860479fe2f50590c0f8fcfc6dc34446639";
|
|
|
|
sha256 = "0pa2kkkcnmf56d5d5kknv0gfahddym75xripd4kgszaj6hsib3zg";
|
2015-01-14 20:24:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ stdenv python3 ];
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace cortex --replace "/usr/bin/env python3" "${python3}/bin/python3"
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp cortex $out/bin/
|
|
|
|
chmod +x $out/bin/cortex
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "http://cortex.glacicle.org";
|
|
|
|
description = "An ncurses reddit browser and monitor";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ matthiasbeyer ];
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = with platforms; unix;
|
2015-01-14 20:24:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|