about summary refs log tree commit diff
path: root/pkgs/by-name/fv
diff options
context:
space:
mode:
authorAnderson Torres <torres.anderson.85@protonmail.com>2024-03-31 16:02:08 -0300
committerAnderson Torres <torres.anderson.85@protonmail.com>2024-03-31 16:02:08 -0300
commit77a820e18a5c4739fd93b85bea8c5d0d26dde94a (patch)
tree0fd5beedf5c89670be0b424ffcdfaaae40e1409c /pkgs/by-name/fv
parent35a3c22cf05dbdfedad8b4f5ce263f1f2e0694e1 (diff)
fvwm2: migrate to by-name
Diffstat (limited to 'pkgs/by-name/fv')
-rw-r--r--pkgs/by-name/fv/fvwm2/package.nix82
1 files changed, 82 insertions, 0 deletions
diff --git a/pkgs/by-name/fv/fvwm2/package.nix b/pkgs/by-name/fv/fvwm2/package.nix
new file mode 100644
index 0000000000000..e771a170c4894
--- /dev/null
+++ b/pkgs/by-name/fv/fvwm2/package.nix
@@ -0,0 +1,82 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+, autoreconfHook
+, cairo
+, fontconfig
+, freetype
+, fribidi
+, libXcursor
+, libXft
+, libXinerama
+, libXpm
+, libXt
+, libpng
+, librsvg
+, libstroke
+, libxslt
+, perl
+, pkg-config
+, python3Packages
+, readline
+, enableGestures ? false
+}:
+
+stdenv.mkDerivation rec {
+  pname = "fvwm";
+  version = "2.7.0";
+
+  src = fetchFromGitHub {
+    owner = "fvwmorg";
+    repo = pname;
+    rev = version;
+    hash = "sha256-KcuX8las1n8UUE/BOHj7WOeZjva5hxgpFHtATMUk3bg=";
+  };
+
+  nativeBuildInputs = [
+    autoreconfHook
+    pkg-config
+    python3Packages.wrapPython
+  ];
+
+  buildInputs = [
+    cairo
+    fontconfig
+    freetype
+    fribidi
+    libXcursor
+    libXft
+    libXinerama
+    libXpm
+    libXt
+    libpng
+    librsvg
+    libxslt
+    perl
+    python3Packages.python
+    readline
+  ] ++ lib.optional enableGestures libstroke;
+
+  pythonPath = [
+    python3Packages.pyxdg
+  ];
+
+  configureFlags = [
+    "--enable-mandoc"
+    "--disable-htmldoc"
+  ];
+
+  postFixup = ''
+    wrapPythonPrograms
+  '';
+
+  enableParallelBuilding = true;
+
+  meta = with lib; {
+    homepage = "http://fvwm.org";
+    description = "A multiple large virtual desktop window manager";
+    license = licenses.gpl2Plus;
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ edanaher ];
+  };
+}