nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 gccmakedep,
6 libX11,
7 libXext,
8 libXpm,
9 imake,
10 installShellFiles,
11 ...
12}:
13
14stdenv.mkDerivation rec {
15 pname = "mlvwm";
16 version = "0.9.4";
17
18 src = fetchFromGitHub {
19 owner = "morgant";
20 repo = "mlvwm";
21 rev = version;
22 sha256 = "sha256-ElKmi+ANuB3LPwZTMcr5HEMESjDwENbYnNIGdRP24d0=";
23 };
24
25 nativeBuildInputs = [ installShellFiles ];
26
27 buildInputs = [
28 gccmakedep
29 libX11
30 libXext
31 libXpm
32 imake
33 ];
34
35 buildPhase = ''
36 (cd man && xmkmf)
37 (cd sample_rc && xmkmf)
38 (cd mlvwm && xmkmf)
39 xmkmf
40 make
41 '';
42
43 installPhase = ''
44 mkdir -p $out/{bin,etc}
45 cp mlvwm/mlvwm $out/bin
46 cp sample_rc/Mlvwmrc* $out/etc
47 runHook postInstall
48 '';
49
50 postInstall = ''
51 mv man/mlvwm.man man/mlvwm.1
52 installManPage man/mlvwm.1
53 '';
54
55 meta = with lib; {
56 homepage = "https://github.com/morgant/mlvwm";
57 description = "Macintosh-like Virtual Window Manager";
58 license = licenses.mit;
59 longDescription = ''
60 MLVWM or Macintosh-Like Virtual Window Manager,
61 is an FVWM descendant created by Takashi Hasegawa
62 in 1997 while studying at Nagoya University and
63 was written entirely in the C programming language.
64 As its name implies, it attempts to emulate the
65 pre-Mac OS X Macintosh look and feel in its layout and window design.
66 '';
67 platforms = platforms.linux;
68 maintainers = [ maintainers.j0hax ];
69 mainProgram = "mlvwm";
70 };
71}