mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-31 12:44:44 +00:00
28 lines
549 B
Nix
28 lines
549 B
Nix
{
|
|
stdenv,
|
|
}:
|
|
|
|
{ version, src, ... }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "hotkey_manager_linux";
|
|
inherit version src;
|
|
inherit (src) passthru;
|
|
|
|
postPatch = ''
|
|
pushd ${src.passthru.packageRoot}
|
|
substituteInPlace linux/hotkey_manager_linux_plugin.cc \
|
|
--replace-fail "const char* identifier;" "const char* identifier = nullptr;" \
|
|
--replace-fail "const char* keystring;" "const char* keystring = nullptr;"
|
|
popd
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
cp --recursive . "$out"
|
|
|
|
runHook postInstall
|
|
'';
|
|
}
|