2022-05-29 11:37:28 +02:00
|
|
|
{ stdenv, lib, fetchFromGitHub, rustPlatform, libX11, libXinerama }:
|
2019-05-23 17:08:30 +02:00
|
|
|
|
2020-03-09 22:43:48 +01:00
|
|
|
let
|
2021-07-10 10:24:32 +02:00
|
|
|
rpathLibs = [ libXinerama libX11 ];
|
2019-05-23 17:08:30 +02:00
|
|
|
in
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2020-03-09 22:43:48 +01:00
|
|
|
pname = "leftwm";
|
2022-10-07 21:55:49 +02:00
|
|
|
version = "0.4.0";
|
2020-03-09 22:43:48 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "leftwm";
|
|
|
|
repo = "leftwm";
|
|
|
|
rev = version;
|
2022-10-07 21:55:49 +02:00
|
|
|
sha256 = "sha256-4f9YOVkOXn7+TzTUZS2Lultgj9WhiOPUa/fHUeyLBUU=";
|
2020-03-09 22:43:48 +01:00
|
|
|
};
|
|
|
|
|
2022-10-07 21:55:49 +02:00
|
|
|
cargoSha256 = "sha256-D00IFTELRlqeKQ7zheJKTvu5FBgYQXsZ+OnPnVzweC4=";
|
2020-03-09 22:43:48 +01:00
|
|
|
|
2021-07-10 10:24:32 +02:00
|
|
|
buildInputs = rpathLibs;
|
2020-03-09 22:43:48 +01:00
|
|
|
|
|
|
|
postInstall = ''
|
2021-07-10 10:24:32 +02:00
|
|
|
for p in $out/bin/leftwm*; do
|
|
|
|
patchelf --set-rpath "${lib.makeLibraryPath rpathLibs}" $p
|
|
|
|
done
|
2020-03-09 22:43:48 +01:00
|
|
|
'';
|
|
|
|
|
2021-07-10 10:24:32 +02:00
|
|
|
dontPatchELF = true;
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2022-05-29 11:37:28 +02:00
|
|
|
broken = (stdenv.isLinux && stdenv.isAarch64);
|
2020-10-26 05:08:40 +01:00
|
|
|
description = "A tiling window manager for the adventurer";
|
2020-03-09 22:43:48 +01:00
|
|
|
homepage = "https://github.com/leftwm/leftwm";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
2022-06-23 01:26:18 +02:00
|
|
|
maintainers = with maintainers; [ ];
|
2021-02-07 23:07:21 +01:00
|
|
|
changelog = "https://github.com/leftwm/leftwm/blob/${version}/CHANGELOG";
|
2020-03-09 22:43:48 +01:00
|
|
|
};
|
2019-05-23 17:08:30 +02:00
|
|
|
}
|