mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
* Use useFromStdenv.
svn path=/nixpkgs/trunk/; revision=6145
This commit is contained in:
parent
77a5272922
commit
deaacb7a0f
@ -78,16 +78,12 @@ rec {
|
||||
|
||||
### BUILD SUPPORT
|
||||
|
||||
/**
|
||||
* Allow the stdenv to determine fetchurl, to cater for strange requirements.
|
||||
*/
|
||||
fetchurl =
|
||||
if stdenv ? fetchurl then
|
||||
stdenv.fetchurl
|
||||
else
|
||||
(import ../build-support/fetchurl) {
|
||||
inherit stdenv curl;
|
||||
};
|
||||
# Allow the stdenv to determine fetchurl, to cater for strange
|
||||
# requirements.
|
||||
fetchurl = useFromStdenv (stdenv ? fetchurl) stdenv.fetchurl
|
||||
(import ../build-support/fetchurl {
|
||||
inherit stdenv curl;
|
||||
});
|
||||
|
||||
fetchsvn = (import ../build-support/fetchsvn) {
|
||||
inherit stdenv subversion nix openssh;
|
||||
|
Loading…
Reference in New Issue
Block a user