Skip to content

Commit

Permalink
wtftw: init at 0.0pre20161001; patch mostly by @kcomplexes
Browse files Browse the repository at this point in the history
  • Loading branch information
7c6f434c committed Mar 19, 2017
1 parent 16fff5e commit 203e8fa
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
37 changes: 37 additions & 0 deletions pkgs/applications/window-managers/wtftw/default.nix
@@ -0,0 +1,37 @@
{ stdenv, fetchFromGitHub, rustPlatform, cargo, libXinerama, libX11, xlibs, pkgconfig }:

rustPlatform.buildRustPackage rec {
name = "wtftw-0.0pre20161001";
src = fetchFromGitHub {
owner = "kintaro";
repo = "wtftw";
rev = "b72a1bd24430a614d953d6ecf61732805277cc0c";
sha256 = "1ajxkncqh4azyhmsdyk07r1kbhwv81vl1ix3w4iaz8cyln4gs0kp";
};

depsSha256 = "0z7h8ybh2db3xl8qxbzby5lncdaijixzmbn1j8a45lbky1xiix71";

buildInputs = [ libXinerama libX11 pkgconfig ];
libPath = stdenv.lib.makeLibraryPath [ libXinerama libX11 ];

preInstall = ''
cargo update
'';

installPhase = ''
mkdir -p $out/bin
mkdir -p $out/share/xsessions
cp -p target/release/wtftw $out/bin/
echo "[Desktop Entry]
Name=wtftw
Exec=/bin/wtftw
Type=XSession
DesktopName=wtftw" > $out/share/xsessions/wtftw.desktop
'';

meta = with stdenv.lib; {
description = "A tiling window manager in Rust";
homepage = https://github.com/Kintaro/wtftw;
license = stdenv.lib.licenses.bsd3;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -16030,6 +16030,8 @@ with pkgs;
);
};

wtftw = callPackage ../applications/window-managers/wtftw {};

wxhexeditor = callPackage ../applications/editors/wxhexeditor { };

wxcam = callPackage ../applications/video/wxcam {
Expand Down

0 comments on commit 203e8fa

Please sign in to comment.