about summary refs log tree commit diff
path: root/pkgs/development/libraries/kde-frameworks/build-support/framework.nix
blob: 04832cf5608bf9d46a55a7c4f75167138c4ab33f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ mkDerivation, lib, fetchurl }:

let
  mirror = "mirror://kde";
  srcs = import ../srcs.nix { inherit fetchurl mirror; };
in

args:

let
  inherit (args) name;
  inherit (srcs."${name}") src version;
in mkDerivation (args // {
  name = "${name}-${version}";
  inherit src;

  meta = {
    license = with lib.licenses; [
      lgpl21Plus lgpl3Plus bsd2 mit gpl2Plus gpl3Plus fdl12
    ];
    platforms = lib.platforms.linux;
    homepage = "http://www.kde.org";
  } // (args.meta or {});
})