wine: consolidate source packages
In order to update wine packages more easily, the source derivations are collected into a single sources.nix, so hashes can be updated like `nix-prefetch-url pkgs/misc/emulators/wine/sources.nix -A stable`
This commit is contained in:
@@ -1,62 +1,35 @@
|
||||
{ system, stdenv, stdenv_32bit, lib, pkgs, pkgsi686Linux, fetchurl,
|
||||
{ system, stdenv, stdenv_32bit, lib, pkgs, pkgsi686Linux, callPackage,
|
||||
pulseaudioSupport,
|
||||
wineRelease ? "stable"
|
||||
}:
|
||||
|
||||
let sources = with lib.getAttr wineRelease (import ./versions.nix); {
|
||||
version = wineVersion;
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/wine/wine-${wineVersion}.tar.bz2";
|
||||
sha256 = wineSha256;
|
||||
};
|
||||
|
||||
wineGecko32 = fetchurl {
|
||||
url = "mirror://sourceforge/wine/wine_gecko-${geckoVersion}-x86.msi";
|
||||
sha256 = geckoSha256;
|
||||
};
|
||||
|
||||
wineGecko64 = fetchurl {
|
||||
url = "mirror://sourceforge/wine/wine_gecko-${gecko64Version}-x86_64.msi";
|
||||
sha256 = gecko64Sha256;
|
||||
};
|
||||
|
||||
wineMono = fetchurl {
|
||||
url = "mirror://sourceforge/wine/wine-mono-${monoVersion}.msi";
|
||||
sha256 = monoSha256;
|
||||
};
|
||||
};
|
||||
inherit (sources) version;
|
||||
in {
|
||||
let src = lib.getAttr wineRelease (callPackage ./sources.nix {});
|
||||
in with src; {
|
||||
wine32 = import ./base.nix {
|
||||
name = "wine-${version}";
|
||||
inherit (sources) version src;
|
||||
inherit src version pulseaudioSupport;
|
||||
inherit (pkgsi686Linux) lib stdenv;
|
||||
inherit pulseaudioSupport;
|
||||
pkgArches = [ pkgsi686Linux ];
|
||||
geckos = with sources; [ wineGecko32 ];
|
||||
monos = with sources; [ wineMono ];
|
||||
geckos = [ gecko32 ];
|
||||
monos = [ mono ];
|
||||
platforms = [ "i686-linux" "x86_64-linux" ];
|
||||
};
|
||||
wine64 = import ./base.nix {
|
||||
name = "wine64-${version}";
|
||||
inherit (sources) version src;
|
||||
inherit lib stdenv;
|
||||
inherit pulseaudioSupport;
|
||||
inherit src version pulseaudioSupport lib stdenv;
|
||||
pkgArches = [ pkgs ];
|
||||
geckos = with sources; [ wineGecko64 ];
|
||||
monos = with sources; [ wineMono ];
|
||||
geckos = [ gecko64 ];
|
||||
monos = [ mono ];
|
||||
configureFlags = "--enable-win64";
|
||||
platforms = [ "x86_64-linux" ];
|
||||
};
|
||||
wineWow = import ./base.nix {
|
||||
name = "wine-wow-${version}";
|
||||
inherit (sources) version src;
|
||||
inherit lib;
|
||||
inherit src version pulseaudioSupport lib;
|
||||
stdenv = stdenv_32bit;
|
||||
inherit pulseaudioSupport;
|
||||
pkgArches = [ pkgs pkgsi686Linux ];
|
||||
geckos = with sources; [ wineGecko32 wineGecko64 ];
|
||||
monos = with sources; [ wineMono ];
|
||||
geckos = [ gecko32 gecko64 ];
|
||||
monos = [ mono ];
|
||||
buildScript = ./builder-wow.sh;
|
||||
platforms = [ "x86_64-linux" ];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user