Unverified Commit f1dceab9 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by GitHub
Browse files

tty-solitaire: 1.3.1 -> 1.4.1 (#417420)

parents afa7590a 12062915
Loading
Loading
Loading
Loading
+7 −18
Original line number Diff line number Diff line
@@ -2,31 +2,20 @@
  lib,
  stdenv,
  fetchFromGitHub,
  fetchpatch,
  ncurses,
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
  pname = "tty-solitaire";
  version = "1.3.1";
  version = "1.4.1";

  src = fetchFromGitHub {
    owner = "mpereira";
    repo = "tty-solitaire";
    rev = "v${version}";
    sha256 = "sha256-zMLNWJieHxHALFQoSkdAxGbUBGuZnznLX86lI3P21F0=";
    tag = "v${finalAttrs.version}";
    hash = "sha256-8lEF1P2aKh0D4moCu54Z4Tv9xLFkZJzFuXJLo7oF9MQ=";
  };

  patches = [
    # Patch pending upstream inclusion to support ncurses-6.3:
    #  https://github.com/mpereira/tty-solitaire/pull/61
    (fetchpatch {
      name = "ncurses-6.3.patch";
      url = "https://github.com/mpereira/tty-solitaire/commit/4d066c564d086ce272b78cb8f80717a7fb83c261.patch";
      sha256 = "sha256-E1XVG0be6JH3K1y7UPap93s8xk8Nk0dKLdKHcJ7mA8E=";
    })
  ];

  postPatch = ''
    sed -i -e '/^CFLAGS *?= *-g *$/d' Makefile
  '';
@@ -38,12 +27,12 @@ stdenv.mkDerivation rec {
    "PREFIX=${placeholder "out"}"
  ];

  meta = with lib; {
  meta = {
    description = "Klondike Solitaire in your ncurses terminal";
    license = licenses.mit;
    license = lib.licenses.mit;
    homepage = "https://github.com/mpereira/tty-solitaire";
    platforms = ncurses.meta.platforms;
    maintainers = [ ];
    mainProgram = "ttysolitaire";
  };
}
})