2016-02-02 04:55:46 +01:00
|
|
|
{ pkgs ? import <nixpkgs> {} }:
|
|
|
|
let fetchurl = args@{url, sha256, ...}:
|
|
|
|
pkgs.fetchurl { inherit url sha256; } // args;
|
|
|
|
fetchFromGitHub = args@{owner, repo, rev, sha256, ...}:
|
|
|
|
pkgs.fetchFromGitHub { inherit owner repo rev sha256; } // args;
|
|
|
|
in rec {
|
|
|
|
|
|
|
|
stable = fetchurl rec {
|
2017-01-30 02:31:25 +01:00
|
|
|
version = "2.0";
|
|
|
|
url = "https://dl.winehq.org/wine/source/2.0/wine-${version}.tar.bz2";
|
|
|
|
sha256 = "1ik6q0h3ph3jizmp7bxhf6kcm1pzrdrn2m0yf2x86slv2aigamlp";
|
2016-02-02 04:55:46 +01:00
|
|
|
|
|
|
|
## see http://wiki.winehq.org/Gecko
|
|
|
|
gecko32 = fetchurl rec {
|
2017-01-30 02:31:25 +01:00
|
|
|
version = "2.47";
|
2016-09-09 00:32:34 +02:00
|
|
|
url = "http://dl.winehq.org/wine/wine-gecko/${version}/wine_gecko-${version}-x86.msi";
|
2017-01-30 02:31:25 +01:00
|
|
|
sha256 = "0fk4fwb4ym8xn0i5jv5r5y198jbpka24xmxgr8hjv5b3blgkd2iv";
|
2016-02-02 04:55:46 +01:00
|
|
|
};
|
|
|
|
gecko64 = fetchurl rec {
|
2017-01-30 02:31:25 +01:00
|
|
|
version = "2.47";
|
2016-09-09 00:32:34 +02:00
|
|
|
url = "http://dl.winehq.org/wine/wine-gecko/${version}/wine_gecko-${version}-x86_64.msi";
|
2017-01-30 02:31:25 +01:00
|
|
|
sha256 = "0zaagqsji6zaag92fqwlasjs8v9hwjci5c2agn9m7a8fwljylrf5";
|
2016-02-02 04:55:46 +01:00
|
|
|
};
|
2017-01-30 02:31:25 +01:00
|
|
|
|
2016-02-02 04:55:46 +01:00
|
|
|
## see http://wiki.winehq.org/Mono
|
|
|
|
mono = fetchurl rec {
|
2017-01-30 02:31:25 +01:00
|
|
|
version = "4.6.4";
|
2016-09-09 00:32:34 +02:00
|
|
|
url = "http://dl.winehq.org/wine/wine-mono/${version}/wine-mono-${version}.msi";
|
2017-01-30 02:31:25 +01:00
|
|
|
sha256 = "0lj1rhp9s8aaxd6764mfvnyswwalafaanz80vxg3badrfy0xbdwi";
|
2016-02-02 04:55:46 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
unstable = fetchurl rec {
|
2017-01-30 02:31:25 +01:00
|
|
|
version = "2.0";
|
2016-12-22 14:58:27 +01:00
|
|
|
url = "https://dl.winehq.org/wine/source/2.0/wine-${version}.tar.bz2";
|
2017-01-30 02:31:25 +01:00
|
|
|
sha256 = "1ik6q0h3ph3jizmp7bxhf6kcm1pzrdrn2m0yf2x86slv2aigamlp";
|
|
|
|
inherit (stable) mono gecko32 gecko64;
|
2016-02-02 04:55:46 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
staging = fetchFromGitHub rec {
|
|
|
|
inherit (unstable) version;
|
2017-01-30 02:31:25 +01:00
|
|
|
sha256 = "02jrdm49zlc0f357m0z65pilmg4lxh16va32ll3p4y8vr13nwawk";
|
2016-02-02 04:55:46 +01:00
|
|
|
owner = "wine-compholio";
|
|
|
|
repo = "wine-staging";
|
|
|
|
rev = "v${version}";
|
|
|
|
};
|
|
|
|
|
|
|
|
winetricks = fetchFromGitHub rec {
|
2016-11-03 11:10:48 +01:00
|
|
|
version = "20170101";
|
|
|
|
sha256 = "0c2aam68x3nlvc6f4r6rnfw6y3a86644zb0qirwkmh3p04mpdl39";
|
2016-02-02 04:55:46 +01:00
|
|
|
owner = "Winetricks";
|
|
|
|
repo = "winetricks";
|
|
|
|
rev = version;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|