Skip to content

Instantly share code, notes, and snippets.

@stephenlam
Created April 9, 2017 21:14
Show Gist options
  • Save stephenlam/96e6df987f193b9e0f3bde8ffda477d5 to your computer and use it in GitHub Desktop.
Save stephenlam/96e6df987f193b9e0f3bde8ffda477d5 to your computer and use it in GitHub Desktop.
called without required argument ‘ki18n’
# ... omitting lines
kdeDerivation = import ../build-support/kde/derivation.nix { inherit stdenv lib; };
kdeWrapper = callPackage ../build-support/kde/wrapper.nix {
inherit (gnome3) dconf;
};
kio-gdrive = callPackage ../misc/kio-gdrive/default.nix {};
# ... omitting lines
{ stdenv,
extra-cmake-modules,
fetchgit,
qt5,
ki18n,
kio
}:
stdenv.mkDerivation {
name = "kio-gdrive-1.0";
src = fetchgit {
url = "https://github.com/KDE/kio-gdrive";
rev = "75773eb52920e3c779bee23a2c7d2e77d6dbc358";
sha256 = "1hhgn8xzw43whi962j3al99j9rcfbfy3dl8l0kgzzbwrqbp64pz9";
fetchSubmodules = true;
};
nativeBuildInputs = [ extra-cmake-modules qt5.qttools ];
propagatedBuildInputs = [ kio ki18n ];
buildPhase = ''
cd kio-gdrive
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=`qtpaths --install-prefix` ..
'';
postInstall = ''
kdeinit5
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment