mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
26 lines
508 B
Nix
26 lines
508 B
Nix
|
{ stdenv, lib, debug, srcs }:
|
||
|
|
||
|
args:
|
||
|
|
||
|
let
|
||
|
inherit (args) name;
|
||
|
sname = args.sname or name;
|
||
|
inherit (srcs."${sname}") src version;
|
||
|
in
|
||
|
stdenv.mkDerivation (args // {
|
||
|
name = "${name}-${version}";
|
||
|
inherit src;
|
||
|
|
||
|
outputs = args.outputs or [ "dev" "out" ];
|
||
|
|
||
|
cmakeFlags =
|
||
|
(args.cmakeFlags or [])
|
||
|
++ [ "-DBUILD_TESTING=OFF" ]
|
||
|
++ lib.optional debug "-DCMAKE_BUILD_TYPE=Debug";
|
||
|
|
||
|
meta = {
|
||
|
platforms = lib.platforms.linux;
|
||
|
homepage = "http://www.kde.org";
|
||
|
} // (args.meta or {});
|
||
|
})
|