2017-06-02 17:49:32 +02:00
|
|
|
{ mkDerivation, lib, srcs }:
|
2016-04-21 18:00:51 +02:00
|
|
|
|
|
|
|
args:
|
|
|
|
|
|
|
|
let
|
|
|
|
inherit (args) name;
|
|
|
|
sname = args.sname or name;
|
|
|
|
inherit (srcs."${sname}") src version;
|
|
|
|
in
|
2017-06-02 17:49:32 +02:00
|
|
|
mkDerivation (args // {
|
2016-04-21 18:00:51 +02:00
|
|
|
name = "${name}-${version}";
|
|
|
|
inherit src;
|
|
|
|
|
2017-05-19 03:08:10 +02:00
|
|
|
outputs = args.outputs or [ "out" "dev" ];
|
|
|
|
|
2016-04-21 18:00:51 +02:00
|
|
|
meta = {
|
|
|
|
platforms = lib.platforms.linux;
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = http://www.kde.org;
|
2016-04-21 18:00:51 +02:00
|
|
|
} // (args.meta or {});
|
|
|
|
})
|