From 9261b976ee9241dcc5c3b4c5e2dddb17627a4ba2 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Wed, 14 Jan 2015 21:24:38 +0100 Subject: [PATCH] Add cortex in applications/misc --- pkgs/applications/misc/cortex/default.nix | 31 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/applications/misc/cortex/default.nix diff --git a/pkgs/applications/misc/cortex/default.nix b/pkgs/applications/misc/cortex/default.nix new file mode 100644 index 000000000000..79d19f45a25f --- /dev/null +++ b/pkgs/applications/misc/cortex/default.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchgit, python3 }: + +stdenv.mkDerivation { + name = "cortex"; + + src = fetchgit { + url = "https://github.com/gglucas/cortex"; + rev = "e749de6c21aae02386f006fd0401d22b9dcca424"; + sha256 = "d5d59c5257107344122c701eb370f3740f9957b6b898ac798d797a4f152f614c"; + }; + + 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 ]; + }; + +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 80ec3ecff77e..305116358115 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9448,6 +9448,8 @@ let inherit (gnome) libgnomeui GConf; }; + cortex = callPackage ../applications/misc/cortex { }; + csound = callPackage ../applications/audio/csound { }; cinepaint = callPackage ../applications/graphics/cinepaint {