nixpkgs/pkgs/by-name/wm/wmfs/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
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.
2024-11-09 20:04:51 +08:00

51 lines
1.3 KiB
Nix

{ lib, stdenv, fetchFromGitHub, fetchpatch,
libX11, libXinerama, libXrandr, libXpm, libXft, imlib2 }:
stdenv.mkDerivation {
pname = "wmfs";
version = "201902";
src = fetchFromGitHub {
owner = "xorg62";
repo = "wmfs";
sha256 = "1m7dsmmlhq2qipim659cp9aqlriz1cwrrgspl8baa5pncln0gd5c";
rev = "b7b8ff812d28c79cb22a73db2739989996fdc6c2";
};
patches = [
# Pull patch pending upstream inclusion to fix build on
# -fno-common toolchain like upstream gcc-10:
# https://github.com/xorg62/wmfs/pull/104
(fetchpatch {
name = "fno-common.patch";
url = "https://github.com/xorg62/wmfs/commit/e4ec12618f4689d791892ebb49df9610a25d24d3.patch";
sha256 = "0qvwry9sikvr85anzha9x4gcx0r2ckwdxqw2in2l6bl9z9d9c0w2";
})
];
buildInputs = [
imlib2
libX11
libXinerama
libXrandr
libXpm
libXft
];
preConfigure = "substituteInPlace configure --replace '-lxft' '-lXft'";
makeFlags = [
"PREFIX=${placeholder "out"}"
"XDG_CONFIG_DIR=${placeholder "out"}/etc/xdg"
"MANPREFIX=${placeholder "out"}/share/man"
];
meta = with lib; {
description = "Window manager from scratch";
license = licenses.bsd2;
maintainers = [ maintainers.balsoft ];
platforms = platforms.linux;
mainProgram = "wmfs";
};
}