depot/third_party/nixpkgs/pkgs/games/holdingnuts/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

37 lines
1.1 KiB
Nix

{ stdenv, fetchurl, cmake, SDL, qt4 }:
let mirror = "http://download.holdingnuts.net";
in stdenv.mkDerivation rec {
pname = "holdingnuts";
version = "0.0.5";
src = fetchurl {
url = "${mirror}/release/${version}/${pname}-${version}.tar.bz2";
sha256 = "0iw25jmnqzscg34v66d4zz70lvgjp4l7gi16nna6491xnqha5a8g";
};
patches = [
(fetchurl {
url = "${mirror}/patches/holdingnuts-0.0.5-wheel.patch";
sha256 = "0hap5anxgc19s5qi64mjpi3wpgphy4dqdxqw34q19dw3gwxw5g8n";
})
(fetchurl {
url = "${mirror}/patches/holdingnuts-qpixmapcache-workaround.patch";
sha256 = "15cf9j9mdm85f0h7w5f5852ic7xpim0243yywkd2qrfp37mi93pd";
})
];
postPatch = ''
substituteInPlace src/system/SysAccess.c --replace /usr/share $out/share
'';
buildInputs = [ cmake SDL qt4 ];
meta = with stdenv.lib; {
homepage = "http://www.holdingnuts.net/";
description = "Open Source Poker client and server";
license = licenses.gpl3;
maintainers = with maintainers; [ obadz ];
platforms = platforms.all;
};
}