summary refs log tree commit diff
path: root/pkgs/applications
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2009-02-09 16:51:03 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2009-02-09 16:51:03 +0000
commit599015e8b071bc8d38779fbfc37961db1ac0f464 (patch)
tree12cfb8ef316f4021ef81d135a5c331804a817809 /pkgs/applications
parenteebb6f106c445c5661975a60a55b07ad91c6fa47 (diff)
downloadnixpkgs-599015e8b071bc8d38779fbfc37961db1ac0f464.tar
nixpkgs-599015e8b071bc8d38779fbfc37961db1ac0f464.tar.gz
nixpkgs-599015e8b071bc8d38779fbfc37961db1ac0f464.tar.bz2
nixpkgs-599015e8b071bc8d38779fbfc37961db1ac0f464.tar.lz
nixpkgs-599015e8b071bc8d38779fbfc37961db1ac0f464.tar.xz
nixpkgs-599015e8b071bc8d38779fbfc37961db1ac0f464.tar.zst
nixpkgs-599015e8b071bc8d38779fbfc37961db1ac0f464.zip
* Split lib/default.nix into several files, as it had become a big
  mess.  Also cleaned up some functions:

  - foldl appeared broken (it recursively called fold).
  - Renamed logicalAND/logicalOR to and/or.
  - Removed listOfListsToAttrs, eqStrings: obsolete.
  - Removed isInList, which does the same thing as elem.
  - stringToCharacters: don't return a "" at the end of the list.
  - Renamed concatList to concat, as concatList (singular) is a
    misnomer: it takes two lists.  Likewise, renamed mergeAttr to
    mergeAttrs.

  misc.nix still contains a lot of stuff that should be refactored and
  moved to other files.

svn path=/nixpkgs/trunk/; revision=14013
Diffstat (limited to 'pkgs/applications')
-rw-r--r--pkgs/applications/audio/flac/default.nix35
1 files changed, 16 insertions, 19 deletions
diff --git a/pkgs/applications/audio/flac/default.nix b/pkgs/applications/audio/flac/default.nix
index 6095e59fa07..ad9d3356cda 100644
--- a/pkgs/applications/audio/flac/default.nix
+++ b/pkgs/applications/audio/flac/default.nix
@@ -1,19 +1,16 @@
-args: with args;
-let
-	flacFun = version: hash:
-	stdenv.mkDerivation rec {
-		name = "flac-${version}";
-		src = fetchurl ({
-			url = "http://downloads.xiph.org/releases/flac/${name}.tar.gz";
-		} // hash);
-		buildInputs = [libogg];
-    meta = {
-      homepage = http://flac.sourceforge.net;
-    };
-	};
-in
-stdenv.lib.listOfListsToAttrs [
-	[ "default" (flacFun "1.2.1" { sha256 = "1pry5lgzfg57pga1zbazzdd55fkgk3v5qy4axvrbny5lrr5s8dcn"; }) ]
-	[ "1.2.1" (flacFun "1.2.1" { sha256 = "1pry5lgzfg57pga1zbazzdd55fkgk3v5qy4axvrbny5lrr5s8dcn"; }) ]
-	[ "1.1.2" (flacFun "1.1.2" { md5 = "2bfc127cdda02834d0491ab531a20960"; }) ]
-]
+{stdenv, fetchurl, libogg}:
+
+stdenv.mkDerivation rec {
+  name = "flac-1.2.1";
+  
+  src = fetchurl {
+    url = mirror://sourceforge/flac/flac-1.2.1.tar.gz;
+    sha256 = "1pry5lgzfg57pga1zbazzdd55fkgk3v5qy4axvrbny5lrr5s8dcn";
+  };
+
+  buildInputs = [libogg];
+  
+  meta = {
+    homepage = http://flac.sourceforge.net;
+  };
+}