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
20
pkgs/applications/window-managers/wayfire/applications.nix
Normal file
20
pkgs/applications/window-managers/wayfire/applications.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{ lib, newScope, wayfirePlugins }:
|
||||
|
||||
lib.makeExtensible (self: with self; {
|
||||
inherit wayfirePlugins;
|
||||
|
||||
callPackage = newScope self;
|
||||
|
||||
wayfire = callPackage ./. { };
|
||||
|
||||
wcm = callPackage ./wcm.nix {
|
||||
inherit (wayfirePlugins) wf-shell;
|
||||
};
|
||||
|
||||
wrapWayfireApplication = callPackage ./wrapper.nix { };
|
||||
|
||||
withPlugins = selector: self // {
|
||||
wayfire = wrapWayfireApplication wayfire selector;
|
||||
wcm = wrapWayfireApplication wcm selector;
|
||||
};
|
||||
})
|
||||
33
pkgs/applications/window-managers/wayfire/default.nix
Normal file
33
pkgs/applications/window-managers/wayfire/default.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{ lib, stdenv, fetchurl, cmake, meson, ninja, pkg-config
|
||||
, cairo, doctest, libdrm, libexecinfo, libinput, libjpeg, libxkbcommon, wayland
|
||||
, wayland-protocols, wf-config, wlroots, mesa
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "wayfire";
|
||||
version = "0.7.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/WayfireWM/wayfire/releases/download/v${version}/wayfire-${version}.tar.xz";
|
||||
sha256 = "1gasijjyfl00zpy6j9hh6qpwv0sw42h9irycbnm693j3vw9mcy66";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake meson ninja pkg-config wayland ];
|
||||
buildInputs = [
|
||||
cairo doctest libdrm libexecinfo libinput libjpeg libxkbcommon wayland
|
||||
wayland-protocols wf-config wlroots mesa
|
||||
];
|
||||
|
||||
# CMake is just used for finding doctest.
|
||||
dontUseCmakeConfigure = true;
|
||||
|
||||
mesonFlags = [ "--sysconfdir" "/etc" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://wayfire.org/";
|
||||
description = "3D Wayland compositor";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ qyliss wucke13 ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
12
pkgs/applications/window-managers/wayfire/plugins.nix
Normal file
12
pkgs/applications/window-managers/wayfire/plugins.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{ newScope, wayfire }:
|
||||
|
||||
let
|
||||
self = with self; {
|
||||
inherit wayfire;
|
||||
|
||||
callPackage = newScope self;
|
||||
|
||||
wf-shell = callPackage ./wf-shell.nix { };
|
||||
};
|
||||
in
|
||||
self
|
||||
27
pkgs/applications/window-managers/wayfire/wcm.nix
Normal file
27
pkgs/applications/window-managers/wayfire/wcm.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{ stdenv, lib, fetchurl, meson, ninja, pkg-config, wayland, wrapGAppsHook
|
||||
, gtk3, libevdev, libxml2, wayfire, wayland-protocols, wf-config, wf-shell
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "wcm";
|
||||
version = "0.7.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/WayfireWM/wcm/releases/download/v${version}/wcm-${version}.tar.xz";
|
||||
sha256 = "19za1fnlf5hz4n4mxxwqcr5yxp6mga9ah539ifnjnqrgvj19cjlj";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ meson ninja pkg-config wayland wrapGAppsHook ];
|
||||
buildInputs = [
|
||||
gtk3 libevdev libxml2 wayfire wayland
|
||||
wayland-protocols wf-config wf-shell
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/WayfireWM/wcm";
|
||||
description = "Wayfire Config Manager";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ qyliss wucke13 ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
30
pkgs/applications/window-managers/wayfire/wf-config.nix
Normal file
30
pkgs/applications/window-managers/wayfire/wf-config.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{ stdenv, lib, fetchurl, cmake, meson, ninja, pkg-config
|
||||
, doctest, glm, libevdev, libxml2
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "wf-config";
|
||||
version = "0.7.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/WayfireWM/wf-config/releases/download/v${version}/wf-config-${version}.tar.xz";
|
||||
sha256 = "1w75yxhz0nvw4mlv38sxp8k8wb5h99b51x3fdvizc3yaxanqa8kx";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake meson ninja pkg-config ];
|
||||
buildInputs = [ doctest libevdev libxml2 ];
|
||||
propagatedBuildInputs = [ glm ];
|
||||
|
||||
# CMake is just used for finding doctest.
|
||||
dontUseCmakeConfigure = true;
|
||||
|
||||
doCheck = true;
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/WayfireWM/wf-config";
|
||||
description = "Library for managing configuration files, written for Wayfire";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ qyliss wucke13 ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
30
pkgs/applications/window-managers/wayfire/wf-shell.nix
Normal file
30
pkgs/applications/window-managers/wayfire/wf-shell.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{ stdenv, lib, fetchurl, meson, ninja, pkg-config, wayland, git
|
||||
, alsa-lib, gtkmm3, gtk-layer-shell, pulseaudio, wayfire, wf-config
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "wf-shell";
|
||||
version = "0.7.0";
|
||||
|
||||
# > Note to packagers: do not use the autogenerated "Source code"
|
||||
# > archives from GitHub, but the wf-shell-0.4.0.tar.xz file.
|
||||
src = fetchurl {
|
||||
url = "https://github.com/WayfireWM/wf-shell/releases/download/v${version}/wf-shell-${version}.tar.xz";
|
||||
sha256 = "1isybm9lcpxwyf6zh2vzkwrcnw3q7qxm21535g4f08f0l68cd5bl";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ meson ninja pkg-config wayland ];
|
||||
buildInputs = [
|
||||
alsa-lib gtkmm3 gtk-layer-shell pulseaudio wayfire wf-config
|
||||
];
|
||||
|
||||
mesonFlags = [ "--sysconfdir" "/etc" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/WayfireWM/wf-shell";
|
||||
description = "GTK3-based panel for Wayfire";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ qyliss wucke13 ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
39
pkgs/applications/window-managers/wayfire/wrapper.nix
Normal file
39
pkgs/applications/window-managers/wayfire/wrapper.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{ runCommand, lib, makeWrapper, wayfirePlugins }:
|
||||
|
||||
let
|
||||
inherit (lib) escapeShellArg makeBinPath;
|
||||
|
||||
xmlPath = plugin: "${plugin}/share/wayfire/metadata/wf-shell";
|
||||
|
||||
makePluginPath = lib.makeLibraryPath;
|
||||
makePluginXMLPath = lib.concatMapStringsSep ":" xmlPath;
|
||||
in
|
||||
|
||||
application:
|
||||
|
||||
choosePlugins:
|
||||
|
||||
let
|
||||
plugins = choosePlugins wayfirePlugins;
|
||||
in
|
||||
|
||||
runCommand "${application.name}-wrapped" {
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
passthru = application.passthru // {
|
||||
unwrapped = application;
|
||||
};
|
||||
|
||||
inherit (application) meta;
|
||||
} ''
|
||||
mkdir -p $out/bin
|
||||
for bin in ${application}/bin/*
|
||||
do
|
||||
makeWrapper "$bin" $out/bin/''${bin##*/} \
|
||||
--suffix PATH : ${escapeShellArg (makeBinPath plugins)} \
|
||||
--suffix WAYFIRE_PLUGIN_PATH : ${escapeShellArg (makePluginPath plugins)} \
|
||||
--suffix WAYFIRE_PLUGIN_XML_PATH : ${escapeShellArg (makePluginXMLPath plugins)}
|
||||
done
|
||||
find ${application} -mindepth 1 -maxdepth 1 -not -name bin \
|
||||
-exec ln -s '{}' $out ';'
|
||||
''
|
||||
Loading…
Add table
Add a link
Reference in a new issue