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:
Anton Arapov 2021-04-03 12:58:10 +02:00 committed by Alan Daniels
commit 56de2bcd43
30691 changed files with 3076956 additions and 0 deletions

View file

@ -0,0 +1,49 @@
{ lib
, mkDerivation
, fetchFromGitHub
, kcoreaddons
, kwindowsystem
, plasma-framework
, systemsettings
, cmake
, extra-cmake-modules
, esbuild
}:
mkDerivation rec {
pname = "bismuth";
version = "3.1.1";
src = fetchFromGitHub {
owner = "Bismuth-Forge";
repo = pname;
rev = "v${version}";
sha256 = "sha256-SGeqTmU603gKlzCUJ6AMaG7++9JvMw5EpSATwJEqNq8=";
};
cmakeFlags = [
"-DUSE_TSC=OFF"
"-DUSE_NPM=OFF"
];
nativeBuildInputs = [
cmake
extra-cmake-modules
esbuild
];
buildInputs = [
kcoreaddons
kwindowsystem
plasma-framework
systemsettings
];
meta = with lib; {
description = "A dynamic tiling extension for KWin";
license = licenses.mit;
maintainers = with maintainers; [ pasqui23 ];
homepage = "https://bismuth-forge.github.io/bismuth/";
inherit (kwindowsystem.meta) platforms;
};
}

View file

@ -0,0 +1,32 @@
{ lib, mkDerivation, fetchFromGitHub, extra-cmake-modules
, kwindowsystem, plasma-framework }:
mkDerivation rec {
pname = "plasma-applet-caffeine-plus";
version = "1.4";
src = fetchFromGitHub {
owner = "qunxyz";
repo = pname;
rev = "v${version}";
sha256 = "sha256-/Nz0kSDGok7GjqSQtjH/8q/u6blVTFPO6kfjEyt/jEo=";
};
buildInputs = [
kwindowsystem plasma-framework
];
nativeBuildInputs = [ extra-cmake-modules ];
cmakeFlags = [
"-Wno-dev"
];
meta = with lib; {
description = "Disable screensaver and auto suspend";
license = licenses.gpl2;
maintainers = with maintainers; [ peterhoeg ];
inherit (src.meta) homepage;
inherit (kwindowsystem.meta) platforms;
};
}

View file

@ -0,0 +1,43 @@
{ lib, stdenv, fetchFromGitLab, python3 }:
let
pythonEnv = python3.withPackages (p: with p; [ dbus-python pygobject3 ]);
in
stdenv.mkDerivation rec {
pname = "krunner-ssh";
version = "1.0";
src = fetchFromGitLab {
owner = "Programie";
repo = "krunner-ssh";
rev = version;
sha256 = "sha256-rFTTvmetDeN6t0axVc+8t1TRiuyPBpwqhvsq2IFxa/A=";
};
postPatch = ''
sed -e "s|Exec=.*|Exec=$out/libexec/runner.py|" -i ssh-runner.service
'';
nativeBuildInputs = [
pythonEnv
];
installPhase = ''
runHook preInstall
patchShebangs runner.py
install -m 0755 -D runner.py $out/libexec/runner.py
install -m 0755 -D ssh-runner.desktop $out/share/kservices5/ssh-runner.desktop
install -m 0755 -D ssh-runner.service $out/share/dbus-1/services/com.selfcoders.ssh-runner.service
runHook postInstall
'';
meta = with lib; {
description = "A simple backend for KRunner providing SSH hosts from your .ssh/known_hosts file as search results";
homepage = "https://selfcoders.com/projects/krunner-ssh";
license = licenses.mit;
maintainers = with maintainers; [ aanderse ];
platforms = platforms.linux;
};
}

View file

@ -0,0 +1,40 @@
{ lib, stdenv
, cmake, fetchFromGitHub, extra-cmake-modules
, qtbase, wrapQtAppsHook, ki18n, kdelibs4support, krunner
}:
stdenv.mkDerivation rec {
pname = "krunner-symbols";
version = "1.1.0";
src = fetchFromGitHub {
owner = "domschrei";
repo = "krunner-symbols";
rev = version;
sha256 = "sha256-YsoZdPTWpk3/YERwerrVEcaf2IfGVJwpq32onhP8Exo=";
};
buildInputs = [ qtbase ki18n kdelibs4support krunner ];
nativeBuildInputs = [ cmake wrapQtAppsHook extra-cmake-modules ];
postPatch = ''
# symbols.cpp hardcodes the location of configuration files
substituteInPlace symbols.cpp \
--replace "/usr/share/config/krunner-symbol" "$out/share/config/krunner-symbol"
# change cmake flag names to output using the correct qt-plugin prefix and kservice location
substituteInPlace CMakeLists.txt \
--replace "LOCATION_PLUGIN" "KDE_INSTALL_PLUGINDIR" \
--replace "LOCATION_DESKTOP" "KDE_INSTALL_KSERVICES5DIR"
'';
cmakeFlags = [ "-DLOCATION_CONFIG=share/config" ];
meta = with lib; {
description = "A little krunner plugin (Plasma 5) to retrieve unicode symbols, or any other string, based on a corresponding keyword";
homepage = "https://github.com/domschrei/krunner-symbols";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ hqurve ];
platforms = platforms.linux;
};
}

View file

@ -0,0 +1,40 @@
{ lib
, mkDerivation
, fetchFromGitHub
, extra-cmake-modules
, kwindowsystem
, plasma-framework
, qtx11extras
}:
mkDerivation rec {
pname = "plasma-applet-virtual-desktop-bar";
version = "unstable-2021-02-20";
src = fetchFromGitHub {
owner = "wsdfhjxc";
repo = "virtual-desktop-bar";
rev = "3e9bbddb8def8da65071a1c325eaa06598e8a473";
sha256 = "192ns6c2brzq46pg385n0v1ydbz52aaa8f5dgfw5251hrw9c7bxg";
};
buildInputs = [
kwindowsystem plasma-framework qtx11extras
];
nativeBuildInputs = [
extra-cmake-modules
];
cmakeFlags = [
"-Wno-dev"
];
meta = with lib; {
description = "Manage virtual desktops dynamically in a convenient way";
homepage = "https://github.com/wsdfhjxc/virtual-desktop-bar";
license = licenses.gpl3Only;
platforms = platforms.linux;
maintainers = with maintainers; [ peterhoeg ];
};
}