2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, libXinerama, libX11, pkgconfig }:
|
2017-03-19 00:08:11 +00:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
rustPlatform.buildRustPackage {
|
2017-10-02 23:22:00 +01:00
|
|
|
name = "wtftw-0.0pre20170921";
|
2017-03-19 00:08:11 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kintaro";
|
|
|
|
repo = "wtftw";
|
2017-10-02 23:22:00 +01:00
|
|
|
rev = "13712d4c051938520b90b6639d4ff813f6fe5f48";
|
|
|
|
sha256 = "1r74nhcwiy2rmifzjhdal3jcqz4jz48nfvhdyw4gasa6nxp3msdl";
|
2017-03-19 00:08:11 +00:00
|
|
|
};
|
|
|
|
|
2019-05-25 12:03:08 +01:00
|
|
|
cargoSha256 = "18lb24k71sndklbwwhbv8jglj2d4y9mdk07l60wsvn5m2jbnpckk";
|
2017-03-19 00:08:11 +00:00
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ libXinerama libX11 ];
|
2017-03-19 00:08:11 +00:00
|
|
|
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
|
2017-10-02 23:22:00 +01:00
|
|
|
Exec=$out/bin/wtftw
|
2017-03-19 00:08:11 +00:00
|
|
|
Type=XSession
|
|
|
|
DesktopName=wtftw" > $out/share/xsessions/wtftw.desktop
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2017-08-05 15:38:48 +01:00
|
|
|
broken = true;
|
2017-03-19 00:08:11 +00:00
|
|
|
description = "A tiling window manager in Rust";
|
|
|
|
homepage = https://github.com/Kintaro/wtftw;
|
|
|
|
license = stdenv.lib.licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|