nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchurl,
5 pkg-config,
6 freetype,
7 imlib2,
8 libSM,
9 libXcomposite,
10 libXdamage,
11 libXext,
12 libXfixes,
13 libXft,
14 libXinerama,
15 libXrandr,
16 libpulseaudio,
17 libsndfile,
18 pango,
19 perl,
20 python3,
21 gitUpdater,
22}:
23
24stdenv.mkDerivation rec {
25 pname = "e16";
26 version = "1.0.30";
27
28 src = fetchurl {
29 url = "mirror://sourceforge/enlightenment/e16-${version}.tar.xz";
30 hash = "sha256-JKBmBgC5cN4XO03r0NR78Ly9tpI733/sUEPL0GLU5B0=";
31 };
32
33 nativeBuildInputs = [
34 pkg-config
35 ];
36
37 buildInputs = [
38 freetype
39 imlib2
40 libSM
41 libXcomposite
42 libXdamage
43 libXext
44 libXfixes
45 libXft
46 libXinerama
47 libXrandr
48 libpulseaudio
49 libsndfile
50 pango
51 perl
52 python3
53 ];
54
55 postPatch = ''
56 substituteInPlace scripts/e_gen_menu --replace "/usr/local:" "/run/current-system/sw:/usr/local:"
57 substituteInPlace scripts/e_gen_menu --replace "'/opt'" "'/opt', '/run/current-system/sw'"
58 substituteInPlace scripts/e_gen_menu --replace "'/.local'" "'/.nix-profile', '/.local'"
59 '';
60
61 passthru.updateScript = gitUpdater {
62 url = "https://git.enlightenment.org/e16/e16";
63 rev-prefix = "v";
64 };
65
66 meta = with lib; {
67 homepage = "https://www.enlightenment.org/e16";
68 description = "Enlightenment DR16 window manager";
69 license = licenses.bsd2;
70 platforms = platforms.linux;
71 maintainers = [ maintainers.romildo ];
72 };
73}