nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 27 lines 549 B view raw
1{ 2 stdenv, 3}: 4 5{ version, src, ... }: 6 7stdenv.mkDerivation { 8 pname = "hotkey_manager_linux"; 9 inherit version src; 10 inherit (src) passthru; 11 12 postPatch = '' 13 pushd ${src.passthru.packageRoot} 14 substituteInPlace linux/hotkey_manager_linux_plugin.cc \ 15 --replace-fail "const char* identifier;" "const char* identifier = nullptr;" \ 16 --replace-fail "const char* keystring;" "const char* keystring = nullptr;" 17 popd 18 ''; 19 20 installPhase = '' 21 runHook preInstall 22 23 cp --recursive . "$out" 24 25 runHook postInstall 26 ''; 27}