about summary refs log tree commit diff
path: root/pkgs/development/tools/misc/awf/default.nix
blob: 79d630d5688b53359ee31770404115c28364a735 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ lib, stdenv, fetchFromGitHub, autoreconfHook, gtk2, gtk3, pkg-config
, wrapGAppsHook3 }:

stdenv.mkDerivation rec {
  pname = "awf";
  version = "1.4.0";

  src = fetchFromGitHub {
    owner = "valr";
    repo = "awf";
    rev = "v${version}";
    sha256 = "0jl2kxwpvf2n8974zzyp69mqhsbjnjcqm39y0jvijvjb1iy8iman";
  };

  nativeBuildInputs = [ autoreconfHook pkg-config wrapGAppsHook3 ];

  buildInputs = [ gtk2 gtk3 ];

  autoreconfPhase = ''
    patchShebangs ./autogen.sh
    ./autogen.sh
  '';

  meta = with lib; {
    description = "A Widget Factory";
    longDescription = ''
      A widget factory is a theme preview application for gtk2 and
      gtk3. It displays the various widget types provided by gtk2/gtk3
      in a single window allowing to see the visual effect of the
      applied theme.
    '';
    homepage = "https://github.com/valr/awf";
    license = licenses.gpl3;
    platforms = platforms.all;
    maintainers = with maintainers; [ michalrus ];
  };
}