uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
64
pkgs/tools/wayland/wlogout/default.nix
Normal file
64
pkgs/tools/wayland/wlogout/default.nix
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, pkg-config
|
||||
, meson
|
||||
, ninja
|
||||
, scdoc
|
||||
, gtk3
|
||||
, libxkbcommon
|
||||
, wayland
|
||||
, wayland-protocols
|
||||
, gtk-layer-shell
|
||||
# gtk-layer-shell fails to cross-compile due to a hard dependency
|
||||
# on gobject-introspection.
|
||||
# Disable it when cross-compiling since it's an optional dependency.
|
||||
# This disables transparency support.
|
||||
, withGtkLayerShell ? (stdenv.buildPlatform == stdenv.hostPlatform)
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "wlogout";
|
||||
version = "1.1.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ArtsyMacaw";
|
||||
repo = "wlogout";
|
||||
rev = version;
|
||||
sha256 = "cTscfx+erHVFHwwYpN7pADQWt5sq75sQSyXSP/H8kOs=";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
depsBuildBuild = [ pkg-config ];
|
||||
nativeBuildInputs = [ pkg-config meson ninja scdoc ];
|
||||
buildInputs = [
|
||||
gtk3
|
||||
libxkbcommon
|
||||
wayland
|
||||
wayland-protocols
|
||||
] ++ lib.optionals withGtkLayerShell [
|
||||
gtk-layer-shell
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace style.css \
|
||||
--replace "/usr/share/wlogout" "$out/share/${pname}"
|
||||
|
||||
substituteInPlace main.c \
|
||||
--replace "/etc/wlogout" "$out/etc/${pname}"
|
||||
'';
|
||||
|
||||
mesonFlags = [
|
||||
"--datadir=${placeholder "out"}/share"
|
||||
"--sysconfdir=${placeholder "out"}/etc"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/ArtsyMacaw/wlogout";
|
||||
description = "A wayland based logout menu";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ AndersonTorres ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
# TODO: shell completions
|
||||
Loading…
Add table
Add a link
Reference in a new issue