mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
svn path=/nixpkgs/trunk/; revision=9861
This commit is contained in:
parent
800634501b
commit
41ecc6941b
@ -1,5 +1,5 @@
|
|||||||
args:
|
args:
|
||||||
( args.mkDerivationByConfigruation {
|
( args.mkDerivationByConfiguration {
|
||||||
flagConfig = {
|
flagConfig = {
|
||||||
mandatory = { implies = [ "no_oss" "no_sun_audio" ]; };
|
mandatory = { implies = [ "no_oss" "no_sun_audio" ]; };
|
||||||
# are these options of interest? We'll see
|
# are these options of interest? We'll see
|
||||||
|
@ -12,7 +12,7 @@ fi
|
|||||||
# hash of the output matters.
|
# hash of the output matters.
|
||||||
echo 'p' | svn export -r "$rev" "$url" $out
|
echo 'p' | svn export -r "$rev" "$url" $out
|
||||||
|
|
||||||
actual=$(nix-hash $out)
|
actual=$(nix-hash $out --type "$outputHashAlgo")
|
||||||
if test "$actual" != "$outputHash"; then
|
if test "$actual" != "$outputHash"; then
|
||||||
echo "hash is $actual, expected $outputHash" >&2
|
echo "hash is $actual, expected $outputHash" >&2
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
{stdenv, subversion, nix, sshSupport ? false, openssh ? null}: {url, rev ? "HEAD", md5}:
|
{stdenv, subversion, nix, sshSupport ? false, openssh ? null}:
|
||||||
|
{url, rev ? "HEAD", md5 ? "", sha256 ? ""}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "svn-export";
|
name = "svn-export";
|
||||||
@ -6,11 +7,11 @@ stdenv.mkDerivation {
|
|||||||
buildInputs = [subversion nix];
|
buildInputs = [subversion nix];
|
||||||
|
|
||||||
# Nix <= 0.7 compatibility.
|
# Nix <= 0.7 compatibility.
|
||||||
id = md5;
|
/*id = if sha256 == "" then md5 else sha256;*/
|
||||||
|
|
||||||
outputHashAlgo = "md5";
|
outputHashAlgo = if sha256=="" then "md5" else "sha256";
|
||||||
outputHashMode = "recursive";
|
outputHashMode = "recursive";
|
||||||
outputHash = md5;
|
outputHash = if sha256 =="" then md5 else sha256;
|
||||||
|
|
||||||
inherit url rev sshSupport openssh;
|
inherit url rev sshSupport openssh;
|
||||||
}
|
}
|
||||||
|
@ -1,11 +1,16 @@
|
|||||||
{stdenv, fetchurl}:
|
{stdenv, fetchsvn}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "ffmpeg-svn";
|
name = "ffmpeg-svn-2007-12-04";
|
||||||
src = fetchurl {
|
src = fetchsvn {
|
||||||
|
url = svn://svn.mplayerhq.hu/ffmpeg/trunk ;
|
||||||
|
rev = "11164";
|
||||||
|
sha256 = "95658455e466aeab5a302ddd6e7b2f79f620d4495012add46028a548e6c364b2";
|
||||||
|
};
|
||||||
|
/*fetchurl {
|
||||||
url = http://ffmpeg.mplayerhq.hu/ffmpeg-export-snapshot.tar.bz2;
|
url = http://ffmpeg.mplayerhq.hu/ffmpeg-export-snapshot.tar.bz2;
|
||||||
sha256 = "040a35f0c004323af14329c09ad3cff8d040e2cf9797d97cde3d9d83d02b4d87";
|
sha256 = "040a35f0c004323af14329c09ad3cff8d040e2cf9797d97cde3d9d83d02b4d87";
|
||||||
};
|
};*/
|
||||||
# !!! Hm, what are the legal consequences of --enable-gpl?
|
# !!! Hm, what are the legal consequences of --enable-gpl?
|
||||||
configureFlags = "--enable-shared --enable-pp --enable-gpl --disable-ffserver --disable-ffplay";
|
configureFlags = "--enable-shared --enable-pp --enable-gpl --disable-ffserver --disable-ffplay";
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
args:
|
args:
|
||||||
( args.mkDerivationByConfigruation {
|
( args.mkDerivationByConfiguration {
|
||||||
flagConfig = {
|
flagConfig = {
|
||||||
mandatory = { buildInputs = ["pkgconfig"];};
|
mandatory = { buildInputs = ["pkgconfig"];};
|
||||||
# are these options of interest? We'll see
|
# are these options of interest? We'll see
|
||||||
|
@ -204,7 +204,7 @@ rec {
|
|||||||
args: with args.lib; with args;
|
args: with args.lib; with args;
|
||||||
if ( builtins.isAttrs extraAttrs ) then builtins.throw "the argument extraAttrs needs to be a function beeing passed co, but attribute set passed "
|
if ( builtins.isAttrs extraAttrs ) then builtins.throw "the argument extraAttrs needs to be a function beeing passed co, but attribute set passed "
|
||||||
else
|
else
|
||||||
let co = chooseOptionsByFlags { inherit args flagConfig optionals defaults collectExtraPhaseActions; }; in
|
let co = lib_unstable.chooseOptionsByFlags { inherit args flagConfig optionals defaults collectExtraPhaseActions; }; in
|
||||||
args.stdenv.mkDerivation (
|
args.stdenv.mkDerivation (
|
||||||
{
|
{
|
||||||
inherit (co) configureFlags buildInputs /*flags*/;
|
inherit (co) configureFlags buildInputs /*flags*/;
|
||||||
@ -674,6 +674,14 @@ rec {
|
|||||||
zlibSupport = !stdenv ? isDietLibC;
|
zlibSupport = !stdenv ? isDietLibC;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*relfsFun = lib.sumArgs (selectVersion ../tools/misc/relfs) {
|
||||||
|
inherit fetchcvs stdenv ocaml postgresql fuse builderDefs;
|
||||||
|
};
|
||||||
|
|
||||||
|
relfs = relfsFun {
|
||||||
|
version = "cvs.2007.12.01";
|
||||||
|
} null;*/
|
||||||
|
|
||||||
replace = import ../tools/text/replace {
|
replace = import ../tools/text/replace {
|
||||||
inherit fetchurl stdenv;
|
inherit fetchurl stdenv;
|
||||||
};
|
};
|
||||||
@ -1740,7 +1748,7 @@ rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
ffmpeg_svn = import ../development/libraries/ffmpeg_svn_snapshot {
|
ffmpeg_svn = import ../development/libraries/ffmpeg_svn_snapshot {
|
||||||
inherit fetchurl stdenv;
|
inherit fetchsvn stdenv;
|
||||||
};
|
};
|
||||||
|
|
||||||
fftw = import ../development/libraries/fftw {
|
fftw = import ../development/libraries/fftw {
|
||||||
@ -2052,9 +2060,9 @@ rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
# commented out because it's using the new configuration style proposal which is unstable
|
# commented out because it's using the new configuration style proposal which is unstable
|
||||||
#libsamplerate = (import ../development/libraries/libsamplerate) {
|
libsamplerate = if builtins ? listToAttrs then (import ../development/libraries/libsamplerate) {
|
||||||
# inherit fetchurl stdenv mkDerivationByConfigruation pkgconfig lib;
|
inherit fetchurl stdenv mkDerivationByConfiguration pkgconfig lib;
|
||||||
#};
|
} else null;
|
||||||
|
|
||||||
libgsf = import ../development/libraries/libgsf {
|
libgsf = import ../development/libraries/libgsf {
|
||||||
inherit fetchurl stdenv perl perlXMLParser pkgconfig libxml2 gettext bzip2
|
inherit fetchurl stdenv perl perlXMLParser pkgconfig libxml2 gettext bzip2
|
||||||
@ -4260,9 +4268,9 @@ rec {
|
|||||||
} null;
|
} null;
|
||||||
|
|
||||||
# commented out because it's using the new configuration style proposal which is unstable
|
# commented out because it's using the new configuration style proposal which is unstable
|
||||||
/*
|
|
||||||
sox = import ../applications/misc/audio/sox {
|
sox = if builtins ? listToAttrs then import ../applications/misc/audio/sox {
|
||||||
inherit fetchurl stdenv lib mkDerivationByConfigruation;
|
inherit fetchurl stdenv lib mkDerivationByConfiguration;
|
||||||
# optional features
|
# optional features
|
||||||
inherit alsaLib; # libao
|
inherit alsaLib; # libao
|
||||||
inherit libsndfile libogg flac libmad lame libsamplerate;
|
inherit libsndfile libogg flac libmad lame libsamplerate;
|
||||||
@ -4271,8 +4279,8 @@ rec {
|
|||||||
# /tmp/nix-7957-1/sox-14.0.0/src/ffmpeg.c:130: undefined reference to `avcodec_decode_audio2
|
# /tmp/nix-7957-1/sox-14.0.0/src/ffmpeg.c:130: undefined reference to `avcodec_decode_audio2
|
||||||
# That's why I'v added ffmpeg_svn
|
# That's why I'v added ffmpeg_svn
|
||||||
ffmpeg = ffmpeg_svn;
|
ffmpeg = ffmpeg_svn;
|
||||||
};
|
} else null;
|
||||||
*/
|
|
||||||
|
|
||||||
spoofax = import ../applications/editors/eclipse/plugins/spoofax {
|
spoofax = import ../applications/editors/eclipse/plugins/spoofax {
|
||||||
inherit fetchurl stdenv;
|
inherit fetchurl stdenv;
|
||||||
|
@ -12,6 +12,7 @@ args: with args; with stringsWithDeps; with lib;
|
|||||||
else if (hasSuffixHack ".tar.gz" s) || (hasSuffixHack ".tgz" s) then "tgz"
|
else if (hasSuffixHack ".tar.gz" s) || (hasSuffixHack ".tgz" s) then "tgz"
|
||||||
else if (hasSuffixHack ".tar.bz2" s) || (hasSuffixHack ".tbz2" s) then "tbz2"
|
else if (hasSuffixHack ".tar.bz2" s) || (hasSuffixHack ".tbz2" s) then "tbz2"
|
||||||
else if (hasSuffixHack ".zip" s) || (hasSuffixHack ".ZIP" s) then "zip"
|
else if (hasSuffixHack ".zip" s) || (hasSuffixHack ".ZIP" s) then "zip"
|
||||||
|
else if (hasSuffixHack "-cvs-export" s) then "cvs-dir"
|
||||||
else (abort "unknown archive type : ${s}"));
|
else (abort "unknown archive type : ${s}"));
|
||||||
|
|
||||||
defAddToSearchPath = FullDepEntry ("
|
defAddToSearchPath = FullDepEntry ("
|
||||||
@ -175,6 +176,9 @@ args: with args; with stringsWithDeps; with lib;
|
|||||||
unzip '${s}'
|
unzip '${s}'
|
||||||
cd \"$( unzip -lqq '${s}' | tail -1 |
|
cd \"$( unzip -lqq '${s}' | tail -1 |
|
||||||
sed -e 's@^\\(\\s\\+[-0-9:]\\+\\)\\{3,3\\}\\s\\+\\([^/]\\+\\)/.*@\\2@' )\"
|
sed -e 's@^\\(\\s\\+[-0-9:]\\+\\)\\{3,3\\}\\s\\+\\([^/]\\+\\)/.*@\\2@' )\"
|
||||||
|
" else if (archiveType s) == "cvs-dir" then "
|
||||||
|
cp -r '${s}' .
|
||||||
|
cd \$(basename ${s})
|
||||||
" else (abort "unknown archive type : ${s}"))+
|
" else (abort "unknown archive type : ${s}"))+
|
||||||
(if args ? goSrcDir then args.goSrcDir else "")
|
(if args ? goSrcDir then args.goSrcDir else "")
|
||||||
) [minInit];
|
) [minInit];
|
||||||
|
Loading…
Reference in New Issue
Block a user