treewide: stdenv.lib -> lib
This commit is contained in:
@@ -148,8 +148,8 @@ stdenv.mkDerivation ((lib.optionalAttrs (buildScript != null) {
|
||||
meta = {
|
||||
inherit version platforms;
|
||||
homepage = "https://www.winehq.org/";
|
||||
license = with stdenv.lib.licenses; [ lgpl21Plus ];
|
||||
license = with lib.licenses; [ lgpl21Plus ];
|
||||
description = "An Open Source implementation of the Windows API on top of X, OpenGL, and Unix";
|
||||
maintainers = with stdenv.lib.maintainers; [ avnik raskin bendlas ];
|
||||
maintainers = with lib.maintainers; [ avnik raskin bendlas ];
|
||||
};
|
||||
})
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
{ stdenv, callPackage, wineUnstable }:
|
||||
{ lib, stdenv, callPackage, wineUnstable }:
|
||||
|
||||
with callPackage ./util.nix {};
|
||||
|
||||
let patch = (callPackage ./sources.nix {}).staging;
|
||||
build-inputs = pkgNames: extra:
|
||||
(mkBuildInputs wineUnstable.pkgArches pkgNames) ++ extra;
|
||||
in assert stdenv.lib.getVersion wineUnstable == patch.version;
|
||||
in assert lib.getVersion wineUnstable == patch.version;
|
||||
|
||||
(stdenv.lib.overrideDerivation wineUnstable (self: {
|
||||
(lib.overrideDerivation wineUnstable (self: {
|
||||
buildInputs = build-inputs [ "perl" "util-linux" "autoconf" "gitMinimal" ] self.buildInputs;
|
||||
|
||||
name = "${self.name}-staging";
|
||||
@@ -18,7 +18,7 @@ in assert stdenv.lib.getVersion wineUnstable == patch.version;
|
||||
chmod +w patches
|
||||
cd patches
|
||||
patchShebangs gitapply.sh
|
||||
./patchinstall.sh DESTDIR="$PWD/.." --all ${stdenv.lib.concatMapStringsSep " " (ps: "-W ${ps}") patch.disabledPatchsets}
|
||||
./patchinstall.sh DESTDIR="$PWD/.." --all ${lib.concatMapStringsSep " " (ps: "-W ${ps}") patch.disabledPatchsets}
|
||||
cd ..
|
||||
'';
|
||||
})) // {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, callPackage, wine, perl, which, coreutils, zenity, curl
|
||||
{ lib, stdenv, callPackage, wine, perl, which, coreutils, zenity, curl
|
||||
, cabextract, unzip, p7zip, gnused, gnugrep, bash } :
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@@ -9,8 +9,8 @@ stdenv.mkDerivation rec {
|
||||
buildInputs = [ perl which ];
|
||||
|
||||
# coreutils is for sha1sum
|
||||
pathAdd = stdenv.lib.concatMapStringsSep ":" (x: x + "/bin")
|
||||
(stdenv.lib.filter (x: x != null)
|
||||
pathAdd = lib.concatMapStringsSep ":" (x: x + "/bin")
|
||||
(lib.filter (x: x != null)
|
||||
[ wine perl which coreutils zenity curl cabextract unzip p7zip gnused gnugrep bash ]);
|
||||
|
||||
makeFlags = [ "PREFIX=$(out)" ];
|
||||
@@ -25,8 +25,8 @@ stdenv.mkDerivation rec {
|
||||
|
||||
meta = {
|
||||
description = "A script to install DLLs needed to work around problems in Wine";
|
||||
license = stdenv.lib.licenses.lgpl21;
|
||||
license = lib.licenses.lgpl21;
|
||||
homepage = "https://github.com/Winetricks/winetricks";
|
||||
platforms = with stdenv.lib.platforms; linux;
|
||||
platforms = with lib.platforms; linux;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user