2019-05-23 17:08:30 +02:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, libX11, libXinerama, makeWrapper }:
|
|
|
|
|
|
|
|
let
|
|
|
|
rpath = stdenv.lib.makeLibraryPath [ libXinerama libX11 ];
|
|
|
|
in
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "leftwm";
|
2019-09-28 06:48:22 +02:00
|
|
|
version = "0.1.10";
|
2019-05-23 17:08:30 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "leftwm";
|
|
|
|
repo = "leftwm";
|
2019-09-09 01:38:31 +02:00
|
|
|
rev = version;
|
2019-09-28 06:48:22 +02:00
|
|
|
sha256 = "190lc48clkh9vzlsfg2a70w405k7xyyw7avnxwna1glfwmbyy2ag";
|
2019-05-23 17:08:30 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ makeWrapper libX11 libXinerama ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/leftwm --prefix LD_LIBRARY_PATH : "${rpath}"
|
|
|
|
wrapProgram $out/bin/leftwm-state --prefix LD_LIBRARY_PATH : "${rpath}"
|
|
|
|
wrapProgram $out/bin/leftwm-worker --prefix LD_LIBRARY_PATH : "${rpath}"
|
|
|
|
'';
|
|
|
|
|
2020-02-14 03:00:26 +01:00
|
|
|
# Delete this on next update; see #79975 for details
|
|
|
|
legacyCargoFetcher = true;
|
|
|
|
|
2019-05-23 17:08:30 +02:00
|
|
|
cargoSha256 = "0mpvfix7bvc84vanha474l4gaq97ac1zy5l77z83m9jg0246yxd6";
|
|
|
|
|
2019-09-28 06:48:22 +02:00
|
|
|
# patch wrong version in Cargo.lock
|
2019-05-23 17:08:30 +02:00
|
|
|
cargoPatches = [ ./cargo-lock.patch ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Leftwm - A tiling window manager for the adventurer";
|
|
|
|
homepage = https://github.com/leftwm/leftwm;
|
|
|
|
license = stdenv.lib.licenses.mit;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ mschneider ];
|
|
|
|
};
|
|
|
|
}
|