mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 21:33:03 +03:00
intltool: refactor
This commit is contained in:
parent
142b48688c
commit
4b07d16827
@ -1,33 +1,21 @@
|
|||||||
{ stdenv, fetchurl, perl, perlXMLParser, gettext }:
|
{ stdenv, fetchurl, gettext, perl, perlXMLParser }:
|
||||||
let
|
|
||||||
s = # Generated upstream information
|
stdenv.mkDerivation rec {
|
||||||
rec {
|
name = "intltool-${version}";
|
||||||
baseName="intltool";
|
version = "0.51.0";
|
||||||
version="0.51.0";
|
|
||||||
name="${baseName}-${version}";
|
|
||||||
hash="1karx4sb7bnm2j67q0q74hspkfn6lqprpy5r99vkn5bb36a4viv7";
|
|
||||||
url="https://launchpad.net/intltool/trunk/0.51.0/+download/intltool-0.51.0.tar.gz";
|
|
||||||
sha256="1karx4sb7bnm2j67q0q74hspkfn6lqprpy5r99vkn5bb36a4viv7";
|
|
||||||
};
|
|
||||||
propagatedBuildInputs = [perl perlXMLParser];
|
|
||||||
buildInputs = [];
|
|
||||||
in
|
|
||||||
stdenv.mkDerivation {
|
|
||||||
inherit (s) name version;
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
inherit (s) url sha256;
|
url = "https://launchpad.net/intltool/trunk/${version}/+download/${name}.tar.gz";
|
||||||
|
sha256 = "1karx4sb7bnm2j67q0q74hspkfn6lqprpy5r99vkn5bb36a4viv7";
|
||||||
};
|
};
|
||||||
inherit buildInputs;
|
|
||||||
|
|
||||||
# not needed by intltool itself but (probably) needed for its usage
|
propagatedBuildInputs = [ gettext perl perlXMLParser ];
|
||||||
propagatedBuildInputs = propagatedBuildInputs ++ [ gettext ];
|
|
||||||
|
|
||||||
meta = {
|
meta = with stdenv.lib; {
|
||||||
description = "Translation helper tool";
|
description = "Translation helper tool";
|
||||||
homepage = "http://launchpad.net/intltool/";
|
homepage = http://launchpad.net/intltool/;
|
||||||
license = stdenv.lib.licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
maintainers = [stdenv.lib.maintainers.raskin];
|
maintainers = with maintainers; [ raskin ];
|
||||||
platforms = stdenv.lib.platforms.unix;
|
platforms = platforms.unix;
|
||||||
inherit (s) version;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
attribute_name intltool
|
|
||||||
url https://launchpad.net/intltool/+download
|
|
Loading…
Reference in New Issue
Block a user