diff options
author | Nick Hu <me@nickhu.co.uk> | 2020-05-24 16:25:38 +0100 |
---|---|---|
committer | Nick Hu <me@nickhu.co.uk> | 2020-05-24 16:33:23 +0100 |
commit | 628c8ddc909e19b64a52c6f6e7a84ba7680217c8 (patch) | |
tree | 4cc9242d6e27df0d485dedfe4b83d6bc84ddb019 /pkgs/development/libraries/libayatana-indicator | |
parent | f35be99c66165cd84e60865d5bc46bf708b29069 (diff) |
libayatana-indicator: init at 0.6.3
Diffstat (limited to 'pkgs/development/libraries/libayatana-indicator')
-rw-r--r-- | pkgs/development/libraries/libayatana-indicator/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libayatana-indicator/default.nix b/pkgs/development/libraries/libayatana-indicator/default.nix new file mode 100644 index 0000000000000..778e06aa95cea --- /dev/null +++ b/pkgs/development/libraries/libayatana-indicator/default.nix @@ -0,0 +1,36 @@ +{ stdenv, fetchFromGitHub, lib +, pkgconfig, autoreconfHook +, gtkVersion ? "3" +, gtk2 +, gtk3 +, ayatana-ido +}: + +stdenv.mkDerivation rec { + pname = "libayatana-indicator-gtk${gtkVersion}"; + version = "0.6.3"; + + src = fetchFromGitHub { + owner = "AyatanaIndicators"; + repo = "libayatana-indicator"; + rev = version; + sha256 = "1q9wmaw6pckwyrv0s7wkqzm1yrk031pbz4xbr8cwn75ixqyfcb28"; + }; + + nativeBuildInputs = [ pkgconfig autoreconfHook ]; + + buildInputs = [ ayatana-ido ] + ++ lib.lists.optionals (gtkVersion == "2") [ gtk2 ] + ++ lib.lists.optionals (gtkVersion == "3") [ gtk3 ]; + + configureFlags = [ "--with-gtk=${gtkVersion}" ]; + + meta = with stdenv.lib; { + description = "Ayatana Indicators Shared Library"; + homepage = "https://github.com/AyatanaIndicators/libayatana-indicator"; + changelog = "https://github.com/AyatanaIndicators/libayatana-indicator/blob/${version}/ChangeLog"; + license = licenses.gpl3; + maintainers = [ maintainers.nickhu ]; + platforms = platforms.x86_64; + }; +} |