polkit-qt-1: use kdePackage

svn path=/nixpkgs/trunk/; revision=23010
This commit is contained in:
Yury G. Kudryashov 2010-08-06 20:22:22 +00:00
parent 98c5daffeb
commit ede16e5dc5
2 changed files with 10 additions and 12 deletions

View File

@ -1,11 +1,11 @@
{ stdenv, fetchurl }:
{ pn, v, stable ? true, sha256 }: args:
{ pn, v, stable ? true, sha256, subdir ? null }: args:
stdenv.mkDerivation ({
name = "${pn}-${v}";
src = fetchurl {
url = "mirror://kde/" + (if stable then "" else "un")
+ "stable/${v}/src/${pn}-${v}.tar.bz2";
url = "mirror://kde/" + (if stable then "" else "un") + "stable/" +
(if subdir == null then "${v}/src" else subdir) + "/${pn}-${v}.tar.bz2";
inherit sha256;
};
meta = {

View File

@ -1,13 +1,11 @@
{ stdenv, fetchurl, cmake, qt4, pkgconfig, polkit, automoc4, glib }:
stdenv.mkDerivation rec {
name = "polkit-qt-1-0.96.1";
src = fetchurl {
url = "mirror://kde/stable/apps/KDE4.x/admin/${name}.tar.bz2";
sha256 = "1ng5bi1gmr5lg49c5kyqyjzbjhs4w90c2zlnfcyviv9p3wzfgzbr";
};
{ kdePackage, cmake, qt4, pkgconfig, polkit, automoc4, glib }:
kdePackage {
pn = "polkit-qt-1";
v = "0.96.1";
subdir = "apps/KDE4.x/admin";
sha256 = "1ng5bi1gmr5lg49c5kyqyjzbjhs4w90c2zlnfcyviv9p3wzfgzbr";
} {
buildInputs = [ cmake qt4 automoc4 ];
propagatedBuildInputs = [ polkit glib ];
}