mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
Merge pull request #267667 from adamcstephens/leftwm/0.5.0
leftwm: 0.4.2 -> 0.5.1
This commit is contained in:
commit
0302e118e5
@ -1,4 +1,9 @@
|
||||
{ stdenv, lib, fetchFromGitHub, rustPlatform, libX11, libXinerama }:
|
||||
{ lib
|
||||
, fetchFromGitHub
|
||||
, rustPlatform
|
||||
, libX11
|
||||
, libXinerama
|
||||
}:
|
||||
|
||||
let
|
||||
rpathLibs = [ libXinerama libX11 ];
|
||||
@ -6,16 +11,16 @@ in
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "leftwm";
|
||||
version = "0.4.2";
|
||||
version = "0.5.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "leftwm";
|
||||
repo = "leftwm";
|
||||
rev = version;
|
||||
sha256 = "sha256-SjEp0gQHwq3Omhx/EPnyLeQJ50Ov0rHDxmYVWBwIDBs=";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-wn5DurPWFwSUtc5naEL4lBSQpKWTJkugpN9mKx+Ed2Y=";
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-kdGqnfzO+Ev9QeZcZqISPTehEXZzCWT5S8p6JbTBreE=";
|
||||
cargoHash = "sha256-TylRxdpAVuGtZ3Lm8je6FZ0JUwetBi6mOGRoT2M3Jyk=";
|
||||
|
||||
buildInputs = rpathLibs;
|
||||
|
||||
@ -23,16 +28,18 @@ rustPlatform.buildRustPackage rec {
|
||||
for p in $out/bin/left*; do
|
||||
patchelf --set-rpath "${lib.makeLibraryPath rpathLibs}" $p
|
||||
done
|
||||
|
||||
install -D -m 0555 leftwm/doc/leftwm.1 $out/share/man/man1/leftwm.1
|
||||
'';
|
||||
|
||||
dontPatchELF = true;
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "A tiling window manager for the adventurer";
|
||||
homepage = "https://github.com/leftwm/leftwm";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ yanganto ];
|
||||
changelog = "https://github.com/leftwm/leftwm/blob/${version}/CHANGELOG";
|
||||
license = lib.licenses.mit;
|
||||
platforms = lib.platforms.linux;
|
||||
maintainers = with lib.maintainers; [ yanganto ];
|
||||
changelog = "https://github.com/leftwm/leftwm/blob/${version}/CHANGELOG.md";
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user