@@ -1,59 +0,0 @@
1−{ lib, stdenv, fetchFromGitHub, pkgconfig, makeWrapper, newScope
2−, libxkbcommon
3−, wayland, pixman, fontconfig
4−, stConf ? null, stPatches ? []
5−}:
6−
7−let
8− callPackage = newScope self;
9− self = {
10− swc = callPackage ./swc.nix {};
11− wld = callPackage ./wld.nix {};
12− dmenu-velox = callPackage ./dmenu.nix {};
13− st-velox = callPackage ./st.nix {
14− conf = stConf;
15− patches = stPatches;
16− };
17− };
18−in with self; stdenv.mkDerivation rec {
19− name = "velox-${version}";
20− version = "git-2017-07-04";
21−
22− src = fetchFromGitHub {
23− owner = "michaelforney";
24− repo = "velox";
25− rev = "0b1d3d62861653d92d0a1056855a84fcef661bc0";
26− sha256 = "0p5ra5p5w21wl696rmv0vdnl7jnri5iwnxfs6nl6miwydhq2dmci";
27− };
28−
29− nativeBuildInputs = [ pkgconfig makeWrapper ];
30−
31− buildInputs = [ swc libxkbcommon wld wayland pixman fontconfig ];
32−
33− propagatedUserEnvPkgs = [ swc ];
34−
35− makeFlags = "PREFIX=$(out)";
36− preBuild = ''
37− substituteInPlace config.c \
38− --replace /etc/velox.conf $out/etc/velox.conf
39− '';
40− installPhase = ''
41− PREFIX=$out make install
42− mkdir -p $out/etc
43− cp velox.conf.sample $out/etc/velox.conf
44− '';
45− postFixup = ''
46− wrapProgram $out/bin/velox \
47− --prefix PATH : "${stdenv.lib.makeBinPath [ dmenu-velox st-velox ]}"
48− '';
49−
50− enableParallelBuilding = false; # https://hydra.nixos.org/build/79799608
51−
52− meta = {
53− description = "velox window manager";
54− homepage = "https://github.com/michaelforney/velox";
55− license = lib.licenses.mit;
56− platforms = lib.platforms.linux;
57− maintainers = with lib.maintainers; [ ];
58− };
59−}