diff --git a/nix/default.nix b/nix/default.nix
index a173d234efbebb022fe83dea09ad34884e84b535..d4cbcf28a5b29719261d0eb8a7790cf673f9aa49 100644
--- a/nix/default.nix
+++ b/nix/default.nix
@@ -3,12 +3,12 @@
    ocaml_version ? "ocamlPackages_latest.ocaml", plugins ? { } }:
 
 let
-     unstablePckgs = import (builtins.fetchGit {
+     unstablePckgs = import (pkgs.fetchFromGitHub {
          # Descriptive name to make the store path easier to identify
-         name = "With-RTTI-fix";
-         url = "https://github.com/NixOS/nixpkgs/";
-         ref = "master";
+         owner = "nixos";
+         repo = "nixpkgs";
          rev = "0f0b14258be090303c5013c2e29234040fa9766c";
+         sha256 = "0000000000000000000000000000000000000000000000000000";
      }) {};
 in
 plugins.helpers.simple_plugin