bochs: new recursive style

This commit is contained in:
AndersonTorres 2022-07-02 12:36:06 -03:00
parent 2d48f0c18a
commit d7d1174c93

View file

@ -18,12 +18,12 @@
, wxGTK , wxGTK
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "bochs"; pname = "bochs";
version = "2.7"; version = "2.7";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/project/${pname}/${pname}/${version}/${pname}-${version}.tar.gz"; url = "mirror://sourceforge/project/${finalAttrs.pname}/${finalAttrs.pname}/${finalAttrs.version}/${finalAttrs.pname}-${finalAttrs.version}.tar.gz";
hash = "sha256-oBCrG/3HKsWgjS4kEs1HHA/r1mrx2TSbwNeWh53lsXo="; hash = "sha256-oBCrG/3HKsWgjS4kEs1HHA/r1mrx2TSbwNeWh53lsXo=";
}; };
@ -33,6 +33,7 @@ stdenv.mkDerivation rec {
libtool libtool
pkg-config pkg-config
]; ];
buildInputs = [ buildInputs = [
SDL2 SDL2
curl curl
@ -132,6 +133,6 @@ stdenv.mkDerivation rec {
platforms = platforms.unix; platforms = platforms.unix;
broken = stdenv.isDarwin; broken = stdenv.isDarwin;
}; };
} })
# TODO: a better way to organize the options # TODO: a better way to organize the options
# TODO: docbook (docbook-tools from RedHat mirrors should help) # TODO: docbook (docbook-tools from RedHat mirrors should help)