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:
Herwig Hochleitner
2016-02-04 14:25:34 +01:00
parent 98b365386a
commit 4ce954d02e
5 changed files with 74 additions and 89 deletions
+4 -10
View File
@@ -1,16 +1,10 @@
{ stdenv, fetchFromGitHub, wine, perl, which, coreutils, zenity, curl
{ stdenv, callPackage, wine, perl, which, coreutils, zenity, curl
, cabextract, unzip, p7zip, gnused, gnugrep, bash } :
let v = (import ./versions.nix).winetricks;
in stdenv.mkDerivation rec {
name = "winetricks-${v.version}";
stdenv.mkDerivation rec {
name = "winetricks-${src.version}";
src = fetchFromGitHub {
owner = "Winetricks";
repo = "winetricks";
rev = v.version;
sha256 = v.sha256;
};
src = (callPackage ./sources.nix {}).winetricks;
buildInputs = [ perl which ];