Skip to content

Commit

Permalink
treewide: fix assorted issues revealed by the meta checker
Browse files Browse the repository at this point in the history
Turns out a couple of the licenses were wrong, as well as being strings.
  • Loading branch information
copumpkin committed Apr 29, 2017
1 parent 76137a8 commit 1a4ca22
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pkgs/development/libraries/libxml2/default.nix
Expand Up @@ -70,7 +70,7 @@ in stdenv.mkDerivation rec {
meta = {
homepage = http://xmlsoft.org/;
description = "An XML parsing library for C";
license = "bsd";
license = lib.licenses.mit;
platforms = lib.platforms.unix;
maintainers = [ lib.maintainers.eelco ];
};
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/libraries/libxslt/default.nix
Expand Up @@ -48,7 +48,7 @@ stdenv.mkDerivation rec {
meta = with stdenv.lib; {
homepage = http://xmlsoft.org/XSLT/;
description = "A C library and tools to do XSL transformations";
license = "bsd";
license = licenses.mit;
platforms = platforms.unix;
maintainers = [ maintainers.eelco ];
};
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/tools/misc/binutils/default.nix
Expand Up @@ -95,6 +95,6 @@ stdenv.mkDerivation rec {

/* Give binutils a lower priority than gcc-wrapper to prevent a
collision due to the ld/as wrappers/symlinks in the latter. */
priority = "10";
priority = 10;
};
}
8 changes: 6 additions & 2 deletions pkgs/stdenv/generic/default.nix
Expand Up @@ -205,14 +205,14 @@ let
'' + ((builtins.getAttr reason remediation) attrs));

metaTypes = with lib.types; {
metaTypes = with lib.types; rec {
# These keys are documented
description = str;
longDescription = str;
branch = str;
homepage = str;
downloadPage = str;
license = either (listOf lib.types.attrs) lib.types.attrs;
license = either (listOf lib.types.attrs) (either lib.types.attrs str);
maintainers = listOf str;
priority = int;
platforms = listOf str;
Expand All @@ -223,6 +223,10 @@ let
version = str;
updateWalker = bool;
executables = listOf str;
outputsToInstall = listOf str;
position = str;
repositories = attrsOf str;
isBuildPythonPackage = platforms;
};

checkMetaAttr = k: v:
Expand Down

0 comments on commit 1a4ca22

Please sign in to comment.