From 59211b6ed08f2e5cb3d938c3e58074ec38d8e269 Mon Sep 17 00:00:00 2001 From: ndowens Date: Fri, 3 Mar 2017 16:16:45 -0600 Subject: [PATCH] tty-clock: 0.1 -> 2.3 (#23419) --- pkgs/tools/misc/tty-clock/default.nix | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/pkgs/tools/misc/tty-clock/default.nix b/pkgs/tools/misc/tty-clock/default.nix index eb1a861db928..113359a8bcea 100644 --- a/pkgs/tools/misc/tty-clock/default.nix +++ b/pkgs/tools/misc/tty-clock/default.nix @@ -1,21 +1,20 @@ -{ stdenv, fetchFromGitHub, ncurses }: +{ stdenv, fetchFromGitHub, ncurses, pkgconfig }: stdenv.mkDerivation rec { name = "tty-clock-${version}"; - version = "0.1"; + version = "2.3"; src = fetchFromGitHub { owner = "xorg62"; repo = "tty-clock"; - rev = "v0.1"; - sha256 = "14h70ky5y9nb3mzhlshdgq5n47hg3g6msnwbqd7nnmjzrw1nmarl"; + rev = "v${version}"; + sha256 = "16v3pmva13skpfjja96zacjpxrwzs1nb1iqmrp2qzvdbcm9061pp"; }; - + + nativeBuildInputs = [ pkgconfig ]; buildInputs = [ ncurses ]; - preInstall = '' - sed -i 's@/usr/local/@$(out)/@' Makefile - ''; + makeFlags = "PREFIX=$(out)"; meta = with stdenv.lib; { homepage = https://github.com/xorg62/tty-clock;