mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-06 04:53:27 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
55 lines
1.4 KiB
Nix
55 lines
1.4 KiB
Nix
{ lib, stdenv, fetchFromGitHub, gccmakedep, libX11, libXext, libXpm, imake, installShellFiles, ... }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "mlvwm";
|
|
version = "0.9.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "morgant";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-ElKmi+ANuB3LPwZTMcr5HEMESjDwENbYnNIGdRP24d0=";
|
|
};
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
buildInputs = [ gccmakedep libX11 libXext libXpm imake ];
|
|
|
|
buildPhase = ''
|
|
(cd man && xmkmf)
|
|
(cd sample_rc && xmkmf)
|
|
(cd mlvwm && xmkmf)
|
|
xmkmf
|
|
make
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/{bin,etc}
|
|
cp mlvwm/mlvwm $out/bin
|
|
cp sample_rc/Mlvwmrc* $out/etc
|
|
runHook postInstall
|
|
'';
|
|
|
|
postInstall = ''
|
|
mv man/mlvwm.man man/mlvwm.1
|
|
installManPage man/mlvwm.1
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/morgant/mlvwm";
|
|
description = "Macintosh-like Virtual Window Manager";
|
|
license = licenses.mit;
|
|
longDescription = ''
|
|
MLVWM or Macintosh-Like Virtual Window Manager,
|
|
is an FVWM descendant created by Takashi Hasegawa
|
|
in 1997 while studying at Nagoya University and
|
|
was written entirely in the C programming language.
|
|
As its name implies, it attempts to emulate the
|
|
pre-Mac OS X Macintosh look and feel in its layout and window design.
|
|
'';
|
|
platforms = platforms.linux;
|
|
maintainers = [ maintainers.j0hax ];
|
|
mainProgram = "mlvwm";
|
|
};
|
|
}
|