Merge pull request #41732 from Infinisil/overrideDerivation

some overrideDerivation cleanups
This commit is contained in:
Matthew Justin Bauer
2018-06-22 20:07:48 -04:00
committed by GitHub
4 changed files with 12 additions and 22 deletions

View File

@@ -7,10 +7,8 @@ rec {
version = "2.0.5";
isStable = true;
sha256 = "0yg9q4q6v028bgh85317ykc9whgxgysp76qzaqgq55y6jy11yjw7";
} // {
# 64-bit ARM isn't supported upstream
meta = meta // {
platforms = lib.filter (p: p != "aarch64-linux") meta.platforms;
meta = genericMeta // {
platforms = lib.filter (p: p != "aarch64-linux") genericMeta.platforms;
};
};
@@ -20,13 +18,12 @@ rec {
sha256 = "1hyrhpkwjqsv54hnnx4cl8vk44h9d6c9w0fz1jfjz00w255y7lhs";
};
meta = with stdenv.lib; {
genericMeta = with stdenv.lib; {
description = "High-performance JIT compiler for Lua 5.1";
homepage = http://luajit.org;
license = licenses.mit;
platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers ; [ thoughtpolice smironov vcunat andir ];
maintainers = with maintainers; [ thoughtpolice smironov vcunat andir ];
};
generic =
@@ -37,6 +34,7 @@ rec {
url = "http://luajit.org/download/LuaJIT-${version}.tar.gz";
inherit sha256;
})
, meta ? genericMeta
}:
stdenv.mkDerivation rec {

View File

@@ -1,7 +1,7 @@
{ stdenv, fetchurl, collectd }:
with stdenv.lib;
overrideDerivation collectd (oldAttrs: {
collectd.overrideAttrs (oldAttrs: {
name = "libcollectdclient-${collectd.version}";
buildInputs = [ ];
@@ -16,7 +16,6 @@ overrideDerivation collectd (oldAttrs: {
postInstall = "rm -rf $out/{bin,etc,sbin,share}";
}) // {
meta = with stdenv.lib; {
description = "C Library for collectd, a daemon which collects system performance statistics periodically";
homepage = http://collectd.org;
@@ -24,4 +23,4 @@ overrideDerivation collectd (oldAttrs: {
platforms = platforms.linux; # TODO: collectd may be linux but the C client may be more portable?
maintainers = [ maintainers.sheenobu maintainers.bjornfor ];
};
}
})