-
-
Save joepie91/fd256f1c4145bc98068c4cd623d761f5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ stdenv, pkgs, ... }: | |
{ path, storeHash, ... }: | |
let | |
derivationName = baseNameOf path; | |
storePath = "/nix/store/${storeHash}-${derivationName}"; | |
in | |
if builtins.pathExists storePath then storePath else path |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment