nixpkgs-suyu/pkgs/applications/kde/build-support/application.nix
2017-06-18 08:44:43 -05:00

20 lines
369 B
Nix

{ mkDerivation, lib, srcs }:
args:
let
inherit (args) name;
sname = args.sname or name;
inherit (srcs."${sname}") src version;
in
mkDerivation (args // {
name = "${name}-${version}";
inherit src;
outputs = args.outputs or [ "out" "dev" ];
meta = {
platforms = lib.platforms.linux;
homepage = "http://www.kde.org";
} // (args.meta or {});
})