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
40
pkgs/development/libraries/qtmpris/default.nix
Normal file
40
pkgs/development/libraries/qtmpris/default.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{ lib
|
||||
, mkDerivation
|
||||
, fetchFromGitHub
|
||||
, qmake
|
||||
, qtbase
|
||||
}:
|
||||
|
||||
mkDerivation rec {
|
||||
pname = "qtmpris";
|
||||
version = "1.0.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "sailfishos";
|
||||
repo = "qtmpris";
|
||||
rev = version;
|
||||
hash = "sha256-kuM8hUdsa7N+eLDbwYw3ay+PWxg35zcTBOvGow1NlzI=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace src/src.pro \
|
||||
--replace '$$[QT_INSTALL_LIBS]' "$out/lib" \
|
||||
--replace '$$[QT_INSTALL_HEADERS]' "$out/include" \
|
||||
--replace '$$[QMAKE_MKSPECS]' "$out/mkspecs"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
qmake
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
qtbase
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Qt and QML MPRIS interface and adaptor";
|
||||
homepage = "https://github.com/sailfishos/qtmpris";
|
||||
license = lib.licenses.lgpl21Plus;
|
||||
maintainers = with lib.maintainers; [ dotlambda ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue