rgbds: 0.6.1 -> 0.7.0

rgbds: use postPatch rather than patchPhase

Co-authored-by: Pol Dellaiera <pol.dellaiera@protonmail.com>
This commit is contained in:
Nathan van Doorn
2024-06-14 10:06:09 +02:00
parent 923b669abb
commit f564dbf8af

View File

@@ -2,15 +2,18 @@
stdenv.mkDerivation rec {
pname = "rgbds";
version = "0.6.1";
version = "0.7.0";
src = fetchFromGitHub {
owner = "gbdev";
repo = "rgbds";
rev = "v${version}";
sha256 = "sha256-3mx4yymrOQnP5aJCzPWl5G96WBxt1ixU6tdzhhOsF04=";
hash = "sha256-aktKJlwXpHpjSFxoz5wZJPGWZIcn4ax5iBP0GQEux78=";
};
nativeBuildInputs = [ bison flex pkg-config ];
buildInputs = [ libpng ];
postPatch = ''
patchShebangs --host src/bison.sh
'';
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-fno-lto";
installFlags = [ "PREFIX=${placeholder "out"}" ];