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,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 ];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user